空指针异常处理
一直读取不到相应的资源文件,求破。--------------------编程问答-------------------- --------------------编程问答-------------------- 有大神帮忙看下吗 --------------------编程问答-------------------- jsp.WEB_002dINF.view.jsp.ims.imsList_jsp._jspx_meth_uidesign_005f易做图_005f0(imsList_jsp.java:332)
jsp 的Servlet.service() 异常
java.lang.NullPointerException
at java.util.ListResourceBundle.loadLookup(ListResourceBundle.java:172)
at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:106)
at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
at java.util.ResourceBundle.getObject(ResourceBundle.java:371)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
at org.springframework.context.support.ResourceBundleMessageSource.getStringOrNull(ResourceBundleMessageSource.java:288)
at org.springframework.context.support.ResourceBundleMessageSource.resolveCodeWithoutArguments(ResourceBundleMessageSource.java:169)
at org.springframework.context.support.AbstractMessageSource.getMessageInternal(AbstractMessageSource.java:193)
at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:128)
at org.springframework.context.support.AbstractApplicationContext.getMessage(AbstractApplicationContext.java:983)
at org.springframework.web.servlet.tags.MessageTag.resolveMessage(MessageTag.java:226)
at org.springframework.web.servlet.tags.MessageTag.doStartTagInternal(MessageTag.java:164)
at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:77)
at org.apache.jsp.tag.web.uidesign.易做图_tag._jspx_meth_spring_005fmessage_005f0(易做图_tag.java:861)
at org.apache.jsp.tag.web.uidesign.易做图_tag._jspx_meth_c_005fforEach_005f0(易做图_tag.java:696)
at org.apache.jsp.tag.web.uidesign.易做图_tag.doTag(易做图_tag.java:324)
at org.apache.jsp.WEB_002dINF.view.jsp.ims.imsList_jsp._jspx_meth_uidesign_005f易做图_005f0(imsList_jsp.java:332)
at org.apache.jsp.WEB_002dINF.view.jsp.ims.imsList_jsp._jspx_meth_form_005fform_005f0(imsList_jsp.java:274)
at org.apache.jsp.WEB_002dINF.view.jsp.ims.imsList_jsp._jspService(imsList_jsp.java:167)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
去tomcat文件work文件夹里面 根据你的项目名称 找到这个imsList_jsp.java第332行应该就是报错的地方 --------------------编程问答-------------------- 你可以用打印对象的方式看看到底哪个对象是空的,或者使用bug工具查看一下。 --------------------编程问答--------------------
他如果是在eclipse中直接起的服务呢?
你就看不了了 --------------------编程问答-------------------- debug
补充:Java , Web 开发