Solved

The server encountered an internal error () that prevented it from fulfilling this request.

Posted on 2003-10-24
10
2,045 Views
Last Modified: 2008-02-01
Hi, I tried running the progrm that worked yesterday today and i got the error.I don't know why, could you pls help.



Description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.NullPointerException
      org.apache.jsp.jsp2.vol2_jsp._jspService(vol2_jsp.java:268)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

0
Comment
Question by:Jasbir21
  • 4
  • 4
  • 2
10 Comments
 
LVL 15

Expert Comment

by:jimmack
ID: 9613624
You didn't provide enough of the exception output ;-)

Look down the exception information until you find a reference to your class.  This should tell you which file to look in and which line caused the problem.

When you find the line, look to see which object is being used.  It hasn't been set up (so you're getting the NullPointerException).
0
 

Author Comment

by:Jasbir21
ID: 9613700
This is what i got at the log file:
2003-10-24 19:57:50 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
      at org.apache.jsp.jsp2.vol2_jsp._jspService(vol2_jsp.java:268)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:670)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:517)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
      at java.lang.Thread.run(Thread.java:536)

2003-10-24 19:58:55 SessionListener: contextDestroyed()
2003-10-24 19:58:55 ContextListener: contextDestroyed()
2003-10-24 19:58:56 SessionListener: contextDestroyed()
2003-10-24 19:58:56 ContextListener: contextDestroyed()
2003-10-24 19:58:57 createObjectName with StandardEngine[Catalina].StandardHost[localhost]


0
 
LVL 15

Expert Comment

by:jimmack
ID: 9613749
This looks like Tomcat itself isn't starting up properly.  I haven't used Tomcat 5 yet, so I'm not sure how much use I'll be.

I'll give it a shot anyway.

Originally you said

>> I tried running the progrm that worked yesterday

I assume it worked OK yesterday.  Are you accessing a JSP or Servlet that you've written, or is all this happening when you start Tomcat up?

If Tomcat is trying to dynamically load a class and the classpath has changed between yesterday and today, that could explain it.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 27

Assisted Solution

by:rrz
rrz earned 40 total points
ID: 9614691
>at org.apache.jsp.jsp2.vol2_jsp._jspService(vol2_jsp.java:268)
Look in Tomcat's  "work"  folder. You should find the file  vol2_jsp.java   .
Tomcat translated your JSP into this file.
Please show us the code around line  268.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9614838
Well spotted rrz.  I was looking for a package that wasn't an apache one ;-)
0
 

Author Comment

by:Jasbir21
ID: 9618480
Hi,
  How do i see which is 268, there is a lot of squares???
I mean,it is jumbled up.

0
 
LVL 27

Expert Comment

by:rrz
ID: 9618519
> there is a lot of squares???  I mean,it is jumbled up
What do you mean to say ?  
What are you using to open it ? Get a text editor that shows you line numbers.
0
 
LVL 15

Accepted Solution

by:
jimmack earned 40 total points
ID: 9618955
Make sure that you are looking in the right file.  If you are seeing lots of unprintable characters (like squares), you haven't opened a .java file.

Open "vol2_jsp.java"

This is basically the Servlet code that Tomcat created from your JSP (just as rrz said).

If you are still seeing squares, please tell us the full path and filename for the file you are opening (and the full path and filename of your JSP).
0
 

Author Comment

by:Jasbir21
ID: 9619437

Thanks , I found it .
0
 

Author Comment

by:Jasbir21
ID: 9619440
I am splitting th e points because both of you did help me to understand the
jsp . Thank you very much.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ajax auto save 15 101
Need to view directory list in apache/tomcat 9 115
getting Http 404 error in jsp forms 8 79
login jsp example 24 48
One of the biggest threats in the cyber realm pertains to advanced persistent threats (APTs). This paper is a compare and contrast of Russian and Chinese APT's.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question