cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Zhang (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-913) wsdl2java throw NP exception working on simple frontend generated wsdl file
Date Thu, 16 Aug 2007 08:07:31 GMT
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.


Mime
View raw message