Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-2020

NPE when the bundle is camel-osgi bundle is inactive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 2.0-M2, 2.0-M3, 2.0.0
    • 1.6.2, 2.1.0
    • None
    • None

    Description

      The stack trace.

         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)
      

      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

      Attachments

        Activity

          People

            njiang Willem Jiang
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: