• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Exception 500 Error

 
Vinay Naidu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


i got the following error when I try to do the ticket enquiry in my form

I am Using JBoss4.0.2


type Exception report

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

exception

org.apache.jasper.JasperException: Exception in JSP: /tsnreportview.jsp:99

96:
97: <% ArrayList l = null;
98:
99: l = new
ArrayList(tsnlista.doSelectTsn(Tdays,dtsn,Game_id,difdays));
100: for (int j=0; j < l.size(); j++) {
101:
tsnlistb=(com.gameteclabs.web.beans.TsnreportBean)l.get(j);
102: }


Stacktrace:


org.apache.jasper.servlet.JspServletWrapper.handleJspException JspServletWra pper.java:504)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
93)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja
va:96)

root cause

java.lang.NullPointerException


com.gameteclabs.web.beans.TsnreportApplicationService.doSelectTsn(TsnreportA
pplicationService.java:97)

org.apache.jsp.tsnreportview_jsp._jspService(tsnreportview_jsp.java:275)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


org.apache.jasper.servlet.JspServletWrapper.serviceJspServletWrapper.java:3
32)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja
va:96)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.17 logs.

_____


Apache Tomcat/5.5.17




Vinay Naidu
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is tsnlista ? It's null.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, tsnlista is not null.
You should check line 97 of TsnreportApplicationService.java to find out what is missing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!