It seems that you use a modified version of ChainedComponent (com.sterling....) so I can not really help you, unless you paste your full source code. The ChainedComponent supports all kinds of Source. Please paste your full code. It seems that the ClassCastException occurs at line 105 of your component: what does this line do ?

Cheers,
Guillaume Nodet

Jeffrey Puro wrote:

It appears that the ChainedComponent expects to work with classes that extend the StreamSource class and since I am trying to use the XStreamSource class for the content of my normalized messages it bombs out when handling services of this type. XStreamSource extends some XStream specific class so it causes a ClassCastException when the ChainedComponent tries to work with it. Any ideas on resolving this? Here is the stack trace:

java.lang.ClassCastException: org.servicemix.components.util.xstream.XStreamSource

at com.sterling.servicemix.component.ChainedComponent.invokeService(ChainedComponent.java:105)

at com.sterling.servicemix.component.ChainedComponent.transform(ChainedComponent.java:70)

at org.servicemix.components.util.TransformComponentSupport.onMessageExchange(TransformComponentSupport.java:47)

at org.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:590)

at org.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:182)

at org.servicemix.jbi.nmr.flow.seda.SedaFlow.doSend(SedaFlow.java:140)

at org.servicemix.jbi.nmr.flow.AbstractFlow.send(AbstractFlow.java:124)

at org.servicemix.jbi.nmr.Broker.sendExchangePacket(Broker.java:289)

at org.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:590)

at org.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:349)

at org.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:423)

at org.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:400)

at org.servicemix.components.http.HttpInOutBinding.processInOut(HttpInOutBinding.java:61)

at org.servicemix.components.http.HttpInOutBinding.process(HttpInOutBinding.java:46)

at org.servicemix.components.http.BindingServlet.doGet(BindingServlet.java:68)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)

at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

            at java.lang.Thread.run(Thread.java:595)


This email (and any attachments) is intended only for the use of the individual or entity named above and may contain information that is privileged and confidential. If you are not the intended recipient, or have unauthorized access, you are hereby notified that copying, disseminating, distributing or taking any action in reliance on this email is strictly prohibited.

Opinions, conclusions and other information in this message that do not relate to the official business of our company shall be understood as neither given nor endorsed by it.

Reply via email to