karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johan Munk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-5399) Can't install e.g. jolokia feature after war feature
Date Mon, 02 Oct 2017 14:56:01 GMT
Johan Munk created KARAF-5399:
---------------------------------

             Summary: Can't install e.g. jolokia feature after war feature
                 Key: KARAF-5399
                 URL: https://issues.apache.org/jira/browse/KARAF-5399
             Project: Karaf
          Issue Type: Bug
          Components: karaf-feature
    Affects Versions: 4.1.2
         Environment: Java 9
            Reporter: Johan Munk


>From a clean Karaf 4.1.2, problem with installing e.g. jolokia after war

apache-karaf-4.1.2 $ ./bin/karaf
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (4.1.2)

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

karaf@root()> feature:install war
karaf@root()> WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.jetty.util.BufferUtil (jar:bundle://83.0:0/!/)
to field java.nio.MappedByteBuffer.fd
WARNING: Please consider reporting this to the maintainers of org.eclipse.jetty.util.BufferUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access
operations
WARNING: All illegal access operations will be denied in a future release

karaf@root()> feature:install jolokia
Error executing command: Error restarting bundles:
        Activator start error in bundle org.jolokia.osgi [104].
karaf@root()> lde
org.apache.karaf.features.internal.util.MultiException: Error restarting bundles:
        Activator start error in bundle org.jolokia.osgi [104].
        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:899) ~[?:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1233)
~[?:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$0(FeaturesServiceImpl.java:1132)
~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
~[?:?]
        at java.lang.Thread.run(Thread.java:844) [?:?]
        Suppressed: org.osgi.framework.BundleException: Activator start error in bundle org.jolokia.osgi
[104].
                at org.apache.felix.framework.Felix.activateBundle(Felix.java:2289) ~[?:?]
                at org.apache.felix.framework.Felix.startBundle(Felix.java:2145) ~[?:?]
                at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
                at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?]
                at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1346)
~[?:?]
                at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:891)
~[?:?]
                at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1233)
~[?:?]
                at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$0(FeaturesServiceImpl.java:1132)
~[?:?]
                at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
~[?:?]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
~[?:?]
                at java.lang.Thread.run(Thread.java:844) [?:?]
        Caused by: java.lang.IllegalArgumentException
                at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[?:?]
                at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[?:?]
                at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[?:?]
                at org.apache.xbean.finder.BundleAssignableClassFinder.isInterfaceAssignable(BundleAssignableClassFinder.java:180)
~[?:?]
                at org.apache.xbean.finder.BundleAssignableClassFinder.isClassAcceptable(BundleAssignableClassFinder.java:105)
~[?:?]
                at org.apache.xbean.finder.BundleAssignableClassFinder.isClassAcceptable(BundleAssignableClassFinder.java:125)
~[?:?]
                at org.apache.xbean.osgi.bundle.util.BundleClassFinder.scanDirectory(BundleClassFinder.java:257)
~[?:?]
                at org.apache.xbean.osgi.bundle.util.BundleClassFinder.scanBundleClassPath(BundleClassFinder.java:228)
~[?:?]
                at org.apache.xbean.osgi.bundle.util.BundleClassFinder.find(BundleClassFinder.java:112)
~[?:?]
                at org.apache.xbean.osgi.bundle.util.BundleClassFinder.findAllClasses(BundleClassFinder.java:183)
~[?:?]
                at org.apache.xbean.osgi.bundle.util.BundleClassFinder.scanImportPackages(BundleClassFinder.java:198)
~[?:?]
                at org.apache.xbean.osgi.bundle.util.BundleClassFinder.find(BundleClassFinder.java:106)
~[?:?]
                at org.ops4j.pax.web.utils.ServletContainerInitializerScanner.scanBundles(ServletContainerInitializerScanner.java:118)
~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper.addContext(JettyServerWrapper.java:284)
~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper.getOrCreateContext(JettyServerWrapper.java:209)
~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper.getOrCreateContext(JettyServerWrapper.java:190)
~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.addServlet(JettyServerImpl.java:352)
~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.addServlet(ServerControllerImpl.java:289)
~[?:?]
                at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.addServlet(ServerControllerImpl.java:110)
~[?:?]
                at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:245)
~[?:?]
                at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:221)
~[?:?]
                at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:205)
~[?:?]
                at org.ops4j.pax.web.service.internal.HttpServiceProxy.registerServlet(HttpServiceProxy.java:65)
~[?:?]
                at org.jolokia.osgi.JolokiaActivator$HttpServiceCustomizer.addingService(JolokiaActivator.java:315)
~[?:?]
                at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
~[?:?]
                at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
~[?:?]
                at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
~[?:?]
                at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
~[?:?]
                at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) ~[?:?]
                at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) ~[?:?]
                at org.jolokia.osgi.JolokiaActivator.start(JolokiaActivator.java:102) ~[?:?]
                at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
~[?:?]
                at org.apache.felix.framework.Felix.activateBundle(Felix.java:2239) ~[?:?]
                ... 11 more

karaf@root()>

This issue with

        Caused by: java.lang.IllegalArgumentException
                at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[?:?]
                at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[?:?]
                at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[?:?]
                at 

is also triggered when trying to setup using the JAX-RS connector. 




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message