This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 102114 - NPE while creating EAR Project, EAR project is NOT opened
Summary: NPE while creating EAR Project, EAR project is NOT opened
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-23 10:39 UTC by Radim Roska
Modified: 2007-09-04 11:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE exception (1.47 KB, text/plain)
2007-04-23 10:39 UTC, Radim Roska
Details
IllegalArgumentException (887 bytes, text/plain)
2007-04-23 10:40 UTC, Radim Roska
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radim Roska 2007-04-23 10:39:10 UTC
NetBeans IDE Dev (Build 070423)
1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
Linux version 2.6.17-11-generic running on i386
en_US (nb); UTF-8

installer installation

1. new project
2. enterprise -> enterprise application
3. finish

java.lang.NullPointerException occurs, after confirm this exception another
exception is fired:
java.lang.IllegalArgumentException: Project EnterpriseApplication4 is not open
and cannot be set as main.
4. ear project is not opened, only ejb and war projects are.. 

The same error happens when trying to open ear project.
Comment 1 Radim Roska 2007-04-23 10:39:50 UTC
Created attachment 41427 [details]
NPE exception
Comment 2 Radim Roska 2007-04-23 10:40:35 UTC
Created attachment 41428 [details]
IllegalArgumentException
Comment 3 Tomas Mysik 2007-04-23 12:51:13 UTC
There was everything ok with build 070419.
Comment 4 Petr Jiricka 2007-04-23 13:59:36 UTC
I believe this was caused by Peter, assigning to him.
Comment 5 _ pcw 2007-04-23 18:20:27 UTC
Looking into this.
Comment 6 _ pcw 2007-04-23 18:43:17 UTC
Ear module version is showing as 5 when it was expecting 5.0.  Fixed and a trap
put in for any future runtime exceptions to prevent them from blocking open
project like this.

The code in question actually has been working for a long time, so later today I
will find out if the source of the number has changed or fix the numbering
schemes so they are not susceptible to this sort of issue.

Fixed:
http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/configbean/SunONEDeploymentConfiguration.java?r1=1.33&r2=1.34
Comment 7 Radim Roska 2007-09-04 11:39:53 UTC
VERIFIED