Details
-
Bug
-
Resolution: Done
-
Major
-
7.0.0.fuse-037
-
None
-
None
-
%
Description
After installing/uninstalling the camel-jpa feature a few times the following exception occurs:
FuseESB:karaf@root> features:install camel-jpa Refreshing bundles org.springframework.orm (217), org.springframework.context (100) org.apache.aries.blueprint[org.apache.aries.blueprint.container.ServiceRecipe] : Error retrieving service from ServiceRecipe[name='ActiveMQXBeanNamespaceHandler'] org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean #recipe-1 of class class org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:271) at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:708) at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64) at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219) at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198) at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137) at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370) at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278) at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248) at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327) at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430) at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:308) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:219) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:310) at org.apache.felix.framework.Felix.getService(Felix.java:3497) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:468) at org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.addingService(NamespaceHandlerRegistryImpl.java:98) at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980) at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:234) at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:941) at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:934) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:795) at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544) at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4337) at org.apache.felix.framework.Felix.registerService(Felix.java:3352) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346) at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:408) at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184) at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:666) at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:334) at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230) at org.apache.aries.blueprint.container.BlueprintExtender.checkBundle(BlueprintExtender.java:325) at org.apache.aries.blueprint.container.BlueprintExtender.bundleChanged(BlueprintExtender.java:244) at org.apache.aries.blueprint.container.BlueprintExtender$BlueprintBundleTrackerCustomizer.modifiedBundle(BlueprintExtender.java:471) at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:495) at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:1) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:238) at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:457) at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:870) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:791) at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:515) at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4321) at org.apache.felix.framework.Felix.startBundle(Felix.java:1945) at org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:4831) at org.apache.felix.framework.Felix.refreshPackages(Felix.java:4046) at org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:172) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2129) at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1433) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:73) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1844) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1745) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:929) at org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.managedClassesFromProperties(XBeanNamespaceHandler.java:168) at org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.<init>(XBeanNamespaceHandler.java:111) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:257) at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:842) at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269) at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:708) at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64) at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219) at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198) at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137) at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370) at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278) at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248) at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327) at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430) at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:308) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:219) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:310) log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [org.apache.felix.framework.BundleWiringImpl@584b70e] whereas object of type log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by [org.apache.felix.framework.BundleWiringImpl@741e9d69]. log4j:ERROR Could not instantiate appender named "out". log4j:ERROR A "org.apache.log4j.OsgiThrowableRenderer" object is not assignable to a "org.apache.log4j.spi.ThrowableRenderer" variable. log4j:ERROR The class "org.apache.log4j.spi.ThrowableRenderer" was loaded by log4j:ERROR [org.apache.felix.framework.BundleWiringImpl@584b70e] whereas object of type log4j:ERROR "org.apache.log4j.OsgiThrowableRenderer" was loaded by [org.apache.felix.framework.BundleWiringImpl@741e9d69]. log4j:ERROR Could not instantiate throwableRenderer. FuseESB:karaf@root>
This can be recreated by installing/uninstalling the camel-jpa feature:
features:install camel-jpa
features:install camel-jpa
The error seems occur on third or fourth time.