[
https://issues.apache.org/jira/browse/CAMEL-15201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17143528#comment-17143528
]
Jean-Baptiste Onofré commented on CAMEL-15201:
----------------------------------------------
>From a Karaf perspective, I just tried and it works fine with JDK 11.0.6.
> Java 11 and camel-script: missing dependencies
> (&(language=js)(objectClass=org.apache.camel.spi.LanguageResolver))
> ------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-15201
> URL: https://issues.apache.org/jira/browse/CAMEL-15201
> Project: Camel
> Issue Type: Bug
> Components: camel-script
> Affects Versions: 2.24.2
> Reporter: Julien Greffe
> Priority: Major
> Attachments: bugTest_0.1.kar
>
>
> 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:
> {code:java}
> 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)){code}
>
> When using the same OSGi with Karaf started with Java 8, the bundle starts
> correctly.
>
> Do you have an idea?
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)