您的位置:首页 > 其它

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}"/> 后正常。

不是所有的地方都报错,暂时没搞清楚原因,先把解决问题的方法贴出来,待搞清楚原因后再进一步说明!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息