Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8473

Karaf extender fails to start up due to Wagon error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 18.0.0
    • Fix Version/s: 21.0.0
    • Component/s: OSGi
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      I got the following error inside a Minion System Test during startup of the Minion container using Apache Karaf 4.0.4. It must be very infrequent since we haven't seen it before:

      2016-05-27 13:49:10,304 | ERROR | pool-16-thread-1 | BlueprintContainerImpl           | 10 - org.apache.aries.blueprint.core - 1.5.0 | Unable to start blueprint container for bundle org.opennms.features.minion.container.extender/18.0.1.SNAPSHOT
      org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize bean controller
      	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:738)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:848)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[10:org.apache.aries.blueprint.core:1.5.0]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91]
      	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:255)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:186)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:712)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:399)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:273)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)[10:org.apache.aries.blueprint.core:1.5.0]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[14:org.apache.aries.util:1.1.1]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[14:org.apache.aries.util:1.1.1]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[14:org.apache.aries.util:1.1.1]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[14:org.apache.aries.util:1.1.1]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[14:org.apache.aries.util:1.1.1]
      	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:731)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:486)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2172)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)[org.apache.felix.framework-5.4.0.jar:]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1199)[7:org.apache.karaf.features.core:4.0.4]
      	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:840)[7:org.apache.karaf.features.core:4.0.4]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1089)[7:org.apache.karaf.features.core:4.0.4]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:985)[7:org.apache.karaf.features.core:4.0.4]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
      	at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
      Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
      	at shaded.org.apache.maven.wagon.providers.file.FileWagon.resolveDestinationPath(FileWagon.java:206)
      	at shaded.org.apache.maven.wagon.providers.file.FileWagon.resourceExists(FileWagon.java:265)
      	at shaded.org.eclipse.aether.transport.wagon.WagonTransporter$PeekTaskRunner.run(WagonTransporter.java:518)
      	at shaded.org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:427)
      	at shaded.org.eclipse.aether.transport.wagon.WagonTransporter.peek(WagonTransporter.java:398)
      	at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.checkRemoteAccess(BasicRepositoryConnector.java:402)
      	at shaded.org.eclipse.aether.connector.basic.PartialFile$LockFile.lock(PartialFile.java:89)
      	at shaded.org.eclipse.aether.connector.basic.PartialFile$LockFile.<init>(PartialFile.java:58)
      	at shaded.org.eclipse.aether.connector.basic.PartialFile$Factory.newInstance(PartialFile.java:210)
      	at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:432)
      	at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
      	at shaded.org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
      	at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
      	at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
      	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
      	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
      	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
      	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
      	at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
      	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:615)
      	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:570)
      	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:548)
      	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:523)
      	at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)
      	at java.net.URL.openStream(URL.java:1045)[:1.8.0_91]
      	at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:91)
      	at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:85)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.getFeatures(FeaturesServiceImpl.java:637)[7:org.apache.karaf.features.core:4.0.4]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:832)[7:org.apache.karaf.features.core:4.0.4]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:775)[7:org.apache.karaf.features.core:4.0.4]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:760)[7:org.apache.karaf.features.core:4.0.4]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:750)[7:org.apache.karaf.features.core:4.0.4]
      	at Proxy7b13065b_2eff_40c5_98f3_8016f8261350.installFeature(Unknown Source)
      	at org.opennms.karaf.extender.KarafExtender.init(KarafExtender.java:155)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
      	at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
      	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)
      	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980)
      	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:736)
      	... 33 more
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils not found by org.ops4j.pax.url.mvn [6]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)
      	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_91]
      	... 74 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                seth Seth Leger
                Reporter:
                seth Seth Leger
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: