camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raúl Kripalani (JIRA) <>
Subject [jira] [Created] (CAMEL-9083) Investigate camel-hazelcast feature failure when installed with other bundles
Date Fri, 14 Aug 2015 18:42:45 GMT
Raúl Kripalani created CAMEL-9083:

             Summary: Investigate camel-hazelcast feature failure when installed with other
                 Key: CAMEL-9083
             Project: Camel
          Issue Type: Task
          Components: camel-osgi
    Affects Versions: 2.16.0
            Reporter: Raúl Kripalani

karaf@root> features:install camel-aws
karaf@root> features:install camel-groovy
karaf@root> features:install camel-hazelcast
Error executing command: Can't install feature camel-hazelcast/0.0.0:
Could not start bundle mvn:com.hazelcast/hazelcast/3.5.1 in feature(s) camel-hazelcast-2.16-SNAPSHOT,
camel-vertx-2.16-SNAPSHOT: Activator start error in bundle com.hazelcast [79].

Where camel-hazelcast throws this exception:

Caused by: org.osgi.framework.BundleException: Activator start error in bundle com.hazelcast
	at org.apache.felix.framework.Felix.activateBundle(
	at org.apache.felix.framework.Felix.startBundle(
	at org.apache.felix.framework.BundleImpl.start(
	at org.apache.felix.framework.BundleImpl.start(
	... 17 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_79]
	at sun.reflect.NativeMethodAccessorImpl.invoke([:1.7.0_79]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke([:1.7.0_79]
	at java.lang.reflect.Method.invoke([:1.7.0_79]
	at com.hazelcast.internal.osgi.Activator.activateJavaxScripting(
	at com.hazelcast.internal.osgi.Activator.start(
	at org.apache.felix.framework.util.SecureAction.startActivator(
	at org.apache.felix.framework.Felix.activateBundle(
	... 21 more
Caused by: java.lang.NoSuchMethodError: javax.script.ScriptEngineManager.setBindings(Ljavax/script/Bindings;)V
	at com.hazelcast.internal.osgi.OSGiScriptEngineManager.createScriptEngineManager(
	at com.hazelcast.internal.osgi.OSGiScriptEngineManager.findManagers(
	at com.hazelcast.internal.osgi.OSGiScriptEngineManager.<init>(
	at com.hazelcast.internal.osgi.ScriptEngineActivator.registerOsgiScriptEngineManager(
	... 29 more

This issue only occurs when certain other bundles are installed. In the above example, either
one of camel-aws or camel-groovy are dragging some dependencies related to scripting (likely
camel-groovy) that the Hazelcast library doesn't like. Probably because Hazelcast doesn't
specify a version range in their javax.script import:

Bundle-Vendor = Hazelcast, Inc.
Bundle-Activator = com.hazelcast.internal.osgi.Activator
Bundle-Name = hazelcast
Bundle-DocURL =
Bundle-Description = Core Hazelcast Module
Bundle-SymbolicName = com.hazelcast
Bundle-Version = 3.5.1
Bundle-License =
Bundle-ManifestVersion = 2
Import-Package =

We'll have to investigate further and perhaps open a ticket at Hazelcast.

This message was sent by Atlassian JIRA

View raw message