Announcement Announcement Module
Collapse
No announcement yet.
How to debug Soap Fault - Argument type mismatch Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to debug Soap Fault - Argument type mismatch

    Hello, I am having trouble with one of four web operations in my web service. I am using SOAPUI to generated the soap envelope and sent it to my web service and the response is a soap fault indicating an argument type mismatch.

    I don't see any errors in the eclipse console. I am using tomcat 7 within eclipse.

    I have added the following to the run configuration as vm arguments: -Djavax.net.debug=true
    -Djaxb.debug=true.

    I have also added a validationeventhandler, as follows:

    <bean id="validationEventHandler" class="javax.xml.bind.util.ValidationEventCollecto r"/>

    <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">
    <property name="validationEventHandler" ref="validationEventHandler" />


    How can I get more information as to what is causing the soap fault?

    I have been able to turn on the debugging and get the following:

    08:04:35.333 [http-bio-8080-exec-10] DEBUG o.s.w.s.e.a.m.j.XmlRootElementPayloadMethodProcess or - Unmarshalled payload request to [javax.xml.bind.JAXBElement@40c4d5]
    08:04:35.333 [http-bio-8080-exec-10] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'Server'
    08:04:35.333 [http-bio-8080-exec-10] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'Server'
    08:04:35.333 [http-bio-8080-exec-10] DEBUG o.s.w.s.s.e.SoapFaultAnnotationExceptionResolver - Resolving exception from endpoint [public ResponseType Verify(RequestType)]: java.lang.IllegalArgumentException: argument type mismatch
    08:04:35.333 [http-bio-8080-exec-10] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'Server'
    08:04:35.333 [http-bio-8080-exec-10] DEBUG o.s.w.s.s.e.SimpleSoapExceptionResolver - Resolving exception from endpoint [public ResponseType Verify(RequestType)]: java.lang.IllegalArgumentException: argument type mismatch
    08:04:35.349 [http-bio-8080-exec-10] DEBUG o.s.w.s.server.SoapMessageDispatcher - Endpoint invocation resulted in exception - responding with Fault

    Okay, this is another noob situation. I was able to properly debug the issue after getting the above information in the console and was able to determine what the type of the "args" parameter and correct my code.

    All is now working.
    Last edited by billhm; Apr 11th, 2013, 12:28 PM.
Working...
X