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

camel-test-blueprint - Upgrading to newer felix fails with NPE in fileinstall

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      We get a bunch of these errors during testing with osgi blueprint

      In main loop, we have serious trouble: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
      In main loop, we have serious trouble: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
      In main loop, we have serious trouble: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
      In main loop, we have serious trouble: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
      In main loop, we have serious trouble: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
      In main loop, we have serious trouble: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
      In main loop, we have serious trouble: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
      In main loop, we have serious trouble: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
      In main loop, we have serious trouble: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
      In main loop, we have serious trouble: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:303)
      

      Run tests here

      camel/tests/camel-blueprint-cxf-test (master)/$ mvn clean install
      

      And upgrade Felix in parent/pom.xml

      -    <felix-configadmin-version>1.4.0</felix-configadmin-version>
      -    <felix-fileinstall-version>3.2.6</felix-fileinstall-version>
      -    <felix-framework-version>3.2.2</felix-framework-version>
      +    <felix-configadmin-version>1.8.0</felix-configadmin-version>
      +    <felix-fileinstall-version>3.4.2</felix-fileinstall-version>
      +    <felix-framework-version>3.4.2</felix-framework-version>
      

      And you get these NPEs.

      Maybe something needs to be fixed in camel-test-blueprint with that pojosr library, so bundle 0 is that system bundle, as the NPE is at:
      https://github.com/apache/felix/blame/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/DirectoryWatcher.java#L303

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: