WSDL2Java does not work with wsdl via HTTP ------------------------------------------
Key: AXIS2-991 URL: http://issues.apache.org/jira/browse/AXIS2-991 Project: Apache Axis 2.0 (Axis2) Issue Type: Bug Components: wsdl Affects Versions: 1.0 Environment: Mac OS X 10.4 JDK1.5.0_06-112 Reporter: Alistair Young Priority: Minor WSDL2Java can only parse local WSDL files. -uri http:// doesn not work. Crashes with null pointer exception. Copying the wsdl file locally works. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed! at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed! at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:640) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:168) ... 2 more Caused by: java.lang.RuntimeException: WSDL writing failed! at org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter.java:45) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:737) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeletonService(AxisServiceBasedMultiLanguageEmitter.java:703) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:638) ... 3 more Caused by: org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:545) at org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter.java:40) ... 6 more Caused by: java.lang.NullPointerException at java.io.Writer.write(Writer.java:126) at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteAttr(BaseNsStreamWriter.java:442) at com.ctc.wstx.sw.BaseNsStreamWriter.writeAttribute(BaseNsStreamWriter.java:205) at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeAttribute(MTOMXMLStreamWriter.java:138) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeAttribute(OMSerializerUtil.java:76) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeAttributes(OMSerializerUtil.java:266) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializerUtil.java:232) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:765) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:754) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:769) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:754) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:769) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:754) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:769) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:754) at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:310) at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:351) at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:554) ... 8 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]