While using ReadSerialTest inside the package com.serotonin.modbus4j.test, I am getting the error mentioned below for Modbus RTU over RS232.
at com.serotonin.modbus4j.sero.messaging.InputStreamListener.run
Actually the software doesn't transmit any data over RS232. Hence its receiving a null pointer exception on the receive side.
Output stream this.out is null, not assigned.
public StreamTransport(InputStream in, OutputStream out) {
this.out = out;
this.in = in;
}
What could be the reason. Please help me to resolve the problem.