jsf 2 - NPE in UIComponentBase#getRenderer() after migration from JSF 1.2 to JSF 2.0 -
i migrated web application jsf 1.2 jsf 2.0. logout page working in previous version throws nullpointerexception
in jsf 2.0. rest of things working expected.
below stack trace:
java.lang.nullpointerexception @ javax.faces.component.uicomponentbase.getrenderer(uicomponentbase.java:1268) @ javax.faces.component.uicomponentbase.decode(uicomponentbase.java:788) @ org.ajax4jsf.component.ajaxviewroot$1.invokeroot(ajaxviewroot.java:396) @ org.ajax4jsf.component.ajaxviewroot.processphase(ajaxviewroot.java:229) @ org.ajax4jsf.component.ajaxviewroot.processdecodes(ajaxviewroot.java:409) @ com.sun.faces.lifecycle.applyrequestvaluesphase.execute(applyrequestvaluesphase.java:78) @ com.sun.faces.lifecycle.phase.dophase(phase.java:101) @ com.sun.faces.lifecycle.lifecycleimpl.execute(lifecycleimpl.java:118) @ javax.faces.webapp.facesservlet.service(facesservlet.java:312) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:290) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) @ org.springframework.web.filter.requestcontextfilter.dofilterinternal(requestcontextfilter.java:83) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:76) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:235) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) @ org.springframework.security.util.filterchainproxy$virtualfilterchain.dofilter(filterchainproxy.java:359) @ org.springframework.security.intercept.web.filtersecurityinterceptor.invoke(filtersecurityinterceptor.java:109) @ org.springframework.security.intercept.web.filtersecurityinterceptor.dofilter(filtersecurityinterceptor.java:83) @ org.springframework.security.util.filterchainproxy$virtualfilterchain.dofilter(filterchainproxy.java:371) @ org.springframework.security.ui.sessionfixationprotectionfilter.dofilterhttp(sessionfixationprotectionfilter.java:67) @ org.springframework.security.ui.springsecurityfilter.dofilter(springsecurityfilter.java:53) @ org.springframework.security.util.filterchainproxy$virtualfilterchain.dofilter(filterchainproxy.java:371) @ org.springframework.security.ui.exceptiontranslationfilter.dofilterhttp(exceptiontranslationfilter.java:101) @ org.springframework.security.ui.springsecurityfilter.dofilter(springsecurityfilter.java:53) @ org.springframework.security.util.filterchainproxy$virtualfilterchain.dofilter(filterchainproxy.java:371) @ org.springframework.security.providers.anonymous.anonymousprocessingfilter.dofilterhttp(anonymousprocessingfilter.java:105)
my logout.xhtml
looks this:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"> <head> <meta http-equiv="refresh" content="0; url=#{bean.logouturl}"></meta> </head> <body> <p>logging out...</p> </body> </html>
i upgrade jsf 2 version. had same problem time ago using jsf 2.0.2 , went away when upgradin jsf 2.0.3. problem described in jsf 2.0.3 release notes.
Comments
Post a Comment