我们有一个基于Apache Trinidad的应用程序,可以与Tomcat 6和7一起运行。同一应用程序在Tomcat8上引发以下异常。特立尼达lib版本为2.1.0,MyFaces lib版本为2.1.16。
org.apache.jasper.JasperException: An exception occurred processing JSP page /login.jspx at line 14
11: <link rel="shortcut icon" href="/pervasync/images/pvs_logo_32_32.ico"/>
12: </trh:head>
13: <trh:body>
14: <tr:document title="...">
15: <head>
16: <link rel="shortcut icon" type="image/png" href="/pervasync/images/pvs_logo_32_32.png"/>
17: </head>
Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:335)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
...
Caused by: java.lang.NullPointerException
at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:113)
at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.setProperty(UIXComponentELTag.java:297)
at org.apache.myfaces.trinidadinternal.taglib.core.CoreDocumentTag.setProperties(CoreDocumentTag.java:179)
at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.setProperties(UIXComponentELTag.java:284)
at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:98)
at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.createComponent(UIXComponentELTag.java:223)
at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:1195)
at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:514)
at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:113)
at org.apache.jsp.login_jspx._jspx_meth_tr_005fdocument_005f0(login_jspx.java:282)
at org.apache.jsp.login_jspx._jspx_meth_trh_005fbody_005f0(login_jspx.java:250)
at org.apache.jsp.login_jspx._jspx_meth_trh_005fhtml_005f0(login_jspx.java:175)
at org.apache.jsp.login_jspx._jspx_meth_f_005fview_005f0(login_jspx.java:135)
at org.apache.jsp.login_jspx._jspService(login_jspx.java:96)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
... 56 more
这似乎是错误TRINIDAD-2483,它似乎在即将发布的2.1.1版本中得到了修复。