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 75671 - Null pointer exception when creating WS from Google web service
Summary: Null pointer exception when creating WS from Google web service
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Roderico Cruz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-28 10:32 UTC by jrojcek
Modified: 2008-03-12 14:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
WSDL causing null pointer exception. (7.51 KB, text/xml)
2006-04-28 17:06 UTC, jrojcek
Details
warning message - sample (43.19 KB, image/jpeg)
2006-04-30 22:35 UTC, Milan Kuchtiak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jrojcek 2006-04-28 10:32:53 UTC
When I pointed to GoogleSearch.wsdl file (on my deskotp) in the Web Service from
WSDL wizard, it threw a null pointer exception. I couldn't proceed.
Comment 1 Milan Kuchtiak 2006-04-28 14:32:49 UTC
Please, attach the wsdl file
Comment 2 Lukas Jungmann 2006-04-28 15:15:50 UTC
you can use any rpc/enc ws (eg famous bgtrans from xmethods.com) - it's caused
by the fact that JAX-WS does not support rpc/enc webservices... (thrown
exception contains something like "JAX-WS does not support rpc/enc...") - maybe
it would be enough to change the exception dialog with some error message
Comment 3 Milan Kuchtiak 2006-04-28 16:12:56 UTC
Related also to issue 73856. We should likely prevent to create client node for
that service .. and inform user in error message what's the problem.
Comment 4 jrojcek 2006-04-28 17:06:33 UTC
Created attachment 30135 [details]
WSDL causing null pointer exception.
Comment 5 Milan Kuchtiak 2006-04-30 22:22:36 UTC
For Web Service Client :
The client node is marked by error badge.
(issue 73856)

For Web Service from WSDL we shouldn't allow to "Finish" wizard.
The Warning message appears instead of exception.

Diffs:
http://websvc.netbeans.org/source/browse/websvc/dev/src/org/netbeans/modules/websvc/dev/wizard/WebServiceFromWSDLPanel.java?r1=1.1.2.11&r2=1.1.2.12
http://websvc.netbeans.org/source/browse/websvc/dev/src/org/netbeans/modules/websvc/dev/wizard/Bundle.properties?r1=1.17.4.3.2.11&r2=1.17.4.3.2.12
Comment 6 Milan Kuchtiak 2006-04-30 22:35:20 UTC
Created attachment 30143 [details]
warning message - sample
Comment 7 jrojcek 2006-05-02 10:33:35 UTC
Ccing Ken to help with the error message wording. The current message is attached in "service-
warning.jpg". Thanks.

The dialog should be "error" not warning because the user cannot finish the wizard. Also, there should be 
an inline error message informing the user why she cannot click the finish button. A shorter version of the 
error message. Ken, can you help with that? Thanks. Don't forget the user could write the wsdl path 
manually into the text field.

Reopening as P3.
Comment 8 Milan Kuchtiak 2006-05-02 13:12:35 UTC
OK, reassigning to R.Najman
Comment 9 Radko Najman 2006-06-09 09:45:33 UTC
Ken, could you provide the error messages and then reassign back to me, please?
Thanks.
Comment 10 Kenneth Ganfield 2006-06-09 11:43:41 UTC
reassigning to geertjan, who looks  after WSDL doc issues
Comment 11 Geertjan Wielenga 2007-08-16 13:49:07 UTC
What should the user do to fix the problem? That's important to know and it is information that should be included in
the error message.
Comment 12 Jiri Prox 2007-09-17 21:44:43 UTC
Obsolete milestone, please reevaluate
Comment 13 Srividhya Narayanan 2007-09-24 18:42:58 UTC
Rico, pls provide the text to Geertjan
Comment 14 Lukas Jungmann 2008-03-12 14:26:57 UTC
we now allow creation of JAX-RPC clients in Java EE 5 projects to support this use-case. Closing as fixed.