0 Replies Latest reply on Jan 11, 2013 12:20 PM by Leonardo Martins de Oliveira

    NullPointerException in ServiceController - jboss 4.2.3

    Leonardo Martins de Oliveira Newbie

      I am having a problem trying to invoke a MBean Operation at ServiceController located in jmx-console.

       

      The error presented is this:

       

      java.util.List listDeployed()

      MBean Operation.

       

      2013-01-11 14:26:09,463 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[jsp]] Disabling the response for futher output

      2013-01-11 14:26:18,188 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[jsp]] Disabling the response for futher output

      2013-01-11 14:26:19,871 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[jsp]] Disabling the response for futher output

      2013-01-11 14:26:22,549 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[jsp]] Disabling the response for futher output

      2013-01-11 14:26:26,336 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[HtmlAdaptor]] Servlet.service() for servlet HtmlAdaptor threw exception

      1. javax.management.RuntimeMBeanException

      at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:176)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)

      at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)

      at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:276)

      at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)

      at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

      at java.lang.Thread.run(Thread.java:811)

      Caused by:

      1. java.lang.NullPointerException

      at java.util.LinkedList.toArray(LinkedList.java:742)

      at java.util.ArrayList.<init>(ArrayList.java:162)

      at org.jboss.system.ServiceController.listDeployed(ServiceController.java:128)

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

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:618)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      ... 30 more

       

       

       

      I don't know what might be causing this error,could help me?
      Thanks;