org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource http://conf/activemq.xml; nested exception is java.io.FileNotFoundException: class path resource http://conf/activemq.xml] cannot be opened because it does not exist with root cause java.io.FileNotFoundException: class path resource http://conf/activemq.xml cannot be opened because it does not exist

tomcatexpert.com | 2 months ago
  1. 0

    Integrating ActiveMQ With Apache Tomcat using Global JNDI | TomcatExpert

    tomcatexpert.com | 2 months ago
    org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource http://conf/activemq.xml; nested exception is java.io.FileNotFoundException: class path resource http://conf/activemq.xml] cannot be opened because it does not exist with root cause java.io.FileNotFoundException: class path resource http://conf/activemq.xml cannot be opened because it does not exist
  2. 0

    Currently there's a small window between jetty starting up with the broker websocket routes listening, and the broker service actually being started and capable of routing messages. Externally this looks like: {code} D, [2016-02-11T14:54:22.274223 #43424] DEBUG -- : [:connect, "wss://vy64oh2eahqazp2.delivery.puppetlabs.net:8142/pcp/"] I, [2016-02-11T14:54:23.216230 #43424] INFO -- : [:open] D, [2016-02-11T14:54:23.216400 #43424] DEBUG -- : [:send, #<PCP::Message:0x007f86c88e3680 @chunks=["", ""], @envelope={:id=>"bbb4d40d-7bf0-4600-a276-5e0d1e3e25d9", :message_type=>"http://puppetlabs.com/associate_request", :sender=>"pcp://controller01.example.com/ruby-pcp-client-43424", :targets=>["pcp:///server"], :expires=>"2016-02-11T14:54:26Z"}>] D, [2016-02-11T14:54:23.444589 #43424] DEBUG -- : [:message, :decoded, #<PCP::Message:0x007f86c88e0a98 @chunks=["{\"id\":\"bbb4d40d-7bf0-4600-a276-5e0d1e3e25d9\",\"success\":true}", ""], @envelope={:id=>"d9ad8070-621e-4663-ab4c-1f42c3d34b36", :targets=>["pcp://controller01.example.com/ruby-pcp-client-43424"], :message_type=>"http://puppetlabs.com/associate_response", :sender=>"pcp:///server", :expires=>"2016-02-11T14:54:23.404Z"}>] D, [2016-02-11T14:54:23.444915 #43424] DEBUG -- : [:send, #<PCP::Message:0x007f86c88da738 @chunks=["{\"query\":[\"pcp://client01.example.com/agent\"]}", ""], @envelope={:id=>"5d59a016-5bd6-4f0f-a400-cdffcd5e1a8f", :message_type=>"http://puppetlabs.com/inventory_request", :targets=>["pcp:///server"], :expires=>"2016-02-11T14:54:33Z"}>] I, [2016-02-11T14:54:23.839668 #43424] INFO -- : [:close, 1011, "UncategorizedJmsException"] RuntimeError: Didn't receive a response for PCP inventory request {code} And shows up in the broker logs as so: {code} 2016-02-11 06:54:18,782 INFO [main] [p.t.s.w.jetty9-service] Initializing web server(s). 2016-02-11 06:54:18,808 INFO [main] [p.t.s.n.nrepl-service] Starting nREPL service on 127.0.0.1 port 7888 2016-02-11 06:54:18,830 INFO [main] [p.p.b.service] Initializing broker service 2016-02-11 06:54:18,987 INFO [main] [p.t.s.s.status-service] Registering status callback function for broker-service service 2016-02-11 06:54:18,990 INFO [main] [p.t.s.w.jetty9-service] Starting web server(s). 2016-02-11 06:54:19,075 INFO [main] [p.t.s.w.jetty9-core] Starting web server. 2016-02-11 06:54:19,214 INFO [main] [p.t.s.s.status-service] Registering status service HTTP API at /status 2016-02-11 06:54:19,225 INFO [main] [p.p.b.service] Starting broker service 2016-02-11 06:54:19,241 INFO [main] [o.a.a.s.k.p.PListStore] PListStore:[/opt/puppet-git-repos/pcp-broker/./test-resources/tmp/activemq/localhost/tmp_storage ] started 2016-02-11 06:54:19,243 INFO [main] [o.a.a.b.BrokerService] Using Persistence Adapter: KahaDBPersistenceAdapter[/opt/puppet-git-repos/pcp-broker/./test-resources/tmp/activemq/localhost/KahaDB] 2016-02-11 06:54:20,209 DEBUG [qtp848673493-18] [p.p.b.core] client controller01.example.com connected from /10.32.128.133:63862 2016-02-11 06:54:20,392 TRACE [qtp848673493-19] [p.p.b.core] Message bbb4d40d-7bf0-4600-a276-5e0d1e3e25d9 for ["pcp:///server"] from controller01.example.com /10.32.128.133:63862 2016-02-11 06:54:20,692 TRACE [qtp848673493-20] [p.p.b.core] Message 5d59a016-5bd6-4f0f-a400-cdffcd5e1a8f for ["pcp:///server"] from controller01.example.com /10.32.128.133:63862 2016-02-11 06:54:20,720 TRACE [qtp848673493-20] [p.p.b.core] Authorizing 5328ba07-4a97-4db0-b8df-2ffcb55e6333 for ["pcp://controller01.example.com/ruby-pcp-client-43424"] - true: allow-unauthenticated is true - allowed 2016-02-11 06:54:20,726 TRACE [qtp848673493-20] [p.p.b.activemq] Delivering message 5328ba07-4a97-4db0-b8df-2ffcb55e6333 for ["pcp://controller01.example.com/ruby-pcp-client-43424"] to accept queue 2016-02-11 06:54:20,793 WARN [qtp848673493-20] [p.t.s.w.e.j.p.e.j.w.a.WebSocketAdapter$CertGetter$37c4cf7] Unhandled Error (closing connection) org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Broker named 'localhost' does not exist. at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316) ~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168) ~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469) ~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543) ~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:653) ~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_71] {code} Here we have attempted to queue a message on the "localhost" activemq before it was started, so we get an unhandled Jms exception. Rather than allowing session association, the broker should refuse before it has gone fully through its service lifecycle (start) function.

    JIRA | 10 months ago | Richard Clamp
    org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Broker named 'localhost' does not exist.
  3. 0

    Currently there's a small window between jetty starting up with the broker websocket routes listening, and the broker service actually being started and capable of routing messages. Externally this looks like: {code} D, [2016-02-11T14:54:22.274223 #43424] DEBUG -- : [:connect, "wss://vy64oh2eahqazp2.delivery.puppetlabs.net:8142/pcp/"] I, [2016-02-11T14:54:23.216230 #43424] INFO -- : [:open] D, [2016-02-11T14:54:23.216400 #43424] DEBUG -- : [:send, #<PCP::Message:0x007f86c88e3680 @chunks=["", ""], @envelope={:id=>"bbb4d40d-7bf0-4600-a276-5e0d1e3e25d9", :message_type=>"http://puppetlabs.com/associate_request", :sender=>"pcp://controller01.example.com/ruby-pcp-client-43424", :targets=>["pcp:///server"], :expires=>"2016-02-11T14:54:26Z"}>] D, [2016-02-11T14:54:23.444589 #43424] DEBUG -- : [:message, :decoded, #<PCP::Message:0x007f86c88e0a98 @chunks=["{\"id\":\"bbb4d40d-7bf0-4600-a276-5e0d1e3e25d9\",\"success\":true}", ""], @envelope={:id=>"d9ad8070-621e-4663-ab4c-1f42c3d34b36", :targets=>["pcp://controller01.example.com/ruby-pcp-client-43424"], :message_type=>"http://puppetlabs.com/associate_response", :sender=>"pcp:///server", :expires=>"2016-02-11T14:54:23.404Z"}>] D, [2016-02-11T14:54:23.444915 #43424] DEBUG -- : [:send, #<PCP::Message:0x007f86c88da738 @chunks=["{\"query\":[\"pcp://client01.example.com/agent\"]}", ""], @envelope={:id=>"5d59a016-5bd6-4f0f-a400-cdffcd5e1a8f", :message_type=>"http://puppetlabs.com/inventory_request", :targets=>["pcp:///server"], :expires=>"2016-02-11T14:54:33Z"}>] I, [2016-02-11T14:54:23.839668 #43424] INFO -- : [:close, 1011, "UncategorizedJmsException"] RuntimeError: Didn't receive a response for PCP inventory request {code} And shows up in the broker logs as so: {code} 2016-02-11 06:54:18,782 INFO [main] [p.t.s.w.jetty9-service] Initializing web server(s). 2016-02-11 06:54:18,808 INFO [main] [p.t.s.n.nrepl-service] Starting nREPL service on 127.0.0.1 port 7888 2016-02-11 06:54:18,830 INFO [main] [p.p.b.service] Initializing broker service 2016-02-11 06:54:18,987 INFO [main] [p.t.s.s.status-service] Registering status callback function for broker-service service 2016-02-11 06:54:18,990 INFO [main] [p.t.s.w.jetty9-service] Starting web server(s). 2016-02-11 06:54:19,075 INFO [main] [p.t.s.w.jetty9-core] Starting web server. 2016-02-11 06:54:19,214 INFO [main] [p.t.s.s.status-service] Registering status service HTTP API at /status 2016-02-11 06:54:19,225 INFO [main] [p.p.b.service] Starting broker service 2016-02-11 06:54:19,241 INFO [main] [o.a.a.s.k.p.PListStore] PListStore:[/opt/puppet-git-repos/pcp-broker/./test-resources/tmp/activemq/localhost/tmp_storage ] started 2016-02-11 06:54:19,243 INFO [main] [o.a.a.b.BrokerService] Using Persistence Adapter: KahaDBPersistenceAdapter[/opt/puppet-git-repos/pcp-broker/./test-resources/tmp/activemq/localhost/KahaDB] 2016-02-11 06:54:20,209 DEBUG [qtp848673493-18] [p.p.b.core] client controller01.example.com connected from /10.32.128.133:63862 2016-02-11 06:54:20,392 TRACE [qtp848673493-19] [p.p.b.core] Message bbb4d40d-7bf0-4600-a276-5e0d1e3e25d9 for ["pcp:///server"] from controller01.example.com /10.32.128.133:63862 2016-02-11 06:54:20,692 TRACE [qtp848673493-20] [p.p.b.core] Message 5d59a016-5bd6-4f0f-a400-cdffcd5e1a8f for ["pcp:///server"] from controller01.example.com /10.32.128.133:63862 2016-02-11 06:54:20,720 TRACE [qtp848673493-20] [p.p.b.core] Authorizing 5328ba07-4a97-4db0-b8df-2ffcb55e6333 for ["pcp://controller01.example.com/ruby-pcp-client-43424"] - true: allow-unauthenticated is true - allowed 2016-02-11 06:54:20,726 TRACE [qtp848673493-20] [p.p.b.activemq] Delivering message 5328ba07-4a97-4db0-b8df-2ffcb55e6333 for ["pcp://controller01.example.com/ruby-pcp-client-43424"] to accept queue 2016-02-11 06:54:20,793 WARN [qtp848673493-20] [p.t.s.w.e.j.p.e.j.w.a.WebSocketAdapter$CertGetter$37c4cf7] Unhandled Error (closing connection) org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Broker named 'localhost' does not exist. at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316) ~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168) ~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469) ~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543) ~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:653) ~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_71] {code} Here we have attempted to queue a message on the "localhost" activemq before it was started, so we get an unhandled Jms exception. Rather than allowing session association, the broker should refuse before it has gone fully through its service lifecycle (start) function.

    JIRA | 10 months ago | Richard Clamp
    org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Broker named 'localhost' does not exist.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Camel - Users - activemq component MaxConnection retry

    nabble.com | 1 year ago
    org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason:         at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:308)
  6. 0

    Camel - Users - activemq component MaxConnection retry

    nabble.com | 1 year ago
    org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason: java.lang.IllegalArgumentException: Invalid connect parameters: {broker.maxReconnectAttempts=3}

    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. org.springframework.jms.UncategorizedJmsException

      Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource http://conf/activemq.xml; nested exception is java.io.FileNotFoundException: class path resource http://conf/activemq.xml] cannot be opened because it does not exist with root cause java.io.FileNotFoundException: class path resource http://conf/activemq.xml cannot be opened because it does not exist

      at org.springframework.core.io.ClassPathResource.getInputStream()
    2. Spring Core
      ClassPathResource.getInputStream
      1. org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)
      1 frame
    3. Spring Beans
      XmlBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
      2. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
      2 frames
    4. Apache XBean :: Spring
      ResourceXmlApplicationContext.loadBeanDefinitions
      1. org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)
      1 frame