ServiceMix
  1. ServiceMix
  2. SM-2244

Uninstall activiti feature results in error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.2, 5.1.0, 6.0.0.M1, 6.0.0
    • Component/s: itests
    • Labels:
      None

      Description

      When uninstalling the activiti feature we get the following stacktrace

      stacktrace
      2014-02-20 12:03:19,462 | ERROR | l Console Thread | BeanRecipe                       | ?                                   ? | 8 - org.apache.aries.blueprint.core - 1.1.0 | The blueprint bean processEngineFactory in bundle org.apache.servicemix.activiti.config/5.0.0.SNAPSHOT incorrectly threw an exception from its destroy method.
      org.osgi.service.blueprint.container.ServiceUnavailableException: The Blueprint container is being or has been destroyed: (objectClass=javax.transaction.TransactionManager)
      	at org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:233)
      	at org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:54)
      	at org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:291)
      	at Proxy74731c29_a1b5_47ef_a4bf_0783c67a9298.getStatus(Unknown Source)
      	at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.isExisting(JtaTransactionInterceptor.java:94)
      	at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:49)
      	at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
      	at org.activiti.engine.impl.ProcessEngineImpl.close(ProcessEngineImpl.java:98)
      	at org.activiti.osgi.blueprint.ProcessEngineFactory.destroy(ProcessEngineFactory.java:55)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_51]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_51]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_51]
      	at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_51]
      	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)[8:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)[8:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BeanRecipe.destroy(BeanRecipe.java:863)[8:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BlueprintRepository.destroy(BlueprintRepository.java:320)[8:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroyComponents(BlueprintContainerImpl.java:709)[8:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.tidyupComponents(BlueprintContainerImpl.java:908)[8:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:857)[8:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BlueprintExtender$3.run(BlueprintExtender.java:284)[8:org.apache.aries.blueprint.core:1.1.0]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_51]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_51]
      	at org.apache.aries.blueprint.container.BlueprintExtender.destroyContainer(BlueprintExtender.java:305)[8:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:206)[8:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[12:org.apache.aries.util:1.1.0]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[12:org.apache.aries.util:1.1.0]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[12:org.apache.aries.util:1.1.0]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[12:org.apache.aries.util:1.1.0]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[12:org.apache.aries.util:1.1.0]
      	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1103)[org.apache.felix.framework-4.0.3.jar:]
      	at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:695)[org.apache.felix.framework-4.0.3.jar:]
      	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:483)[org.apache.felix.framework-4.0.3.jar:]
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4244)[org.apache.felix.framework-4.0.3.jar:]
      	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2351)[org.apache.felix.framework-4.0.3.jar:]
      	at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2463)[org.apache.felix.framework-4.0.3.jar:]
      	at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:1012)[org.apache.felix.framework-4.0.3.jar:]
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature(FeaturesServiceImpl.java:988)[45:org.apache.karaf.features.core:2.3.3]
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature(FeaturesServiceImpl.java:969)[45:org.apache.karaf.features.core:2.3.3]
      	at org.apache.karaf.features.command.UninstallFeatureCommand.doExecute(UninstallFeatureCommand.java:43)[33:org.apache.karaf.features.command:2.3.3]
      	at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:41)[33:org.apache.karaf.features.command:2.3.3]
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.shell.console:2.3.3]
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.3]
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.3]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[15:org.apache.karaf.shell.console:2.3.3]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.3.3]
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.3.3]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.karaf.shell.console:2.3.3]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.karaf.shell.console:2.3.3]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.3]
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:173)[15:org.apache.karaf.shell.console:2.3.3]
      	at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
      
      

        Issue Links

          Activity

          Krzysztof Sobkowiak made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Krzysztof Sobkowiak made changes -
          Fix Version/s 6.0.0.M1 [ 12329337 ]
          Gert Vanthienen made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Gert Vanthienen [ gertvanthienen ]
          Resolution Fixed [ 1 ]
          Hide
          Gert Vanthienen added a comment -

          It looks OK in the container and the itests passes with the little workaround in there. Not sure there's anything else we can do at the moment, so closing this issue for now

          Show
          Gert Vanthienen added a comment - It looks OK in the container and the itests passes with the little workaround in there. Not sure there's anything else we can do at the moment, so closing this issue for now
          Hide
          Krzysztof Sobkowiak added a comment - - edited

          As described before this problem cam not be reproduced, but removing the workaround SM-2234 causes the itest problem described in SM-2234 again.

          Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 23.517 sec <<< FAILURE! - in org.apache.servicemix.itests.ActivitiExamplesTest
          org.apache.servicemix.itests.ActivitiExamplesTest  Time elapsed: 11.285 sec  <<< ERROR!
          java.lang.RuntimeException: java.rmi.NoSuchObjectException: no such object in table
          	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:275)
          	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:252)
          	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
          	at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194)
          	at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148)
          	at com.sun.proxy.$Proxy11.uninstallBundle(Unknown Source)
          	at org.ops4j.pax.exam.rbc.client.intern.RemoteBundleContextClientImpl.cleanup(RemoteBundleContextClientImpl.java:169)
          	at org.ops4j.pax.exam.container.remote.RBCRemoteTarget.stop(RBCRemoteTarget.java:86)
          	at org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer.stop(KarafTestContainer.java:481)
          	at org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactor.tearDown(EagerSingleStagedReactor.java:118)
          	at org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactor.afterClass(EagerSingleStagedReactor.java:132)
          	at org.ops4j.pax.exam.spi.reactors.ReactorManager.afterClass(ReactorManager.java:436)
          	at org.ops4j.pax.exam.junit.impl.ProbeRunner.run(ProbeRunner.java:121)
          	at org.ops4j.pax.exam.junit.PaxExam.run(PaxExam.java:93)
          	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
          	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
          	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
          
          Show
          Krzysztof Sobkowiak added a comment - - edited As described before this problem cam not be reproduced, but removing the workaround SM-2234 causes the itest problem described in SM-2234 again. Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 23.517 sec <<< FAILURE! - in org.apache.servicemix.itests.ActivitiExamplesTest org.apache.servicemix.itests.ActivitiExamplesTest Time elapsed: 11.285 sec <<< ERROR! java.lang.RuntimeException: java.rmi.NoSuchObjectException: no such object in table at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:275) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:252) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194) at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148) at com.sun.proxy.$Proxy11.uninstallBundle(Unknown Source) at org.ops4j.pax.exam.rbc.client.intern.RemoteBundleContextClientImpl.cleanup(RemoteBundleContextClientImpl.java:169) at org.ops4j.pax.exam.container.remote.RBCRemoteTarget.stop(RBCRemoteTarget.java:86) at org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer.stop(KarafTestContainer.java:481) at org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactor.tearDown(EagerSingleStagedReactor.java:118) at org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactor.afterClass(EagerSingleStagedReactor.java:132) at org.ops4j.pax.exam.spi.reactors.ReactorManager.afterClass(ReactorManager.java:436) at org.ops4j.pax.exam.junit.impl.ProbeRunner.run(ProbeRunner.java:121) at org.ops4j.pax.exam.junit.PaxExam.run(PaxExam.java:93) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
          Krzysztof Sobkowiak made changes -
          Fix Version/s 5.0.2 [ 12326849 ]
          Fix Version/s 5.1.0 [ 12326660 ]
          Fix Version/s 6.0.0 [ 12326661 ]
          Hide
          Krzysztof Sobkowiak added a comment -

          I can not reproduce this problem. Probably solved by SM-2229. We should try to remove the workaround from SM-2234 and check whether the problem described in SM-2234 occurs again.

          Show
          Krzysztof Sobkowiak added a comment - I can not reproduce this problem. Probably solved by SM-2229 . We should try to remove the workaround from SM-2234 and check whether the problem described in SM-2234 occurs again.
          Bart Horré made changes -
          Field Original Value New Value
          Link This issue breaks SM-2234 [ SM-2234 ]
          Bart Horré created issue -

            People

            • Assignee:
              Gert Vanthienen
              Reporter:
              Bart Horré
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development