Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2308

faultCode argument for createFault was passed NULL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • jbossws-metro-3.0.3
    • jbossws-metro
    • None
    • Hide

      Remove xalan.jar from client classpath or run with -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl . This causes the Sun's JAXWS internal implementation of Transformer to be used (and that doesn't seem to have the same problem).

      Show
      Remove xalan.jar from client classpath or run with -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl . This causes the Sun's JAXWS internal implementation of Transformer to be used (and that doesn't seem to have the same problem).

      When using client logical handlers and throwing SOAPFaultException from one of them after having accessed the message's payload through the LogicalMessageContext, we get the following exception during exception unmarshalling:

      java.lang.IllegalArgumentException: faultCode argument for createFault was passed NULL
      at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl.createFault(SOAPFactory1_1Impl.java:87)
      at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:179)
      at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:130)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)

      This causes a different runtime exception to received on the client (instead of the one created by the handler).

      This also causes the following cts tests to fail:

      com/sun/ts/tests/jaxws/api/javax_xml_ws_handler/LogicalHandler/Client.java#ClientLogicalOutboundHandleFaultFalseTest_from_wsappclient
      com/sun/ts/tests/jaxws/api/javax_xml_ws_handler/LogicalHandler/Client.java#ClientLogicalOutboundHandleFaultFalseTest_from_wsejb
      com/sun/ts/tests/jaxws/api/javax_xml_ws_handler/LogicalHandler/Client.java#ClientLogicalOutboundHandleFaultFalseTest_from_wsservlet
      com/sun/ts/tests/jaxws/api/javax_xml_ws_handler/LogicalHandler/Client.java#ServerLogicalInboundHandleFaultFalseTest_from_wsappclient
      com/sun/ts/tests/jaxws/api/javax_xml_ws_handler/LogicalHandler/Client.java#ServerLogicalInboundHandleFaultFalseTest_from_wsejb
      com/sun/ts/tests/jaxws/api/javax_xml_ws_handler/LogicalHandler/Client.java#ServerLogicalInboundHandleFaultFalseTest_from_wsservlet
      com/sun/ts/tests/jaxws/api/javax_xml_ws_handler_soap/SOAPHandler/Client.java#ClientSOAPOutboundHandleMessageThrowsSOAPFaultExceptionTest_from_wsappclient
      com/sun/ts/tests/jaxws/api/javax_xml_ws_handler_soap/SOAPHandler/Client.java#ClientSOAPOutboundHandleMessageThrowsSOAPFaultExceptionTest_from_wsejb
      com/sun/ts/tests/jaxws/api/javax_xml_ws_handler_soap/SOAPHandler/Client.java#ClientSOAPOutboundHandleMessageThrowsSOAPFaultExceptionTest_from_wsservlet

              ropalka Richard Opalka
              rhn-support-asoldano Alessio Soldano
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: