HTTP Status 500 - An exception occurred processing JSP page /news/newsContent.jsp at line 82

type Exception report

message An exception occurred processing JSP page /news/newsContent.jsp at line 82

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

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /news/newsContent.jsp at line 82

79: 		  	    JSONObject localtion= JsonUtil.findObject("column/list/parent/"+CID);
80: 				 String section=localtion.getString("column_name");
81: 				 localtion= JsonUtil.findObject("column/list/parent/"+cId);
82: 			      String section1=localtion.getString("column_name");
83: 		  		%>
84: 		  		<%=section%>
85: 		  	</div>


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:567)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:454)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	tjdz.net.com.filter.SqlFilter.doFilter(SqlFilter.java:52)

root cause

javax.servlet.ServletException: org.codehaus.jettison.json.JSONException: JSONObject["column_name"] not found.
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:908)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:837)
	org.apache.jsp.news.newsContent_jsp._jspService(newsContent_jsp.java:995)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:431)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	tjdz.net.com.filter.SqlFilter.doFilter(SqlFilter.java:52)

root cause

org.codehaus.jettison.json.JSONException: JSONObject["column_name"] not found.
	org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360)
	org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487)
	org.apache.jsp.news.newsContent_jsp._jspService(newsContent_jsp.java:452)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:431)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	tjdz.net.com.filter.SqlFilter.doFilter(SqlFilter.java:52)

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


Apache Tomcat/8.0.20