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

Java 11 and camel-script: missing dependencies (&(language=js)(objectClass=org.apache.camel.spi.LanguageResolver))

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.24.2
    • None
    • camel-script
    • None
    • Unknown

    Description

      Hello,

      when trying to use an OSGi feature in Karaf, using camel-script and camel-script-javascript,

      we have this error with Karaf started with Java 11:

       karaf@trun()> diag
      bugTest (330)
      -------------
      Status: Failure
      Declarative Services
      Blueprint
      17/06/2020 11:56
      Exception:
      null
      java.util.concurrent.TimeoutException
              at org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:393)
              at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:45)
              at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:834)Missing dependencies:
      (&(language=js)(objectClass=org.apache.camel.spi.LanguageResolver))

       

      When using the same OSGi with Karaf started with Java 8, the bundle starts correctly.

       

      Do you have an idea?

       

      Attachments

        1. bugTest_0.1.kar
          2.32 MB
          Julien Greffe

        Activity

          People

            Unassigned Unassigned
            jgreffe Julien Greffe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: