I am trying to use wsdl2java on some WS-I Basic Profile compliant WSDLs that we have and end up with NPE. It does use older version of WSRF specifications , SOAP 1.1 and doc/literal mode. Will that cause issues ? Any ideas on what about the WSDL causes issues for the tool would be really useful.
Attached is all the WSDLs and the error I see is:
C:\cygwin\home\ranantha\muse\CounterSrc>M:\bin\wsdl2java.bat
-axis2 -wsdl C:\cygwin\home\ranantha\muse\Wsdls\counterForMuse\coun
ter_service.wsdl -verbose
java.lang.RuntimeException: java.lang.NullPointerException
at
org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect
or.java:836)
at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(Simpl
eAnalyzer.java:392)
at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(Simpl
eAnalyzer.java:338)
at org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:143)
at
org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:260)
Caused by: java.lang.NullPointerException
at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at
org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect
or.java:831)
... 4 more
SEVERE: [ID = 'CodeGenFailed'] Code generation failed, see the exception
informa
tion below.
An exception was caught: java.lang.NullPointerException
The exception generated the following stacktrace:
java.lang.RuntimeException: java.lang.NullPointerException
at
org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect
or.java:836)
at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(Simpl
eAnalyzer.java:392)
at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(Simpl
eAnalyzer.java:338)
at org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:143)
at
org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:260)
Caused by: java.lang.NullPointerException
at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at
org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect
or.java:831)
... 4 more
Thanks,
Rachana
counterForMuse.tar.gz
Description: GNU Zip compressed data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
