scala - Play! framework staging causing NoSuchFieldError when calling routes.Application.index -
we using play 2.1.0. when launch using "play run", works fine. when play stage; ./target/start -dconfig.file=/users/xxxx/desktop/application.conf
, cause error. below trace:
! @6enc6p16c - internal server error, (get) [/] -> play.api.application$$anon$1: execution exception[[runtimeexception: java.lang.nosuchfielderror: application]] @ play.api.application$class.handleerror(application.scala:289) ~[play_2.10.jar:2.1.0] @ play.api.defaultapplication.handleerror(application.scala:383) [play_2.10.jar:2.1.0] @ play.core.server.netty.playdefaultupstreamhandler$$anon$2$$anonfun$handle$1.apply(playdefaultupstreamhandler.scala:132) [play_2.10.jar:2.1.0] @ play.core.server.netty.playdefaultupstreamhandler$$anon$2$$anonfun$handle$1.apply(playdefaultupstreamhandler.scala:128) [play_2.10.jar:2.1.0] @ play.api.libs.concurrent.playpromise$$anonfun$extend1$1.apply(promise.scala:113) [play_2.10.jar:2.1.0] @ play.api.libs.concurrent.playpromise$$anonfun$extend1$1.apply(promise.scala:113) [play_2.10.jar:2.1.0] java.lang.runtimeexception: java.lang.nosuchfielderror: application @ play.libs.f$promise$6.apply(f.java:401) ~[play_2.10.jar:2.1.0] @ scala.concurrent.future$$anonfun$map$1.liftedtree2$1(future.scala:253) ~[scala-library.jar:na] @ scala.concurrent.future$$anonfun$map$1.apply(future.scala:249) ~[scala-library.jar:na] @ scala.concurrent.future$$anonfun$map$1.apply(future.scala:249) ~[scala-library.jar:na] @ scala.concurrent.impl.callbackrunnable.run(promise.scala:29) ~[scala-library.jar:na] @ akka.dispatch.batchingexecutor$batch$$anonfun$run$1.liftedtree1$1(batchingexecutor.scala:67) ~[akka-actor_2.10.jar:na] caused by: java.lang.nosuchfielderror: application @ views.html.navbar$.apply(navbar.template.scala:40) ~[endovl_2.10-1.0.0-snapshot.jar:1.0.0-snapshot] @ views.html.navbar$.render(navbar.template.scala:65) ~[endovl_2.10-1.0.0-snapshot.jar:1.0.0-snapshot] @ views.html.main$.mainnavbar$1(main.template.scala:35) ~[endovl_2.10-1.0.0-snapshot.jar:1.0.0-snapshot] @ views.html.main$.apply(main.template.scala:43) ~[endovl_2.10-1.0.0-snapshot.jar:1.0.0-snapshot] @ views.html.index$.apply(index.template.scala:33) ~[endovl_2.10-1.0.0-snapshot.jar:1.0.0-snapshot] @ views.html.index$.render(index.template.scala:64) ~[endovl_2.10-1.0.0-snapshot.jar:1.0.0-snapshot] ^c[info] application - xxxxxx - application shutdown...
need help...
below line caused nosuchfielderror exception in view.html.navbar.
@navitem(routes.application.index(), "home")
and line of code in navbar.template.scala
"""),_display_(seq[any](/*11.8*/navitem(routes.application.index(), "home"))),format.raw/*11.51*/("""
Comments
Post a Comment