chain.doFilter(request,respone) 报空指针 5
启动无问题了,但进行页面时跳转重定向报错:[WARN]2014-07-2616:17:37,790com.sun.faces.application.ViewHandle...
启动无问题了,但进行页面时跳转重定向报错:
[WARN] 2014-07-26 16:17:37,790 com.sun.faces.application.ViewHandlerImpl - Unable to determine FaceServlet mapping for servlet path '/login.jsf'.
[ERROR] 2014-07-26 16:17:37,801 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/crams].[Faces Servlet] - Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at org.ajax4jsf.framework.ajax.AjaxViewHandler.createView(AjaxViewHandler.java:78)
at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:127)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at cn.ccb.system.admin.util.context.MenuUrlFilter.doFilter(MenuUrlFilter.java:102)
..........
大神们能否帮一下解决? 展开
[WARN] 2014-07-26 16:17:37,790 com.sun.faces.application.ViewHandlerImpl - Unable to determine FaceServlet mapping for servlet path '/login.jsf'.
[ERROR] 2014-07-26 16:17:37,801 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/crams].[Faces Servlet] - Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at org.ajax4jsf.framework.ajax.AjaxViewHandler.createView(AjaxViewHandler.java:78)
at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:127)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at cn.ccb.system.admin.util.context.MenuUrlFilter.doFilter(MenuUrlFilter.java:102)
..........
大神们能否帮一下解决? 展开
2个回答
展开全部
报错的是at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) 这行,不是filter。debug下看这行什么东西为空
追问
工程中没有这个类,这个封装类里的报错。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
一个你的哪里的定义没有给个null
追问
不是没有给null,而是没有编译对象出来,引用的时候自然是空。问题是这种异常的特殊情况有哪些。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询