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 70672 - NPE is thrown when expand bean's node in sun-ejb-jar.xml editor
Summary: NPE is thrown when expand bean's node in sun-ejb-jar.xml editor
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: PC All
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
: 58710 (view as bug list)
Depends on:
Blocks: 70501
  Show dependency tree
 
Reported: 2005-12-21 08:38 UTC by Petr Blaha
Modified: 2006-02-17 12:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (5.36 KB, text/plain)
2005-12-21 08:40 UTC, Petr Blaha
Details
sample project (25.95 KB, application/x-compressed)
2005-12-21 08:41 UTC, Petr Blaha
Details
Second NPE Stack trace (6.24 KB, text/plain)
2005-12-22 20:09 UTC, Rochelle Raccah
Details
Diffs of fix for this bug. (2.72 KB, text/plain)
2006-01-04 07:32 UTC, _ pcw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-12-21 08:38:34 UTC
[build 20051213]
Steps:
1) open attached project in IDE
2) open visual sun-ejb-jar.xml editor
3) expand bean node and select one bean
ERROR: java.lang.NullPointerException
	at
com.sun.jdo.modules.persistence.mapping.ejb.util.SunOneUtilsCMP.createClassState(SunOneUtilsCMP.java:522)
is thrown
Comment 1 Petr Blaha 2005-12-21 08:40:06 UTC
Created attachment 28000 [details]
stack trace
Comment 2 Petr Blaha 2005-12-21 08:41:44 UTC
Created attachment 28001 [details]
sample project
Comment 3 Rochelle Raccah 2005-12-22 20:09:01 UTC
There's actually another NPE as well (I'll attach it), and it matches the one
Vince saw in issue 70716.  These usually happen when the cmr fields can't be
found, usually because of capitalization mismatches in the names of the getter
methods.  I'll fix this now.
Comment 4 Rochelle Raccah 2005-12-22 20:09:54 UTC
Created attachment 28044 [details]
Second NPE Stack trace
Comment 5 Rochelle Raccah 2005-12-22 20:24:35 UTC
Fix checked in to persistence.  Vince or Peter will update the jar in the plugin.
Comment 6 _ pcw 2005-12-22 21:41:16 UTC
So isn't this then a duplicate of 70716?
Comment 7 _ pcw 2005-12-22 22:57:14 UTC
Disregard my comment, I think I see why this isn't a dup.  If we are going to
fix this for release 50, it needs to be bumped to P2.

Justification for raising priority is exception visible to user during typical
CMP editing.
Comment 8 _ pcw 2006-01-04 00:08:18 UTC
The new persistence-tools-support.jar that contains this fix appears to have
been build with a different (newer) JDK than was used previously and so the new
jar contains a large number of differences that do not pertain to the fix in
question.  I'm working with Rochelle to isolate the toolset required so that we
can introduce a new persistence-tools-support.jar that has only the changes
required to fix this problem for NB 5.0.
Comment 9 _ pcw 2006-01-04 07:28:07 UTC
The new persistence-tool-support.jar has been rebuilt with the same JDK used
before, which was JDK 1.4.2_06.  Binary diffs of all contents indicate the only
changed class file was the expected file
(persistence\mapping\ejb\src\com\sun\jdo\modules\persistence\mapping\ejb\DevelopmentNameMapper.java).
 Everything else is a binary match.
Comment 10 _ pcw 2006-01-04 07:32:23 UTC
The changed file in the NB repository for this fix is:
http://serverplugins.netbeans.org/source/browse/serverplugins/external/appsrvjars.zip?r1=1.8&r2=1.9

(binary file though, no diffs visible).

The context diff for the changes made to DevelopmentNameMapper.java within
persistence-tool-support.jar are attached.
Comment 11 _ pcw 2006-01-04 07:32:59 UTC
Created attachment 28163 [details]
Diffs of fix for this bug.
Comment 12 Jan Horvath 2006-01-04 11:56:55 UTC
virified in trunk
Comment 13 _ pcw 2006-01-04 23:44:55 UTC
*** Issue 58710 has been marked as a duplicate of this issue. ***
Comment 14 _ pcw 2006-01-07 05:40:32 UTC
Fix committed to release50 branch.
Comment 15 Petr Blaha 2006-02-17 12:12:01 UTC
build 200602072300