[
https://issues.apache.org/jira/browse/CAMEL-8546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang resolved CAMEL-8546.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.15.1
2.14.3
Applied the patch into camel master, camel-2.15.x and camel-2.14.x branches
with thanks to Bart. I also polish the code to avoid the NPE.
> No LanguageResolver found for language=js
> -----------------------------------------
>
> Key: CAMEL-8546
> URL: https://issues.apache.org/jira/browse/CAMEL-8546
> Project: Camel
> Issue Type: Bug
> Components: camel-script
> Affects Versions: 2.14.1
> Reporter: Bart Horré
> Assignee: Willem Jiang
> Fix For: 2.14.3, 2.15.1, 2.16.0
>
>
> {noformat}Unable to start blueprint container for bundle test.xml due to
> unresolved dependencies
> [(&(language=js)(objectClass=org.apache.camel.spi.LanguageResolver))]
> java.util.concurrent.TimeoutException
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:293)[10:org.apache.aries.blueprint:0.3.2]
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_17]
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_17]
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_17]
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_17]
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_17]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_17]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_17]
> at java.lang.Thread.run(Thread.java:722)[:1.7.0_17] {noformat}
> This happens when we try to use script with blueprint because blueprint tries
> to resolve the LanguageResolver with filter language=js. However camel.osgi
> registered a default LanguageResolver under resolver=default which causes
> blueprint to wait for ever.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)