NPE when the bundle is camel-osgi bundle is inactive ----------------------------------------------------
Key: CAMEL-2020 URL: https://issues.apache.org/activemq/browse/CAMEL-2020 Project: Apache Camel Issue Type: Bug Affects Versions: 2.0.0, 2.0-M3, 2.0-M2, 1.6.1, 2.0-M1, 1.6.0, 1.5.0 Reporter: Willem Jiang Assignee: Willem Jiang Fix For: 1.6.2, 2.1.0 The stack trace. {code} java.lang.NullPointerException at org.apache.camel.osgi.OsgiFactoryFinder.getResource(OsgiFactoryFinder.java:85) at org.apache.camel.osgi.OsgiFactoryFinder.findClass(OsgiFactoryFinder.java:51) at org.apache.camel.component.file.GenericFileEndpoint.createGenericFileStrategy(GenericFileEndpoint.java:130) at org.apache.camel.component.file.GenericFileEndpoint.getGenericFileProcessStrategy(GenericFileEndpoint.java:114) at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:162) at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:120) at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:93) at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:98) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) {code} Here is the mail thread[1] which discusses about this issue. [1]http://www.nabble.com/Error-using-camel-file-with-windows-tt25475829.html#a25486384 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.