ava.lang.NoSuchMethodError: play.api.test.FakeApplication$.$lessinit$greater$default$3()Lscala/collection/Seq;

352 views
Skip to first unread message

Tianhao Li

unread,
Mar 7, 2016, 1:02:14 AM3/7/16
to play-framework

I got so many errors like:

ava.lang.NoSuchMethodError: play.api.test.FakeApplication$.$lessinit$greater$default$3()Lscala/collection/Seq;
sbt.ForkMain$ForkError: java.lang.NoSuchMethodError: play.api.test.FakeApplication$.$lessinit$greater$default$3()Lscala/collection/Seq;
at org.scalatestplus.play.OneServerPerSuite$class.app(OneServerPerSuite.scala:152)
at com.myob.BaseIntegrationSpec.app$lzycompute(BaseIntegrationSpec.scala:10)
at com.myob.BaseIntegrationSpec.app(BaseIntegrationSpec.scala:10)
at org.scalatestplus.play.OneServerPerSuite$class.run(OneServerPerSuite.scala:173)
at com.myob.BaseIntegrationSpec.run(BaseIntegrationSpec.scala:10)
at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:357)
at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:502)
at sbt.ForkMain$Run$2.call(ForkMain.java:296)
at sbt.ForkMain$Run$2.call(ForkMain.java:286)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

after I upgraded to Play 2.5 if my test extends OneServerPerSuite or OneAppPerSuite

Greg Methvin

unread,
Mar 7, 2016, 1:48:43 AM3/7/16
to play-framework
It looks like you are using an incompatible version of scalatestplus-play. Try upgrading to 1.5.0. I think some of the docs on that might not be up to date.

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/225f8460-4c49-4472-8c56-b15f1b8df01b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Greg Methvin
Senior Software Engineer

Tianhao Li

unread,
Mar 7, 2016, 2:52:15 AM3/7/16
to play-framework
Thanks. Will try to upgrade it and see how is it going.

I did go to ScalaTestPlus page to see the latest version and didn't see 1.5.0 (same as maven repository). Looks like not update docs and etc
Message has been deleted

Michael Ahlers

unread,
Jun 11, 2016, 12:57:24 PM6/11/16
to play-framework
For future reference, ScalaTest + Play has been updated to 1.5.1 (see: project releasesMaven Central).
Reply all
Reply to author
Forward
0 new messages