camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: JDBC exception under Linux (works fine under Windows)
Date Sun, 13 Nov 2011 16:57:30 GMT
Hi

Can you try with Camel 2.8.2 ?


On Sun, Nov 13, 2011 at 5:12 PM, Tristan23 <tristanlstein@gmail.com> wrote:
> I have set up a simple JDBC test. It works fine under Windows, but under
> Linux (Ubuntu) I get an exception.
>
> I use camel 2.8.0 and camel-jdbc 2.8.0.
>
> The route definition is this here:
>
>                public void configure() throws Exception {
>                        from("timer:justFire?repeatCount=1")
>                        .transform(constant("select * from customers"))
>                                .to("jdbc:mysql");
>                }
>
> The log / stracktrace:
>
> 2011-11-13 08:01:11,395 [justFire       ] INFO  Tracer
> - ID-ubuntu 54148-1321200070345-0-1 >>> (route1) select * from customers -->
> jdbc://mysql <<< Pattern:InOnly,
> Headers:{breadcrumbId=ID-ubuntu-54148-1321200070345-0-2, firedTime=Sun Nov
> 13 08:01:11 PST 2011}, BodyType:String, Body:select * from customers
> 2011-11-13 08:01:11,541 [justFire       ] ERROR DefaultErrorHandler
> - Failed delivery for exchangeId: ID-ubuntu-54148-1321200070345-0-1.
> Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException
> java.lang.NullPointerException
>        at
> org.apache.camel.component.jdbc.JdbcProducer.process(JdbcProducer.java:90)
>        at
> org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)
>        at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:114)
>        at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:284)
>        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:109)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
>        at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:171)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)
>        at
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:305)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)
>        at org.apache.camel.processor.Pipeline.process(Pipeline.java:116)
>        at org.apache.camel.processor.Pipeline.process(Pipeline.java:79)
>        at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)
>        at
> org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:121)
>        at
> org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:58)
>        at java.util.TimerThread.mainLoop(Timer.java:512)
>        at java.util.TimerThread.run(Timer.java:462)
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/JDBC-exception-under-Linux-works-fine-under-Windows-tp4988651p4988651.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message