camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: Trouble with split/tokenize on linux
Date Tue, 30 Oct 2012 02:03:30 GMT
Could it be a line terminator issue, perhaps?

On Mon, Oct 29, 2012 at 1:31 PM, Denis S <dsoukhoroslov@yahoo.com> wrote:
> I turned on TRACE logging for Camel. As I can see, many lines were processed
> correctly. But at some point
> it returns a 'broken' line after the tokenizer and the line can't be parsed
> by CSVParser:
>
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.impl.DefaultUnitOfWork - UnitOfWork
> created for ExchangeId: ID-gcccsd01-40917-1351515017561-1-180635 with
> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.impl.converter.DefaultTypeConverter
> - Converting java.lang.String -> java.io.InputStream with value: "5682","FX
> SETT","286361"," ","EUR","3","S"
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.impl.converter.DefaultTypeConverter
> - Using converter: StaticMethodTypeConverter: public static
> java.io.InputStream
> org.apache.camel.converter.IOConverter.toInputStream(java.lang.String,org.apache.camel.Exchange)
> throws java.io.IOException to convert [class java.lang.String=>class
> java.io.InputStream]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.management.InstrumentationProcessor
> - unmarshal: Recording duration: 0 millis for exchange: Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.management.InstrumentationProcessor
> - process: Recording duration: 0 millis for exchange: Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.impl.DefaultUnitOfWork - UnitOfWork
> done for ExchangeId: ID-gcccsd01-40917-1351515017561-1-180635 with
> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180635 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.impl.DefaultUnitOfWork - UnitOfWork
> created for ExchangeId: ID-gcccsd01-40917-1351515017561-1-180636 with
> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.impl.converter.DefaultTypeConverter
> - Converting java.lang.String -> java.io.InputStream with value: *"5701","FX
> S*
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.impl.converter.DefaultTypeConverter
> - Using converter: StaticMethodTypeConverter: public static
> java.io.InputStream
> org.apache.camel.converter.IOConverter.toInputStream(java.lang.String,org.apache.camel.Exchange)
> throws java.io.IOException to convert [class java.lang.String=>class
> java.io.InputStream]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.management.InstrumentationProcessor
> - unmarshal: Recording duration: 0 millis for exchange: Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180636 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180636 -> Exchange[null]
> 2012-10-29 12:51:28.634 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.util.AsyncProcessorHelper -
> Exchange processed and is continued routed synchronously for exchangeId:
> ID-gcccsd01-40917-1351515017561-1-180636 -> Exchange[null]
> 2012-10-29 12:51:28.635 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.impl.converter.DefaultTypeConverter
> - Converting java.lang.String -> java.lang.Object with value: true
> 2012-10-29 12:51:28.635 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.component.bean.BeanInfo - Chosen
> method to invoke: public void
> com.sample.MyFileProcessor.processError(org.apache.camel.Exchange) throws
> java.lang.Exception on bean: com.sample.MyFileProcessor@48e66eb9
> 2012-10-29 12:51:28.635 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.impl.converter.DefaultTypeConverter
> - Converting org.apache.camel.impl.DefaultExchange -> java.lang.Object with
> value: Exchange[null]
> 2012-10-29 12:51:28.635 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.impl.converter.DefaultTypeConverter
> - Converting org.apache.camel.impl.DefaultExchange ->
> org.apache.camel.Exchange with value: Exchang
> e[null]
> 2012-10-29 12:51:28.635 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.component.bean.MethodInfo -
> Parameter #0 evaluated as: Exchange[null] type:
> 2012-10-29 12:51:28.635 [Camel (import-context) thread #6 -
> file://../import] TRACE org.apache.camel.component.bean.MethodInfo - >>>>
> invoking: public void
> com.sample.MyFileProcessor.processError(org.apache.camel.Exchange) throws
> java.lang.Exception on bean: com.sample.MyFileProcessor@48e66eb9 with
> arguments: {Exchange[null]} for exchange: Exchange[null]
>
>
> Any ideas why this can happened? On linus platform only.. Any idea on how to
> use char-set property for this file?
>
> Thanks, Denis
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Trouble-with-split-tokenize-on-linux-tp5721677p5721750.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message