Created
March 14, 2013 10:30
-
-
Save alexandru/5160312 to your computer and use it in GitHub Desktop.
Play 2.1 / Scala - NullPointerException
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.NullPointerException | |
at play.core.server.netty.RequestBodyHandler$$anonfun$1.apply(RequestBodyHandler.scala:45) | |
at play.core.server.netty.RequestBodyHandler$$anonfun$1.apply(RequestBodyHandler.scala:43) | |
at scala.concurrent.stm.ccstm.InTxnImpl.runBlock(InTxnImpl.scala:538) | |
at scala.concurrent.stm.ccstm.InTxnImpl.topLevelAttempt(InTxnImpl.scala:494) | |
at scala.concurrent.stm.ccstm.InTxnImpl.topLevelAtomicImpl(InTxnImpl.scala:365) | |
at scala.concurrent.stm.ccstm.InTxnImpl.atomic(InTxnImpl.scala:244) | |
at scala.concurrent.stm.ccstm.CCSTMExecutor.apply(CCSTMExecutor.scala:24) | |
at play.core.server.netty.RequestBodyHandler$class.pushChunk$1(RequestBodyHandler.scala:43) | |
at play.core.server.netty.RequestBodyHandler$$anon$1.messageReceived(RequestBodyHandler.scala:89) | |
at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:131) | |
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) | |
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:455) | |
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:538) | |
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:437) | |
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) | |
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) | |
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:84) | |
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:472) | |
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:333) | |
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) | |
at java.lang.Thread.run(Thread.java:722) | |
java.nio.channels.ClosedChannelException | |
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:785) | |
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:729) | |
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:111) | |
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:66) | |
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:55) | |
at org.jboss.netty.channel.Channels.close(Channels.java:820) | |
at org.jboss.netty.channel.AbstractChannel.close(AbstractChannel.java:197) | |
at play.core.server.netty.RequestBodyHandler$$anon$1.exceptionCaught(RequestBodyHandler.scala:103) | |
at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:378) | |
at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:533) | |
at org.jboss.netty.channel.AbstractChannelSink.exceptionCaught(AbstractChannelSink.java:49) | |
at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:131) | |
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) | |
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:455) | |
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:538) | |
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:437) | |
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) | |
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) | |
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:84) | |
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:472) | |
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:333) | |
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) | |
at java.lang.Thread.run(Thread.java:722) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case someone else (like me) ends in this gist, that usually happens when you are uploading large files (http://stackoverflow.com/questions/24449967/exception-caught-in-requestbodyhandler) or sending a huge payload on your post request.