Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is Tomcat trying to tell me?

 
William Stafford
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm testing a Servlet app whose source code has recently undergone significant modification. I was expecting problems when the testing starting and I certainly got them. However, the exception that is being logged tells me nothing and I don't know where to start looking for the problem.

I get a null pointer exception (stack trace below) for any app url. If I access localhost:8080 Tomcat responds normally.

Can anyone give me an idea of what the null pointer exception and stack trace below indicate?

Thanks for any advice or guidance,
-=beeky


2008-06-02 09:46:44 WebappLoader[/webdav]: Deploying class repositories to work directory C:\Program Files\Apache Software Foundation\Tomcat 4.1\work\Standalone\localhost\webdav
2008-06-02 09:46:44 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom
2008-06-02 09:46:44 StandardManager[/webdav]: Seeding of random number generator has been completed
2008-06-02 09:46:44 StandardWrapper[/webdav efault]: Loading container servlet default
2008-06-02 09:46:44 StandardWrapper[/webdav:invoker]: Loading container servlet invoker
2008-06-02 09:47:30 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at filter.ThrowURLFilter.doFilter(ThrowURLFilter.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:138)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2459)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:132)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:126)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
 
William Stafford
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has got to be the quickest location of a problem I have ever experienced. A developer just called me and let me know that the stack trace is pointing to an application class. I thought filter.ThrowFilter.doFilter was a Tomcat class. It turns out to be part of a test harness that "throws" urls to another server for reporting purposes.

Sorry if I wasted anyones time.

-=beeky
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is ThrowUrlFilter part of your app?


java.lang.NullPointerException
at filter.ThrowURLFilter.doFilter(ThrowURLFilter.java:54)

If so, I'd start by looking at line 54.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic