Announcement Announcement Module
Collapse
No announcement yet.
SOAPFaultException: Fault string, and possibly fault code, not set Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SOAPFaultException: Fault string, and possibly fault code, not set

    Hi my project is using Spring MVC 3.1, CXF 2 with Netbeans 7.2
    I have deployed a web service backend to Jboss 7.11.
    I use Netbeans generated webservice client from a remote wsdl, compiled and deployed.
    In the submit form, when I submit its data, it invokes a backend web service which thrown the following exception:

    15:48:03,494 ERROR [stderr] (http--192.168.1.20-8080-4) java.lang.IllegalArgumentException: argument type mismatch
    15:48:03,495 ERROR [stderr] (http--192.168.1.20-8080-4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    15:48:03,495 ERROR [stderr] (http--192.168.1.20-8080-4) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    15:48:03,495 ERROR [stderr] (http--192.168.1.20-8080-4) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    15:48:03,495 ERROR [stderr] (http--192.168.1.20-8080-4) at java.lang.reflect.Method.invoke(Method.java:597)
    15:48:03,496 ERROR [stderr] (http--192.168.1.20-8080-4) at org.apache.cxf.databinding.AbstractWrapperHelper.c reateWrapperObject(AbstractWrapperHelper.java:99)
    15:48:03,496 ERROR [stderr] (http--192.168.1.20-8080-4) at org.apache.cxf.jaxws.interceptors.WrapperClassOutI nterceptor.handleMessage(WrapperClassOutIntercepto r.java:105)
    15:48:03,496 ERROR [stderr] (http--192.168.1.20-8080-4) at org.apache.cxf.phase.PhaseInterceptorChain.doInter cept(PhaseInterceptorChain.java:263)
    15:48:03,496 ERROR [stderr] (http--192.168.1.20-8080-4) at org.apache.cxf.endpoint.ClientImpl.doInvoke(Client Impl.java:531)
    15:48:03,497 ERROR [stderr] (http--192.168.1.20-8080-4) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientIm pl.java:461)
    15:48:03,497 ERROR [stderr] (http--192.168.1.20-8080-4) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientIm pl.java:364)
    15:48:03,497 ERROR [stderr] (http--192.168.1.20-8080-4) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientIm pl.java:317)
    15:48:03,497 ERROR [stderr] (http--192.168.1.20-8080-4) at org.apache.cxf.frontend.ClientProxy.invokeSync(Cli entProxy.java:88)
    15:48:03,497 ERROR [stderr] (http--192.168.1.20-8080-4) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWs ClientProxy.java:134)
    15:48:03,497 ERROR [stderr] (http--192.168.1.20-8080-4) at $Proxy109.create(Unknown Source)
    15:48:03,498 ERROR [stderr] (http--192.168.1.20-8080-4) at ix.vendor.AddressManagerBean.create(AddressManager Bean.java:152)
    and

    15:48:03,550 DEBUG [org.jboss.modules] (http--192.168.1.20-8080-4) Module org.jboss.ws.saaj-impl:main defined by local module loader @744a6cbf (roots: /usr/local/users/jboss/jboss711Final/modules)
    15:48:03,579 ERROR [org.jboss.ejb3.invocation] (http--192.168.1.20-8080-4) JBAS014134: EJB Invocation failed on component AddressManagerBean for method public abstract int ix.vendor.AddressManagerLocal.create(java.lang.Str ing,java.lang.String,java.lang.String,java.lang.St ring,java.lang.String,java.lang.String,java.lang.S tring,java.lang.String,java.lang.String,java.lang. String): javax.ejb.EJBException: java.lang.RuntimeException: javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExcept ionInOurTx(CMTTxInterceptor.java:166) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurT x(CMTTxInterceptor.java:230) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMT TxInterceptor.java:304) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvoc ation(CMTTxInterceptor.java:190) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.invocation.InterceptorContext.proceed(In terceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
    at org.jboss.as.ejb3.component.interceptors.CurrentIn vocationContextInterceptor.processInvocation(Curre ntInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
    Here is the method that generated by Netbeans:

    Code:
     @WebMethod
        @WebResult(targetNamespace = "")
        @RequestWrapper(localName = "create", targetNamespace = "http://service.vendor.houseware/", className = "houseware.vendor.service.Create")
        @ResponseWrapper(localName = "createResponse", targetNamespace = "http://service.vendor.houseware/", className = "houseware.vendor.service.CreateResponse")
        public int create(
            @WebParam(name = "arg0", targetNamespace = "")
            String arg0,
            @WebParam(name = "arg1", targetNamespace = "")
            String arg1,
            @WebParam(name = "arg2", targetNamespace = "")
            String arg2,
            @WebParam(name = "arg3", targetNamespace = "")
            String arg3,
            @WebParam(name = "arg4", targetNamespace = "")
            String arg4,
            @WebParam(name = "arg5", targetNamespace = "")
            String arg5,
            @WebParam(name = "arg6", targetNamespace = "")
            String arg6,
            @WebParam(name = "arg7", targetNamespace = "")
            String arg7,
            @WebParam(name = "arg8", targetNamespace = "")
            String arg8,
            @WebParam(name = "arg9", targetNamespace = "")
            String arg9);
    its wsdl:

    Code:
    <?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="AddressServiceImplService" targetNamespace="http://service.vendor.houseware/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://service.vendor.houseware/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <wsdl:types>
    <xs:schema elementFormDefault="unqualified" targetNamespace="http://service.vendor.houseware/" version="1.0" xmlns:tns="http://service.vendor.houseware/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="address" type="tns:address"/>
    <xs:element name="count" type="tns:count"/>
    <xs:element name="countResponse" type="tns:countResponse"/>
    <xs:element name="create" type="tns:create"/>
    <xs:element name="createResponse" type="tns:createResponse"/>
    ...
    
    <xs:complexType name="address">
        <xs:sequence>
          <xs:element minOccurs="0" name="address1" type="xs:string"/>
          <xs:element minOccurs="0" name="address2" type="xs:string"/>
          <xs:element minOccurs="0" name="addressId" type="xs:int"/>
          <xs:element minOccurs="0" name="contact" type="xs:string"/>
          <xs:element minOccurs="0" name="country" type="xs:string"/>
          <xs:element minOccurs="0" name="emailAddress" type="xs:string"/>
          <xs:element minOccurs="0" name="fax" type="xs:string"/>
          <xs:element minOccurs="0" name="phone" type="xs:string"/>
          <xs:element minOccurs="0" name="postcode" type="xs:string"/>
          <xs:element minOccurs="0" name="state" type="xs:string"/>
          <xs:element minOccurs="0" name="suburb" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>
    ...
    <xs:complexType name="create">
        <xs:sequence>
          <xs:element minOccurs="0" name="arg0" type="xs:string"/>
          <xs:element minOccurs="0" name="arg1" type="xs:string"/>
          <xs:element minOccurs="0" name="arg2" type="xs:string"/>
          <xs:element minOccurs="0" name="arg3" type="xs:string"/>
          <xs:element minOccurs="0" name="arg4" type="xs:string"/>
          <xs:element minOccurs="0" name="arg5" type="xs:string"/>
          <xs:element minOccurs="0" name="arg6" type="xs:string"/>
          <xs:element minOccurs="0" name="arg7" type="xs:string"/>
          <xs:element minOccurs="0" name="arg8" type="xs:string"/>
          <xs:element minOccurs="0" name="arg9" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>
    <xs:complexType name="createResponse">
        <xs:sequence>
          <xs:element name="return" type="xs:int"/>
        </xs:sequence>
      </xs:complexType>
    </xs:schema>
      </wsdl:types>
      <wsdl:message name="createResponse">
        <wsdl:part element="tns:createResponse" name="parameters">
        </wsdl:part>
      </wsdl:message>
      ....
      <wsdl:message name="create">
        <wsdl:part element="tns:create" name="parameters">
        </wsdl:part>
      </wsdl:message>
      ....
        <wsdl:operation name="create">
          <soap:operation soapAction="" style="document"/>
          <wsdl:input name="create">
            <soap:body use="literal"/>
          </wsdl:input>
          <wsdl:output name="createResponse">
            <soap:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="AddressServiceImplService">
        <wsdl:port binding="tns:AddressServiceImplServiceSoapBinding" name="AddressServiceImplPort">
          <soap:address location="http://www.ixsystems.com.au:8080/Vendor-web/AddressServices"/>
        </wsdl:port>
      </wsdl:service>
    </wsdl:definitions>
    Any suggestion is well appreciated.
    Thanks
    Sam
Working...
X