tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51739] If landingpage is a XHTML (JSF/CDI), nullpointer exception.
Date Mon, 29 Aug 2011 13:52:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51739

--- Comment #2 from Flávio Henrique <servlet@ig.com.br> 2011-08-29 13:52:47 UTC ---
    <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
        landingPage="/restrito/principal.xhtml" />

A workaround is the use of a jsp page that redirect to the xhtml page (JSF
page).

java.lang.NullPointerException: Name is null
    at java.lang.Enum.valueOf(Unknown Source)
    at
javax.faces.webapp.FacesServlet$HttpMethod.valueOf(FacesServlet.java:172)
    at javax.faces.webapp.FacesServlet.isHttpMethodValid(FacesServlet.java:627)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:549)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:582)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:279)
    at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
    at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
29/08/2011 10:42:35 org.apache.catalina.core.ApplicationDispatcher invoke
GRAVE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException: Name is null
    at java.lang.Enum.valueOf(Unknown Source)
    at
javax.faces.webapp.FacesServlet$HttpMethod.valueOf(FacesServlet.java:172)
    at javax.faces.webapp.FacesServlet.isHttpMethodValid(FacesServlet.java:627)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:549)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:473)
    at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
    at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
    at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:466)
    at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:315)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:179)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:279)
    at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
    at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
29/08/2011 10:42:35 org.apache.catalina.core.StandardHostValve custom
GRAVE: Exception Processing ErrorPage[exceptionType=java.lang.Exception,
location=/erro_servidor.xhtml]
java.lang.NullPointerException: Name is null
    at java.lang.Enum.valueOf(Unknown Source)
    at
javax.faces.webapp.FacesServlet$HttpMethod.valueOf(FacesServlet.java:172)
    at javax.faces.webapp.FacesServlet.isHttpMethodValid(FacesServlet.java:627)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:549)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:473)
    at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
    at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
    at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:466)
    at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:315)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:179)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:279)
    at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
    at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message