Show Jochenunread, Sep 22, 2014, 4:34:38 AM9/22/14 to Hi! In my play 2.3 app i get this errormessage dumped to the console: java.io.IOException: Eine bestehende Verbindung wurde softwaregesteuert durch den Hostcomputer abgebrochen at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:225) at sun.nio.ch.IOUtil.read(IOUtil.java:193) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:359) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) 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) I'm using websockets. But i also have to reload the page sometimes. So new websocket connections have to be created and old connections are just lost on page reload. With play 2.2 there was no problem doing that. Starting with play 2.3 i am now getting the above error. This is the actor that does the dispatching of the messages
that are sent via websockets: class DispatchActor extends Actor with ActorLogging { var users = Set[ActorRef]() def receive = LoggingReceive { case Subscribe => { users += sender context watch sender } case Terminated(user) => users -= user case message => { println("users:") users foreach println users map { _ ! message } } } } object DispatchActor { lazy val board = Akka.system().actorOf(Props[DispatchActor]) def apply() = board } Any ideas how i could mute this message(increasing the log level did not change anything) or actually do something about it? Thx. James Roperunread, Sep 22, 2014, 11:43:37 AM9/22/14 to play-framework What's the line before that message in the logs? Jochenunread, Sep 22, 2014, 4:09:39 PM9/22/14 to [TRACE] 2014-09-22 08:55:48,419 Http request received by netty: DefaultHttpRequest(chunked: false) GET /packages/2 HTTP/1.1 Host: localhost:9000 Connection: keep-alive Cache-Control: max-age=0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36 Referer: http://localhost:9000/packages/2 Accept-Encoding: gzip,deflate,sdch Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2,fr;q=0.2,it;q=0.2 Cookie: PLAY2AUTH_SESS_ID="ab295c170255ba65490473936955c4fa926b29ca~)n3d_rpy)onme'9*phvi(7n4b55ysu)ann'haxtpytmrlv4.u~i*a3d6nof4lov"; status=all; timespan="Past 24 Hours" [TRACE] 2014-09-22 08:55:48,423 Serving this request with: <function1> [TRACE] 2014-09-22 08:55:48,423 Parsing AnyContent as empty [TRACE] 2014-09-22 08:55:48,423 Invoking action with request: GET /packages/2 [DEBUG] 2014-09-22 08:55:48,425 authorized as NormalUser java.io.IOException: Eine bestehende Verbindung wurde softwaregesteuert durch den Hostcomputer abgebrochen at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:225) at sun.nio.ch.IOUtil.read(IOUtil.java:193) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:359) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) 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) [TRACE] 2014-09-22 08:55:48,528 disconnected socket [TRACE] 2014-09-22 08:55:48,599 Http request received by netty: DefaultHttpRequest(chunked: false) this is the log when i set the log level to trace. Jochenunread, Oct 3, 2014, 4:55:26 AM10/3/14 to so.. any ideas anybody? I still cannot get rid of this error On Sunday, September 21, 2014 9:34:38 PM UTC+2, Jochen wrote: |