camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9083) Investigate camel-hazelcast feature failure when installed with other bundles
Date Tue, 29 Sep 2015 06:19:05 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14934700#comment-14934700
] 

Claus Ibsen commented on CAMEL-9083:
------------------------------------

Fails with karaf 2.4.3
{code}
davsclaus:/opt/apache-karaf-2.4.3/$ bin/karaf
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (2.4.3)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'osgi:shutdown' or 'logout' to shutdown Karaf.

karaf@root> features:chooseurl camel 2.16-SNAPSHOT
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.16-SNAPSHOT/xml/features
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.2 in feature(s) camel-hazelcast-2.16-SNAPSHOT,
camel-vertx-2.16-SNAPSHOT: Activator start error in bundle com.hazelcast [79].
karaf@root>
{code}

> Investigate camel-hazelcast feature failure when installed with other bundles
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-9083
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9083
>             Project: Camel
>          Issue Type: Task
>          Components: camel-osgi
>    Affects Versions: 2.16.0
>            Reporter: Raúl Kripalani
>
> {code}
> 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].
> {code}
> Where camel-hazelcast throws this exception:
> {code}
> Caused by: org.osgi.framework.BundleException: Activator start error in bundle com.hazelcast
[188].
> 	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2204)
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:2072)
> 	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)
> 	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)
> 	at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:51)
> 	... 17 more
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_79]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_79]
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_79]
> 	at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_79]
> 	at com.hazelcast.internal.osgi.Activator.activateJavaxScripting(Activator.java:70)
> 	at com.hazelcast.internal.osgi.Activator.start(Activator.java:46)
> 	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
> 	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2154)
> 	... 21 more
> Caused by: java.lang.NoSuchMethodError: javax.script.ScriptEngineManager.setBindings(Ljavax/script/Bindings;)V
> 	at com.hazelcast.internal.osgi.OSGiScriptEngineManager.createScriptEngineManager(OSGiScriptEngineManager.java:262)
> 	at com.hazelcast.internal.osgi.OSGiScriptEngineManager.findManagers(OSGiScriptEngineManager.java:235)
> 	at com.hazelcast.internal.osgi.OSGiScriptEngineManager.<init>(OSGiScriptEngineManager.java:87)
> 	at com.hazelcast.internal.osgi.ScriptEngineActivator.registerOsgiScriptEngineManager(ScriptEngineActivator.java:44)
> 	... 29 more
> {code}
> 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:
> {code}
> [...]
> Bundle-Vendor = Hazelcast, Inc.
> Bundle-Activator = com.hazelcast.internal.osgi.Activator
> Bundle-Name = hazelcast
> Bundle-DocURL = http://www.hazelcast.com/
> Bundle-Description = Core Hazelcast Module
> Bundle-SymbolicName = com.hazelcast
> Bundle-Version = 3.5.1
> Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
> Bundle-ManifestVersion = 2
> [...]
> Import-Package =
> [...]
> 	javax.script,
> [...]
> {code}
> We'll have to investigate further and perhaps open a ticket at Hazelcast.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message