11 Replies Latest reply on Oct 15, 2008 5:28 AM by rks_86

    java.lang.NullPointerException: Monitor Status Monitor not f

    rks_86

      Hi all,

      I deployed a war file which only contains jar files.
      It got deployed with out any error msges. only debug messages found in server.log file.
      All the static contents are handled by apache 2.2.9 with help of mod-jk properies file.
      JBOSS 4.2.3.
      Now the problem is though the same procedure works in Weblogic and Websphere.
      But here it show something like below in my application console.
      These scheduled infolet monitoring is not working givein following error.

      Exception in processing requests to monitor. [java.lang.NullPointerException: Monitor Status Monitor not found

      Do i need to configure something extra in JBoss to make it work as its giving me null pointer exception.


      Thanks,

      Ricky

        • 1. Re: java.lang.NullPointerException: Monitor Status Monitor n
          peterj

          What do you mean by "application console"?

          What were you doing when the error message appeared?

          • 2. Re: java.lang.NullPointerException: Monitor Status Monitor n
            rks_86

            Here Application Console, I mean to say that.
            In our application which we deployed on JBoss4.2.3, we have facility which monitors scheduled infolets status whether they ran on time or not.
            on our application console am getting the null pointer msg that monitor not started.. not in jboss console.
            and the jar file responsible for monitoring is inside the war file.

            Here i feel like some custom configuration i need to make it to work properly.
            I found also no errors inside the server.log file instead of debug msgs.
            Is there any specific JNDI url i need to specify or something like that.

            • 3. Re: java.lang.NullPointerException: Monitor Status Monitor n
              rks_86

              When am clicking on my applications console button to see all the infolets status which it queries from Oracle DB, its showing a null pointer exception like a jar file is missied or not loaded or something like that.

              So I need suggestions ...

              • 4. Re: java.lang.NullPointerException: Monitor Status Monitor n
                peterj

                I am still not clear what your application console is. Is it a stand-alone Java client? Is it part of the web application and thus you access it via a URL in the browser?

                Without knowing how your application console goes about communicating with the web application (or rather with the monitor code embedded within your web application), I have no idea on what to suggest to you.

                • 5. Re: java.lang.NullPointerException: Monitor Status Monitor n
                  rks_86

                  >Is it part of the web application and thus you access it via a URL in the browser? <

                  Yes very true. Its a part of webapplication and I access it via a URL in the browser.

                  • 6. Re: java.lang.NullPointerException: Monitor Status Monitor n
                    peterj

                    Let me see if I have this correct. You have a web application that has a button. When you click on the button instead of getting the expected response you get an NPE.

                    Is there an exception stack trace showing up in the console log? Or is an exception stack trace showing up in the browser? If so, post the full stack trace.

                    If there is no exception stack trace, it probably means that your application is catching the error and handling it in some way (such as displaying an error message). In this case you will have to debug your application to determine where the exception gets thrown and handled and then log the exception.

                    Without an exception stack trace there is not much I can do.

                    • 7. Re: java.lang.NullPointerException: Monitor Status Monitor n
                      rks_86

                      Hi,

                      <You have a web application that has a button> Correct.
                      <When you click on the button instead of getting the expected response you get an NPE. > Correct

                      <Is there an exception stack trace showing up in the console log> Yes Am putting the stack trace found in a fresh log file.

                      <Or is an exception stack trace showing up in the browser> No stack trace in the browser only a single exception
                      "Exception in processing requests to monitor. [java.lang.NullPointerException: Monitor Status Monitor not found "

                      So am posting all the traces found in a fresh new logfile while replicating the same error.

                      10/10/08 16:44:23.758 IST DEBUG (Thread[ajp-0.0.0.0-8009-5,5,jboss]) [DBConnectionPool@49ff3f)] CONSOLE got connection (Database account jdbc:oracle:thin:@si.system.com:1522:10203db;jboss423;*******;[user, password, DATAACCESS, protocol]? null connection=oracle.jdbc.driver.T4CConnection@36a244) (s:null c:null i:null)
                      10/10/08 16:44:23.905 IST ERROR (Thread[ajp-0.0.0.0-8009-5,5,jboss]) [Controller] An exception at resolving dn=Status Monitor, i=1 (s:null c:null i:null)
                      javax.naming.NameNotFoundException: dn=Status Monitor,i=1 not bound
                       at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                       at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
                       at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
                       at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
                       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
                       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
                       at javax.naming.InitialContext.lookup(InitialContext.java:351)
                       at com.system.systemi.server.common.Controller$JNDINaming.resolve(Controller.java:1000)
                       at com.system.systemi.server.common.Controller.getPrivateDistributedComponent(Controller.java:823)
                       at com.system.systemi.server.common.Controller.getDistributedComponent(Controller.java:782)
                       at com.system.systemi.client.servlet.servant.Getsysconsole.producePageData(Getsysconsole.java:122)
                       at com.system.systemi.client.servlet.servant.BaseViewController.serve(BaseViewController.java:497)
                       at com.system.systemi.client.servlet.FrontController.doRequest(FrontController.java:230)
                       at com.system.systemi.client.servlet.FrontController.doGet(FrontController.java:126)
                       at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
                       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.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.ajp.AjpProcessor.process(AjpProcessor.java:437)
                       at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                       at java.lang.Thread.run(Thread.java:595)
                      10/10/08 16:44:23.907 IST ERROR (Thread[ajp-0.0.0.0-8009-5,5,jboss]) [CONSOLE] Exception in processing requests to monitor. (s:null c:null i:null)
                      java.lang.NullPointerException: Monitor Status Monitor not found
                       at com.system.systemi.client.servlet.servant.Getsysconsole.producePageData(Getsysconsole.java:124)
                       at com.system.systemi.client.servlet.servant.BaseViewController.serve(BaseViewController.java:497)
                       at com.system.systemi.client.servlet.FrontController.doRequest(FrontController.java:230)
                       at com.system.systemi.client.servlet.FrontController.doGet(FrontController.java:126)
                       at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
                       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.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.ajp.AjpProcessor.process(AjpProcessor.java:437)
                       at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                       at java.lang.Thread.run(Thread.java:595)
                      10/10/08 16:44:23.908 IST INFO (Thread[ajp-0.0.0.0-8009-5,5,jboss]) [ResourceManager] Res Getsysconsole@en_US(java.lang.ref.SoftReference@a46637 = null (s:null c:null i:null)
                      
                      


                      • 8. Re: java.lang.NullPointerException: Monitor Status Monitor n
                        rks_86

                        could anyone help me in getting it resolved please

                        Ricky

                        • 9. Re: java.lang.NullPointerException: Monitor Status Monitor n
                          jaikiran

                           

                          javax.naming.NameNotFoundException: dn=Status Monitor,i=1 not bound
                          at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                          at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
                          at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
                          at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
                          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
                          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
                          at javax.naming.InitialContext.lookup(InitialContext.java:351)
                          at com.system.systemi.server.common.Controller$JNDINaming.resolve(Controller.java:1000)


                          This exception is coming from the Controller$JNDINaming class belonging to the com.system.systemi.* package. Is that your application? Looks like there is some lookup happening and the jndi-name is incorrect. Can you post your lookup code? And also is the jndi-name that you are passing, correct? And do you have any jndi.properties in your classpath? Can you post its contents?

                          • 10. Re: java.lang.NullPointerException: Monitor Status Monitor n
                            rks_86

                            Hi Jaikiran,
                            Thanks for the reply.
                            I also think so the JNDI Url is not correctly specified.
                            Clould you please provide me the JNDI Url for JBoss 4.2.3 GA

                            Thanks a lot.

                            -Ricky

                            • 11. Re: java.lang.NullPointerException: Monitor Status Monitor n
                              rks_86

                              Hi Jaikiran,

                              Thanks for the reply.
                              I also think the Jndi Url is incorrect.
                              Could you please post the JNDI url required for JBoss4.2.3GA Linux 4.2 AS

                              Thanks a lot

                              -Ricky