Hope you can help me out with a problem I have: I have an XML document which
is transformed to another format. The transformation goes well, and is then
to be sent to a JMS destination, and then this error shows up:
DEBUG - JmsComponent - Received exchange: status: Active,
role: provider
[Fatal Error] :7:11: Content is not allowed in prolog.
ERROR - JmsComponent - Error processing exchange InOnly[
id: ID:PC-614199-1903-1165412583609-16:1
status: Active
role: provider
service: {http://rps.police.se/system}jmsdestination
endpoint: tojmsdestination
in: Unable to display: org.xml.sax.SAXParseException: Content is not
allowed in prolog.
]
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'O' (code
79) in prolog; expected '<'
at [row,col {unknown-source}]: [7,11]
at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:600)
at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1934)
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:149)
at
org.apache.servicemix.jms.AbstractJmsProcessor.fromNMS(AbstractJmsProcessor.java:143)
at
org.apache.servicemix.jms.standard.StandardProviderProcessor.process(StandardProviderProcessor.java:89)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:410)
at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:43)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:624)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:177)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:227)
at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
DEBUG - DeliveryChannelImpl - Send
ID:PC-614199-1903-1165412583609-16:1 in DeliveryChannel{servicemix-jms}
[Fatal Error] :7:11: Content is not allowed in prolog.
DEBUG - DeliveryChannelImpl - Sent: InOnly[
id: ID:PC-614199-1903-1165412583609-16:1
status: Error
role: provider
service: {http://rps.police.se/system}jmsdestination
endpoint: tojmsdestination
in: Unable to display: org.xml.sax.SAXParseException: Content is not
allowed in prolog.
error: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
'O' (code 79) in prolog; expected '<'
at [row,col {unknown-source}]: [7,11]
]
DEBUG - SedaFlow - Called Flow send
I use the same type of JMS queue configuration elsewhere to send XML with no
problems. I have also tried to remove any national charaters and send the
document using UTF-8 throughout but to no avail. Hope you have an idea to
what the cause to this might be....
Best regards,
/Eyji
--
View this message in context:
http://www.nabble.com/Posting-transformed-xml-to-jms-queue-tf2774032s12049.html#a7738111
Sent from the ServiceMix - User mailing list archive at Nabble.com.