Jean-Baptiste Onofré created AMQ-5862:
-----------------------------------------

             Summary: JMSException when sending a message in the WebConsole
                 Key: AMQ-5862
                 URL: https://issues.apache.org/jira/browse/AMQ-5862
             Project: ActiveMQ
          Issue Type: Bug
          Components: webconsole
    Affects Versions: 5.11.1
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: 5.11.2


When sending a message to a destination in the webconsole, a JMSException is 
thrown:

{code}
javax.jms.JMSException: Cannot add a producer to a session that had not been 
registered: ID:latitude-58030-1435119975729-1:1:1
        at 
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:54)
        at 
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1420)
        at 
org.apache.activemq.ActiveMQSession.syncSendPacket(ActiveMQSession.java:2018)
        at 
org.apache.activemq.ActiveMQMessageProducer.<init>(ActiveMQMessageProducer.java:124)
        at 
org.apache.activemq.ActiveMQSession.createProducer(ActiveMQSession.java:1048)
        at org.apache.activemq.web.WebClient.getProducer(WebClient.java:307)
        at org.apache.activemq.web.WebClient.send(WebClient.java:240)
        at 
org.apache.activemq.web.controller.SendMessage.sendMessages(SendMessage.java:77)
        at 
org.apache.activemq.web.controller.SendMessage.handleRequest(SendMessage.java:56)
        at 
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919)
        at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
        at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
        at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:855)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at 
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
        at org.apache.activemq.web.AuditFilter.doFilter(AuditFilter.java:59)
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at 
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at 
org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:102)
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        at 
org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
        at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at 
org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:267)
        at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at 
org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:497)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
        at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
        at 
org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Cannot add a producer to a session 
that had not been registered: ID:latitude-58030-1435119975729-1:1:1
        at 
org.apache.activemq.broker.TransportConnection.processAddProducer(TransportConnection.java:599)
        at org.apache.activemq.command.ProducerInfo.visit(ProducerInfo.java:108)
        at 
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:334)
        at 
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:188)
        at 
org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
        at 
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
        at 
org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:270)
        at 
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
        at 
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
        at 
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to