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 119407 - INFO IOException in log if service cannot be created
Summary: INFO IOException in log if service cannot be created
Status: VERIFIED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 19:53 UTC by Lukas Jungmann
Modified: 2008-03-22 23:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2007-10-18 19:53:27 UTC
-go to REST palette
-D'n'D some Google service
-let the WSDL file be unreachable

=> if the retrieval of the WSDL fails (the retriever output shows some HTTP error code) then one can see following
exceptions in IDE log:

INFO [global]: There was an error retrieving the WSDL file.
java.io.IOException: There was an error retrieving the WSDL file.
        at org.netbeans.modules.websvc.manager.WebServiceManager.copyWsdlResources(WebServiceManager.java:442)
        at org.netbeans.modules.websvc.manager.WebServiceManager.ensureWebServiceClientReady(WebServiceManager.java:148)
[catch] at org.netbeans.modules.websvc.manager.model.WebServiceListModel$1.run(WebServiceListModel.java:319)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
INFO [org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler]: handleTransfer
java.lang.IllegalArgumentException: Service AdSenseForContentServiceService does not exists
        at org.netbeans.modules.websvc.rest.codegen.model.JaxwsOperationInfo.initWsdlModelInfo(JaxwsOperationInfo.java:135)
        at org.netbeans.modules.websvc.rest.codegen.model.JaxwsOperationInfo.getOperation(JaxwsOperationInfo.java:163)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.deriveMimeTypes(WsdlComponentBean.java:98)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.<init>(WsdlComponentBean.java:76)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.<init>(WsdlComponentBean.java:64)
        at org.netbeans.modules.websvc.rest.codegen.WsdlComponentGenerator.<init>(WsdlComponentGenerator.java:92)
        at org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler$1.run(RestComponentHandler.java:95)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

ad IOE) it is definitely bad idea to use "global" logger instance for logging in some module (P4)

ad IAE) it would be good to show some message to the user which will inform him that nothing will be generated because
of missing WSDL (and maybe asks him if he wants to re-try to generate the client) (P3)
Comment 1 Nam Nguyen 2007-10-19 04:51:29 UTC
The fix require code change in RestComponentHandler to coordinate all error / exception feedback along with the other 2
dialogs (parameter input dialog and progress dialog).  The UI would be better if we could consolidate progress and
status feedback, input parameter table into one single dialog.

Target for 6.0
Comment 2 Nam Nguyen 2007-10-30 07:25:12 UTC
Given planned FCS tasks, re-target as post 6.0.
Comment 3 Peter Liu 2008-03-10 22:47:13 UTC
Closing this issue as wontfix because the REST component palette has been removed from NB 6.1

Comment 4 Lukas Jungmann 2008-03-22 23:28:00 UTC
v.