[Logo]
Forums Register Login
JSP Exception 500 Error
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
What is tsnlista ? It's null.
Sorry, tsnlista is not null.
you should check line 97 of TsnreportApplicationService.java to find out what is missing.

This thread has been viewed 943 times.

All times above are in ranch (not your local) time.
The current ranch time is
Oct 15, 2018 20:27:03.