Make sure your generated xml for each row  does not start with white
spaces for examples.
IIRC, it would cause such problems.

On Thu, Oct 9, 2008 at 11:44 PM, subh <[EMAIL PROTECTED]> wrote:
>
> I need to parse a CSV file having multiple rows with delimiter, transform it
> to a XML message per row and invoke a external webservice.
>
> I am successfull in parsing the CSV and generating the necessary XML message
> inside of a FileMarshaler.
>
> But I am facing an issue as its putting only the last XML message to the JMS
> queue? For the first (n-1) messages, I get the following on the console
>
> DEBUG - SedaQueue                      -
> [EMAIL PROTECTED] dequeued
> exchange: InOut[
>  id: ID:10.30.9.159-11ce202fed0-135:0
>  status: Active
>  role: provider
>  service: {http://com.fuelquest.athena/esb}msgStorageService
>  endpoint: camel10-30-9-159-11ce202fed0-21-30
>  in: Unable to display: org.xml.sax.SAXParseException: Content is not
> allowed in prolog.
> ]
> DEBUG - CamelJbiComponent              - Received exchange: status: Active,
> role: provider
> DEBUG - CamelJbiComponent              - Retrieved correlation id: null
> [Fatal Error] :1:39: Content is not allowed in prolog.
> DEBUG - CamelJbiEndpoint               - Received exchange: InOut[
>  id: ID:10.30.9.159-11ce202fed0-135:0
>  status: Active
>  role: provider
>  service: {http://com.fuelquest.athena/esb}msgStorageService
>  endpoint: camel10-30-9-159-11ce202fed0-21-30
>  in: Unable to display: org.xml.sax.SAXParseException: Content is not
> allowed in prolog.
> ]
> [Fatal Error] :1:39: Content is not allowed in prolog.
> DEBUG - Pipeline                       - Message exchange has failed so
> breaking out of pipeline: Exchange[JbiMessage:
> org.apache.servicemix.jbi.messaging.NormalizedMessa
> [EMAIL PROTECTED]: {}}] exception:
> org.apache.camel.RuntimeCamelException: org.xml.sax.SAXParseException:
> Content is not allowed in prolog. fault: null
> DEBUG - DeliveryChannelImpl            - Send
> ID:10.30.9.159-11ce202fed0-135:0 in DeliveryChannel{servicemix-camel}
> DEBUG - DotViewEndpointListener        - Creating DOT file at:
> C:/Subendu/ServiceMixComponents1.dot
> DEBUG - SecuredBroker                  - send exchange with secure broker
> DEBUG - SedaFlow                       - Called Flow send
> [Fatal Error] :1:39: Content is not allowed in prolog.
> DEBUG - SedaQueue                      -
> [EMAIL PROTECTED] dequeued
> exchange: InOut[
>  id: ID:10.30.9.159-11ce202fed0-135:0
>  status: Active
>  role: consumer
>  service: {http://com.fuelquest.athena/esb}msgStorageService
>  endpoint: camel10-30-9-159-11ce202fed0-21-30
>  in: Unable to display: org.xml.sax.SAXParseException: Content is not
> allowed in prolog.
> ]
>
>
> Any help will be appreciated.
>
> thanks...
>
> --
> View this message in context: 
> http://www.nabble.com/Multiple-messages-handling..-tp19908015p19908015.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://open.iona.com

Reply via email to