播放2.0意外异常StackOverflowError:null [英] Play 2.0 unexpected exception StackOverflowError: null
问题描述
当我尝试编译我的项目时,出现以下异常:
When I try to compile my project I get the following exception:
! Internal server error, for request [GET /] ->
play.api.UnexpectedException: Unexpected exception [StackOverflowError: null]
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12.apply(PlayReloader.scala:233) ~[na:na]
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12.apply(PlayReloader.scala:226) ~[na:na]
at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3]
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4.apply(PlayReloader.scala:226) ~[na:na]
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4.apply(PlayReloader.scala:224) ~[na:na]
at scala.Either$LeftProjection.map(Either.scala:183) ~[scala-library.jar:0.11.3]
java.lang.StackOverflowError: null
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:731) ~[scala-compiler.jar:na]
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271) ~[scala-compiler.jar:na]
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4138) ~[scala-compiler.jar:na]
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:731) ~[scala-compiler.jar:na]
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271) ~[scala-compiler.jar:na]
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3353) ~[scala-compiler.jar:na]
我发现了相同的问题2 在Play 2问题跟踪器中,他们说,当routes文件增长时,就会出现该异常.
I found the same issue in the Play 2 issue tracker and they said that when the routes file grows it makes that exception.
因为我的项目不再编译了,所以有解决此异常的方法吗?
Is there a solution to this exception because my project doesn't compile anymore ?
我正在将Play 2.0.3用于scala(我的路由文件约为150行)
I'm using Play 2.0.3 for scala(my routes file is about 150 line)
推荐答案
我在Play 2.0.6上遇到了同样的问题.升级到Play 2.0.8,并没有帮助.然后,我修改了 $ play_dir/framework/build 脚本,使其使用 -Xss2M 而不是 -Xss1M 构建,问题消失了(我可以编译现在通常如此.
I had the same issue with Play 2.0.6. Upgraded to Play 2.0.8 and it didn't help. I then modified the $play_dir/framework/build script so it builds with -Xss2M instead of -Xss1M and the problem disappeared (I can compile normally now).
这篇关于播放2.0意外异常StackOverflowError:null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!