You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by umbro <lu...@gmail.com> on 2007/01/18 10:29:07 UTC
Error while handling JMS message
Hi,
i have configured a JMS bridge, but when I send a message to the consumer,
I get the following error:
ERROR - JmsSpringComponent - Error processing exchange InOut[
id: ID:czchown0001034-1678-1169109956664-12:0
status: Active
role: provider
service: ProviderService
endpoint: bridgeSender
in: Unable to display: org.xml.sax.SAXParseException: Premature end of
file.
]
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '_' (code
95) in prolog; expected '<'
at [row,col {unknown-source}]: [1,1]
at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:600)
at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1923)
at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1054)
at
org.apache.servicemix.jbi.jaxp.XMLStreamHelper.copy(XMLStreamHelper.java:78)
at
org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:198)
at
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:113)
at
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:82)
at
org.apache.servicemix.jms.AbstractJmsProcessor.fromNMS(AbstractJmsProcessor.java:157)
Any clues ?
--
View this message in context: http://www.nabble.com/Error-while-handling-JMS-message-tf3033089s12049.html#a8427423
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE : Error while handling JMS message
Posted by ke...@yahoo.fr.
Hello umbro,
It seems you have forgot the xml prolog
please set <?xml version="1.0" encoding="UTF-8"?>
before your full xml message.
it could be ok by now.
FYI: be careful about several charcater, for example
'&' must be encoded like this &
please see w3c spécification, for more details.
Grégoire A.
--- umbro <lu...@gmail.com> a écrit :
>
> Hi,
>
> i have configured a JMS bridge, but when I send a
> message to the consumer,
> I get the following error:
>
> ERROR - JmsSpringComponent - Error
> processing exchange InOut[
> id: ID:czchown0001034-1678-1169109956664-12:0
> status: Active
> role: provider
> service: ProviderService
> endpoint: bridgeSender
> in: Unable to display:
> org.xml.sax.SAXParseException: Premature end of
> file.
> ]
> com.ctc.wstx.exc.WstxUnexpectedCharException:
> Unexpected character '_' (code
> 95) in prolog; expected '<'
> at [row,col {unknown-source}]: [1,1]
> at
>
com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:600)
> at
>
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1923)
> at
>
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1054)
> at
>
org.apache.servicemix.jbi.jaxp.XMLStreamHelper.copy(XMLStreamHelper.java:78)
> at
>
org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:198)
> at
>
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:113)
> at
>
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:82)
> at
>
org.apache.servicemix.jms.AbstractJmsProcessor.fromNMS(AbstractJmsProcessor.java:157)
>
> Any clues ?
>
> --
> View this message in context:
>
http://www.nabble.com/Error-while-handling-JMS-message-tf3033089s12049.html#a8427423
> Sent from the ServiceMix - User mailing list archive
> at Nabble.com.
>
>
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com