1 Reply Latest reply on May 10, 2003 6:48 AM by Ben Litchfield

    NullPointerException in javax.naming.NameImpl

    Ben Litchfield Newbie

      I randomly get this stack trace in my log file. I am running jboss3.0.6 with tomcat. Has anybody have any clue why this would be?


      [10:40:53,421,Engine] StandardWrapperValve[default]: Servlet.service() for servlet default threw exception
      java.lang.NullPointerException: at javax.naming.NameImpl.(NameImpl.java:250) at
      javax.naming.CompositeName.(CompositeName.java:223) at
      org.apache.naming.resources.WARDirContext.getAttributes(WARDirContext.java:474) at
      org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java:797) at
      org.apache.naming.resources.ProxyDirContext.cacheLoad(ProxyDirContext.java:1473) at
      org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java:1394) at
      org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:300) at
      org.apache.catalina.servlets.DefaultServlet$ResourceInfo.set(DefaultServlet.java:2267) at
      org.apache.catalina.servlets.DefaultServlet$ResourceInfo.(DefaultServlet.java:2219) at
      org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:921) at
      org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506) at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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.doFilter(ApplicationFilterChain.java:193) at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) 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.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:2415) 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:170) 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.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) 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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at
      org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:479)

        • 1. Re: NullPointerException in javax.naming.NameImpl
          Ben Litchfield Newbie

          Ok, I figured out what was causing this problem. I checked the access logs and noticed some that somebody was trying to hack my site which tomcat doesn't like I guess. Damn script kiddies.

          129.21.191.140 - - [09/May/2003:20:51:51 -0500] "GET /kelut-website/scripts/..%5c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 500 4748
          129.21.191.140 - - [09/May/2003:20:51:55 -0500] "GET /kelut-website/scripts/..Á../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 839
          129.21.191.140 - - [09/May/2003:20:51:55 -0500] "GET /kelut-website/scripts/..À¯../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 839
          129.21.191.140 - - [09/May/2003:20:51:55 -0500] "GET /kelut-website/scripts/..Á../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 839
          129.21.191.140 - - [09/May/2003:20:51:56 -0500] "GET /kelut-website/scripts/..%5c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 500 4748
          129.21.191.140 - - [09/May/2003:20:51:58 -0500] "GET /kelut-website/scripts/..%2f../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 500 4748