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 115877 - NPE after refreshing the Client
Summary: NPE after refreshing the Client
Status: RESOLVED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Roderico Cruz
URL: http://statistics.netbeans.org/except...
Keywords:
: 115888 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-18 16:11 UTC by Lukas Jungmann
Modified: 2008-03-16 18:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 4274


Attachments
stacktrace (1.11 KB, text/plain)
2007-09-18 16:12 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-09-18 16:11:56 UTC
Build: NetBeans IDE Dev (Build 20070918115025)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-ea-b02
OS: Linux, 2.6.20-16-generic, i386

User Comments: 
-create new ear with ejb and web modules
-create new local session bean in ejbmodule with some business method
-create new ws client and use http://www.webservicex.net/WCF/ServiceDetails.aspx?SID=44 (there's no WSDL available on that URL, but everyone can make a mistake...)
-invoke refresh action on the ws client node and use correct URL: http://www.webservicex.net/WeatherForecast.asmx?wsdl

=> NPE
Comment 1 Lukas Jungmann 2007-09-18 16:12:05 UTC
Created attachment 49001 [details]
stacktrace
Comment 2 Lukas Jungmann 2007-09-18 21:44:24 UTC
*** Issue 115888 has been marked as a duplicate of this issue. ***
Comment 3 Roderico Cruz 2007-10-29 21:47:09 UTC
Unable to reproduce the NPE but getting different error:
[Fatal Error] :23:110: The element type "img" must be terminated by the matching end-tag "</img>".

[Fatal Error] :23:110: The element type "img" must be terminated by the matching end-tag "</img>".
Comment 4 Roderico Cruz 2007-11-02 07:49:26 UTC
The Refresh Client successfully creates the client artifacts after the right
wsdl has been entered in the Refresh dialog. However the error message
box still appears after code generation, although code generation was successful.
 This appears to be a timing problem. Subsequent refreshes are successful.
Comment 5 Roderico Cruz 2007-11-02 09:29:13 UTC
Lukas, are you still getting the NPE here with the current build?
Comment 6 Roderico Cruz 2007-11-02 19:09:35 UTC
There seems to be a race condition between the generation of the WsdlModel and the refreshing of the nodes. It may be
too risky to fix this at this point.
If you cannot reproduce the NPE, maybe we can remove the fix-in-60 keyword, since the dialog that
comes up is harmless (although, yes, annoying to the user)? 
Comment 7 Lukas Jungmann 2007-11-05 20:32:51 UTC
I can see no NPE in latest build => removing SW
Comment 8 Lukas Jungmann 2008-03-16 18:57:29 UTC
cannot reproduce in the latest build...