I think Rachana's problem is the same issue in Muse 2.1.0 where wsdl2java fails if a wsdl imports other wsdls.
-----Original Message----- From: Daniel Jemiolo [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 3:50 PM To: [email protected] Subject: Re: Wsdl2java tool It would be worth the effort for us to go through and figure out the NPE, because that shouldn't happen regardless of what specs you're using; however, Muse only supports the ratified versions of WSRF, WSN, etc., so it won't generate code as documented unless you use those versions of the spec. All of the samples and tutorial WSDL/XSD files use these specs, so you can copy the correct XML from there. Dan "Rachana Ananthakrishnan" <[EMAIL PROTECTED]> wrote on 03/16/2007 05:41:36 PM: > 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 > [attachment "counterForMuse.tar.gz" deleted by Daniel Jemiolo/Durham/IBM] > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
