This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JSP Exception 500 Error  RSS feed

 
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
 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!