0 Replies Latest reply on Feb 8, 2008 1:15 PM by edelln

    Error : when I invoke a message on a bindingcomponent

    edelln

      Hi,

       

      I am trying to follow an example that I have seen.

       

      The format of what it is trying to do is

       

      client > invokes message onto a queue => bc component cosumes it from the queue and trys to pass it to a RoutingSlipService and from there onto a service.

       

      Everything seems to be deployed ok. I get the following exception when i try to invoke a message through a junit test.

       

      I have seen one or two other posts on this kind of exception and they seem to indicate that the content of the message sent is wrong.

       

      I sent the following

       

       

             TextMessage msg = queueSession.createTextMessage();

              msg.setText("");

              msg.setJMSReplyTo(tempResponseQueue);

              msg.setJMSCorrelationID(String.valueOf(System.currentTimeMillis()));

       

       

      does anyone have an idea of what I could have done wrong.

       

      thanks, Edell.

       

       

      :1:13: The processing instruction target matching "[xX][mM][lL]"

      s not allowed.

      :1:13: The processing instruction target matching "[xX][mM][lL]"

      s not allowed.

      :1:13: The processing instruction target matching "[xX][mM][lL]"

      s not allowed.

      :-1:-1: Premature end of file.

      :1:13: The processing instruction target matching "[xX][mM][lL]"

      s not allowed.

      :1:13: The processing instruction target matching "[xX][mM][lL]"

      s not allowed.

      :1:13: The processing instruction target matching "[xX][mM][lL]"

      s not allowed.

      ERROR - JmsComponent                   - Error processing exchange InOut[

        id: ID:10.5.2.186-117f94d0290-4:0

        status: Done

        role: consumer

        service: MyStaticRoutingSlipService

        endpoint: myStaticRoutingSlipSu

        operation: processThis

        in: Unable to display: org.xml.sax.SAXParseException: Premature end of file.

        out: Unable to display: org.xml.sax.SAXParseException: The processing instruc

      ion target matching "[xX][mM][lL]" is not allowed.

      ]

      com.ctc.wstx.exc.WstxParsingException: Illegal processing instruction target ("

      ml"); xml (case insensitive) is reserved by the specs.

      at :

              at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:458

       

              at com.ctc.wstx.sr.BasicStreamReader.readPIPrimary(BasicStreamReader.ja

      a:3780)

              at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.jav

      :2700)

              at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1004)

              at org.apache.servicemix.jbi.jaxp.XMLStreamHelper.copy(XMLStreamHelper.

      ava:78)

              at org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapW

      iter.java:219)

              at org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(

      oapWriter.java:127)

              at org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.ja

      a:92)

              at org.apache.servicemix.jms.AbstractJmsProcessor.fromNMS(AbstractJmsPr

      cessor.java:159)

              at org.apache.servicemix.jms.AbstractJmsProcessor.fromNMSResponse(Abstr

      ctJmsProcessor.java:222)

              at org.apache.servicemix.jms.multiplexing.MultiplexingConsumerProcessor

      process(MultiplexingConsumerProcessor.java:112)

              at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseL

      feCycle.java:538)

              at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Asyn

      BaseLifeCycle.java:512)

              at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLif

      Cycle.java:46)

              at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBou

      d(DeliveryChannelImpl.java:610)

              at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFl

      w.java:170)

              at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.

      ava:167)

              at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.ja

      a:134)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExe

      utor.java:650)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecuto

      .java:675)

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

      ERROR - JmsComponent                   - Error setting exchange status to ERROR

      java.lang.IllegalStateException: component is not owner when trying to set erro

      : com.ctc.wstx.exc.WstxParsingException: Illegal processing instruction target

      "xml"); xml (case insensitive) is reserved by the specs.

      at :

              at org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setError(Mes

      ageExchangeImpl.java:264)

              at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLif

      Cycle.java:57)

              at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBou

      d(DeliveryChannelImpl.java:610)

              at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFl

      w.java:170)

              at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.

      ava:167)

              at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.ja

      a:134)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExe

      utor.java:650)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecuto

      .java:675)

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

      Caused by: com.ctc.wstx.exc.WstxParsingException: Illegal processing instructio

      target ("xml"); xml (case insensitive) is reserved by the specs.