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 123181 - Web service client code marked with a red badge
Summary: Web service client code marked with a red badge
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks: 121950
  Show dependency tree
 
Reported: 2007-11-30 19:32 UTC by Roman Strobl
Modified: 2008-01-31 12:37 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the error badge (60.09 KB, image/png)
2007-11-30 19:59 UTC, Roman Strobl
Details
Web service projects (45.61 KB, application/octet-stream)
2007-12-04 16:34 UTC, Roman Strobl
Details
proposed patch (5.19 KB, text/plain)
2007-12-17 00:49 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Strobl 2007-11-30 19:32:16 UTC
Not sure if this is a web service client issue or java editor issue, please reassign if necessary. I see this on
NetBeans 6.0 FCS testing build.

Web service client wizard generates code which is marked with an error badge.

Steps to reproduce:
1. Create a new web project "WSDemo".
2. Create a new web service "WSTest" with one operation "testOperation" that returns a string and return "test" in the
web service.
3. Deploy the web service to Glassfish v2.
4. Create a new Java project "WSClient". 
5. Create a web service client using the web service client wizard. Choose to generate the client from "WSDemo" project
and "WSTest" service.
6. Call the "testOperation" operation using rightclick | Web service client resource | Call web service operation. The
code get generated in the main method.
6. Switch to files view.
7. Open the Files tab and expand build/generated/wsimport/client/packagename

-> You should see an error badge on generated WSTestService class.

However the web service client builds normally and the application works.
Comment 1 Roman Strobl 2007-11-30 19:59:38 UTC
Created attachment 53737 [details]
Screenshot of the error badge
Comment 2 Jaroslav Pospisil 2007-12-03 12:10:47 UTC
Can't reproduce on my Windows Vista using your steps.Could you reproduce this on latest NB6FCS with clean userdir Roman?
If so, try please to close WSTest.java file in editor and reopen,error badges should disappear. 
Comment 3 Roman Strobl 2007-12-04 16:33:13 UTC
I tried to reproduce it on Vista and the problem is there. I attach the demo project. Opening the file doesn't help to
refresh.
Comment 4 Roman Strobl 2007-12-04 16:34:18 UTC
Created attachment 53854 [details]
Web service projects
Comment 5 Jaroslav Pospisil 2007-12-04 17:21:55 UTC
I can't still reproduce,even with your files. I use JDK1.6.0_04,that's the reason (see Lucas's comment).
Comment 6 Lukas Jungmann 2007-12-04 17:24:15 UTC
this issue depends on JDK used for running the IDE:
-it works fine if IDE runs on JDK 5 or on JDK 6 update 4 and newer
-this bug is valid if IDE runs on JDK 6 up to version JDK 6 update 3 (since these versions contain JAX-WS 2.0 and in the
IDE there we're using JAX-WS 2.1)
Comment 7 Milan Kuchtiak 2007-12-10 14:42:37 UTC
The red badge will disapear after JAX-WS is upgraded in JDK1.6 (1.7).
Comment 8 Lukas Jungmann 2007-12-17 00:49:19 UTC
Created attachment 54308 [details]
proposed patch
Comment 9 Lukas Jungmann 2007-12-17 00:54:53 UTC
Since IDE is blocking JAX-WS classes to be loaded directly from JDK, we have to add those classes to BOOT cp manually so
they will become available in the editor. Attached patch solves this, feel free to reuse it.
Comment 10 Milan Kuchtiak 2008-01-17 16:52:17 UTC
I applied the patch. Thanks.
Comment 11 Jaroslav Pospisil 2008-01-31 12:37:45 UTC
v.