3 Replies Latest reply on Apr 5, 2013 6:20 AM by arun2arunraj

    MySql Plugin ERROR :

    arun2arunraj

      Hi Developers,

       

          I have just monidified the mysql inbuilt plugin And built it up. When I have deployed it, It is putting errors like following. I cant discover my MYSql Server, even in manual mode.

       

      Help me to get pass this error. Thanks in advance.

       

       

      2013-04-04 15:11:29,460 INFO  [org.rhq.enterprise.server.core.plugin.ProductPluginDeployer] Plugin metadata updates are complete for [1] plugins: [Solartis-MySql]
      2013-04-04 15:14:19,654 WARN  [org.rhq.enterprise.gui.coregui.server.gwt.ResourceGWTServiceImpl] Sending exception to client: [1365068659590] 
      org.rhq.core.clientapi.agent.PluginContainerException: Failed to add resource with type [Solartis MySQL Server] and parent resource id [10001]
          at org.rhq.core.pc.inventory.InventoryManager.manuallyAddResource(InventoryManager.java:885)
          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:601)
          at org.rhq.enterprise.communications.command.impl.remotepojo.server.RemotePojoInvocationCommandService.execute(RemotePojoInvocationCommandService.java:184)
          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:601)
          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
          at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:235)
          at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
          at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:250)
          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
          at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791)
          at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:305)
          at $Proxy0.execute(Unknown Source)
          at org.rhq.enterprise.communications.command.server.CommandProcessor.handleIncomingInvocationRequest(CommandProcessor.java:290)
          at org.rhq.enterprise.communications.command.server.CommandProcessor.invoke(CommandProcessor.java:184)
          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:809)
          at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:608)
          at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:406)
          at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:173)
      Caused by: java.lang.reflect.UndeclaredThrowableException: [Warning] null
          ... 25 more
      Caused by: java.lang.Exception: [Warning] Discovery component invocation failed.
          at org.rhq.core.util.exception.WrappedRemotingException.getCause(WrappedRemotingException.java:121)
          at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:706)
          at java.lang.Throwable.printStackTrace(Throwable.java:666)
          at java.lang.Throwable.printStackTrace(Throwable.java:720)
          at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)
          at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
          at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
          at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
          at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
          at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
          at org.apache.log4j.Category.callAppenders(Category.java:203)
          at org.apache.log4j.Category.forcedLog(Category.java:388)
          at org.apache.log4j.Category.log(Category.java:853)
          at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.apache.commons.logging.impl.Log4jProxy.log(Log4jProxy.java:301)
          at org.apache.commons.logging.impl.Log4jProxy.warn(Log4jProxy.java:273)
          at org.apache.commons.logging.impl.Log4JLogger.warn(Log4JLogger.java:185)
          at org.rhq.enterprise.gui.coregui.server.gwt.AbstractGWTServiceImpl.getExceptionToThrowToClient(AbstractGWTServiceImpl.java:130)
          at org.rhq.enterprise.gui.coregui.server.gwt.AbstractGWTServiceImpl.getExceptionToThrowToClient(AbstractGWTServiceImpl.java:111)
          at org.rhq.enterprise.gui.coregui.server.gwt.ResourceGWTServiceImpl.manuallyAddResource(ResourceGWTServiceImpl.java:438)
          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:601)
          at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
          at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
          at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
          at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
          at org.rhq.enterprise.gui.coregui.server.gwt.AbstractGWTServiceImpl.service(AbstractGWTServiceImpl.java:89)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at sun.reflect.GeneratedMethodAccessor218.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
          at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
          at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
          at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
          at org.rhq.enterprise.gui.coregui.server.filter.CacheControlFilter.doFilter(CacheControlFilter.java:70)
          at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
          at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
          at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
          at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
          at org.rhq.helpers.rtfilter.filter.RtFilter.doFilter(RtFilter.java:125)
          at sun.reflect.GeneratedMethodAccessor217.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
          at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
          at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
          at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at sun.reflect.GeneratedMethodAccessor216.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
          at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
          at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
          at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
          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.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:722)
      Caused by: java.lang.NullPointerException: [Warning] null
          at org.rhq.core.util.exception.WrappedRemotingException.getCause(WrappedRemotingException.java:121)
          at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:706)
          at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:708)
          ... 99 more
      
        • 1. Re: MySql Plugin ERROR :
          arun2arunraj

          Hi Developers,

           

              Please help me to fix this problem.

           

          Regards,

          ArunRaj

          • 2. Re: MySql Plugin ERROR :
            mazz

            You posted the stack trace that is on the server (looks like you tried to manually add a resource from the GUI). Well, that failed but the error really happened in the agent - its a null pointer exception. Go look in your agent logs and you will probably see more useful error messages because that's where the code really failed. I suspect the code you touched has a bug and is causing a null pointer exception.

            • 3. Re: MySql Plugin ERROR :
              arun2arunraj

              Hi John,

               

                  you are really great. Can you share your idea behind this bug finding. Because, You have not see my code. But You said error is in Agent side. It is awesome.

               

              Please tell me how to find the error is a stacktrace report and Which log will help us to find the error ?

               

               

              Regards,

              ArunRaj