Hi Chris,
thank you, I'm referring to the appended mail (Re: Problems with
FormValidatorAction -> Reply of Vadim Gritsenko).
BTW: Do you know when release 2.0.3 comes out?
Best regards
- Volker -
-----Original Message-----
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Montag, 13. Mai 2002 15:54
To: [EMAIL PROTECTED]
Subject: Re: Fixed version of FormValidatorAction
On 13.May.2002 -- 03:30 PM, Volker Schneider wrote:
> Dear colleagues,
>
> does anybody know which is the fixed version of FormValidatorAction, where
> the error with the exception is fixed.
> Is it possible to download the classes and to merge it to release version
> 2.0.2 so that I do not need to work with CVS head?
Take the latest from cocoon_2_0_3_branch. Mind you, that the real work
is done in AbstractValidatorAction which probably contains the fix
you're looking for. Replace the java file(s) and rebuild.
You might want to use the cocoon_2_0_3_branch CVS version anyway since
it will become the next bugfix release (at some point of time).
BTW: what is the error you're referring to?
HTH.
Chris.
--
C h r i s t i a n H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
--- Begin Message ---
This one is fixed in the CVS.
Vadim
> From: Hiloliddin Karimov [mailto:[EMAIL PROTECTED]]
>
> Hello all,
>
> Problem with FormValidatorAction.
> I have following on my sitemap.log, when I try Login:
>
> DEBUG (2002-04-30) 16:10.17:468
[sitemap](/cocoon/protected/do-login)
> HttpProcessor[80][3]/sitemap_xmap: Matched wildcard pattern
protected/**
> DEBUG (2002-04-30) 16:10.17:468
[sitemap](/cocoon/protected/do-login)
> HttpProcessor[80][3]/AbstractSitemap: Current Sitemap Parameters:
> PARAM: '1' VALUE: 'do-login'
> PARAM: '0' VALUE: 'protected/do-login'
>
> DEBUG (2002-04-30) 16:10.17:484
> [sitemap.protected.action.form-validator](/cocoon/protected/do-login)
> HttpProcessor[80][3]/AbstractComplementaryConfigurable Action: Using
cached
> configuration for context://protected/descriptors/params.xml
> DEBUG (2002-04-30) 16:10.17:484
> [sitemap.protected.action.form-validator](/cocoon/protected/do-login)
> HttpProcessor[80][3]/FormValidatorAction: Validating parameters as
specified
> via 'validate' parameter
> DEBUG (2002-04-30) 16:10.17:484
> [sitemap.protected.action.form-validator](/cocoon/protected/do-login)
> HttpProcessor[80][3]/AbstractValidatorAction: Validating parameter:
username
> DEBUG (2002-04-30) 16:10.17:484
> [sitemap.protected.action.form-validator](/cocoon/protected/do-login)
> HttpProcessor[80][3]/FormValidatorAction: exception:
> java.lang.NullPointerException
> at
>
org.apache.cocoon.acting.AbstractValidatorAction.getDefault(AbstractVali
dato
> rAction.java:576)
> at
>
org.apache.cocoon.acting.AbstractValidatorAction.validateString(Abstract
Vali
> datorAction.java:222)
> at
>
org.apache.cocoon.acting.AbstractValidatorAction.validateParameter(Abstr
actV
> alidatorAction.java:202)
> at
> org.apache.cocoon.acting.FormValidatorAction.act(FormValidatorAction.
> java:169)
> at
>
org.apache.cocoon.www.protected_.sitemap_xmap.matchN10049(F:\usr\tomcat\
work
>
\localhost\cocoon\cocoon-files\org/apache/cocoon/www/protected_\sitemap_
xmap
> .java:629)
> at
>
org.apache.cocoon.www.protected_.sitemap_xmap.process(F:\usr\tomcat\work
\loc
>
alhost\cocoon\cocoon-files\org/apache/cocoon/www/protected_\sitemap_xmap
.jav
> a:435)
> at
>
org.apache.cocoon.www.protected_.sitemap_xmap.process(F:\usr\tomcat\work
\loc
>
alhost\cocoon\cocoon-files\org/apache/cocoon/www/protected_\sitemap_xmap
.jav
> a:368)
> at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> ...
>
>
> sitemap.xmap:
> =====
>
> <map:actions>
> <map:action name="session-validator"
> src="org.apache.cocoon.acting.SessionValidatorAction"/>
> <map:action name="session-invalidator"
> src="org.apache.cocoon.acting.SessionInvalidatorAction"/>
> <map:action name="form-validator"
> logger="sitemap.protected.action.form-validator"
> src="org.apache.cocoon.acting.FormValidatorAction"/>
> <map:action name="db-authenticator"
> logger="sitemap.protected.action.db-authenticator"
> src="org.apache.cocoon.acting.DatabaseAuthenticatorAction"/>
> </map:actions>
>
> <map:match pattern="do-login">
> <map:act type="form-validator">
> <map:parameter name="descriptor"
> value="context://protected/descriptors/params.xml"/>
> <map:parameter name="validate" value="username"/>
> <map:act type="db-authenticator">
> <map:parameter name="descriptor"
> value="context://protected/descriptors/auth.xml"/>
> <map:redirect-to uri="welcome"/>
> </map:act>
> </map:act>
> <map:redirect-to uri="login"/>
> </map:match>
>
> auth.xml:
> =====
> <auth-descriptor>
> <connection>personnel</connection>
> <table name="users">
> <select dbcol="name" request-param="username"
to-session="username"/>
> </table>
> </auth-descriptor>
>
> params.xml
> =====
> <parameters-descriptor>
> <parameter name="username" type="string" nullable="no"/>
> </parameters-descriptor>
>
>
>
> What's wrong?
> Thank you very much for any help,
> Hill
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
--- End Message ---
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>