We have a Java Process that periodically polls a certain Remote Windows Server looking for new files and then copies them over for processing. We use edtFTPj/PRO to connect to the server and copy files using SSHFTPClient.
Occasionally we are seeing the error
com.enterprisedt.net.j2ssh.transport.MessageStoreEOFException: The message store has reached EOF
There is no pattern to it, just happens few times daily. If someone can give us a direction it will be very helpful. The full stack trace is -
com.enterprisedt.net.j2ssh.authentication.AuthenticationProtocolException: Failed to read messages
at com.enterprisedt.net.j2ssh.authentication.AuthenticationProtocolClient.A(Unknown Source)
at com.enterprisedt.net.j2ssh.authentication.AuthenticationProtocolClient.readMessage(Unknown Source)
at com.enterprisedt.net.j2ssh.authentication.PasswordAuthenticationClient.authenticate(Unknown Source)
at com.enterprisedt.net.j2ssh.authentication.AuthenticationProtocolClient.authenticate(Unknown Source)
at com.enterprisedt.net.j2ssh.SshClient.authenticate(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SCPClient.connectSSH(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.connect(Unknown Source)
at com.maximus.federal.partc.SFTP.SFTPClient.checkConnection(SFTPClient.java:60)
at com.maximus.federal.partc.SFTP.IBMLServerSFTPClient.processImagingTask(IBMLServerSFTPClient.java:72)
at com.maximus.federal.partc.image.ImportScanImageServiceImp.importImage(ImportScanImageServiceImp.java:21)
at com.maximus.federal.partc.image.ImportScannedImageTask.execute(ImportScannedImageTask.java:39)
at com.maximus.federal.stateappeals.scheduler.Task.run(Task.java:28)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: com.enterprisedt.net.j2ssh.transport.MessageStoreEOFException: The message store has reached EOF
at com.enterprisedt.net.j2ssh.transport.SshMessageStore.getMessage(Unknown Source)
at com.enterprisedt.net.j2ssh.transport.SshMessageStore.getMessage(Unknown Source)
... 14 more