cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Problem with FormValidatorAction
Date Tue, 30 Apr 2002 12:20:21 GMT
This one is fixed in the CVS.

Vadim

> From: Hiloliddin Karimov [mailto:HKarimov@central.nbu.com]
> 
> 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message