Menu

TransportProtocolException

Help
palmiye
2006-07-26
2013-05-20
  • palmiye

    palmiye - 2006-07-26

    My code is running with no error but sometimes i get following error.

    548329 [Transport protocol 5] INFO com.sshtools.j2ssh.transport.TransportProtocolCommon  - The host key signature is invalid

    2006-07-26 10:53:13,611 - The Transport Protocol thread failed

    com.sshtools.j2ssh.transport.TransportProtocolException: IO Error on socket: Socket closed

            at com.sshtools.j2ssh.transport.TransportProtocolOutputStream.sendMessage(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.sendMessage(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.sendNewKeys(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.onMsgKexInit(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.run(Unknown Source)

            at java.lang.Thread.run(Thread.java:595)

    548329 [Transport protocol 5] ERROR com.sshtools.j2ssh.transport.TransportProtocolCommon  - The Transport Protocol thread failed

    com.sshtools.j2ssh.transport.TransportProtocolException: IO Error on socket: Socket closed

            at com.sshtools.j2ssh.transport.TransportProtocolOutputStream.sendMessage(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.sendMessage(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.sendNewKeys(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.onMsgKexInit(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.run(Unknown Source)

            at java.lang.Thread.run(Thread.java:595)

    What can cause this error?
    Does anyone plz help..

     
    • Pat

      Pat - 2006-07-26

      Is the connection open for a long time?

      Have you looked at patches? -

      [ 898106 ] Connection terminated after 1GB data transfered

       
    • palmiye

      palmiye - 2006-07-27

      Hi, connections are not open for a long time.
      I also restart the SSHDaemon.
      i think, the exception is thrown almost the task is complete.
      i send the console output again.
      Finally, i did not look at patches. What patches?
      Thx.

      [7/27/06 10:13:58:895 EEST] 368a76e4 Channel       I com.sshtools.j2ssh.connection.Channel  Finializing channel close

      [7/27/06 10:13:58:895 EEST] 368a76e4 ConnectionPro I com.sshtools.j2ssh.connection.ConnectionProtocol  Freeing channel 1 [sftp]

      [7/27/06 10:13:58:895 EEST] 368a76e4 Service       I com.sshtools.j2ssh.transport.Service  ssh-connection thread is exiting

      2006-07-27 10:13:58,905 - *** Job Completed ****:TRAWLER_GROUP_SAMPLE

      13058 [DefaultQuartzScheduler_Worker-4] DEBUG com.eigroup.tools.ftld.trawler.JobListener  - *** Job Completed ****:TRAWLER_GROUP_SAMPLE

      2006-07-27 10:13:58,905 - -->Active jobs:{TRAWLER_GROUP_q=}

      13058 [DefaultQuartzScheduler_Worker-4] DEBUG com.eigroup.tools.ftld.trawler.JobListener  - -->Active jobs:{TRAWLER_GROUP_q=}

      2006-07-27 10:13:58,905 - ****** Trigger Completed **************

      13058 [DefaultQuartzScheduler_Worker-4] DEBUG com.eigroup.tools.ftld.trawler.TriggerListener  - ****** Trigger Completed **************

      [7/27/06 10:14:13:075 EEST] 3f33f6e4 TransportProt E com.sshtools.j2ssh.transport.TransportProtocolCommon  The Transport Protocol thread failed

      [7/27/06 10:14:13:085 EEST] 3f33f6e4 TransportProt E com.sshtools.j2ssh.transport.TransportProtocolCommon  TRAS0014I: The following exception was logged java.net.SocketException: Connection reset

            at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code))

            at java.net.SocketInputStream.read(SocketInputStream.java:208)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.negotiateVersion(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.run(Unknown Source)

            at java.lang.Thread.run(Thread.java:568)

      .

                                       java.net.SocketException: Connection reset

            at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code))

            at java.net.SocketInputStream.read(SocketInputStream.java:208)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.negotiateVersion(Unknown Source)

            at com.sshtools.j2ssh.transport.TransportProtocolCommon.run(Unknown Source)

            at java.lang.Thread.run(Thread.java:568)

       
    • yongh

      yongh - 2006-08-03

      Did you application hang when you got "The host key signature is invalid" error? This error is caused by the key that is not signed by trusted authorization. My application hangs when I got this error for key exchanging. I fixed the error by updating connection state before the transport protocol stops. More details can be found the bug report I just submitted. Hope it can fix you error, too. 

       

Log in to post a comment.