mvn exec:java throws an exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.ClassCastException: org.hornetq.jms.client.HornetQTextMessage cannot be cast to javax.jms.BytesMessage at org.switchyard.quickstarts.demo.multiapp.consumer.OrderIntakeClient.main(OrderIntakeClient.java:62) ... 6 more The test client expects ByteMessage but TextMessage is received instead of it.
This occurs because the Camel JmsBinding now makes a different determination about the type of JMS message to be sent. In ER8 the body returned was a DOMSource, causing it to convert the response into an InputStream and create a BytesMessage. In CR1 the body is now a Node, causing it to choose a TextMessage. This is probably due to SWITCHYARD-1920
PR has been added for the changes
Verified in CR2
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1933 to Closed
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1920 to Closed