0

I'm working with a Google app engine app and when i testing my app following error has occurred.

at org.apache.jsp.eCommersViews.media_jsp._jspService(media_jsp.java:92)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511).....

But i have no idea how to find the place that error happen in Media.jsp. Can someone please tell me how to find the error.

Suzon
  • 749
  • 1
  • 8
  • 21
Lakmal Vithanage
  • 2,767
  • 7
  • 42
  • 58
  • Show us the code from `Media.jsp`, check the Line 92 in the jsp – Zeeshan Feb 27 '14 at 09:45
  • 1
    Nope,Media.jsp is coverted to Media_jsp.java servlet file. so we can't find the error from line 92. – Lakmal Vithanage Feb 27 '14 at 09:47
  • What is the actual error message? You've listed part of the stacktrace, but not the message!? – Eric Feb 27 '14 at 09:54
  • I need to know how to find the place. they only show the line no. of java file. not Jsp. i need to know the line that get error in media.jsp. – Lakmal Vithanage Feb 27 '14 at 09:59
  • I'm not sure, but my guess is that there is no simple way to find out which line in the JSP is causing the exception. You can add print statements in to try and narrow the search down, ie: `System.err.println("pt1");` then check the logs to see which points were printed and which not... – Eric Feb 27 '14 at 10:11

1 Answers1

1

You can find generated java files depending on what you are using. If you are using Tomcat-Eclipse combination then check

Where are the generated JSP class files located?

If on standalone Tomcat check:

<Tomcat installation dir>/work/Catalina/<localhost>/<app context>/org/apache/jsp/jsp

Community
  • 1
  • 1
Boss Man
  • 587
  • 2
  • 12