struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject Re: Validation error using 1.2.1
Date Tue, 27 Jul 2004 19:37:16 GMT
New it had to be something simple like that!

Everything works now thanks!


On Jul 27, 2004, at 1:34 PM, Niall Pemberton wrote:

> 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.Obj 
>> ec
>> 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.Obj 
>> ec
>> 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(Vali 
>> da
>> torAction.java:627)
>>          at
>> org.apache.commons.validator.ValidatorAction.executeValidationMethod(V 
>> al
>> 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(DynaValidatorFo 
>> rm
>> .java:112)
>>          at
>> org.apache.struts.action.RequestProcessor.processValidate(RequestProce 
>> ss
>> or.java:921)
>>          at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.jav 
>> a:
>> 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(Appli 
>> ca
>> tionFilterChain.java:237)
>>          at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi 
>> lt
>> erChain.java:157)
>>          at
>> org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:
>> 182)
>>          at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli 
>> ca
>> tionFilterChain.java:186)
>>          at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi 
>> lt
>> erChain.java:157)
>>          at
>> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(Monitor 
>> Fi
>> lter.java:305)
>>          at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli 
>> ca
>> tionFilterChain.java:186)
>>          at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi 
>> lt
>> erChain.java:157)
>>          at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa 
>> lv
>> e.java:214)
>>          at
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValve 
>> Co
>> ntext.java:104)
>>          at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java 
>> :
>> 520)
>>          at
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardC 
>> on
>> textValve.java:198)
>>          at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa 
>> lv
>> e.java:152)
>>          at
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValve 
>> Co
>> ntext.java:104)
>>          at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java 
>> :
>> 520)
>>          at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja 
>> va
>> :137)
>>          at
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValve 
>> Co
>> ntext.java:104)
>>          at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja 
>> va
>> :117)
>>          at
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValve 
>> Co
>> ntext.java:102)
>>          at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java 
>> :
>> 520)
>>          at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv 
>> e.
>> java:109)
>>          at
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValve 
>> Co
>> 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.proces 
>> sC
>> onnection(Http11Protocol.java:702)
>>          at
>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
>> 571)
>>          at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo 
>> ol
>> .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
>


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


Mime
View raw message