Classcast exception is thrown when trying SOAP Server example using Drools Camel WAR on BRMS 6

Solution Verified - Updated -

Issue

10:59:55,677 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-/82.112.124.146:8080-3) Interceptor for {http://soap.jax.drools.org/}CommandExecutor has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: org.apache.cxf.binding.soap.SoapMessage cannot be cast to java.lang.String
    at org.apache.camel.component.cxf.CxfConsumer$1.checkFailure(CxfConsumer.java:194) [camel-cxf-2.9.0.jar:2.9.0]
    at org.apache.camel.component.cxf.CxfConsumer$1.setResponseBack(CxfConsumer.java:174) [camel-cxf-2.9.0.jar:2.9.0]
    at org.apache.camel.component.cxf.CxfConsumer$1.syncInvoke(CxfConsumer.java:126) [camel-cxf-2.9.0.jar:2.9.0]
    at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:71) [camel-cxf-2.9.0.jar:2.9.0]
    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [cxf-rt-core-2.4.4.jar:2.4.4]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [rt.jar:1.6.0_45]
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_45]
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_45]
    at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-rt-core-2.4.4.jar:2.4.4]
    at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) [cxf-rt-core-2.4.4.jar:2.4.4]
    ...
Caused by: java.lang.ClassCastException: org.apache.cxf.binding.soap.SoapMessage cannot be cast to java.lang.String
    at org.drools.jax.soap.PreCxfTransportSoapProcessor.process(PreCxfTransportSoapProcessor.java:37) [drools-camel-5.4.0.Final.jar:5.4.0.Final]
    at org.drools.camel.component.DroolsPolicy$DroolsProcess.process(DroolsPolicy.java:326) [drools-camel-5.4.0.Final.jar:5.4.0.Final]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) [camel-core-2.9.0.jar:2.9.0]
    ...

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 6.0.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content