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

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)

Jasbir21Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jimmackCommented:
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
Jasbir21Author Commented:
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
jimmackCommented:
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
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

rrzCommented:
>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
jimmackCommented:
Well spotted rrz.  I was looking for a package that wasn't an apache one ;-)
0
Jasbir21Author Commented:
Hi,
  How do i see which is 268, there is a lot of squares???
I mean,it is jumbled up.

0
rrzCommented:
> 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
jimmackCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jasbir21Author Commented:

Thanks , I found it .
0
Jasbir21Author Commented:
I am splitting th e points because both of you did help me to understand the
jsp . Thank you very much.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.