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 142422 - Exception when generating WSDL
Summary: Exception when generating WSDL
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Roderico Cruz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-31 14:34 UTC by Jaroslav Pospisil
Modified: 2008-08-08 13:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (77.53 KB, text/plain)
2008-07-31 14:36 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2008-07-31 14:34:32 UTC
Build 200807310201,JDK1.6.0_10,Win Vista

If I invoke Generate and copy WSDL action for common JAX-WS web service with operation,created in Web App in Netbeans,I
get this exception:


java.io.IOException: Unable to find WSDL
	at org.netbeans.modules.websvc.core.jaxws.actions.JaxWsGenWSDLImpl.generateWSDL(JaxWsGenWSDLImpl.java:140)
	at org.netbeans.modules.websvc.core.jaxws.actions.JaxWsGenWSDLAction.performAction(JaxWsGenWSDLAction.java:70)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:581)
	at org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.actionPerformed(ActionsBridge.java:111)
	at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:104)
	at org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:52)
	at org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.doRun(ActionsBridge.java:102)
	at org.netbeans.modules.openide.util.ActionsBridge$1.run(ActionsBridge.java:71)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

Attaching messages.log.
Comment 1 Jaroslav Pospisil 2008-07-31 14:36:19 UTC
Created attachment 66175 [details]
messages.log
Comment 2 Lukas Jungmann 2008-07-31 14:44:33 UTC
could be related to issue 142230, it also looks like our code is swallowing some exceptions which would help in
diagnosing the real cause (just a guess)
Comment 3 Roderico Cruz 2008-08-02 17:28:39 UTC
Yes it looks like this is related to http://www.netbeans.org/issues/show_bug.cgi?id=142230 which results in the wsgen
target not being generated thus the wsdl is not created. This issue has since been fixed in the last day or two. I
updated and have not been able to reproduce it. Jarek, kindly try to reproduce in the latest build, meanwhile I will
close it. Reopen if it occurs again.
Comment 4 Jaroslav Pospisil 2008-08-05 09:57:43 UTC
Original exception is no longer displayed,but now there's another in trunk build 200808041401.

wsgen-NewWebService window:

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Created dir: C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\web\WEB-INF\classes
Copying 3 files to C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\web
Copied 1 empty directory to 1 empty directory under C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\web
library-inclusion-in-archive:
library-inclusion-in-manifest:
Compiling 1 source file to C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\web\WEB-INF\classes
wsgen-init:
Created dir: C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\generated\wsgen\service
Created dir: C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\generated\wsgen\service\resources
Created dir: C:\Users\jp154641\Documents\NetBeansProjects\WebApplication6\build\generated\wsgen\binaries
wsgen-NewWebService:
java.lang.ExceptionInInitializerError
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at javax.xml.soap.FactoryFinder.newInstance(FactoryFinder.java:55)
        at javax.xml.soap.FactoryFinder.find(FactoryFinder.java:182)
        at javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:75)
        at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:144)
        at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:178)
        at com.sun.xml.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:83)
        at com.sun.xml.ws.api.BindingID.<clinit>(BindingID.java:318)
        at com.sun.tools.ws.wscompile.WsgenOptions.validateBinding(WsgenOptions.java:235)
        at com.sun.tools.ws.wscompile.WsgenOptions.validateEndpointClass(WsgenOptions.java:230)
        at com.sun.tools.ws.wscompile.WsgenOptions.validate(WsgenOptions.java:197)
        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:118)
        at com.sun.tools.ws.ant.WsGen2.execute(WsGen2.java:488)
        at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:486)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: java.lang.IllegalArgumentException: com.sun.xml.messaging.saaj.soap.LocalStrings !=
com.sun.xml.internal.messaging.saaj.soap.LocalStrings
        at java.util.logging.Logger.getLogger(Logger.java:328)
        at com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl.<clinit>(SAAJMetaFactoryImpl.java:35)
        ... 34 more
BUILD FAILED (total time: 3 seconds)
Comment 5 Jaroslav Pospisil 2008-08-05 12:22:14 UTC
The same issue I got when deploying Web App with web service on Glassfish v3 (trunk version-fixed).Raising priority to
P1,since now this is stopper for Beta.
Comment 6 Jaroslav Pospisil 2008-08-05 12:45:17 UTC
Thiis issue is valid only for JDK 1.6 - with JDK1.5 this works. 
Comment 7 Milan Kuchtiak 2008-08-05 13:54:29 UTC
Setting xendorsed="true" for wsgen should help.
Comment 8 Milan Kuchtiak 2008-08-05 17:56:36 UTC
This issue is most likely fixed in trunk.
See the issue 142920.

These are changes:
http://hg.netbeans.org/main?cmd=changeset;node=6d8097fd54a3
Comment 9 Roderico Cruz 2008-08-05 20:56:50 UTC
Yes this has been fixed in http://hg.netbeans.org/main?cmd=changeset;node=6d8097fd54a3 in the trunk. Jarek, do I need to
apply this fix to the beta branch?
Comment 10 Jaroslav Pospisil 2008-08-06 14:56:04 UTC
Verified in trunk.
Comment 11 Jaroslav Pospisil 2008-08-07 17:44:33 UTC
Yes Rico,definitely.Commit this please to Beta branch.
Comment 12 Jaroslav Pospisil 2008-08-08 13:02:05 UTC
Verified in Beta