jfreesane
jfreesane copied to clipboard
input stream was truncated while reading a word
Hello, from
SaneSession.java
private void initSane() throws IOException {
// RPC code
outputStream.write(SaneRpcCode.SANE_NET_INIT);
// version number
outputStream.write(SaneWord.forSaneVersion(1, 0, 3));
// username
outputStream.write(System.getProperty("user.name"));
outputStream.flush();
**inputStream.readWord();**
inputStream.readWord();
}
I am getting 'input stream was truncated while reading a word' in the highlighted line. I don't know why this happens, any idea?
Very often I have to plug/unplug the device for it to establish a communication but this time I can't pass through this error. Got stuck in there.
Using Ubuntu 16.04 LTS and the latest from jfreesane (1.0)
thanks