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.
NetBeans IDE Dev (Build 070418) 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 1. create ear project 2. create session bean 3. create servlet 4. in servlet right click -> enterprise resources -> call enterprise bean => java.lang.NullPointerException
Created attachment 41263 [details] error details
can you please add information about java ee version?
exception occurs in both supported version of EE ( Java ee 5 , j2ee 1.4 )
im sorry i didnt mentioned that exception occurs only in nb installed by installer with all packs. Daily builds work fine.
This is serous issue for J1 preview since we will use new installer where users can choose predefined configuration and they will install more packs on their machines. We should find which pack causes this exception.
i have reproduced this on nb installed just with web pack ( even without GF server installed ).. Precisely all i've installed was base IDE, Java IDE and Web Pack...
I wasn't able to reproduce it, but here's the possible fix. Please try to reproduce again with that. http://www.netbeans.org/source/browse/j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/entres/NodeDisplayPanel.java?r1=1.5&r2=1.6
Fix is not ok, reopening.
Created attachment 41528 [details] Proposed patch
Andrei, can you please review the patch?
Patch looks fine to me. Perhaps "addPropertyChangeListener was called by the superclass constructor, that is, before the pcs field was initialized" is slightly clearer than the proposed description.
*** Issue 102454 has been marked as a duplicate of this issue. ***
Changing to P1 as duplicate P1 was reported and it seems to be quite important.
Created attachment 41632 [details] Proposed patch with corrected explanation in javadoc
Fixed in trunk. http://www.netbeans.org/source/browse/j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/entres/NodeDisplayPanel.java?r1=1.6&r2=1.7
Fixed in release60-m9 branch http://www.netbeans.org/source/browse/j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/entres/NodeDisplayPanel.java?r1=1.6&r2=1.6.2.1
VERIFIED long time ago :)