4 Replies Latest reply on May 20, 2014 8:36 AM by Shiv Dixit

    Failure in browsing queue message in JBoss Fuse ESB 6.0's A-MQ Console

    Shiv Dixit Newbie

      Hi,

      I lately noticed that sometimes browsing queue messages in JBoss Fuse ESB 6.0's A-MQ Console fails with below exception details. However, if I restart Fuse container, it is fixed. What is the fix for this issue?

       

      Default admin user is set as per Fuse documentation to enable remote user for Karaf Web Console and Activemq Web Console.

       

      Thanks

      Shiv

       

      09:40:46,563 | WARN  | qtp52302903-160  | ServletHandler                   | 93 - org.eclipse.jetty.util - 7.6.7.v20120910 | /activemqweb/browse.jsp

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queueBrowser' defined in ServletContext resource [/WEB-INF/webconsole-query.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.web.QueueBrowseQuery]: Constructor threw exception; nested exception is javax.jms.JMSSecurityException: User name [karaf] or password is invalid.

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:927)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:332)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:43)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:328)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.web.filter.ApplicationContextFilter$2.get(ApplicationContextFilter.java:178)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at javax.el.MapELResolver.getValue(MapELResolver.java:196)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at com.sun.el.parser.AstValue.getValue(AstValue.java:138)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at org.apache.jsp.browse_jsp._jspx_meth_form_short_0(org.apache.jsp.browse_jsp:100)[file:/E:/Fuse/jboss-fuse-6.0.0.redhat-024/data/tmp/.paxweb8969900083714742823/activemqweb/:]

        at org.apache.jsp.browse_jsp._jspService(org.apache.jsp.browse_jsp:66)[file:/E:/Fuse/jboss-fuse-6.0.0.redhat-024/data/tmp/.paxweb8969900083714742823/activemqweb/:]

        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[98:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]

        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[98:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]

        at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:132)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:127)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at org.ops4j.pax.web.jsp.JspServletWrapper.service(JspServletWrapper.java:124)[231:org.ops4j.pax.web.pax-web-jsp:1.1.11]

        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

        at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

        at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:102)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

        at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

        at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:193)[103:org.ops4j.pax.web.pax-web-runtime:1.1.11]

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[101:org.ops4j.pax.web.pax-web-jetty:1.1.11]

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521)[85:org.eclipse.jetty.security:7.6.7.v20120910]

        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[101:org.ops4j.pax.web.pax-web-jetty:1.1.11]

        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)[101:org.ops4j.pax.web.pax-web-jetty:1.1.11]

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.eclipse.jetty.server.Server.handle(Server.java:363)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)[82:org.eclipse.jetty.http:7.6.7.v20120910]

        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[82:org.eclipse.jetty.http:7.6.7.v20120910]

        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[87:org.eclipse.jetty.server:7.6.7.v20120910]

        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)[84:org.eclipse.jetty.io:7.6.7.v20120910]

        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)[84:org.eclipse.jetty.io:7.6.7.v20120910]

        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[93:org.eclipse.jetty.util:7.6.7.v20120910]

        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[93:org.eclipse.jetty.util:7.6.7.v20120910]

        at java.lang.Thread.run(Thread.java:745)[:1.7.0_55]

      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.web.QueueBrowseQuery]: Constructor threw exception; nested exception is javax.jms.JMSSecurityException: User name [karaf] or password is invalid.

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        ... 66 more

      Caused by: javax.jms.JMSSecurityException: User name [karaf] or password is invalid.

        at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:52)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1391)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1496)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:524)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.web.SessionPool.getConnection(SessionPool.java:49)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.web.SessionPool.createSession(SessionPool.java:114)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.web.SessionPool.borrowSession(SessionPool.java:93)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.web.QueueBrowseQuery.<init>(QueueBrowseQuery.java:40)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_55]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_55]

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_55]

        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_55]

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        ... 68 more

      Caused by: java.lang.SecurityException: User name [karaf] or password is invalid.

        at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:80)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:766)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:79)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:139)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:329)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:184)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:288)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        ... 1 more

      Caused by: java.lang.Throwable: javax.security.auth.login.FailedLoginException: login failed

        at org.apache.karaf.jaas.modules.properties.PropertiesLoginModule.login(PropertiesLoginModule.java:92)

        at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83)[karaf-jaas-boot.jar:]

        at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_55]

        at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_55]

        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:762)

        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)

        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690)

        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688)

        at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_55]

        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687)

        at javax.security.auth.login.LoginContext.login(LoginContext.java:595)

        at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:73)[238:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        ... 13 more