cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2107) wsdlLocation paramater and xmlbeans databinding throwing NPE
Date Thu, 19 Mar 2009 03:13:50 GMT

    [ https://issues.apache.org/jira/browse/CXF-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683288#action_12683288
] 

Willem Jiang commented on CXF-2107:
-----------------------------------

Hi Dan,

I tried to reproduce the error by adding the cxf-testutils-2.2.1-SNAPSHOT.jar into the CLASSPATH.
But I got the below error instead of the NPE.

Mar 19, 2009 11:04:10 AM org.apache.cxf.binding.corba.CorbaConduit prepare
SEVERE: Unable to locate a valid CORBA address
Mar 19, 2009 11:04:10 AM org.apache.cxf.binding.corba.CorbaConduit prepare
SEVERE: Could not resolve target object

WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsd
l definition from : file:/D:/tmp/apache-cxf-2.2/bin/hello_world.wsdl
Caused by : WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/D:/tmp
/apache-cxf-2.2/bin/hello_world.wsdl'.: java.io.FileNotFoundException: D:\tmp\ap
ache-cxf-2.2\bin\hello_world.wsdl (The system cannot find the file specified)

Can you show me how you produce this kind of NPE ?

Thanks,

Willem


> wsdlLocation paramater and xmlbeans databinding throwing NPE
> ------------------------------------------------------------
>
>                 Key: CXF-2107
>                 URL: https://issues.apache.org/jira/browse/CXF-2107
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1.4
>            Reporter: Daniel Kulp
>            Assignee: Willem Jiang
>
> If you run "wsdl2java -databinding xmlbeans -wsdlLocation /META-INF/wsdl hello_world.wsdl"
in the samples, you get a NPE:
> WSDLToJava Error: java.lang.NullPointerException
> org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:246)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:173)
> Caused by: java.lang.NullPointerException
>         at org.apache.xmlbeans.impl.schema.StscState.addError(StscState.java:387)
>         at org.apache.cxf.xmlbeans.tools.XMLBeansToolingDataBinding.loadTypeSystem(XMLBeansToolingDataBinding.java:258)
>         at org.apache.cxf.xmlbeans.tools.XMLBeansToolingDataBinding.initialize(XMLBeansToolingDataBinding.java:103)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:543)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:194)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:238)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message