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 112736 - Ws client classes are not available in Code Completion
Summary: Ws client classes are not available in Code Completion
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
: 115746 117052 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-14 12:49 UTC by Lukas Jungmann
Modified: 2007-10-25 08:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
projects where one can reproduce this issue (69.68 KB, application/octet-stream)
2007-08-14 12:50 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2007-08-14 12:49:15 UTC
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)
...
Comment 1 Lukas Jungmann 2007-08-14 12:50:40 UTC
Created attachment 46568 [details]
projects where one can reproduce this issue
Comment 2 Lukas Jungmann 2007-08-14 12:53:17 UTC
Dusane, can you check the exception from CC and let me know if I should file it as a separate issue, please?
Thanks.
Comment 3 Dusan Balek 2007-08-14 14:05:18 UTC
File a separate issue with the exact steps to reproduce. Thanks.
Comment 4 Lukas Jungmann 2007-08-14 17:31:32 UTC
NPE is now tracked in issue 112775
Comment 5 Milan Kuchtiak 2007-08-15 17:18:06 UTC
Yes, I was able to reproduce the issue.
Classpath resources are not updated properly.
Comment 7 Lukas Jungmann 2007-09-05 18:22:51 UTC
I'm still able to reproduce this... :(
Comment 8 Milan Kuchtiak 2007-09-10 17:55:02 UTC
I'll try to implement a special ClassPathProvider.
Comment 9 Milan Kuchtiak 2007-09-13 10:34:14 UTC
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
Comment 10 Lukas Jungmann 2007-09-18 16:37:05 UTC
v.
Comment 11 Jan Lahoda 2007-09-19 12:23:29 UTC
*** Issue 115746 has been marked as a duplicate of this issue. ***
Comment 12 Lukas Jungmann 2007-09-24 15:58:50 UTC
still reproducible for following case:

-Create Java app
-Create Web service client using WSDL
-Call Web service operation 
Comment 14 Lukas Jungmann 2007-10-02 01:55:11 UTC
*** Issue 117052 has been marked as a duplicate of this issue. ***
Comment 15 Lukas Jungmann 2007-10-25 08:48:27 UTC
v.