What version of Camel do you use? And how do you run Camel? In some app server or what?
And do you have camel-saxon / saxon JARs on the classpath? On Fri, Apr 29, 2016 at 5:25 PM, Mac <seamusmcmor...@gmail.com> wrote: > Hi, > > I am using the camel-soap project, and working on some exception handling. > > I have a SoapFault response which is below. > > When camel processes the response, I receive a classcast exception on Line > 195 of the Soap11DataFormatAdapter class > ie I get the following error at line: JAXBElement<?> detailEl = > (JAXBElement<?>) detailList.get(0); > > java.lang.ClassCastException: > com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to > javax.xml.bind.JAXBElement type: > > > Is there any easy way to fix this? do some custom marshalling or something > else, I have been unsuccesful so far. > > > <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> > <SOAP-ENV:Body> > <SOAP-ENV:Fault> > <faultcode>SOAP-ENV:Server</faultcode> > <faultstring>A timeout occurred during processing</faultstring> > <faultactor>/account/*********</faultactor> > <detail><text>Timeout. Broker TEST_BROKER did not provide a response within > the specified time interval (60 seconds)</text></detail> > </SOAP-ENV:Fault> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-SoapFault-marshalling-classcast-exception-tp5781986.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2