jaxbri code generation aborts with NullPointerException
-------------------------------------------------------
Key: AXIS2-3103
URL: https://issues.apache.org/jira/browse/AXIS2-3103
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Environment: Have reproduced on both Linux and Windows.
Reporter: Denis Rachal
Fix For: nightly
Attachments: test.wsdl
jaxbri code generation aborts with NullPointerException. See output below:
WSDL is attached. I was trying to verify the fix for issue:
https://issues.apache.org/jira/browse/AXIS2-2952
Using AXIS2_HOME: /home/denis/axis2-1.3-SNAPSHOT
Using JAVA_HOME: /tmp/3rd-party/java/jdk/1.5.0_06/Linux2.6
Retrieving document at
'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.wsdl', relative
to 'file:/home/denis/bug2/'.
Retrieving schema at
'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.xsd', relative
to 'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.wsdl'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.xsd'.
Retrieving schema at
'http://schemas.xmlsoap.org/ws/2004/08/addressing/addressing.xsd', relative to
'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.xsd'.
Retrieving schema at
'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.xsd', relative
to 'file:/home/denis/bug2/'.
Retrieving document at
'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.wsdl', relative
to 'file:/home/denis/bug2/'.
Retrieving schema at
'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.xsd', relative
to 'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.wsdl'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.xsd'.
Retrieving schema at
'http://schemas.xmlsoap.org/ws/2004/08/addressing/addressing.xsd', relative to
'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.xsd'.
Retrieving schema at
'http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.xsd', relative
to 'file:/home/denis/bug2/'.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
at
org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:218)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101)
... 3 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at
org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:192)
... 8 more
Caused by: java.lang.NullPointerException
at
org.apache.axis2.jaxbri.CodeGenerationUtility$1.resolveEntity(CodeGenerationUtility.java:107)
at
com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:268)
at
com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:78)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:366)
at
com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:246)
at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.parseSchema(SchemaCompilerImpl.java:131)
at
org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:161)
... 8 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]