List citys=this.cityBao.getCityDao().findCityList(); 这段JAVA语句出错.java.lang.NullPointerExceptioncom.infowell.callcenter.module.order.OrderController.list(OrderController.java:268)\x05sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 00:37:11
Listcitys=this.cityBao.getCityDao().findCityList();这段JAVA语句出错.java.lang.NullPointerExceptioncom.info

List citys=this.cityBao.getCityDao().findCityList(); 这段JAVA语句出错.java.lang.NullPointerExceptioncom.infowell.callcenter.module.order.OrderController.list(OrderController.java:268)\x05sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho
List citys=this.cityBao.getCityDao().findCityList(); 这段JAVA语句出错.
java.lang.NullPointerException
com.infowell.callcenter.module.order.OrderController.list(OrderController.java:268)
\x05sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
\x05sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
\x05sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
\x05java.lang.reflect.Method.invoke(Method.java:597)
\x05org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:351)
\x05org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:305)
\x05org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:128)
\x05org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
\x05org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
\x05org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:386)
\x05org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:346)
\x05javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
\x05javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
\x05com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
\x05com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
\x05com.infowell.common.rbac.RbacFilter.doFilter(RbacFilter.java:74)
\x05filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121)

List citys=this.cityBao.getCityDao().findCityList(); 这段JAVA语句出错.java.lang.NullPointerExceptioncom.infowell.callcenter.module.order.OrderController.list(OrderController.java:268)\x05sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho
this.cityBao.getCityDao().findCityList()
这个只能看到你实际的环境才能知道那里错了
这里猜测是getCityDao方法返回为null值然后调用器方法findCityList()报错 可以自己检查下或者debug下
还有可能是findCityList()调用相关方法例如hibernate查询数据库的时候 数据库不存在相关记录
但是里面调用了例如.list()方法等会报此错误,