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.