Hi

Yeah there is a NPE bug in camel-bindy which we should fix.

On Sun, Sep 29, 2013 at 10:38 PM, mabels <meno.ab...@adviser.com> wrote:
> Hey,
>
> i have the following camel route:
>
> from("file:///tmp/input")
>         .split(StAXBuilder.stax(ShopFeedProdukt.class, false))
>         .streaming()
>         .marshal(new ShopFeedProdukt())
>         //.marshal().bindy(BindyType.Csv, "org.apache.camel.bindy.model")
>         //.marshal(new BindyCsvDataFormat(ShopFeedProdukt.class))
>         .to("filer:///tmp/output?suffix=.csv")
>         .end();
>
> I tried the three marshal implementation. But i get on every implementations
> the
> same error, if I run this route in a osgi runtime like karaf. If I run it
> without
> osgi it runs without a problem.
>
> Here is the stacktrace it is the same for all marshal implementation i
> tried.
>
> java.lang.NullPointerException
>         at
> org.apache.camel.dataformat.bindy.util.ConverterUtils.getByteReturn(ConverterUtils.java:41)[64:org.apache.camel.camel-bindy:2.12.1]
>         at
> org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat.marshal(BindyCsvDataFormat.java:67)[64:org.apache.camel.camel-bindy:2.12.1]
>         at
> org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:81)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:573)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:506)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:215)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.Splitter.process(Splitter.java:98)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:401)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:201)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:165)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)[61:org.apache.camel.camel-core:2.12.1]
>         at
> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)[61:org.apache.camel.camel-core:2.12.1]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_51]
>         at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_51]
>         at
> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_51]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_51]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_51]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_51]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_51]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_51]
>         at java.lang.Thread.run(Thread.java:680)[:1.6.0_51]
>
> Does somebody has an idea what i can do to make it work?
>
> thx
>
> meno
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/OSGI-marshal-and-bindy-tp5740434.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to