You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2008/11/03 10:15:05 UTC
[jira] Created: (SM-1671) DeploymentException on shutdown when
multiple routes target the same endpoint
DeploymentException on shutdown when multiple routes target the same endpoint
-----------------------------------------------------------------------------
Key: SM-1671
URL: https://issues.apache.org/activemq/browse/SM-1671
Project: ServiceMix
Issue Type: Bug
Components: servicemix-camel
Affects Versions: servicemix-camel-2008.01
Reporter: Gert Vanthienen
Assignee: Gert Vanthienen
Priority: Minor
Fix For: servicemix-camel-2008.02
When multiple routes in a RouteBuilder target the same JBI endpoint, a DeploymentException is thrown upon shutdown:
{noformat}
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)
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (SM-1671) DeploymentException on shutdown when
multiple routes target the same endpoint
Posted by "Ron Gavlin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ron Gavlin reopened SM-1671:
----------------------------
Please backport to SMX 3.2.x branch.
> DeploymentException on shutdown when multiple routes target the same endpoint
> -----------------------------------------------------------------------------
>
> Key: SM-1671
> URL: https://issues.apache.org/activemq/browse/SM-1671
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-camel
> Affects Versions: servicemix-camel-2008.01
> Reporter: Gert Vanthienen
> Assignee: Gert Vanthienen
> Priority: Minor
> Fix For: servicemix-camel-2008.02
>
>
> When multiple routes in a RouteBuilder target the same JBI endpoint, a DeploymentException is thrown upon shutdown:
> {noformat}
> 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)
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SM-1671) DeploymentException on shutdown when
multiple routes target the same endpoint
Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gert Vanthienen resolved SM-1671.
---------------------------------
Fix Version/s: 3.2.4
Resolution: Fixed
Backported to 3.2.4 in http://svn.eu.apache.org/viewvc?view=rev&revision=710069
> DeploymentException on shutdown when multiple routes target the same endpoint
> -----------------------------------------------------------------------------
>
> Key: SM-1671
> URL: https://issues.apache.org/activemq/browse/SM-1671
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-camel
> Affects Versions: servicemix-camel-2008.01
> Reporter: Gert Vanthienen
> Assignee: Gert Vanthienen
> Priority: Minor
> Fix For: servicemix-camel-2008.02, 3.2.4
>
>
> When multiple routes in a RouteBuilder target the same JBI endpoint, a DeploymentException is thrown upon shutdown:
> {noformat}
> 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)
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (SM-1671) DeploymentException on
shutdown when multiple routes target the same endpoint
Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46983#action_46983 ]
gertvanthienen edited comment on SM-1671 at 11/3/08 1:40 AM:
--------------------------------------------------------------
Fixed in http://svn.eu.apache.org/viewvc?view=rev&revision=710028
When the JbiProducer Camel endpoint is stopped, it will remove the matching JBI consumer endpoint from the NMR. The same JbiProducer endpoint can exist in multiple routes however, so we should only try to remove the NMR endpoint when stopping the Producer the first time.
was (Author: gertvanthienen):
Fixed in http://svn.eu.apache.org/viewvc?view=rev&revision=710028
> DeploymentException on shutdown when multiple routes target the same endpoint
> -----------------------------------------------------------------------------
>
> Key: SM-1671
> URL: https://issues.apache.org/activemq/browse/SM-1671
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-camel
> Affects Versions: servicemix-camel-2008.01
> Reporter: Gert Vanthienen
> Assignee: Gert Vanthienen
> Priority: Minor
> Fix For: servicemix-camel-2008.02
>
>
> When multiple routes in a RouteBuilder target the same JBI endpoint, a DeploymentException is thrown upon shutdown:
> {noformat}
> 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)
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SM-1671) DeploymentException on shutdown when
multiple routes target the same endpoint
Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gert Vanthienen resolved SM-1671.
---------------------------------
Resolution: Fixed
Fixed in http://svn.eu.apache.org/viewvc?view=rev&revision=710028
> DeploymentException on shutdown when multiple routes target the same endpoint
> -----------------------------------------------------------------------------
>
> Key: SM-1671
> URL: https://issues.apache.org/activemq/browse/SM-1671
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-camel
> Affects Versions: servicemix-camel-2008.01
> Reporter: Gert Vanthienen
> Assignee: Gert Vanthienen
> Priority: Minor
> Fix For: servicemix-camel-2008.02
>
>
> When multiple routes in a RouteBuilder target the same JBI endpoint, a DeploymentException is thrown upon shutdown:
> {noformat}
> 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)
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.