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.
hudson #2466, jdk6u2 -have an ear project with ejb and web module (Java EE 5 spec. level) -create session bean and websvc client in an ejb module and call the ws operations from the bean -create a servlet in a webapp and call the session bean from it -reuse some other class generated by wsimport in a ejb module in the servlet => in the editor there one can see errors in his code, but the ear project compiles fine => not sure if this is related, but if one tryes to use code completion for wsit.test.RandomException_Exception class he will get: SEVERE [global] java.lang.NullPointerException at org.netbeans.modules.editor.java.JavaCompletionItem$ClassItem$1.run(JavaCompletionItem.java:649) at org.netbeans.modules.editor.java.JavaCompletionItem$ClassItem$1.run(JavaCompletionItem.java:640) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:564) at org.netbeans.modules.editor.java.JavaCompletionItem$ClassItem.substituteText(JavaCompletionItem.java:638) at org.netbeans.modules.editor.java.JavaCompletionItem.defaultAction(JavaCompletionItem.java:207) at org.netbeans.modules.editor.completion.CompletionImpl.dispatchKeyEvent(CompletionImpl.java:521) at org.netbeans.modules.editor.completion.CompletionImpl.keyPressed(CompletionImpl.java:325) at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:233) at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:232) at java.awt.Component.processKeyEvent(Component.java:5996) at javax.swing.JComponent.processKeyEvent(JComponent.java:2799) ...
Created attachment 46568 [details] projects where one can reproduce this issue
Dusane, can you check the exception from CC and let me know if I should file it as a separate issue, please? Thanks.
File a separate issue with the exact steps to reproduce. Thanks.
NPE is now tracked in issue 112775
Yes, I was able to reproduce the issue. Classpath resources are not updated properly.
Fixed. Diff: http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/jaxws/projects/JaxWsAntLogger.java?rev=1.1&content-type=text/vnd.viewcvs-markup http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/jaxws/projects/J2SEWSSupportLookupProvider.java?r1=1.4&r2=1.5 http://websvc.netbeans.org/source/browse/websvc/core/src/META-INF/services/org.apache.tools.ant.module.spi.AntLogger?rev=1.1&content-type=text/vnd.viewcvs-markup
I'm still able to reproduce this... :(
I'll try to implement a special ClassPathProvider.
Fixed. The problem was in CompiledSourceBinaryQuery.Result:getRoots(). Generated artifacts were not involved there. Diff: http://j2ee.netbeans.org/source/browse/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/SourceRoots.java?r1=1.8&r2=1.9
v.
*** Issue 115746 has been marked as a duplicate of this issue. ***
still reproducible for following case: -Create Java app -Create Web service client using WSDL -Call Web service operation
Fixed: http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/jaxws/projects/JaxWsArtifactsClassPathProvider.java?r1=1.2&r2=1.3
*** Issue 117052 has been marked as a duplicate of this issue. ***