You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by MartinoSuperman <ma...@live.nl> on 2013/10/03 18:00:04 UTC
Error in authentication
Hi,
I have an authentication error.
I do not know what I am doing wrong.
The error is as follows:
Last cause:
org.apache.wicket.authroles.authentication.AuthenticatedWebSession.authenticate(Ljava/lang/String;Ljava/lang/String;)Z
WicketMessage: Method onFormSubmitted of interface
org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
[SignInForm [Component id = signInForm]] on component [SignInForm [Component
id = signInForm]] threw an exception
java.lang.NoSuchMethodError:
org.apache.wicket.authroles.authentication.AuthenticatedWebSession.authenticate(Ljava/lang/String;Ljava/lang/String;)Z
at
org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
at com.myapp.wicket.SignIn$SignInForm.onSubmit(SignIn.java:87)
at org.apache.wicket.markup.html.form.Form$9.component(Form.java:1249)
......
Can somebody help me?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-in-authentication-tp4661680.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Error in authentication
Posted by Francois Meillet <fr...@gmail.com>.
Hi,
java.lang.NoSuchMethodError: org.apache.wicket.authroles.authentication.AuthenticatedWebSession.authenticate(Ljava/lang/String;Ljava/lang/String;)
means that you call the method with string arrays.
The signature is
public abstract boolean authenticate(final String username, final String password);
and not
public abstract boolean authenticate(final String [] username, final String [] password);
François Meillet
Formation Wicket - Développement Wicket
Le 3 oct. 2013 à 18:00, MartinoSuperman <ma...@live.nl> a écrit :
> Hi,
>
> I have an authentication error.
>
> I do not know what I am doing wrong.
>
> The error is as follows:
>
> Last cause:
> org.apache.wicket.authroles.authentication.AuthenticatedWebSession.authenticate(Ljava/lang/String;Ljava/lang/String;)Z
> WicketMessage: Method onFormSubmitted of interface
> org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
> [SignInForm [Component id = signInForm]] on component [SignInForm [Component
> id = signInForm]] threw an exception
>
>
> java.lang.NoSuchMethodError:
> org.apache.wicket.authroles.authentication.AuthenticatedWebSession.authenticate(Ljava/lang/String;Ljava/lang/String;)Z
> at
> org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
> at com.myapp.wicket.SignIn$SignInForm.onSubmit(SignIn.java:87)
> at org.apache.wicket.markup.html.form.Form$9.component(Form.java:1249)
> ......
>
>
> Can somebody help me?
>
>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-in-authentication-tp4661680.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: Error in authentication
Posted by Francois Meillet <fr...@gmail.com>.
Use generics
like PropertyModel<String>(person, "username")
François Meillet
Formation Wicket - Développement Wicket
Le 4 oct. 2013 à 00:42, MartinoSuperman <ma...@live.nl> a écrit :
> Hi,
>
> Thanks!!!
>
> I changed the version of wicket-auth-roles to 6.0.0. That is the version I
> use in my wicket-core.
>
> But now, I am getting a different. Now a warning:
>
> WARNING: Couldn't resolve model type of
> Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[]:expression=[username]
> for [TextField [Component id = username]], please set the type yourself.
>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-in-authentication-tp4661680p4661687.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: Error in authentication
Posted by MartinoSuperman <ma...@live.nl>.
Hi,
Thanks!!!
I changed the version of wicket-auth-roles to 6.0.0. That is the version I
use in my wicket-core.
But now, I am getting a different. Now a warning:
WARNING: Couldn't resolve model type of
Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[]:expression=[username]
for [TextField [Component id = username]], please set the type yourself.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-in-authentication-tp4661680p4661687.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Error in authentication
Posted by Gabriel Landon <gl...@piti.pf>.
Did you check that your are using the same version for both jar?
pom.xml :
<properties>
*<wicket.version>6.11.0</wicket.version>*
</properties>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>*wicket-core*</artifactId>
<version>*${wicket.version}*</version>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>*wicket-auth-roles*</artifactId>
<version>*${wicket.version}*</version>
</dependency>
regards,
Gabriel.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-in-authentication-tp4661680p4661683.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org