当我使用Scala项目打开Play 2.1上的跟踪日志记录时,我发现了一个奇怪的异常。每当我调用包含以下控制器的控制器时都会看到此异常,该控制器本质上是一个ping:
object Ping extends Controller {
def get() = Action {
Ok("LALA")
}
}
更令人沮丧的是,异常堆栈中没有任何内容可以将我的代码链接到异常。
非常感谢任何见解。
由于
异常追踪:
2013-02-27 09:57:24,163 [T] [] - Exception caught in Netty java.lang.ClassCastException: scala.runtime.BoxedUnit cannot be cast to scala.Function0 at play.core.server.netty.PlayDefaultUpstreamHandler.channelDisconnected(PlayDefaultUpstreamHandler.scala:50) ~[play_2.10.jar:2.1.0] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.cleanup(ReplayingDecoder.java:573) ~[netty.jar:na] at org.jboss.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:366) ~[netty.jar:na] at org.jboss.netty.channel.Channels.fireChannelDisconnected(Channels.java:399) ~[netty.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:716) ~[netty.jar:na] at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:89) ~[netty.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:472) ~[netty.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:333) ~[netty.jar:na] at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35) ~[netty.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [na:1.6.0_41] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [na:1.6.0_41] at java.lang.Thread.run(Thread.java:680) [na:1.6.0_41]