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.
[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
Created attachment 28000 [details] stack trace
Created attachment 28001 [details] sample project
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.
Created attachment 28044 [details] Second NPE Stack trace
Fix checked in to persistence. Vince or Peter will update the jar in the plugin.
So isn't this then a duplicate of 70716?
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.
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.
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.
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.
Created attachment 28163 [details] Diffs of fix for this bug.
virified in trunk
*** Issue 58710 has been marked as a duplicate of this issue. ***
Fix committed to release50 branch.
build 200602072300