Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.10
-
None
-
OS: Windows 7 / Server 2008 R2
Web server: Tomcat 7.0.11
JRE: Java 6
JSF: MyFaces 2.0.4
Description
I've recently started upgrading an application from JSF 1.1 to JSF 2.0.
My application uses validateEqual to compare two password fields and the code worked fine previously.
I found this recent post about the same problem: http://www.mail-archive.com/users@myfaces.apache.org/msg56990.html
My stack trace:
javax.servlet.ServletException: expr at javax.faces.webapp.FacesServlet.service(FacesServlet.java:221) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:392) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at
XXXXXX at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at
XXXXXX at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at
XXXXXX at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498) 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:562) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:394) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:284) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:322) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1714) 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) Caused by: java.lang.NullPointerException: expr at javax.faces.component.UIComponentBase.findComponent(UIComponentBase.java:559) at org.apache.myfaces.custom.equalvalidator.AbstractEqualValidator.validate(AbstractEqualValidator.java:85) at javax.faces.component._ComponentUtils.callValidators(_ComponentUtils.java:173) at javax.faces.component.UIInput.validateValue(UIInput.java:438) at javax.faces.component.UIInput.validate(UIInput.java:583) at javax.faces.component.UIInput.processValidators(UIInput.java:247) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1218) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1218) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1218) at org.apache.myfaces.custom.aliasbean.AliasBeansScope.processValidators(AliasBeansScope.java:191) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1218) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1218) at javax.faces.component.UIForm.processValidators(UIForm.java:147) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1218) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1218) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1218) at javax.faces.component.UIViewRoot._processValidatorsDefault(UIViewRoot.java:1322) at javax.faces.component.UIViewRoot.access$500(UIViewRoot.java:75) at javax.faces.component.UIViewRoot$ProcessValidatorPhaseProcessor.process(UIViewRoot.java:1397) at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1278) at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:754) at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:34) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189) ... 28 more