2 Replies Latest reply on Jun 2, 2014 1:09 AM by Shiv Dixit

    Error in browsing messages in JBoss A-MQ 6.0 Webconsole

    Shiv Dixit Newbie

      Hi,

      I am running single JBoss A-MQ 6.0 broker instance with default memory configuration. One queue has 200 messages and when I try to browse these messages, I am getting below error.

       

      If is due to limited default memory setup? What are the files I need to edit in case I have to change memory settings (min/max heap, perm gen etc.) I see these settings are there in various files like start.bat, karaf.bat etc.

       

      Thanks

      Shiv

       

      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 java.lang.NullPointerException

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)[128: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-a-mq-6.0.0.redhat-024/data/tmp/.paxweb8203739443184536992/activemqweb/:]

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

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

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

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

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

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

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

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

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

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

        at org.ops4j.pax.web.jsp.JspServletWrapper.service(JspServletWrapper.java:124)[128: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)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)[133: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)[133: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)[133: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)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)[133: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)[123: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)[124:org.ops4j.pax.web.pax-web-jetty:1.1.11]

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

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

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

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

        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[124: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)[81:org.eclipse.jetty.server:7.6.7.v20120910]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[75: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 java.lang.NullPointerException

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

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

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

        ... 66 more

      Caused by: java.lang.NullPointerException

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

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

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

        at org.apache.activemq.web.QueueBrowseQuery.<init>(QueueBrowseQuery.java:40)[133: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)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

        ... 68 more