2 Replies Latest reply on Aug 30, 2013 8:51 AM by Andrej Podhradsky

    Why I have to use message composer for casting StringReader to String?

    Andrej Podhradsky Newbie

      Hi folks,


      when trying to expose a BPMN proces via HTTP I get the following error:


      org.switchyard.HandlerException: org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.bpmn.hello:1 - Hello:2] -- java.io.StringReader cannot be cast to java.lang.String


      Yes, I can use the message composer for casting StringReader to String but I'm wondering why? When I do the same with simple bean it is working without the composer.

      Please see my two projects http-bean and http-bpmn (also includes the message composer but it isn't set).