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.
using build inetbeans-hudson-trunk-1546-full.zip, NPE pops up after source is opened in editor when Navigate to Source from UML model. See attached ide log file for complete exceptions. repro steps: - create a java project - create a java-platform uml project - create a class diagram - create and name a couple of classes - generate code for the project to the java project - navigate to source for any class from uml model, class diagram or uml project tree
i'd exremely appreciate the NPE trace attached - it'd allow to exactly pinpoint the problem (as in my relatively fresh build i don't see the problem)
Created attachment 44857 [details] ide log file
did you mean this NPE? java.lang.NullPointerException at org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider.initServiceMetadata(WebServicesHintsProvider.java:136) at org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider.run(WebServicesHintsProvider.java:104) at org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider$ProblemFinderCompInfo.run(WebServicesHintsProvider.java:174) [catch] at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1491) .... As there isn't our code in the NPE (and we haven't had any related changes recently) i suppose that it should be reproducible with non-UML related operations in Java Editor as well. In this case the websvc.editor team will fix it soon i guess.
yes, that's the exception. I don't know what to say but it seems to be happening only with uml-generated source in the source editor. I don't see the NPE popup when I click on a source editor window (SEW) tab for the source file created in the java project. However, any time I clicked on the SEW tab for the uml generated source, the NPE pops up. So, I think there might be something related to the generate source?
thanks for the trace and confirmation. I'll take it from here - either it will be gone in my next fresh build, or i'll have new filed for the websvc people and make this blocked.
one more info. Just sometimes, after generating code for a class from the diagram and before doing Navigate to Source, this NPE also pops up.
The websvc module fixed it : http://deadlock.netbeans.org/fisheye/browse/netbeans/websvc/editorhints/src/org/netbeans/modules/websvc/editor/hints/WebServicesHintsProvider.java?r1=1.1&r2=1.2
just reverified again and it's not repro.