Project: talendesb
Issue TESB-6683: Error on retrieving constructor for proxy of karaf BlueprintCommand class on jdk 6 update 33  (e.g. this could affect Camel Routes with cCXF )
The source of the issue was analysed and is documented and related to https://issues.apache.org/jira/browse/ARIES-861. (also a bit related to this issue is: https://issues.apache.org/jira/browse/KARAF-1547 (at least it is also related to the 1.6.0_33 or higher only) ---------------- When I enable SAM feature on a cxf component and try to deploy it in the runtime, I get the following exception : 15:42:53,236 | ERROR | rint Extender: 2 | lueprint.container.ServiceRecipe 302 | 10 - org.apache.aries.blueprint - 0.3.1 | Error retrieving service from ServiceRecipe[name='.component-1'] org.osgi.service.blueprint.container.ComponentDefinitionException: java.lang.VerifyError: (class: org/talend/esb/sam/agent/feature/$EventFeature1384923374, method: signature: (Ljava/lang/reflect/InvocationHandler;)V) Call to wrong initialization method org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:98) org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64) org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60) org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64) org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:799) org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:773) org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:754) org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:720) org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64) org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60) org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64) org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219) org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198) org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137) org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430) org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(ServiceUse.java:120)[osgi-3.6.2.R36x_v20110210.jar:] java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33] org.eclipse.osgi.internal.serviceregistry.ServiceUse.getService(ServiceUse.java:118)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:447)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:430)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:667)[osgi-3.6.2.R36x_v20110210.jar:] org.talend.esb.job.controller.internal.JobTracker$Customizer.addingService(JobTracker.java:107)[179:org.talend.esb.job.controller:5.1.1] org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.6] org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.6] org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.6] org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.6] org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:756)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:711)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:206)[osgi-3.6.2.R36x_v20110210.jar:] org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:507)[osgi-3.6.2.R36x_v20110210.jar:] org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1] java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_33] java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_33] java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_33] java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_33] java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_33] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_33] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_33] java.lang.Thread.run(Thread.java:680)[:1.6.0_33] Caused by: java.lang.VerifyError: (class: org/talend/esb/sam/agent/feature/$EventFeature1384923374, method: signature: (Ljava/lang/reflect/InvocationHandler;)V) Call to wrong initialization method java.lang.Class.getDeclaredConstructors0(Native Method)[:1.6.0_33] java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)[:1.6.0_33] java.lang.Class.getConstructor0(Class.java:2699)[:1.6.0_33] java.lang.Class.getConstructor(Class.java:1657)[:1.6.0_33] org.apache.aries.proxy.impl.gen.ProxySubclassGenerator.newProxySubclassInstance(ProxySubclassGenerator.java:159) org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:81) org.apache.aries.proxy.impl.AbstractProxyManager.createProxy(AbstractProxyManager.java:50) org.apache.aries.proxy.impl.AbstractProxyManager.createProxy(AbstractProxyManager.java:39) org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:236) org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:82)	... 51 more 15:42:53,288 | ERROR | rint Extender: 2 | container.BlueprintContainerImpl 358 | 10 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle talproject1.ProxyMNT org.osgi.service.blueprint.container.ComponentDefinitionException: java.lang.VerifyError: (class: org/talend/esb/sam/agent/feature/$EventFeature1384923374, method: signature: (Ljava/lang/reflect/InvocationHandler;)V) Call to wrong initialization method org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:98)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:640)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:331)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1] java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_33] java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_33] java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_33] java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_33] java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_33] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_33] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_33] java.lang.Thread.run(Thread.java:680)[:1.6.0_33] Caused by: java.lang.VerifyError: (class: org/talend/esb/sam/agent/feature/$EventFeature1384923374, method: signature: (Ljava/lang/reflect/InvocationHandler;)V) Call to wrong initialization method java.lang.Class.getDeclaredConstructors0(Native Method)[:1.6.0_33] java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)[:1.6.0_33] java.lang.Class.getConstructor0(Class.java:2699)[:1.6.0_33] java.lang.Class.getConstructor(Class.java:1657)[:1.6.0_33] org.apache.aries.proxy.impl.gen.ProxySubclassGenerator.newProxySubclassInstance(ProxySubclassGenerator.java:159) org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:81) org.apache.aries.proxy.impl.AbstractProxyManager.createProxy(AbstractProxyManager.java:50) org.apache.aries.proxy.impl.AbstractProxyManager.createProxy(AbstractProxyManager.java:39) org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:236)[10:org.apache.aries.blueprint:0.3.1] org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:82)[10:org.apache.aries.blueprint:0.3.1]	... 14 more
Story points: 1