Hi, I tried your WSDLs on Muse 2.2 and the null pointer exception was gone. However, as you guessed correctly, the messages don't conform to our expected inputs. I will work on creating your project using the WSDLs from our collection. However, my initial instinct is to think that there is simply a problem with the message references. The NotDocLiteral error that I'm getting happens if the number of message parts does not equal 1. Usually this ends up being it equals 0. I'll see what the problem is over the weekend and let you know Monday.
Thanks, Andrew Andrew Eberbach Autonomic Computing (919) 254-2645 T/L: 444-2645 [EMAIL PROTECTED] Daniel Jemiolo/Durham/[EMAIL PROTECTED] 03/16/2007 06:50 PM Please respond to [email protected] To [email protected] cc 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]
