java.lang.NegativeArraySizeException

sshtools | queinnec | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NegativeArraySizeException ?

    sshtools | 10 years ago | queinnec
    java.lang.NegativeArraySizeException
  2. 0

    Not working on linux. works fine on windows.

    sshtools | 10 years ago | fsumargo
    java.lang.NegativeArraySizeException

    Root Cause Analysis

    1. java.lang.NegativeArraySizeException

      No message provided

      at com.sshtools.j2ssh.io.ByteArrayReader.readString()
    2. com.sshtools.j2ssh
      SshClient.connect
      1. com.sshtools.j2ssh.io.ByteArrayReader.readString(ByteArrayReader.java:163)
      2. com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory.decodePublicKey(SshKeyPairFactory.java:221)
      3. com.sshtools.j2ssh.transport.AbstractKnownHostsKeyVerification.<init>(AbstractKnownHostsKeyVerification.java:119)
      4. com.sshtools.j2ssh.transport.ConsoleKnownHostsKeyVerification.<init>(ConsoleKnownHostsKeyVerification.java:61)
      5. com.sshtools.j2ssh.SshClient.connect(SshClient.java:541)
      5 frames
    3. Unknown
      PublicKeyConnect.main
      1. PublicKeyConnect.main(PublicKeyConnect.java:77)
      1 frame