You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Gaillard (JIRA)" <ji...@apache.org> on 2008/07/21 14:23:31 UTC
[jira] Created: (VFS-214) Aborting an FtpInputStream leads to
exceptions (NPE..) with the underlying FTPClient
Aborting an FtpInputStream leads to exceptions (NPE..) with the underlying FTPClient
------------------------------------------------------------------------------------
Key: VFS-214
URL: https://issues.apache.org/jira/browse/VFS-214
Project: Commons VFS
Issue Type: Bug
Reporter: Gilles Gaillard
Priority: Trivial
In FtpFileObject.FtpInputStream the method abort has the following implementation:
client.abort();
close();
The first call to client.abort() disconnects the client which closes all streams and sockets.
Then 'close' tries to call client.completePendingCommand() therefore resulting in errors like NPE in the FTPClient.
This result in FTP unit tests running with errors.
Calling close first, then client.abort seems to resolve the issue and fix these errors in unit tests.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.