You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jeff Zhang (JIRA)" <ji...@apache.org> on 2007/08/16 10:07:31 UTC
[jira] Created: (CXF-913) wsdl2java throw NP exception working on
simple frontend generated wsdl file
wsdl2java throw NP exception working on simple frontend generated wsdl file
---------------------------------------------------------------------------
Key: CXF-913
URL: https://issues.apache.org/jira/browse/CXF-913
Project: CXF
Issue Type: Bug
Components: Tooling
Affects Versions: 2.0.1
Environment: cxf 2.0.1
Reporter: Jeff Zhang
Use simple frontend to create web service, get wsdl file from http://localhost:8080/Hello?wsdl
wsdl2java -verbose hello.wsdl
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -verbose hello.wsdl
wsdl2java - 2.0.1-incubator
WSDLToJava Error : java.lang.NullPointerException
org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:242)
at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)
at org.apache.cxf.configuration.spring.SpringBeanMap.get(SpringBeanMap.java:191)
at org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:99)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildEndpoint(WSDLServiceBuilder.java:456)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:266)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:154)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:143)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:161)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:234)
... 3 more
wsdl file: (no SOAP binding)
<?xml version="1.0" encoding="utf-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://DefaultNamespace" xmlns:ns2="http://schemas.xmlsoap.org/soap/http" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ITest" targetNamespace="http://DefaultNamespace">
<wsdl:types>
<xsd:schema xmlns="http://DefaultNamespace" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://DefaultNamespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="method2">
<xsd:complexType>
<xsd:sequence/>
</xsd:complexType>
</xsd:element>
<xsd:element name="method2Response">
<xsd:complexType>
<xsd:sequence/>
</xsd:complexType>
</xsd:element>
<xsd:element name="method1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="arg00" nillable="true" type="xsd:string"/>
<xsd:element name="arg11" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="method1Response">
<xsd:complexType>
<xsd:sequence/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="method2Response">
<wsdl:part element="ns1:method2Response" name="method2Response">
</wsdl:part>
</wsdl:message>
<wsdl:message name="method2">
<wsdl:part element="ns1:method2" name="method2">
</wsdl:part>
</wsdl:message>
<wsdl:message name="method1Response">
<wsdl:part element="ns1:method1Response" name="method1Response">
</wsdl:part>
</wsdl:message>
<wsdl:message name="method1">
<wsdl:part element="ns1:method1" name="method1">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="ITestPortType">
<wsdl:operation name="method2">
<wsdl:input message="ns1:method2" name="method2">
</wsdl:input>
<wsdl:output message="ns1:method2Response" name="method2Response">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="method1">
<wsdl:input message="ns1:method1" name="method1">
</wsdl:input>
<wsdl:output message="ns1:method1Response" name="method1Response">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ITestSoapBinding" type="ns1:ITestPortType">
<wsdl:operation name="method1">
<wsdl:input name="method1">
</wsdl:input>
<wsdl:output name="method1Response">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="method2">
<wsdl:input name="method2">
</wsdl:input>
<wsdl:output name="method2Response">
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ITest">
<wsdl:port binding="ns1:ITestSoapBinding" name="ITestPort">
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-913) wsdl2java throw NP exception working on
simple frontend generated wsdl file
Posted by "Jeff Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520194 ]
Jeff Zhang commented on CXF-913:
--------------------------------
use wrong env (old cxf), simple front generate missed SOAP part wsdl file. I just use newest (2.0.1) cxf, wsdl file is correct.
...
wsdl:binding name="WebapiSoapBinding" type="ns1:WebapiPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="youtubePopular">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="youtubePopular">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="youtubePopularResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="eventVenues">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="eventVenues">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="eventVenuesResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
and wsdl2java work fine. this issue should be closed.
> wsdl2java throw NP exception working on simple frontend generated wsdl file
> ---------------------------------------------------------------------------
>
> Key: CXF-913
> URL: https://issues.apache.org/jira/browse/CXF-913
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.0.1
> Environment: cxf 2.0.1
> Reporter: Jeff Zhang
> Fix For: 2.0.1
>
>
> Use simple frontend to create web service, get wsdl file from http://localhost:8080/Hello?wsdl
> wsdl2java -verbose hello.wsdl
> Loading FrontEnd jaxws ...
> Loading DataBinding jaxb ...
> wsdl2java -verbose hello.wsdl
> wsdl2java - 2.0.1-incubator
> WSDLToJava Error : java.lang.NullPointerException
> org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
> at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:242)
> at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
> Caused by: java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)
> at org.apache.cxf.configuration.spring.SpringBeanMap.get(SpringBeanMap.java:191)
> at org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:99)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildEndpoint(WSDLServiceBuilder.java:456)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:266)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:154)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:143)
> at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:161)
> at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:234)
> ... 3 more
> wsdl file: (no SOAP binding)
> <?xml version="1.0" encoding="utf-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://DefaultNamespace" xmlns:ns2="http://schemas.xmlsoap.org/soap/http" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ITest" targetNamespace="http://DefaultNamespace">
> <wsdl:types>
> <xsd:schema xmlns="http://DefaultNamespace" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://DefaultNamespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:element name="method2">
> <xsd:complexType>
> <xsd:sequence/>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="method2Response">
> <xsd:complexType>
> <xsd:sequence/>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="method1">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="arg00" nillable="true" type="xsd:string"/>
> <xsd:element name="arg11" nillable="true" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="method1Response">
> <xsd:complexType>
> <xsd:sequence/>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="method2Response">
> <wsdl:part element="ns1:method2Response" name="method2Response">
> </wsdl:part>
> </wsdl:message>
> <wsdl:message name="method2">
> <wsdl:part element="ns1:method2" name="method2">
> </wsdl:part>
> </wsdl:message>
> <wsdl:message name="method1Response">
> <wsdl:part element="ns1:method1Response" name="method1Response">
> </wsdl:part>
> </wsdl:message>
> <wsdl:message name="method1">
> <wsdl:part element="ns1:method1" name="method1">
> </wsdl:part>
> </wsdl:message>
> <wsdl:portType name="ITestPortType">
> <wsdl:operation name="method2">
> <wsdl:input message="ns1:method2" name="method2">
> </wsdl:input>
> <wsdl:output message="ns1:method2Response" name="method2Response">
> </wsdl:output>
> </wsdl:operation>
> <wsdl:operation name="method1">
> <wsdl:input message="ns1:method1" name="method1">
> </wsdl:input>
> <wsdl:output message="ns1:method1Response" name="method1Response">
> </wsdl:output>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="ITestSoapBinding" type="ns1:ITestPortType">
> <wsdl:operation name="method1">
> <wsdl:input name="method1">
> </wsdl:input>
> <wsdl:output name="method1Response">
> </wsdl:output>
> </wsdl:operation>
> <wsdl:operation name="method2">
> <wsdl:input name="method2">
> </wsdl:input>
> <wsdl:output name="method2Response">
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="ITest">
> <wsdl:port binding="ns1:ITestSoapBinding" name="ITestPort">
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CXF-913) wsdl2java throw NP exception working on
simple frontend generated wsdl file
Posted by "Jeff Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Zhang closed CXF-913.
--------------------------
Resolution: Fixed
Fix Version/s: 2.0.1
> wsdl2java throw NP exception working on simple frontend generated wsdl file
> ---------------------------------------------------------------------------
>
> Key: CXF-913
> URL: https://issues.apache.org/jira/browse/CXF-913
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.0.1
> Environment: cxf 2.0.1
> Reporter: Jeff Zhang
> Fix For: 2.0.1
>
>
> Use simple frontend to create web service, get wsdl file from http://localhost:8080/Hello?wsdl
> wsdl2java -verbose hello.wsdl
> Loading FrontEnd jaxws ...
> Loading DataBinding jaxb ...
> wsdl2java -verbose hello.wsdl
> wsdl2java - 2.0.1-incubator
> WSDLToJava Error : java.lang.NullPointerException
> org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
> at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:242)
> at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
> Caused by: java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)
> at org.apache.cxf.configuration.spring.SpringBeanMap.get(SpringBeanMap.java:191)
> at org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:99)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildEndpoint(WSDLServiceBuilder.java:456)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:266)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:154)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:143)
> at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:161)
> at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:234)
> ... 3 more
> wsdl file: (no SOAP binding)
> <?xml version="1.0" encoding="utf-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://DefaultNamespace" xmlns:ns2="http://schemas.xmlsoap.org/soap/http" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ITest" targetNamespace="http://DefaultNamespace">
> <wsdl:types>
> <xsd:schema xmlns="http://DefaultNamespace" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://DefaultNamespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:element name="method2">
> <xsd:complexType>
> <xsd:sequence/>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="method2Response">
> <xsd:complexType>
> <xsd:sequence/>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="method1">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="arg00" nillable="true" type="xsd:string"/>
> <xsd:element name="arg11" nillable="true" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="method1Response">
> <xsd:complexType>
> <xsd:sequence/>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="method2Response">
> <wsdl:part element="ns1:method2Response" name="method2Response">
> </wsdl:part>
> </wsdl:message>
> <wsdl:message name="method2">
> <wsdl:part element="ns1:method2" name="method2">
> </wsdl:part>
> </wsdl:message>
> <wsdl:message name="method1Response">
> <wsdl:part element="ns1:method1Response" name="method1Response">
> </wsdl:part>
> </wsdl:message>
> <wsdl:message name="method1">
> <wsdl:part element="ns1:method1" name="method1">
> </wsdl:part>
> </wsdl:message>
> <wsdl:portType name="ITestPortType">
> <wsdl:operation name="method2">
> <wsdl:input message="ns1:method2" name="method2">
> </wsdl:input>
> <wsdl:output message="ns1:method2Response" name="method2Response">
> </wsdl:output>
> </wsdl:operation>
> <wsdl:operation name="method1">
> <wsdl:input message="ns1:method1" name="method1">
> </wsdl:input>
> <wsdl:output message="ns1:method1Response" name="method1Response">
> </wsdl:output>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="ITestSoapBinding" type="ns1:ITestPortType">
> <wsdl:operation name="method1">
> <wsdl:input name="method1">
> </wsdl:input>
> <wsdl:output name="method1Response">
> </wsdl:output>
> </wsdl:operation>
> <wsdl:operation name="method2">
> <wsdl:input name="method2">
> </wsdl:input>
> <wsdl:output name="method2Response">
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="ITest">
> <wsdl:port binding="ns1:ITestSoapBinding" name="ITestPort">
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.