Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in Java FTP by (140 points)
com.enterprisedt.net.j2ssh.transport.TransportProtocolException: IO Error on socket: Socket closed
    at com.enterprisedt.net.j2ssh.transport.b.a(TransportProtocolOutputStream.java:217)
    at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.sendMessage(TransportProtocolCommon.java:476)
    at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.sendDisconnect(TransportProtocolCommon.java:804)
    at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.disconnect(TransportProtocolCommon.java:256)
    at com.enterprisedt.net.j2ssh.SshClient.disconnect(SshClient.java:700)
    at com.enterprisedt.net.ftp.ssh.SSHFTPClient.quit(SSHFTPClient.java:1881)

1 Answer

0 votes
by (161k points)
Unfortunately, this doesn't contain enough information to tell us what is going on. Usually, the debug log file is required.
by (140 points)
Added the debug log file

DEBUG    15:48:39,126 [  Thread-9] FTPCon              Quit client.
DEBUG    15:48:39,126 [  Thread-9] SftpClient                quit() called
DEBUG    15:48:39,126 [  Thread-9] Channel                   close() called
DEBUG    15:48:39,126 [  Thread-9] ConnectionProtocol        Local computer has closed channel 48[sftp]
DEBUG    15:48:39,126 [  Thread-9] TransportProtocolCommon   Name=SSH_MSG_CHANNEL_CLOSE,MessageId=97
DEBUG    15:48:39,126 [  Thread-9] TransportProtocolOutputStream Sent message. Seq no=60, msg=97
DEBUG    15:48:39,126 [  Thread-9] Channel                   Connection is connected
DEBUG    15:48:39,126 [  Thread-9] ChannelDataWindow         Stopped channel data window
DEBUG    15:48:39,126 [  Thread-9] ChannelDataWindow         Stopped channel data window
DEBUG    15:49:06,953 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:07,054 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:07,154 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:07,254 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:07,354 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:07,454 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:07,554 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:07,655 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:07,755 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:07,855 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:07,955 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:08,055 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:08,155 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:08,255 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:08,355 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:08,456 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:08,556 [  Thread-9] SftpClient                Waiting for close channel ack
DEBUG    15:49:09,126 [ssh-connection 31] SshMessageStore           Timeout retrieving message
FATAL    15:49:09,126 [ssh-connection 31] AsyncService              Service message loop failed!
com.enterprisedt.net.j2ssh.transport.MessageNotAvailableException: The message is not available
    at com.enterprisedt.net.j2ssh.transport.SshMessageStore.getMessage(SshMessageStore.java:168)
    at com.enterprisedt.net.j2ssh.transport.AsyncService.run(AsyncService.java:109)
    at java.lang.Thread.run(Thread.java:748)
DEBUG    15:49:09,126 [ssh-connection 31] State                     Updated state to 3
DEBUG    15:49:09,126 [ssh-connection 31] AsyncService              ssh-connection main loop finished
DEBUG    15:49:09,126 [ssh-connection 31] ConnectionProtocol        Closing all active channels
DEBUG    15:49:09,127 [ssh-connection 31] ConnectionProtocol        Closing sftp id=48
DEBUG    15:49:09,127 [ssh-connection 31] Channel                   close() called
DEBUG    15:49:09,127 [ssh-connection 31] Channel                   Connection is not connected
DEBUG    15:49:09,127 [ssh-connection 31] Channel                   Finalizing channel close
DEBUG    15:49:09,127 [ssh-connection 31] State                     Updated state to 3
DEBUG    15:49:09,132 [ssh-connection 31] State                     Updated state to 2
DEBUG    15:49:09,132 [ssh-connection 31] ConnectionProtocol        Freeing channel 48 [sftp]
DEBUG    15:49:09,132 [ssh-connection 31] ChannelDataWindow         Stopped channel data window
DEBUG    15:49:09,132 [  Thread-9] SftpClient                Channel close ack received
DEBUG    15:49:09,132 [ssh-connection 31] ChannelDataWindow         Stopped channel data window
DEBUG    15:49:09,132 [ssh-connection 31] AsyncService              ssh-connection thread is exiting
DEBUG    15:49:09,132 [  Thread-9] TransportProtocolCommon   Disconnect: Terminating connection
DEBUG    15:49:09,132 [  Thread-9] State                     Updated state to 5
DEBUG    15:49:09,132 [  Thread-9] TransportProtocolCommon   sendDisconnect(11,'Terminating connection')
DEBUG    15:49:09,132 [  Thread-9] TransportProtocolCommon   Name=SSH_MSG_DISCONNECT,MessageId=1
DEBUG    15:49:09,133 [  Thread-9] TransportProtocolOutputStream Sent message. Seq no=61, msg=1
DEBUG    15:49:09,133 [  Thread-9] TransportProtocolCommon   stop() called
DEBUG    15:49:09,133 [  Thread-9] State                     Updated state to 3
DEBUG    15:49:09,133 [  Thread-9] Channel                   Remote side is closing channel
DEBUG    15:49:09,133 [  Thread-9] Channel                   close() called
DEBUG    15:49:09,133 [  Thread-9] ChannelDataWindow         Stopped channel data window
DEBUG    15:49:09,133 [  Thread-9] ChannelDataWindow         Stopped channel data window
DEBUG    15:49:09,133 [  Thread-9] TransportProtocolCommon   stop() called
DEBUG    15:49:09,133 [  Thread-9] Channel                   Remote side is closing channel
DEBUG    15:49:09,133 [  Thread-9] Channel                   close() called
DEBUG    15:49:09,133 [  Thread-9] ChannelDataWindow         Stopped channel data window
DEBUG    15:49:09,133 [  Thread-9] ChannelDataWindow         Stopped channel data window
 INFO    15:49:09,133 [Transport protocol 31] TransportProtocolCommon   The Transport Protocol has been stopped
DEBUG    15:49:09,133 [  Thread-9] SshClient                 Setting maxpacketsize=32648
DEBUG    15:49:09,133 [  Thread-9] FTPCon              Quit client finished.
by (51.1k points)
The log indicates that a timeout has occurred.  This is usually because the server has stopped communicating for some reason.  Are you able to check the server logs?

Categories

...