[JBoss JIRA] Created: (JBESB-508) "Unexpected null reply received" using edtftpj.jar version 1.5.2
by Rafael Codina Tormo (JIRA)
"Unexpected null reply received" using edtftpj.jar version 1.5.2
-----------------------------------------------------------------
Key: JBESB-508
URL: http://jira.jboss.com/jira/browse/JBESB-508
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0
Reporter: Rafael Codina Tormo
Assigned To: Mark Little
Priority: Critical
Hi,
I am taking part in a project where the JbossEsb is being used to retrieve data from files via FTP connection.
We have also developed a class which allows placing a file into a folder through FTP connection. To perform this, we have been based in the "org.jboss.soa.esb.util.FtpClientUtil" class, which defines a method "uploadFile" that uploads a specified file from a local directory localDirURI) to a remote directory (remoteDirURI).
When trying to execute this method, we get an exception caused by the following reason:
Caused by: org.jboss.soa.esb.util.RemoteFileSystemException:
java.io.IOException: Unexpected null reply received
at
org.jboss.soa.esb.util.FtpClientUtil.uploadFile(FtpClientUtil.java:361)
at
com.axione.service.clientftp.PousseurFichierImpl.pousserFichier(PousseurFichierImpl.java:218)
... 63 more
Caused by: java.io.IOException: Unexpected null reply received
at
com.enterprisedt.net.ftp.FTPControlSocket.readReply(FTPControlSocket.java:686)
at
com.enterprisedt.net.ftp.FTPControlSocket.sendCommand(FTPControlSocket.java:649)
at com.enterprisedt.net.ftp.FTPClient.setType(FTPClient.java:2190)
at
org.jboss.soa.esb.util.FtpClientUtil.uploadFile(FtpClientUtil.java:351)
... 64 more
After having verified the reason of the exception, we have concluded that the line of code which causes the problem is: "m_oConn.put(fileToFtpString(p_oFile), sRemoteTmp);" this line is using the "com.enterprisedt.net.ftp.FTPClient.put" method, defined in the edtftpj.jar and contained in the jbossesb-dependencies.sar.
The version that is being used by the esb is the 1.5.2, version that doesn't fix this bug, whereas the last version of this jar (1.5.4) does it.
We have tried to replace the edtftpj.jar 1.5.2 by the 1.5.4 version but the definition of the" com.enterprisedt.net.ftp.FTPClient.put" method has been changed. In the 1.5.2 version it was defined as a void, but in the 1.5.4 it returns a String.
My question is that wether this last release of the edtftpj.jar could be somehow included in your prospect release of the JbossEsb product in order to achieve the proper functionality of our development.
Thank you in advance,
Rafaël Codina
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira