itm / testbed-runtime

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

Gateway process sometimes "hangs up" when disconnecting a device #353

Open danbim opened 10 years ago

danbim commented 10 years ago

It will sometimes display the following Stacktrace at least 10 times per second and forever:

java.io.IOException: Input/output error in nativeavailable
    at gnu.io.RXTXPort.nativeavailable(Native Method)
    at gnu.io.RXTXPort$SerialInputStream.read(RXTXPort.java:1427)
    at gnu.io.RXTXPort$SerialInputStream.read(RXTXPort.java:1339)
    at de.uniluebeck.itm.wsn.drivers.core.SerialPortDevice$2.onDataAvailable(SerialPortDevice.java:69)
    at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.commons.lang3.event.EventListenerSupport$ProxyInvocationHandler.invoke(EventListenerSupport.java:311)
    at com.sun.proxy.$Proxy31.onDataAvailable(Unknown Source)
    at de.uniluebeck.itm.wsn.drivers.core.AbstractConnection.signalDataAvailable(AbstractConnection.java:122)
    at de.uniluebeck.itm.wsn.drivers.core.serialport.AbstractSerialPortConnection.serialEvent(AbstractSerialPortConnection.java:180)
    at gnu.io.RXTXPort.sendEvent(RXTXPort.java:772)
    at gnu.io.RXTXPort.eventLoop(Native Method)
    at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1641)