gpt4 book ai didi

playframework-2.0 - IllegalStateException : No value MyAuthProvider. handleSignup(ctx());

转载 作者:行者123 更新时间:2023-12-04 07:42:06 24 4
gpt4 key购买 nike

调用时

MyAuthProvider.handleSignup(ctx());

Play 返回IllegalStateException:无值

只有在调用之前调用 myAccount.save() 时才会发生这种情况。

myAccount 是我在让系统处理注册和创建用户之前首先创建的实体模型。我使用 Ebeans。

主题:

! @6faie6mj9 - 内部服务器错误,对于(POST)[/signup] ->

play.api.Application$$anon$1: Execution exception[[IllegalStateException: No value]]
at play.api.Application$class.handleError(Application.scala:289) ~ [play_2.10.jar:2.1.3]
at play.api.DefaultApplication.handleError(Application.scala:383) [play_2.10.jar:2.1.3]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$play$core$server$netty$PlayDefaultUpstreamHandler$$handle$1$1.apply(PlayDefaultUpstreamHandler.scala:143) [play_2.10.jar:2.1.3]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$play$core$server$netty$PlayDefaultUpstreamHandler$$handle$1$1.apply(PlayDefaultUpstreamHandler.scala:139) [play_2.10.jar:2.1.3]
at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) [play_2.10.jar:2.1.3]
at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) [play_2.10.jar:2.1.3]
java.lang.IllegalStateException: No value
at play.libs.F$None.get(F.java:547) ~[play_2.10.jar:2.1.3]
at play.data.Form.get(Form.java:525) ~[play-java_2.10.jar:2.1.3]
at com.feth.play.module.pa.providers.password.UsernamePasswordAuthProvider.getSignup(UsernamePasswordAuthProvider.java:153) ~[play-authenticate_2.10-0.2.5-SNAPSHOT.jar:0.2.5-SNAPSHOT]
at com.feth.play.module.pa.providers.password.UsernamePasswordAuthProvider.authenticate(UsernamePasswordAuthProvider.java:84) ~[play-authenticate_2.10-0.2.5-SNAPSHOT.jar:0.2.5-SNAPSHOT]
at com.feth.play.module.pa.PlayAuthenticate.handleAuthentication(PlayAuthenticate.java:442) ~[play-authenticate_2.10-0.2.5-SNAPSHOT.jar:0.2.5-SNAPSHOT]
at com.feth.play.module.pa.providers.password.UsernamePasswordAuthProvider.handleSignup(UsernamePasswordAuthProvider.java:145) ~[play-authenticate_2.10-0.2.5-SNAPSHOT.jar:0.2.5-SNAPSHOT]

最佳答案

我使用 Play 命令解决了这个问题:

play clean
play clean-files;
play update
play reload
play compile
play run

如果您使用的是激活器,请用激活器替换游戏。

关于playframework-2.0 - IllegalStateException : No value MyAuthProvider. handleSignup(ctx());,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18289602/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com