Skip to content

input stream was truncated while reading a word #113

Description

@jurivrljicak

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions