apusic5.1与c标签兼容
2016-12-27 16:57
197 查看
今日正式环境部署程序发现一个问题。
中间件:apusic5.1
${plan.name}写法处报错:
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:140)
at _jspx._jsp._trainingplan._planlist__jsp._jspService(jsp/plan/list.jsp:411)
at com.apusic.web.jsp.runtime.HttpJspPageImpl.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.apusic.web.container.ServletComponent.service(Unknown Source)
at com.apusic.web.container.WebContainer.invoke(Unknown Source)
at com.apusic.web.container.WebContainer.invoke(Unknown Source)
at com.apusic.web.jsp.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.apusic.web.container.ServletComponent.service(Unknown Source)
at com.apusic.web.container.WebContainer.invoke(Unknown Source)
at com.apusic.web.container.RequestDispatcherImpl.forward(Unknown Source)
改成<c:out value="${plan.name}"/> 后正常。
不是所有的地方都报错,暂时没搞清楚原因,先把解决问题的方法贴出来,待搞清楚原因后再进一步说明!
中间件:apusic5.1
${plan.name}写法处报错:
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:140)
at _jspx._jsp._trainingplan._planlist__jsp._jspService(jsp/plan/list.jsp:411)
at com.apusic.web.jsp.runtime.HttpJspPageImpl.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.apusic.web.container.ServletComponent.service(Unknown Source)
at com.apusic.web.container.WebContainer.invoke(Unknown Source)
at com.apusic.web.container.WebContainer.invoke(Unknown Source)
at com.apusic.web.jsp.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.apusic.web.container.ServletComponent.service(Unknown Source)
at com.apusic.web.container.WebContainer.invoke(Unknown Source)
at com.apusic.web.container.RequestDispatcherImpl.forward(Unknown Source)
改成<c:out value="${plan.name}"/> 后正常。
不是所有的地方都报错,暂时没搞清楚原因,先把解决问题的方法贴出来,待搞清楚原因后再进一步说明!
相关文章推荐
- HTML标签内的连接、文本、垂直居中 兼容绝大部分浏览器
- Webview兼容h5的localstorage以及input file标签
- a标签IE浏览器兼容问题
- IE兼容性问题解决方案2--css样式兼容标签
- 常用HTML meta 标签属性(网站兼容与优化需要)
- HTML-HTML5+CSS3权威指南阅读(二、让IE支持HTML5标签及对CSS3 Media Query的兼容)
- 用Meta标签代码让360双核浏览器默认极速模式不是兼容模式
- 用HTML5的<DOCTYPE>标签兼容各版本IE浏览器的方法技术
- IE兼容html5标签
- 让 标签中的内容自动换行的兼容写法
- input 标签(file类型)在IE和FF里的兼容问题
- 完美解决IE(IE6/IE7/IE8)不兼容HTML5标签的方法
- html5标签兼容IE
- 完美解决IE(IE6/IE7/IE8)不兼容HTML5标签的方法
- 如何解决H5新标签兼容问题
- 如何解决IE6/IE7/IE8浏览器不兼容HTML5新标签的问题
- HTML5 video 标签浏览器兼容问题
- 完美解决IE(IE6/IE7/IE8)不兼容HTML5标签的方法
- 解决IE下select标签innerHTML插入option的BUG(兼容IE,FF,Opera,Chrome,Safari)
- HTML&CSS_HTML5 Shiv 旧浏览器兼容HTML5标签