hello, I use CXF2 to generate a WSDL consumer. Somehow the code generated by
CXF2 was unable to handle SOAP fault message. Here's the exception that's
being thrown :
Caused by: java.lang.ClassCastException:
com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to
com.sun.xml.internal.bind.api.JAXBRIContext
at
com.sun.xml.internal.ws.fault.SOAPFaultBuilder.<clinit>(SOAPFaultBuilder.java:533)
... 50 more
This is the raw http response by the WSDL service:
HTTP/1.1 500 Internal Server Error
Connection: close
Date: Tue, 29 Jun 2010 20:14:40 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
eaihttprespstatus: 500
dispatcherrortext: [0] INVALID_INPUT OR DATA_ERROR(SBL-BPR-00131)
(WF_ERR_CUSTOM_1)
siebel-error-symbol-1: WF_ERR_CUSTOM_1
cache-control: no-cache, must-revalidate, max-age=0
pragma: no-cache
siebel-error-message-1: INVALID_INPUT OR DATA_ERROR(SBL-BPR-00131)
content-type: text/xml;charset=UTF-8
content-length: 580
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>INVALID_INPUT
OR DATA_ERROR(SBL-BPR-00131)</faultstring><detail><siebelf:errorstack
xmlns:siebelf="http://www.siebel.com/ws/fault"><siebelf:error><siebelf:errorsymbol>WF_ERR_CUSTOM_1</siebelf:errorsymbol><siebelf:errormsg>INVALID_INPUT
OR
DATA_ERROR(SBL-BPR-00131)</siebelf:errormsg></siebelf:error></siebelf:errorstack></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
This looks very standard SOAP Fault message. Yet a ClassCast exception is
being thrown. Does anyone know what happens ?
Thanks
--
View this message in context:
http://old.nabble.com/CXF-client-code-SOAP-Fault-handling-tp29027891p29027891.html
Sent from the cxf-user mailing list archive at Nabble.com.