HTTP Status 500 – Internal Server Error


Type Exception Report

Message An exception occurred processing [/contactus/info.jsp] at line [26]

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: An exception occurred processing [/contactus/info.jsp] at line [26]

23: if(smallId<=0) response.sendRedirect(basePath+"index.jsp");
24: SmallClass smallClass = SmallClassDao.getModel(smallId);
25: if(smallClass==null) response.sendRedirect(basePath+"index.jsp");
26: int bigId = smallClass.getBigId();
27: BigClass bigClass = BigClassDao.getModel(bigId);
28: %>
29: 


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:605)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:498)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	com.foundry.filter.EncodingFilter.doFilter(EncodingFilter.java:30)

Root Cause

java.lang.NullPointerException
	org.apache.jsp.contactus.info_jsp._jspService(info_jsp.java:148)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	com.foundry.filter.EncodingFilter.doFilter(EncodingFilter.java:30)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/8.5.95