Thrown by SshMessage implementations when an invalid message is found.
SshMessage
107108109110111112113114
for (int i = 0; i < responses.length; i++) { baw.writeString(responses[i]); } } } catch (IOException ioe) { throw new InvalidMessageException("Failed to write message data"); } }
133134135136137138139140
for (int i = 0; i < responses.length; i++) { responses[i] = bar.readString(); } } } catch (IOException ioe) { throw new InvalidMessageException("Failed to read message data"); } }
115116117118119120121122
try { baw.writeString(remoteHostname); baw.writeString(remoteIPAddress); baw.writeUINT32(remotePort); } catch (IOException ex) { throw new InvalidMessageException(ex.getMessage()); } }
137138139140141142143144
try { remoteHostname = bar.readString(); remoteIPAddress = bar.readString(); remotePort = bar.readUINT32(); } catch (IOException ex) { throw new InvalidMessageException(ex.getMessage()); } }
8788899091929394
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { baw.writeString(version); } catch (IOException ex) { throw new InvalidMessageException(ex.getMessage()); } }
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { version = bar.readString(); } catch (IOException ex) { throw new InvalidMessageException(ex.getMessage()); } }
171172173174175176177178
baw.writeString(prompts[i].getPrompt()); baw.write(prompts[i].echo() ? 1 : 0); } } } catch (IOException ioe) { throw new InvalidMessageException("Failed to write message data"); } }
201202203204205206207208
prompt = bar.readString(); echo = (bar.read() == 1); addPrompt(prompt, echo); } } catch (IOException ioe) { throw new InvalidMessageException("Failed to read message data"); } }
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { baw.write(padding); } catch (IOException ioe) { throw new InvalidMessageException(ioe.getMessage()); } }
9192939495969798
protected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException { try { baw.writeInt(recipientChannel); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }