struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: Validation error using 1.2.1
Date Tue, 27 Jul 2004 19:34:26 GMT
The method signatures in FieldChecks changed from using ActionErrors to
ActionMessages. Your error seems to indicate that its trying to use the old
method signature with ActionErrors.

Have you updated the version of validation-rules.xml you are using?

Also there has been a change to the dtd declaration in validation-rules.xml
since Struts 1.2.1 so it might be a good idea to download the latest nightly
build.


Niall


----- Original Message ----- 
From: "Nathan Maves" <Nathan.Maves@Sun.COM>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, July 27, 2004 7:32 PM
Subject: Validation error using 1.2.1


> I have migtrated everyhting to 1.2.1 and it is working great!  Problem
> is that none of my validation that worked yesterday is now busted!
>
>
> ERROR 07-27 11:03:31
> org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Objec
> t, org.apache.commons.validator.ValidatorAction,
> org.apache.commons.validator.Field,
> org.apache.struts.action.ActionErrors,
> javax.servlet.http.HttpServletRequest)  (DynaValidatorForm.java:114)
> org.apache.commons.validator.ValidatorException:
> org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Objec
> t, org.apache.commons.validator.ValidatorAction,
> org.apache.commons.validator.Field,
> org.apache.struts.action.ActionErrors,
> javax.servlet.http.HttpServletRequest)
>          at
> org.apache.commons.validator.ValidatorAction.loadValidationMethod(Valida
> torAction.java:627)
>          at
> org.apache.commons.validator.ValidatorAction.executeValidationMethod(Val
> idatorAction.java:557)
>          at
> org.apache.commons.validator.Field.validateForRule(Field.java:811)
>          at org.apache.commons.validator.Field.validate(Field.java:890)
>          at org.apache.commons.validator.Form.validate(Form.java:174)
>          at
> org.apache.commons.validator.Validator.validate(Validator.java:367)
>          at
> org.apache.struts.validator.DynaValidatorForm.validate(DynaValidatorForm
> .java:112)
>          at
> org.apache.struts.action.RequestProcessor.processValidate(RequestProcess
> or.java:921)
>          at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 206)
>          at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158)
>          at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>          at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:237)
>          at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:157)
>          at
> org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:
> 182)
>          at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:186)
>          at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:157)
>          at
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
> lter.java:305)
>          at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:186)
>          at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:157)
>          at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:214)
>          at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:104)
>          at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> 520)
>          at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
> textValve.java:198)
>          at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:152)
>          at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:104)
>          at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> 520)
>          at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :137)
>          at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:104)
>          at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :117)
>          at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:102)
>          at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> 520)
>          at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:109)
>          at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:104)
>          at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> 520)
>          at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>          at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>          at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 793)
>          at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> onnection(Http11Protocol.java:702)
>          at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
> 571)
>          at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:644)
>          at java.lang.Thread.run(Thread.java:552)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message