You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Nipa Shah (JIRA)" <ji...@apache.org> on 2008/03/15 00:34:24 UTC

[jira] Created: (AXIS2-3611) JAXB data binding and NPE with WSDL2Java

JAXB data binding and NPE with WSDL2Java
----------------------------------------

                 Key: AXIS2-3611
                 URL: https://issues.apache.org/jira/browse/AXIS2-3611
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
    Affects Versions: 1.3
         Environment: Windows XP, JDK1.5, AXIS2 1.3
            Reporter: Nipa Shah


Hi,

I have been trying to use WSDL2Java with JAXB data binding to generate stubs/skeleton from WSDL and getting the following errors. I am able to use the same WSDLs to generate XMLBEANS bindings successfully. I have tried jaxbri which fails immediately after reading in the imported files. Is there any way to find out what the problem is? Also tried the nightly build from 03/13 and saw the same issue.

     [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerat
ionException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExce
ption
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(C
odeGenerationEngine.java:265)
     [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
     [java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
     [java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationT
argetException
     [java]     at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engag
e(JAXBRIExtension.java:112)
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(C
odeGenerationEngine.java:218)
     [java]     ... 2 more
     [java] Caused by: java.lang.reflect.InvocationTargetException
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engag
e(JAXBRIExtension.java:101)
     [java]     ... 3 more
     [java] Caused by: java.lang.RuntimeException: java.lang.NullPointerExceptio
n
     [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
CodeGenerationUtility.java:192)
     [java]     ... 8 more
     [java] Caused by: java.lang.NullPointerException
     [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility$1.resolveEntity
(CodeGenerationUtility.java:107)
     [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
st.java:268)
     [java]     at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinder
Impl.startElement(AbstractReferenceFinderImpl.java:78)
     [java]     at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unkn
own Source)
     [java]     at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElem
ent(Unknown Source)
     [java]     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElem
ent(Unknown Source)
     [java]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragmen
tContentDispatcher.dispatch(Unknown Source)
     [java]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
ument(Unknown Source)
     [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
     [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
     [java]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     [java]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Sou
rce)
     [java]     at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unkn
own Source)
     [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
st.java:366)
     [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
st.java:246)
     [java]     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.parseSchema
(SchemaCompilerImpl.java:131)
     [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
CodeGenerationUtility.java:161)
     [java]     ... 8 more
     [java] Java Result: 1

compile-src:
     [echo] Compiling the java source files...

compile-lib:

Thanks,

Nipa


-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3611) JAXB data binding and NPE with WSDL2Java

Posted by "Nipa Shah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nipa Shah updated AXIS2-3611:
-----------------------------

    Attachment: OSSJ-Common-v1-3.xsd
                SubscriberInterface.wsdl
                Subscriber.xsd

> JAXB data binding and NPE with WSDL2Java
> ----------------------------------------
>
>                 Key: AXIS2-3611
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3611
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Windows XP, JDK1.5, AXIS2 1.3
>            Reporter: Nipa Shah
>         Attachments: OSSJ-Common-v1-3.xsd, Subscriber.xsd, SubscriberInterface.wsdl
>
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> Hi,
> I have been trying to use WSDL2Java with JAXB data binding to generate stubs/skeleton from WSDL and getting the following errors. I am able to use the same WSDLs to generate XMLBEANS bindings successfully. I have tried jaxbri which fails immediately after reading in the imported files. Is there any way to find out what the problem is? Also tried the nightly build from 03/13 and saw the same issue.
>      [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerat
> ionException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExce
> ption
>      [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(C
> odeGenerationEngine.java:265)
>      [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>      [java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>      [java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationT
> argetException
>      [java]     at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engag
> e(JAXBRIExtension.java:112)
>      [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(C
> odeGenerationEngine.java:218)
>      [java]     ... 2 more
>      [java] Caused by: java.lang.reflect.InvocationTargetException
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>      [java]     at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engag
> e(JAXBRIExtension.java:101)
>      [java]     ... 3 more
>      [java] Caused by: java.lang.RuntimeException: java.lang.NullPointerExceptio
> n
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
> CodeGenerationUtility.java:192)
>      [java]     ... 8 more
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility$1.resolveEntity
> (CodeGenerationUtility.java:107)
>      [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
> st.java:268)
>      [java]     at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinder
> Impl.startElement(AbstractReferenceFinderImpl.java:78)
>      [java]     at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unkn
> own Source)
>      [java]     at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElem
> ent(Unknown Source)
>      [java]     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElem
> ent(Unknown Source)
>      [java]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragmen
> tContentDispatcher.dispatch(Unknown Source)
>      [java]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
> ument(Unknown Source)
>      [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
> urce)
>      [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
> urce)
>      [java]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>      [java]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Sou
> rce)
>      [java]     at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unkn
> own Source)
>      [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
> st.java:366)
>      [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
> st.java:246)
>      [java]     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.parseSchema
> (SchemaCompilerImpl.java:131)
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
> CodeGenerationUtility.java:161)
>      [java]     ... 8 more
>      [java] Java Result: 1
> compile-src:
>      [echo] Compiling the java source files...
> compile-lib:
> Thanks,
> Nipa

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3611) JAXB data binding and NPE with WSDL2Java

Posted by "Nipa Shah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nipa Shah updated AXIS2-3611:
-----------------------------

    Attachment: Common.xsd

please fined attached the Common.xsd

> JAXB data binding and NPE with WSDL2Java
> ----------------------------------------
>
>                 Key: AXIS2-3611
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3611
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Windows XP, JDK1.5, AXIS2 1.3
>            Reporter: Nipa Shah
>         Attachments: Common.xsd, OSSJ-Common-v1-3.xsd, Subscriber.xsd, SubscriberInterface.wsdl
>
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> Hi,
> I have been trying to use WSDL2Java with JAXB data binding to generate stubs/skeleton from WSDL and getting the following errors. I am able to use the same WSDLs to generate XMLBEANS bindings successfully. I have tried jaxbri which fails immediately after reading in the imported files. Is there any way to find out what the problem is? Also tried the nightly build from 03/13 and saw the same issue.
>      [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerat
> ionException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExce
> ption
>      [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(C
> odeGenerationEngine.java:265)
>      [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>      [java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>      [java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationT
> argetException
>      [java]     at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engag
> e(JAXBRIExtension.java:112)
>      [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(C
> odeGenerationEngine.java:218)
>      [java]     ... 2 more
>      [java] Caused by: java.lang.reflect.InvocationTargetException
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>      [java]     at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engag
> e(JAXBRIExtension.java:101)
>      [java]     ... 3 more
>      [java] Caused by: java.lang.RuntimeException: java.lang.NullPointerExceptio
> n
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
> CodeGenerationUtility.java:192)
>      [java]     ... 8 more
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility$1.resolveEntity
> (CodeGenerationUtility.java:107)
>      [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
> st.java:268)
>      [java]     at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinder
> Impl.startElement(AbstractReferenceFinderImpl.java:78)
>      [java]     at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unkn
> own Source)
>      [java]     at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElem
> ent(Unknown Source)
>      [java]     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElem
> ent(Unknown Source)
>      [java]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragmen
> tContentDispatcher.dispatch(Unknown Source)
>      [java]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
> ument(Unknown Source)
>      [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
> urce)
>      [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
> urce)
>      [java]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>      [java]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Sou
> rce)
>      [java]     at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unkn
> own Source)
>      [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
> st.java:366)
>      [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
> st.java:246)
>      [java]     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.parseSchema
> (SchemaCompilerImpl.java:131)
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
> CodeGenerationUtility.java:161)
>      [java]     ... 8 more
>      [java] Java Result: 1
> compile-src:
>      [echo] Compiling the java source files...
> compile-lib:
> Thanks,
> Nipa

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3611) JAXB data binding and NPE with WSDL2Java

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579297#action_12579297 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-3611:
-----------------------------------------------------

Please attached the Common.xsd

> JAXB data binding and NPE with WSDL2Java
> ----------------------------------------
>
>                 Key: AXIS2-3611
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3611
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Windows XP, JDK1.5, AXIS2 1.3
>            Reporter: Nipa Shah
>         Attachments: OSSJ-Common-v1-3.xsd, Subscriber.xsd, SubscriberInterface.wsdl
>
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> Hi,
> I have been trying to use WSDL2Java with JAXB data binding to generate stubs/skeleton from WSDL and getting the following errors. I am able to use the same WSDLs to generate XMLBEANS bindings successfully. I have tried jaxbri which fails immediately after reading in the imported files. Is there any way to find out what the problem is? Also tried the nightly build from 03/13 and saw the same issue.
>      [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerat
> ionException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExce
> ption
>      [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(C
> odeGenerationEngine.java:265)
>      [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>      [java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>      [java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationT
> argetException
>      [java]     at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engag
> e(JAXBRIExtension.java:112)
>      [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(C
> odeGenerationEngine.java:218)
>      [java]     ... 2 more
>      [java] Caused by: java.lang.reflect.InvocationTargetException
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>      [java]     at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engag
> e(JAXBRIExtension.java:101)
>      [java]     ... 3 more
>      [java] Caused by: java.lang.RuntimeException: java.lang.NullPointerExceptio
> n
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
> CodeGenerationUtility.java:192)
>      [java]     ... 8 more
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility$1.resolveEntity
> (CodeGenerationUtility.java:107)
>      [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
> st.java:268)
>      [java]     at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinder
> Impl.startElement(AbstractReferenceFinderImpl.java:78)
>      [java]     at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unkn
> own Source)
>      [java]     at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElem
> ent(Unknown Source)
>      [java]     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElem
> ent(Unknown Source)
>      [java]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragmen
> tContentDispatcher.dispatch(Unknown Source)
>      [java]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
> ument(Unknown Source)
>      [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
> urce)
>      [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
> urce)
>      [java]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>      [java]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Sou
> rce)
>      [java]     at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unkn
> own Source)
>      [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
> st.java:366)
>      [java]     at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMFore
> st.java:246)
>      [java]     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.parseSchema
> (SchemaCompilerImpl.java:131)
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
> CodeGenerationUtility.java:161)
>      [java]     ... 8 more
>      [java] Java Result: 1
> compile-src:
>      [echo] Compiling the java source files...
> compile-lib:
> Thanks,
> Nipa

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org