Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5358

Failure loading blueprint context in Karaf 3 SNAPSHOT

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.7
    • Fix Version/s: 2.7.8
    • Component/s: Core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Steps to reproduce:

      1) install and start karaf 3.0.0-SNAPSHOT
      2) Checkout and compile https://github.com/cschneider/Karaf-Tutorial/tree/master/cxf/personservice
      3) Install service
      feature:repo-add cxf 2.7.7
      feature:install cxf-jaxws cxf-jaxrs
      install -s mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-model/1.0-SNAPSHOT
      install -s mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-server/1.0-SNAPSHOT

      The bundle should go to status Failure. bundle:diag shows the exception below:

      karaf@root()> diag
      personservice-server (129)
      --------------------------
      Status: Failure
      Blueprint
      10/23/13 5:20 PM
      Exception:
      Error setting property: PropertyDescriptor <name: serviceBeans, getter: null, setter: [class org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(interface java.util.List)]
      org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting property: PropertyDescriptor <name: serviceBeans, getter: null, setter: [class org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(interface java.util.List)]
      at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:941)
      at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:907)
      at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:888)
      at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:820)
      at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)
      at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
      at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)
      at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:677)
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:374)
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)
      at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264)
      at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:227)
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
      at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1103)
      at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:695)
      at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:483)
      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2092)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
      at org.apache.karaf.bundle.command.Start.executeOnBundle(Start.java:27)
      at org.apache.karaf.bundle.command.BundlesCommandWithConfirmation.doExecute(BundlesCommandWithConfirmation.java:53)
      at org.apache.karaf.bundle.command.BundlesCommand.doExecute(BundlesCommand.java:50)
      at org.apache.karaf.bundle.command.BundlesCommandWithConfirmation.doExecute(BundlesCommandWithConfirmation.java:41)
      at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
      at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
      at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
      at org.apache.karaf.shell.console.commands.$BlueprintCommand12280638.execute(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
      at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
      at org.apache.karaf.shell.console.commands.$BlueprintCommand12280638.execute(Unknown Source)
      at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
      at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
      at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
      at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
      at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
      at org.apache.karaf.shell.console.impl.jline.ConsoleImpl$DelegateSession.execute(ConsoleImpl.java:474)
      at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:182)
      at java.lang.Thread.run(Thread.java:722)
      at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:109)
      at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:100)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:356)
      at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:98)
      Caused by: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.bus.managers.WorkQueueManagerImpl.
      at org.apache.cxf.bus.extension.Extension.load(Extension.java:231)
      at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:211)
      at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:320)
      at org.apache.cxf.bus.osgi.OSGiBeanLocator.getBeansOfType(OSGiBeanLocator.java:45)
      at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:108)
      at org.apache.cxf.bus.osgi.OSGIBusListener.initComplete(OSGIBusListener.java:95)
      at org.apache.cxf.bus.managers.CXFBusLifeCycleManager.initComplete(CXFBusLifeCycleManager.java:87)
      at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:208)
      at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:43)
      at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:36)
      at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:32)
      at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:106)
      at org.apache.cxf.BusFactory.createThreadBus(BusFactory.java:243)
      at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:227)
      at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:214)
      at org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.getBus(JAXRSServiceFactoryBean.java:66)
      at org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.setResourceClassesFromBeans(JAXRSServiceFactoryBean.java:231)
      at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(JAXRSServerFactoryBean.java:319)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:628)
      at org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:378)
      at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:939)
      ... 63 more
      Caused by: java.lang.reflect.UndeclaredThrowableException
      at com.sun.proxy.$Proxy0.registerMBean(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
      at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
      at com.sun.proxy.$Proxy0.registerMBean(Unknown Source)
      at org.apache.cxf.management.jmx.InstrumentationManagerImpl.registerMBeanWithServer(InstrumentationManagerImpl.java:331)
      at org.apache.cxf.management.jmx.InstrumentationManagerImpl.register(InstrumentationManagerImpl.java:229)
      at org.apache.cxf.management.jmx.InstrumentationManagerImpl.register(InstrumentationManagerImpl.java:246)
      at org.apache.cxf.management.jmx.InstrumentationManagerImpl.register(InstrumentationManagerImpl.java:239)
      at org.apache.cxf.bus.managers.WorkQueueManagerImpl.setBus(WorkQueueManagerImpl.java:74)
      at org.apache.cxf.bus.managers.WorkQueueManagerImpl.<init>(WorkQueueManagerImpl.java:59)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
      at org.apache.cxf.bus.extension.Extension.load(Extension.java:208)
      ... 87 more
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.karaf.management.boot.KarafMBeanServerBuilder$MBeanInvocationHandler.invoke(KarafMBeanServerBuilder.java:63)
      ... 105 more
      Caused by: javax.management.NotCompliantMBeanException: MBean class org.apache.cxf.bus.managers.WorkQueueManagerImplMBeanWrapper does not implement DynamicMBean, and neither follows the Standard MBean conventions (javax.management.NotCompliantMBeanException: Class org.apache.cxf.bus.managers.WorkQueueManagerImplMBeanWrapper is not a JMX compliant Standard MBean) nor the MXBean conventions (javax.management.NotCompliantMBeanException: org.apache.cxf.bus.managers.WorkQueueManagerImplMBeanWrapper: Class org.apache.cxf.bus.managers.WorkQueueManagerImplMBeanWrapper is not a JMX compliant MXBean)
      at com.sun.jmx.mbeanserver.Introspector.checkCompliance(Introspector.java:173)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:317)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:513)
      ... 109 more

        Attachments

          Activity

            People

            • Assignee:
              cschneider Christian Schneider
              Reporter:
              cschneider Christian Schneider
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: