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 101804 - NPE when in servlet try to call enterprise bean
Summary: NPE when in servlet try to call enterprise bean
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Adamek
URL:
Keywords:
: 102454 (view as bug list)
Depends on:
Blocks: 99509
  Show dependency tree
 
Reported: 2007-04-19 16:03 UTC by Radim Roska
Modified: 2007-09-04 11:37 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
error details (3.28 KB, text/plain)
2007-04-19 16:05 UTC, Radim Roska
Details
Proposed patch (2.04 KB, text/plain)
2007-04-24 09:30 UTC, Martin Adamek
Details
Proposed patch with corrected explanation in javadoc (1.99 KB, application/octet-stream)
2007-04-25 14:45 UTC, Martin Adamek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radim Roska 2007-04-19 16:03:53 UTC
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
Comment 1 Radim Roska 2007-04-19 16:05:35 UTC
Created attachment 41263 [details]
error details
Comment 2 Jan Horvath 2007-04-20 08:31:54 UTC
can you please add information about java ee version?
Comment 3 Radim Roska 2007-04-20 08:55:48 UTC
exception occurs in both supported version of EE ( Java ee 5 , j2ee 1.4 )
Comment 4 Radim Roska 2007-04-20 09:22:19 UTC
im sorry i didnt mentioned that exception occurs only in nb installed by
installer with all packs. Daily builds work fine.
Comment 5 Petr Blaha 2007-04-20 09:51:39 UTC
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.
Comment 6 Radim Roska 2007-04-20 10:07:48 UTC
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...
Comment 7 Martin Adamek 2007-04-23 15:26:46 UTC
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
Comment 8 Martin Adamek 2007-04-24 09:19:44 UTC
Fix is not ok, reopening.
Comment 9 Martin Adamek 2007-04-24 09:30:37 UTC
Created attachment 41528 [details]
Proposed patch
Comment 10 Martin Adamek 2007-04-24 09:31:25 UTC
Andrei, can you please review the patch?
Comment 11 Andrei Badea 2007-04-24 09:58:10 UTC
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.
Comment 12 Martin Adamek 2007-04-25 14:25:23 UTC
*** Issue 102454 has been marked as a duplicate of this issue. ***
Comment 13 Martin Adamek 2007-04-25 14:34:42 UTC
Changing to P1 as duplicate P1 was reported and it seems to be quite important.
Comment 14 Martin Adamek 2007-04-25 14:45:37 UTC
Created attachment 41632 [details]
Proposed patch with corrected explanation in javadoc
Comment 17 Radim Roska 2007-09-04 11:37:35 UTC
VERIFIED long time ago :)