您的位置首页生活快答

org.apache.jasper.JasperException: An exception occurred processing这是什么问题

org.apache.jasper.JasperException: An exception occurred processing这是什么问题

的有关信息介绍如下:

org.apache.jasper.JasperException: An exception occurred processing这是什么问题

教看异信息给信息拖先看Stacktrace部

org.apache明显代码apachejar包用管报错传给值想要javax.servlet.http.HttpServlet.service代码com.bjsxt.shopping.util.filter.IPFilter.doFilter相说能跟关系经应该属于师给代码部

接找错

root cause 信息先找com.bjsxtcom.bjsxt离近

OK看两行近我看两行:

com.bjsxt.shopping.category.CategoryService.getCategories(CategoryService.java:102)

com.bjsxt.shopping.util.filter.IPFilter.doFilter(IPFilter.java:31)

提示信息NullPointerException;熟悉空指针

两行选

看问题题目提:

org.apache.jasper.JasperException: An exception occurred processing JSP page /Index.jsp at line 40

注意直观信息 at line 40

找line 40:

40: List categories = CategoryService.getInstance().getCategories();

看跟我前揪两行行:

com.bjsxt.shopping.category.CategoryService.getCategories(CategoryService.java:102)

关系近吧

候肯定告诉自告诉别:

com.bjsxt.shopping.category包CategoryService类 getCategories第40行执行返结nullnull报nullpointException

com.bjsxt.shopping.category.CategoryService.getCategories(CategoryService.java:102)

面括号信息提示执行getCategories代码运行102行错

功告

讲比师细呵呵玩笑

XML