[jbossws-users] [JBossWS] - NullCountedPointer exception from WSDL11Reader
wpower
do-not-reply at jboss.com
Tue Jan 23 22:59:56 EST 2007
I am trying to migrate an Axis based web service to JBoss. JBossws fails processing the existing web services .wsdl file. The problem is caused by the <wsdl:fault > tag. Does anyone know if there is a fix for this problem.
Error message:
20:39:44,590 WARN [WSDL11Reader] Unsupported fault message part in message: {http://www.testnet.com/test/intf}ProvApiException
20:39:44,600 WARN [WSDL11Reader] Unsupported fault message part in message: {http://www.testnet.com/test/intf}ProvApiException
Exception in thread "main" java.lang.NullPointerException
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processOperationInput(WSDL11Reader.java:474)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortTypeOperations(WSDL11Reader.java:460)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortType(WSDL11Reader.java:446)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processBinding(WSDL11Reader.java:728)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPort(WSDL11Reader.java:1071)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPorts(WSDL11Reader.java:1054)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processServices(WSDL11Reader.java:1027)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:119)
at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:145)
at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:120)
at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:324)
at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
.wsdl file
<?xml version="1.0" encoding="UTF-8"?>
| <!--"V06.01.02R000""Patch 1"-->
| <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://www.testnet.com/test/intf" xmlns:intf="http://www.testnet.com/test/intf" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://www.testnet.com/test/model" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.testnet.com/test/intf">
| <wsdl:types>
| <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.testnet.com/test/model"><import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
| <complexType name="ManagedEntityKey">
| <sequence/>
| </complexType>
|
| <complexType name="ProvApiException">
| <sequence>
| <element name="errorCode" nillable="true" type="xsd:string"/>
| <element name="message" nillable="true" type="xsd:string"/>
| <element name="rootCause" nillable="true" type="xsd:string"/>
| </sequence>
| </complexType>
|
| <complexType name="SubscriberKey">
| <complexContent>
| <extension base="tns1:ManagedEntityKey">
| <sequence>
| <element name="subscriberId" nillable="true" type="xsd:string"/>
| <element name="countryId" nillable="true" type="xsd:string"/>
| <element name="owningCarrierId" nillable="true" type="xsd:string"/>
| </sequence>
| </extension>
| </complexContent>
| </complexType>
|
| </schema></wsdl:types>
|
| <wsdl:message name="createResponse">
|
| </wsdl:message>
|
| <wsdl:message name="createResponse1">
|
| </wsdl:message>
|
| <wsdl:message name="createRequest1">
|
| <wsdl:part name="in0" type="xsd:string"/>
|
| <wsdl:part name="in1" type="impl:ArrayOf_tns1_ManagedEntityValue"/>
|
| <wsdl:part name="in2" type="xsd:boolean"/>
|
| </wsdl:message>
|
| <wsdl:message name="ProvApiException">
|
| <wsdl:part name="fault" type="tns1:ProvApiException"/>
|
| </wsdl:message>
|
| <wsdl:portType name="API">
|
| <wsdl:operation name="create" parameterOrder="in0 in1">
|
| <wsdl:input message="impl:createRequest" name="createRequest"/>
|
| <wsdl:output message="impl:createResponse" name="createResponse"/>
|
| <wsdl:fault message="impl:ProvApiException" name="ProvApiException"/>
|
| </wsdl:operation>
|
| <wsdl:operation name="create" parameterOrder="in0 in1 in2">
|
| <wsdl:input message="impl:createRequest1" name="createRequest1"/>
|
| <wsdl:output message="impl:createResponse1" name="createResponse1"/>
|
| <wsdl:fault message="impl:ProvApiException" name="ProvApiException"/>
|
| </wsdl:operation>
|
| </wsdl:portType>
|
| <wsdl:binding name="APISoapBinding" type="impl:API">
|
| <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
|
| <wsdl:operation name="create">
|
| <wsdlsoap:operation soapAction=""/>
|
| <wsdl:input name="createRequest">
|
| <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.testnet.com/test/intfintf" use="encoded"/>
|
| </wsdl:input>
|
| <wsdl:output name="createResponse">
|
| <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.testnet.com/test/intfintf" use="encoded"/>
|
| </wsdl:output>
|
| <wsdl:fault name="ProvApiException">
|
| <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.testnet.com/test/intfintf" use="encoded"/>
|
| </wsdl:fault>
|
| </wsdl:operation>
|
| <wsdl:operation name="create1">
|
| <wsdlsoap:operation soapAction=""/>
|
| <wsdl:input name="createRequest1">
|
| <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.testnet.com/test/intfintf" use="encoded"/>
|
| </wsdl:input>
|
| <wsdl:output name="createResponse1">
|
| <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.testnet.com/test/intfintf" use="encoded"/>
|
| </wsdl:output>
|
| <wsdl:fault name="ProvApiException">
|
| <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.testnet.com/test/intfintf" use="encoded"/>
|
| </wsdl:fault>
|
| </wsdl:operation>
|
| </wsdl:binding>
|
| <wsdl:service name="Service">
|
| <wsdl:port binding="impl:APISoapBinding" name="APIPort">
|
| <wsdlsoap:address location="http://localhost:8080/API"/>
|
| </wsdl:port>
|
| </wsdl:service>
|
| </wsdl:definitions>
|
|
| [/code]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005595#4005595
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005595
More information about the jbossws-users
mailing list