You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Dominique DE VITO <do...@thalesgroup.com> on 2007/03/16 11:48:49 UTC
pb : Content is not allowed in trailing section
Hi,
I have a pipeline with the second step defined like this : JMS/queue
reader=>XSLT transformation=>JMS/queue writer
The (minor) pb is the following: in the traces, the XSLT transformer is
enabled to display its' received document, but not the JMS/queue writer
(the next component).
It looks like between the XSLT transformation and the JMS/queue writer
something happens, and SMX does not know anymore that the treated
document is truly an XML document ("Unable to display:
org.xml.sax.SAXParseException: Content is not allowed in trailing section").
See traces [1] below.
But the pipeline works. The remaining parts of the overall pipeline are
executed, and the expected document appears as a SMX output.
Any idea about this pb ?
I have tried to include <xsl:output method="xml"/> into my XSLT
transformation, but this annoying pb is still here.
Thanks.
Regards,
Dominique
[1] below the transformer logs the received document, but the next
component (the JMS/queue writer) is not able to do so, even this
component receives a truly XML document.
DEBUG - SedaFlow - Called Flow send
DEBUG - SedaQueue -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@43b5bb dequeued
exchange: InOnly[
id: ID:p-105825-1403-1174040546394-10:0
status: Done
role: consumer
service: transformer
endpoint: transformer
in: <?xml version="1.0" encoding="UTF-8"?><Saxo>
<Entete>
<senderid>SAXO</senderid>
<receiverid>OPX2</receiverid>
<typemsg>Achat</typemsg>
</Entete>
<Data>
<messages>
<message>Le message a envoye sous format XML
1</message>
<message>Le message a envoye sous format XML
2</message>
</messages>
</Data>
</Saxo>
]
[Fatal Error] :9:4: Content is not allowed in trailing section.
DEBUG - JmsComponent - Received exchange: status:
Done, role: consumer
DEBUG - SedaQueue -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1a33662 dequeued
exchange: InOnly[
id: ID:p-105825-1403-1174040546394-11:0
status: Active
role: provider
service: myJmsSender_2
endpoint: jmsendpoint_2
in: Unable to display: org.xml.sax.SAXParseException: Content is not
allowed in trailing section.
]
DEBUG - JmsComponent - Retrieved correlation id:
ID:p-105825-1403-1174040546394-10:0
DEBUG - JmsComponent - Received exchange: status:
Active, role: provider