assemblits / eru

The open JavaFX SCADA
GNU General Public License v3.0
14 stars 9 forks source link

Everytime a connection is closed an Exception is thrown #62

Closed marl0rd closed 7 years ago

marl0rd commented 7 years ago

The exception:

java.io.IOException: Stream closed
    at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:291)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
    at java.io.DataInputStream.read(DataInputStream.java:149)
    at net.wimpi.modbus.io.ModbusTCPTransport.readResponse(ModbusTCPTransport.java:171)
    at net.wimpi.modbus.io.ModbusTCPTransaction.execute(ModbusTCPTransaction.java:193)
    at org.assemblits.eru.comm.context.MessageToReadAddressBlock.send(MessageToReadAddressBlock.java:78)
    at org.assemblits.eru.comm.member.ModbusDeviceCommunicator.communicate(ModbusDeviceCommunicator.java:50)
    at org.assemblits.eru.comm.member.Director.run(Director.java:24)
    at java.lang.Thread.run(Thread.java:748)
net.wimpi.modbus.ModbusIOException: Executing transaction failed (tried 3 times)
    at net.wimpi.modbus.io.ModbusTCPTransaction.execute(ModbusTCPTransaction.java:197)
    at org.assemblits.eru.comm.context.MessageToReadAddressBlock.send(MessageToReadAddressBlock.java:78)
    at org.assemblits.eru.comm.member.ModbusDeviceCommunicator.communicate(ModbusDeviceCommunicator.java:50)
    at org.assemblits.eru.comm.member.Director.run(Director.java:24)
    at java.lang.Thread.run(Thread.java:748)
marl0rd commented 7 years ago

This is something related with the Jamod Library and the way is handled the tags. All tags are always watching if the connection is activated to be updated, so if someone deactivate a connection the tag will stop updating but while stop updating some polls are going to fail... Almost natural but awkward.

marl0rd commented 7 years ago

There is a bug ticket in the library forum: link

marl0rd commented 7 years ago

Thinking about changing Jamod by J2mod: j2mod

marl0rd commented 7 years ago

Jamod replaced successfully