itm / testbed-runtime

WISEBED Wireless Sensor Network Testbed Infrastructure Software
https://github.com/itm/testbed-runtime/wiki
15 stars 11 forks source link

Connection from gateway to portal still keeps crashing #361

Closed danbim closed 10 years ago

danbim commented 10 years ago
2014-05-27 11:31:21,161 | New I/O  worker #3             | GatewayEventBus                | INFO  | Successfully connected to portal server
2014-05-27 12:10:20,995 | New I/O  worker #3             | ExceptionChannelHandler        | ERROR | Uncaught exception: 
java.io.IOException: Connection reset by peer
    at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
    at sun.nio.ch.IOUtil.read(IOUtil.java:192)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:59)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
    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:744)
danbim commented 10 years ago

Some more interesting log messages:

2014-05-22 10:43:11,089 | New I/O  worker #2             | GatewayEventBus                | INFO  | Successfully connected to portal server
2014-05-27 11:30:41,091 | New I/O  worker #2             | ExceptionChannelHandler        | ERROR | Uncaught exception: 
java.io.IOException: Connection reset by peer
    at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
    at sun.nio.ch.IOUtil.read(IOUtil.java:192)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:59)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
    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:744)
2014-05-27 11:30:41,092 | GatewayScheduler-Worker 9      | KeepAliveHandler               | WARN  | KeepAliveHandler[remote=portal.wisebed.itm.uni-luebeck.de/141.83.157.102:8880,msElapsed=7552] detected dead TCP channel. Closing it...
2014-05-27 11:30:41,110 | New I/O  worker #2             | GatewayEventBus                | INFO  | Lost connection to portal server
2014-05-27 11:30:41,112 | GatewayScheduler-Worker 9      | GatewayEventBus                | INFO  | Trying to connect to portal server...
2014-05-27 11:30:41,117 | New I/O  worker #3             | GatewayEventBus                | INFO  | Successfully connected to portal server
2014-05-27 11:30:51,119 | GatewayScheduler-Worker 9      | KeepAliveHandler               | WARN  | KeepAliveHandler[remote=portal.wisebed.itm.uni-luebeck.de/141.83.157.102:8880,msElapsed=10001] detected dead TCP channel. Closing it...
2014-05-27 11:30:51,122 | New I/O  worker #3             | GatewayEventBus                | INFO  | Lost connection to portal server
2014-05-27 11:30:51,123 | GatewayScheduler-Worker 9      | GatewayEventBus                | INFO  | Trying to connect to portal server...
2014-05-27 11:30:51,127 | New I/O  worker #4             | GatewayEventBus                | INFO  | Successfully connected to portal server
2014-05-27 11:31:01,129 | GatewayScheduler-Worker 9      | KeepAliveHandler               | WARN  | KeepAliveHandler[remote=portal.wisebed.itm.uni-luebeck.de/141.83.157.102:8880,msElapsed=10001] detected dead TCP channel. Closing it...

Seems like the gateway "detects" a broken TCP connection right after having it freshly opened.