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

Summary: NPE while creating EAR Project, EAR project is NOT opened
Product: serverplugins Reporter: Radim Roska <rroska>
Component: Sun Appserver 9Assignee: _ pcw <pcw>
Status: VERIFIED FIXED    
Severity: blocker CC: pjiricka
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: NPE exception
IllegalArgumentException

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