Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-577

Master/Slave configuration failover with Apache Camel route

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • JBoss A-MQ 6.0
    • mq-web-console
    • None
    • Hide

      1. Using Apache-MQ standalone in Master/Slave configuration.

      2. Use Apache Camel route that routes messages from one queue, 1_JMS_IN, to another, 1_JMS_OUT (queues set to autocreate).

      3. Send 10 messages (or any certain amount) from 1_JMS_IN, there should now be 10 messages (or the amount you sent) in 1_JMS_OUT.

      4. Connect to the web console, go to the Queues section

      In my runthrough, the web console's queue was completely broken. In a customer's, he was able to view the queue, but did not have any messages in 1_JMS_OUT until he remade the queue.

      Show
      1. Using Apache-MQ standalone in Master/Slave configuration. 2. Use Apache Camel route that routes messages from one queue, 1_JMS_IN, to another, 1_JMS_OUT (queues set to autocreate). 3. Send 10 messages (or any certain amount) from 1_JMS_IN, there should now be 10 messages (or the amount you sent) in 1_JMS_OUT. 4. Connect to the web console, go to the Queues section In my runthrough, the web console's queue was completely broken. In a customer's, he was able to view the queue, but did not have any messages in 1_JMS_OUT until he remade the queue.

      When failing over from master to slave, at least on the web client, it appears that a camel route from one queue to another queue does not process the messages it received. In logs, getting this:

      javax.el.ELException: java.lang.reflect.UndeclaredThrowableException
      at javax.el.BeanELResolver.getValue(BeanELResolver.java:298)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
      at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)
      at org.apache.jsp.queues_jsp._jspx_meth_c_param_0(org.apache.jsp.queues_jsp:291)
      at org.apache.jsp.queues_jsp._jspx_meth_c_url_0(org.apache.jsp.queues_jsp:264)
      at org.apache.jsp.queues_jsp._jspx_meth_c_forEach_0(org.apache.jsp.queues_jsp:173)
      at org.apache.jsp.queues_jsp._jspService(org.apache.jsp.queues_jsp:114)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
      at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
      at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:102)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
      at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
      at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      at org.eclipse.jetty.server.Server.handle(Server.java:363)
      at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)
      at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)
      at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)
      at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
      at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      at java.lang.Thread.run(Thread.java:744)
      Caused by: java.lang.reflect.UndeclaredThrowableException
      at com.sun.proxy.$Proxy38.getName(Unknown Source)
      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 javax.el.BeanELResolver.getValue(BeanELResolver.java:293)
      ... 51 more
      Caused by: javax.management.InstanceNotFoundException: org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=1_JMS_OUT

              gtully@redhat.com Gary Tully
              davidjohnson_jira David Johnson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: