Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
11.1k views
in Java FTP by (180 points)
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
by (110 points)
So what is the resolution ? I am having same error
by (110 points)
2016-03-10 04:01:44,741 [ERROR] (JobExecuter) : Job has failed to execute java.lang.NullPointerException
at com.*****.b2c.batch.util.GetFilesFromSFTP.run(Unknown Source)
at com.*****.b2c.batch.util.JobExecuter.main(Unknown Source)
2016-03-10 04:01:43,702 [ERROR] (GetFilesFromSFTP) : Error processing GetFilesFromSFTP :
java.io.IOException: The message store has reached EOF
at com.enterprisedt.net.j2ssh.connection.ConnectionProtocol.openChannel(ConnectionProtocol.java:200)
at com.enterprisedt.net.j2ssh.SshClient.openChannel(SshClient.java:1146)
at com.enterprisedt.net.j2ssh.SshClient.openSftpChannel(SshClient.java:1100)
at com.enterprisedt.net.j2ssh.SftpClient.<init>(SftpClient.java:187)
at com.enterprisedt.net.j2ssh.SshClient.openSftpClient(SshClient.java:993)
at com.enterprisedt.net.j2ssh.SshClient.openSftpClient(SshClient.java:974)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.connect(SSHFTPClient.java:944)
at com.****.b2c.batch.util.GetFilesFromSFTP.getSFTPConnection(Unknown Source)
at com.****.b2c.batch.util.GetFilesFromSFTP.run(Unknown Source)
at com.****.b2c.batch.util.JobExecuter.main(Unknown Source)

3 Answers

–1 vote
by (161k points)
Please enable logging at the ALL level and email us the zipped log file (showing the error). support at enterprisedt dot com.
0 votes
by (180 points)
Can you please advise if the proprietary logging in the edtFTPj/PRO has ways in which the logging to a file appender can be rolled based on the file size?
After enabling log, the file size is increasing very much. We had to remove it from Production.
0 votes
by (161k points)
In that case setting to DEBUG will result in a much smaller log but still provide us with hopefully enough detail.

The next release of edtFTPj/PRO will include a RollingFileAppender. If you'd like a build with this included, please email us and we'll send it to you.

The other alternative is to use the log4j integration.

Categories

...