Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-231

DeploymentException on shutdown when multiple routes target the same endpoint

    XMLWordPrintableJSON

Details

    Description

      When multiple routes in a RouteBuilder target the same JBI endpoint, a DeploymentException is thrown upon shutdown:

      javax.jbi.management.DeploymentException: Endpoint not found in the SU for key: {http://activemq.apache.org/camel/schema/jbi}consumer:ID:10.10.10.10-11d60d81f95-27:0
      	at org.apache.servicemix.common.DefaultServiceUnit.removeEndpoint(DefaultServiceUnit.java:201)
      	at org.apache.servicemix.common.DefaultComponent.removeEndpoint(DefaultComponent.java:301)
      	at org.apache.servicemix.camel.JbiEndpoint$JbiProducer.stop(JbiEndpoint.java:82)
      	at org.apache.camel.processor.SendProcessor.doStop(SendProcessor.java:92)
      	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:57)
      	at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:110)
      	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:60)
      	at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:78)
      	at org.apache.camel.processor.DelegateProcessor.doStop(DelegateProcessor.java:72)
      	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:57)
      	at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:78)
      	at org.apache.camel.processor.DelegateAsyncProcessor.doStop(DelegateAsyncProcessor.java:58)
      	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:57)
      	at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:78)
      	at org.apache.camel.impl.DefaultConsumer.doStop(DefaultConsumer.java:81)
      	at org.apache.servicemix.camel.JbiEndpoint$1.doStop(JbiEndpoint.java:152)
      	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:57)
      	at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:110)
      	at org.apache.camel.impl.DefaultCamelContext.doStop(DefaultCamelContext.java:646)
      	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:57)
      	at org.apache.servicemix.camel.JbiTestSupport.tearDown(JbiTestSupport.java:148)
      	at junit.framework.TestCase.runBare(TestCase.java:130)
      	at junit.framework.TestResult$1.protect(TestResult.java:106)
      	at junit.framework.TestResult.runProtected(TestResult.java:124)
      	at junit.framework.TestResult.run(TestResult.java:109)
      	at junit.framework.TestCase.run(TestCase.java:118)
      	at junit.framework.TestSuite.runTest(TestSuite.java:208)
      	at junit.framework.TestSuite.run(TestSuite.java:203)
      	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
      	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      

      Attachments

        Activity

          People

            gertvanthienen Gert Vanthienen
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: