Reply To: NPE in RewritePhaseListener.handlePhaseOperation

Splash Forums Rewrite Users NPE in RewritePhaseListener.handlePhaseOperation Reply To: NPE in RewritePhaseListener.handlePhaseOperation

#25425

Luke
Participant

I removed the rule:.and(Forward.to("/actors.jsf")) and the same exception is still being thrown.

The stacktrace:

21:33:51,008 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) org.ocpsoft.rewrite.exception.RewriteException: Failed to handle PhaseOperation [org.ocpsoft.rewrite.faces.config.PhaseOperation$1@11f9834d]
21:33:51,008 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.ocpsoft.rewrite.faces.RewritePhaseListener$1.performInSubflow(RewritePhaseListener.java:147)
21:33:51,009 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.ocpsoft.rewrite.servlet.event.SubflowTask.perform(SubflowTask.java:61)
21:33:51,009 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.ocpsoft.rewrite.faces.RewritePhaseListener.handlePhaseOperation(RewritePhaseListener.java:125)
21:33:51,010 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.ocpsoft.rewrite.faces.RewritePhaseListener.handleAfterPhaseOperations(RewritePhaseListener.java:108)
21:33:51,010 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.ocpsoft.rewrite.faces.RewritePhaseListener.afterPhase(RewritePhaseListener.java:63)
21:33:51,011 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
21:33:51,011 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
21:33:51,011 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
21:33:51,012 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
21:33:51,012 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
21:33:51,013 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
21:33:51,013 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
21:33:51,014 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:98)
21:33:51,014 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
21:33:51,015 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
21:33:51,015 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:200)
21:33:51,015 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
21:33:51,016 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
21:33:51,016 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840)
21:33:51,017 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622)
21:33:51,017 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560)
21:33:51,018 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488)
21:33:51,018 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.ocpsoft.rewrite.servlet.impl.HttpRewriteResultHandler.handleResult(HttpRewriteResultHandler.java:38)
21:33:51,019 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.ocpsoft.rewrite.servlet.RewriteFilter.rewrite(RewriteFilter.java:263)
21:33:51,019 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:188)
21:33:51,020 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
21:33:51,020 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
21:33:51,020 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
21:33:51,021 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
21:33:51,021 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
21:33:51,022 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
21:33:51,022 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
21:33:51,023 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
21:33:51,023 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
21:33:51,024 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
21:33:51,024 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
21:33:51,024 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
21:33:51,025 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
21:33:51,025 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
21:33:51,026 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at java.lang.Thread.run(Thread.java:722)
21:33:51,027 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) Caused by: java.lang.NullPointerException
21:33:51,027 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 	at org.ocpsoft.rewrite.faces.RewritePhaseListener$1.performInSubflow(RewritePhaseListener.java:134)