java.lang.NoSuchMethodException: play.core.server.NettyServer.mainDevHttpMode

595 views
Skip to first unread message

Nick Fitros

unread,
Nov 17, 2015, 12:24:48 PM11/17/15
to play-framework
Hello,
After I run activator clean and then tried to start the server again with activator run, i got the following:
java.lang.NoSuchMethodException: play.core.server.NettyServer.mainDevHttpMode(play.core.BuildLink, play.core.BuildDocHan
dler
, int)
        at java
.lang.Class.getMethod(Class.java:1786)
        at play
.PlayRun$class.play$PlayRun$$startDevMode(PlayRun.scala:318)
        at play
.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.devModeServer$lzycompute$1(PlayRun.scal
a
:103)
        at play
.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.play$PlayRun$class$$anonfun$$anonfun$$a
nonfun$$devModeServer$1
(PlayRun.scala:103)
        at play
.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:125)
        at play
.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:96)
        at scala
.Function1$$anonfun$compose$1.apply(Function1.scala:47)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) java.lang.NoSuchMethodException: play.core.server.NettyServer.mainDevHttpMode(play.core.BuildLink,
 play
.core.BuildDocHandler, int)
[error] Total time: 9 s, completed 17 =Ύί 2015 1:46:23 ΉΉ

I can't find what is going on. Has anyone had this error before? If you need more info please let me know.
It's a play framework app with java.

Thanks,
Nick

Michael Chu

unread,
Nov 27, 2015, 4:10:46 PM11/27/15
to play-framework
I'm seeing this too - did you figure this out?

Nick Fitros

unread,
Nov 27, 2015, 5:56:27 PM11/27/15
to play-framework
Nop. Still nothing. I can't understand what is going wrong.

Michael Chu

unread,
Nov 27, 2015, 6:21:16 PM11/27/15
to play-framework
Ugh. I cleaned ivy, cleaned everything, reverted all changes..

Nick Fitros

unread,
Nov 27, 2015, 6:32:51 PM11/27/15
to play-framework
Did that solve the issue for you? I cleaned it all but i still got it..

Michael Chu

unread,
Nov 27, 2015, 6:52:47 PM11/27/15
to play-framework
Nope, didn't work. I even checked out a fresh (from production) branch =/ 
I'm using sbt version 0.13.5 and play 2.3 (2.3.7 -> 2.3.10) - my PlayRun.class doesn't have mainDevHttpMode whereas the last play framework one does. Still confused as to what changed, so I'll keep investigating.

Mykhaylo Slobodyan

unread,
Dec 3, 2015, 12:48:21 PM12/3/15
to play-framework
On Tuesday, November 17, 2015 at 7:24:48 PM UTC+2, Nick Fitros wrote:
java.lang.NoSuchMethodException: play.core.server.NettyServer.mainDevHttpMode(play.core.BuildLink, play.core.BuildDocHan
dler
, int)

I just had this same error.
Was moving my app from one host to another, together with .ivy2 dir, then ran ./activator run, and this happened. Cleaned .ivy2 - no luck.
Then it occurred to me that I do not have neither fdescfs nor procfs mounted on this FreeBSD box, and openjdk8 requires it.
So I mounted them, and was able to start my app.

sudo mount -t fdescfs fdesc /dev/fd
sudo mount -t procfs proc /proc
sudo sh -c "echo 'fdesc /dev/fd fdescfs rw 0 0' >> /etc/fstab"
sudo sh -c "echo 'proc /proc procfs rw 0 0' >> /etc/fstab"

Mykhaylo Slobodyan

unread,
Dec 3, 2015, 1:35:02 PM12/3/15
to play-framework
On Thursday, December 3, 2015 at 7:48:21 PM UTC+2, Mykhaylo Slobodyan wrote:
I just had this same error.
Then it occurred to me that I do not have neither fdescfs nor procfs mounted on this FreeBSD box, and openjdk8 requires it.
So I mounted them, and was able to start my app.
Correcting myself: I also disabled "ws.securesocial" %% "securesocial" % "master-SNAPSHOT" and that seems to be the real culprit.

Nick Fitros

unread,
Dec 3, 2015, 3:22:53 PM12/3/15
to play-framework
I confirm that "ws.securesocial" caused the problem for me too.
Thanks for the help!

Michael Chu

unread,
Dec 3, 2015, 8:45:25 PM12/3/15
to play-fr...@googlegroups.com
What changed then?

--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/OxgAINRfmuc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/6cc8e59f-0a01-4e39-9fe6-c1d00910d12c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Earthling

unread,
Dec 3, 2015, 11:49:07 PM12/3/15
to play-framework
Secure social master was bumped to 3.0-M4 to support Play 2.4. 
Fix your Play 2.3.x by changing secure social from master-snapshot to  "ws.securesocial" %% "securesocial" % "3.0-M3"
3.0-M3 is the release that works with Play 2.3.x

Michael Chu

unread,
Dec 4, 2015, 9:03:33 AM12/4/15
to play-fr...@googlegroups.com
That makes sense =/ Great catch. Thanks all!

Reply all
Reply to author
Forward
0 new messages