Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18100

camel-karaf - Cannot load OSGi blueprint due to Resumable classloading hell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.17.0
    • 3.17.0
    • camel-osgi, karaf
    • None
    • Unknown

    Description

      java.lang.NoClassDefFoundError: org/apache/camel/resume/ResumeStrategy
      at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
      at java.lang.Class.privateGetDeclaredMethods(Class.java:3166) ~[?:?]
      at java.lang.Class.getDeclaredMethod(Class.java:2473) ~[?:?]
      at com.sun.xml.bind.v2.model.nav.ReflectionNavigator$10.run(ReflectionNavigator.java:595) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.nav.ReflectionNavigator$10.run(ReflectionNavigator.java:588) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
      at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.isOverriding(ReflectionNavigator.java:587) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.isOverriding(ReflectionNavigator.java:34) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.findGetterSetterProperties(ClassInfoImpl.java:943) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:283) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:156) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:231) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:73) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:54) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:197) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:68) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:54) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:345) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:66) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:43) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:32) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:25) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:48) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:46) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at java.util.AbstractList$Itr.next(AbstractList.java:371) ~[?:?]
      at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:245) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:73) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:54) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:197) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:68) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:54) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:345) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:360) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:444) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:282) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:109) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1142) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:141) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:265) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at com.sun.xml.bind.v2.JAXBContextFactory.createContext(JAXBContextFactory.java:48) ~[jaxb-runtime-2.3.3.jar:2.3.3]
      at javax.xml.bind.ContextFinder.find(ContextFinder.java:302) ~[jakarta.xml.bind-api-2.3.3.jar:2.3.3]
      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:478) ~[jakarta.xml.bind-api-2.3.3.jar:2.3.3]
      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:435) ~[jakarta.xml.bind-api-2.3.3.jar:2.3.3]
      at org.apache.camel.xml.jaxb.DefaultModelJAXBContextFactory.newJAXBContext(DefaultModelJAXBContextFactory.java:39) ~[?:?]
      at org.apache.camel.blueprint.handler.CamelNamespaceHandler.getJaxbContext(CamelNamespaceHandler.java:785) ~[?:?]
      at org.apache.camel.blueprint.handler.CamelNamespaceHandler.parseCamelContextNode(CamelNamespaceHandler.java:276) ~[?:?]
      at org.apache.camel.blueprint.handler.CamelNamespaceHandler.parse(CamelNamespaceHandler.java:224) ~[?:?]
      at org.apache.aries.blueprint.parser.Parser.parseCustomElement(Parser.java:1369) ~[!/:1.10.3]
      at org.apache.aries.blueprint.parser.Parser.loadComponents(Parser.java:427) ~[!/:1.10.3]
      at org.apache.aries.blueprint.parser.Parser.populate(Parser.java:331) ~[!/:1.10.3]
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:371) [!/:1.10.3]
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298) [!/:1.10.3]
      at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:335) [!/:1.10.3]
      at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:288) [!/:1.10.3]
      at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:284) [!/:1.10.3]
      at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:274) [!/:1.10.3]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) [!/:1.10.3]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) [!/:1.10.3]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) [!/:1.10.3]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) [!/:1.10.3]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) [!/:1.10.3]
      at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1180) [org.apache.felix.framework-6.0.5.jar:?]
      at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) [org.apache.felix.framework-6.0.5.jar:?]
      at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) [org.apache.felix.framework-6.0.5.jar:?]
      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4817) [org.apache.felix.framework-6.0.5.jar:?]
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2336) [org.apache.felix.framework-6.0.5.jar:?]
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) [org.apache.felix.framework-6.0.5.jar:?]
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [!/:3.7.4]
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [!/:3.7.4]
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [!/:3.7.4]
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [!/:3.7.4]
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [!/:3.7.4]
      Caused by: java.lang.ClassNotFoundException: org.apache.camel.resume.ResumeStrategy
      at java.net.URLClassLoader.findClass(URLClassLoader.java:476) ~[?:?]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.doImplicitBootDelegation(BundleWiringImpl.java:1785) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.tryImplicitBootDelegation(BundleWiringImpl.java:1714) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1667) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1543) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:78) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1950) ~[?:?]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1343) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1586) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1516) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:78) ~[?:?]
      at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1950) ~[?:?]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: