org.springframework.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0; nested exception is javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0

SpringSource Issue Tracker | Ajinkya Ghorpade | 3 years ago
  1. 0

    org.springframework.jms.InvalidClientIDException for durable topics

    Stack Overflow | 3 years ago | Ajinkya Ghorpade
    org.springframework.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0; nested exception is javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0
  2. 0

    I’m trying to create a durable topic for asynchronous message processing. Following are the commands from log.roo -> jms setup --provider ACTIVEMQ_IN_MEMORY --destinationType DURABLE_TOPIC focus --class ~.services.algorithms.StopsRequestHandlerImpl jms listener class --class ~.services.messaging.CreateStopsTopicListener --destinationType DURABLE_TOPIC --destinationName CreateStopsTopic focus --class ~.services.algorithms.StopsRequestHandlerImpl field jms template --fieldName jmsTemplate --async true --class ~.services.algorithms.StopsRequestHandlerImpl Snapshot of the applicationContext-jms.xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:amq="http://activemq.apache.org/schema/core" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:jms="http://www.springframework.org/schema/jms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.1.xsd"> <!-- Embedded ActiveMQ Broker JMX MBean server enabled by default, access via: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi --> <amq:broker persistent="false" useJmx="true" destroyApplicationContextOnStop="true" start="false"> <amq:transportConnectors> <amq:transportConnector uri="tcp://localhost:61616"/> </amq:transportConnectors> </amq:broker> <!-- JMS ConnectionFactory to use for ActiveMQ, configuring the embedded broker using XML --> <amq:connectionFactory brokerURL="vm://localhost" id="jmsFactory" clientID="stops" copyMessageOnSend="true" useBeanNameAsClientIdPrefix="true" checkForDuplicates="true" /> <!-- JMS ConnectionFactory to use for Spring JMS template --> <bean class="org.springframework.jms.connection.CachingConnectionFactory" id="cachingConnectionFactory"> <property name="targetConnectionFactory"> <ref local="jmsFactory"/> </property> </bean> <!-- Spring JMS Template --> <bean class="org.springframework.jms.core.JmsTemplate" id="jmsTemplate"> <!-- lets wrap in a pool to avoid creating a connection per send --> <property name="connectionFactory" ref="cachingConnectionFactory"/> <property name="defaultDestination" ref="CreateStopsTopic" /> </bean> <amq:topic id="CreateStopsTopic" physicalName="CreateStopsTopic" /> <jms:listener-container connection-factory="jmsFactory" destination-type="durableTopic" cache="connection" concurrency="10" client-id="stops"> <jms:listener destination="CreateStopsTopic" method="onMessage" ref="createStopsTopicListener" subscription="CreateStopsTopic" /> </jms:listener-container> <bean class="org.smart.fms.backend.services.messaging.CreateStopsTopicListener" id="createStopsTopicListener"/> </beans> Problem:- Whenever a message is sent I receive following exception - 2014-04-25 05:41:27,075 [http-bio-8080-exec-7] DEBUG org.springframework.web.servlet.handler.SimpleMappingExceptionResolver - Resolving exception from handler [public org.smart.fms.backend.domain.Acknowledgement org.smart.fms.backend.controller.StopsController.post(org.springframework.ui.ModelMap,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String) throws java.io.IOException]: org.springframework.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0; nested exception is javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0 2014-04-25 05:41:27,076 [http-bio-8080-exec-7] DEBUG org.springframework.web.servlet.handler.SimpleMappingExceptionResolver - Resolving to default view 'uncaughtException' for exception of type [org.springframework.jms.InvalidClientIDException] 2014-04-25 05:41:27,076 [http-bio-8080-exec-7] DEBUG org.springframework.web.servlet.handler.SimpleMappingExceptionResolver - Exposing Exception as model attribute 'exception' 2014-04-25 05:41:27,076 [http-bio-8080-exec-7] DEBUG org.springframework.web.servlet.DispatcherServlet - Handler execution resulted in exception - forwarding to resolved error view: ModelAndView: reference to view with name 'uncaughtException'; model is {exception=org.springframework.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0; nested exception is javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0} org.springframework.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0; nested exception is javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0 at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:282) at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:534) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:612) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:604) at org.smart.fms.backend.services.algorithms.StopsRequestHandlerImpl.sendMessage_aroundBody0(StopsRequestHandlerImpl.java:146) at org.smart.fms.backend.services.algorithms.StopsRequestHandlerImpl$AjcClosure1.run(StopsRequestHandlerImpl.java:1) at org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect.ajc$around$org_springframework_scheduling_aspectj_AbstractAsyncExecutionAspect$1$6c004c3eproceed(AbstractAsyncExecutionAspect.aj:1) at org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect.ajc$around$org_springframework_scheduling_aspectj_AbstractAsyncExecutionAspect$1$6c004c3e(AbstractAsyncExecutionAspect.aj:54) at org.smart.fms.backend.services.algorithms.StopsRequestHandlerImpl.sendMessage(StopsRequestHandlerImpl.java:138) at org.smart.fms.backend.services.algorithms.StopsRequestHandlerImpl.processPOSTRequests(StopsRequestHandlerImpl.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) at com.sun.proxy.$Proxy26.processPOSTRequests(Unknown Source) at org.smart.fms.backend.controller.StopsController.post(StopsController.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0 at org.apache.activemq.broker.region.RegionBroker.addConnection(RegionBroker.java:243) at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85) at org.apache.activemq.advisory.AdvisoryBroker.addConnection(AdvisoryBroker.java:78) at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85) at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85) at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91) at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:696) at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:137) at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:311) at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:185) at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69) at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:219) at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122) at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43) ... 3 more Please provide some insight on how to fix this issue. Let me know if you need any further information.

    SpringSource Issue Tracker | 3 years ago | Ajinkya Ghorpade
    org.springframework.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0; nested exception is javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0
  3. 0

    I’m trying to create a durable topic for asynchronous message processing. Following are the commands from log.roo -> jms setup --provider ACTIVEMQ_IN_MEMORY --destinationType DURABLE_TOPIC focus --class ~.services.algorithms.StopsRequestHandlerImpl jms listener class --class ~.services.messaging.CreateStopsTopicListener --destinationType DURABLE_TOPIC --destinationName CreateStopsTopic focus --class ~.services.algorithms.StopsRequestHandlerImpl field jms template --fieldName jmsTemplate --async true --class ~.services.algorithms.StopsRequestHandlerImpl Snapshot of the applicationContext-jms.xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:amq="http://activemq.apache.org/schema/core" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:jms="http://www.springframework.org/schema/jms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.1.xsd"> <!-- Embedded ActiveMQ Broker JMX MBean server enabled by default, access via: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi --> <amq:broker persistent="false" useJmx="true" destroyApplicationContextOnStop="true" start="false"> <amq:transportConnectors> <amq:transportConnector uri="tcp://localhost:61616"/> </amq:transportConnectors> </amq:broker> <!-- JMS ConnectionFactory to use for ActiveMQ, configuring the embedded broker using XML --> <amq:connectionFactory brokerURL="vm://localhost" id="jmsFactory" clientID="stops" copyMessageOnSend="true" useBeanNameAsClientIdPrefix="true" checkForDuplicates="true" /> <!-- JMS ConnectionFactory to use for Spring JMS template --> <bean class="org.springframework.jms.connection.CachingConnectionFactory" id="cachingConnectionFactory"> <property name="targetConnectionFactory"> <ref local="jmsFactory"/> </property> </bean> <!-- Spring JMS Template --> <bean class="org.springframework.jms.core.JmsTemplate" id="jmsTemplate"> <!-- lets wrap in a pool to avoid creating a connection per send --> <property name="connectionFactory" ref="cachingConnectionFactory"/> <property name="defaultDestination" ref="CreateStopsTopic" /> </bean> <amq:topic id="CreateStopsTopic" physicalName="CreateStopsTopic" /> <jms:listener-container connection-factory="jmsFactory" destination-type="durableTopic" cache="connection" concurrency="10" client-id="stops"> <jms:listener destination="CreateStopsTopic" method="onMessage" ref="createStopsTopicListener" subscription="CreateStopsTopic" /> </jms:listener-container> <bean class="org.smart.fms.backend.services.messaging.CreateStopsTopicListener" id="createStopsTopicListener"/> </beans> Problem:- Whenever a message is sent I receive following exception - 2014-04-25 05:41:27,075 [http-bio-8080-exec-7] DEBUG org.springframework.web.servlet.handler.SimpleMappingExceptionResolver - Resolving exception from handler [public org.smart.fms.backend.domain.Acknowledgement org.smart.fms.backend.controller.StopsController.post(org.springframework.ui.ModelMap,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String) throws java.io.IOException]: org.springframework.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0; nested exception is javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0 2014-04-25 05:41:27,076 [http-bio-8080-exec-7] DEBUG org.springframework.web.servlet.handler.SimpleMappingExceptionResolver - Resolving to default view 'uncaughtException' for exception of type [org.springframework.jms.InvalidClientIDException] 2014-04-25 05:41:27,076 [http-bio-8080-exec-7] DEBUG org.springframework.web.servlet.handler.SimpleMappingExceptionResolver - Exposing Exception as model attribute 'exception' 2014-04-25 05:41:27,076 [http-bio-8080-exec-7] DEBUG org.springframework.web.servlet.DispatcherServlet - Handler execution resulted in exception - forwarding to resolved error view: ModelAndView: reference to view with name 'uncaughtException'; model is {exception=org.springframework.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0; nested exception is javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0} org.springframework.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0; nested exception is javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0 at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:282) at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:534) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:612) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:604) at org.smart.fms.backend.services.algorithms.StopsRequestHandlerImpl.sendMessage_aroundBody0(StopsRequestHandlerImpl.java:146) at org.smart.fms.backend.services.algorithms.StopsRequestHandlerImpl$AjcClosure1.run(StopsRequestHandlerImpl.java:1) at org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect.ajc$around$org_springframework_scheduling_aspectj_AbstractAsyncExecutionAspect$1$6c004c3eproceed(AbstractAsyncExecutionAspect.aj:1) at org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect.ajc$around$org_springframework_scheduling_aspectj_AbstractAsyncExecutionAspect$1$6c004c3e(AbstractAsyncExecutionAspect.aj:54) at org.smart.fms.backend.services.algorithms.StopsRequestHandlerImpl.sendMessage(StopsRequestHandlerImpl.java:138) at org.smart.fms.backend.services.algorithms.StopsRequestHandlerImpl.processPOSTRequests(StopsRequestHandlerImpl.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) at com.sun.proxy.$Proxy26.processPOSTRequests(Unknown Source) at org.smart.fms.backend.controller.StopsController.post(StopsController.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0 at org.apache.activemq.broker.region.RegionBroker.addConnection(RegionBroker.java:243) at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85) at org.apache.activemq.advisory.AdvisoryBroker.addConnection(AdvisoryBroker.java:78) at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85) at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85) at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91) at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:696) at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:137) at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:311) at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:185) at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69) at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:219) at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122) at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43) ... 3 more Please provide some insight on how to fix this issue. Let me know if you need any further information.

    SpringSource Issue Tracker | 3 years ago | Ajinkya Ghorpade
    org.springframework.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0; nested exception is javax.jms.InvalidClientIDException: Broker: localhost - Client: stops already connected from vm://localhost#0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    servicemix 5.3.0 trouble with jms connection to activemq : "already connected from"

    servicemix-users | 2 years ago | Sylvain Mougenot
    javax.jms.InvalidClientIDException: Broker: amq-broker - Client: ID:vSmxInt1-51774-1416304941057-2:6 already connected from vm://amq-broker#10
  6. 0

    RE: servicemix 5.3.0 trouble with jms connection to activemq : "already connected from"

    servicemix-users | 2 years ago | Jean-Baptiste Onofré
    javax.jms.InvalidClientIDException: Broker: amq-broker - Client: ID:vSmxInt1-51774-1416304941057-2:6 already connected from vm://amq-broker#10

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.jms.InvalidClientIDException

      Broker: localhost - Client: stops already connected from vm://localhost#0

      at org.apache.activemq.broker.region.RegionBroker.addConnection()
    2. ActiveMQ :: Broker
      TransportConnection.processAddConnection
      1. org.apache.activemq.broker.region.RegionBroker.addConnection(RegionBroker.java:243)
      2. org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85)
      3. org.apache.activemq.advisory.AdvisoryBroker.addConnection(AdvisoryBroker.java:78)
      4. org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85)
      5. org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85)
      6. org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      7. org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:696)
      7 frames
    3. ActiveMQ :: Core
      ConnectionInfo.visit
      1. org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:137)
      1 frame
    4. ActiveMQ :: Broker
      TransportConnection$1.onCommand
      1. org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:311)
      2. org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:185)
      2 frames
    5. AMQ HTTP
      TransportFilter.onCommand
      1. org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116)
      2. org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
      2 frames
    6. ActiveMQ :: Broker
      VMTransport.iterate
      1. org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:219)
      1 frame
    7. ActiveMQ :: Core
      PooledTaskRunner$1.run
      1. org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
      2. org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
      2 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:744)
      3 frames