On Tue, Dec 1, 2009 at 5:04 PM, erh <[email protected]> wrote:
>
> I'm getting errors like this in my application:
>
> [2009-12-01 05:53:21,813][WARN][Thread: 2
> org.apache.camel.component.file.filecompon...@62681b][camel.impl.scheduledpollconsumer(ScheduledPollConsumer)-run(68)]:
> An exception occured while polling:
> Endpoint[file:data/input?consumer.recursive=false&lock=true&consumer.exclusiveReadLock=true&noop=true]:
> null
> java.lang.NullPointerException
>

Hi

And you are sure your bean does not throw a NPE exception?

But yeah without a stacktrace or any more detailed logging its hard to work out.

And have you considered upgrading to 1.6.2 final as its just released?



> Unfortunately, there is no stack trace, and by the time I noticed there was
> a problem my logs had rolled over so I don't know what my app was doing when
> this started.  I know this isn't much to go on, but does anyone have any
> suggestions for what might cause this?
>
> I am using Camel 1.6.2-SNAPSHOT, build #194.  My endpoint looks like:
> <endpoint id="input_dir_endpoint"
> uri="file:data/input?consumer.recursive=false&amp;lock=true&amp;consumer.exclusive
> ReadLock=true&amp;noop=true" />
> ...
> <route>
>   <from ref="input_dir_endpoint"/>
>   <to uri="bean:filemonitor?method=process"/>
> </route>
>
> Thanks,
> eric
> --
> View this message in context: 
> http://old.nabble.com/NullPointerException-in-FileComponent-tp26594231p26594231.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to