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 "Isuru Eranga Suriarachchi (JIRA)" <ji...@apache.org> on 2010/12/22 08:04:03 UTC

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

     [ https://issues.apache.org/jira/browse/AXIS2-3611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Isuru Eranga Suriarachchi resolved AXIS2-3611.
----------------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

Hi Nipa,

You've not attached WS-BaseFaults-1_2.xsd. Therefore I can't reproduce this issue.

Anyway, this is related to https://issues.apache.org/jira/browse/AXIS2-4487 and it doesn't exist in the latest Axis2 trunk. Therefore, this issue also should be fixed now. So I'm resolving the issue. If you still get the same error with the Axis2 trunk, please reopen the issue and attach the above schema as well.

Thanks,
~Isuru

> JAXB data binding and NPE with WSDL2Java
> ----------------------------------------
>
>                 Key: AXIS2-3611
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3611
>             Project: Axis2
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Windows XP, JDK1.5, AXIS2 1.3
>            Reporter: Nipa Shah
>            Assignee: Isuru Eranga Suriarachchi
>             Fix For: 1.6
>
>         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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org