0 Replies Latest reply on May 23, 2006 10:34 AM by David Visicchio

    NullPointerException JasperLoader.loadClass

    David Visicchio Newbie

      Environment: Linux RedHat
      J2SE 1.4.2_07
      JBoss 3.2.3


      I have Jboss server in production where it has to work always.
      Sometimes I get the following exception calling some jsp of some web
      application (jsp and application are choosen random)

      2006-05-23 15:12:02,880 ERROR [org.jboss.web.localhost.Engine]
      StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException
      at
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
      at
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at
      org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
      at
      org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
      at java.security.AccessController.doPrivileged(Native Method)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
      at
      it.senato.menu.web.ProfilingFilter.doFilter(ProfilingFilter.java:51)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
      at
      org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
      at
      org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
      at java.security.AccessController.doPrivileged(Native Method)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at
      org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at
      org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
      at
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
      at
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
      at
      org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
      at
      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
      at java.lang.Thread.run(Thread.java:534)
      2006-05-23 15:12:02,891 ERROR [org.jboss.web.localhost.Engine] -----
      Root Cause -----
      java.lang.NullPointerException
      at
      org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:179)
      at
      org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      at org.apache.jsp.menubar_jsp._jspService(Unknown Source)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
      at
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at
      org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
      at
      org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
      at java.security.AccessController.doPrivileged(Native Method)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
      at
      it.senato.menu.web.ProfilingFilter.doFilter(ProfilingFilter.java:51)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
      at
      org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
      at
      org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
      at java.security.AccessController.doPrivileged(Native Method)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at
      org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at
      org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
      at
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
      at
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
      at
      org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
      at
      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
      at java.lang.Thread.run(Thread.java:534)

      If I redeploy the web application this error disappears