You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2011/04/13 01:37:05 UTC

[jira] [Created] (NET-404) FTPSSocketFactory does not override createSocket(); causes java.net.SocketException: Unconnected sockets not implemented

FTPSSocketFactory does not override createSocket(); causes java.net.SocketException: Unconnected sockets not implemented
------------------------------------------------------------------------------------------------------------------------

                 Key: NET-404
                 URL: https://issues.apache.org/jira/browse/NET-404
             Project: Commons Net
          Issue Type: Bug
          Components: FTP
    Affects Versions: 2.2
            Reporter: Sebb


Adding connect timeout for NET-399 changed the code to use socketFactory.createSocket() instead of createSocket(host, port).

As FTPSSocketFactory does not implement createSocket(), this means that the context socketFactory is not used, leading to:

{noformat}
java.net.SocketException: Unconnected sockets not implemented
        at javax.net.SocketFactory.createSocket(SocketFactory.java:104)
        at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:714)
        at org.apache.commons.net.ftp.FTPSClient._openDataConnection_(FTPSClient.java:549)
{noformat}

Fix is to implement the no-arg createSocket() method.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (NET-404) FTPSSocketFactory does not override createSocket(); causes java.net.SocketException: Unconnected sockets not implemented

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved NET-404.
----------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Added the missing method override

> FTPSSocketFactory does not override createSocket(); causes java.net.SocketException: Unconnected sockets not implemented
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NET-404
>                 URL: https://issues.apache.org/jira/browse/NET-404
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 2.2
>            Reporter: Sebb
>             Fix For: 3.0
>
>
> Adding connect timeout for NET-399 changed the code to use socketFactory.createSocket() instead of createSocket(host, port).
> As FTPSSocketFactory does not implement createSocket(), this means that the context socketFactory is not used, leading to:
> {noformat}
> java.net.SocketException: Unconnected sockets not implemented
>         at javax.net.SocketFactory.createSocket(SocketFactory.java:104)
>         at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:714)
>         at org.apache.commons.net.ftp.FTPSClient._openDataConnection_(FTPSClient.java:549)
> {noformat}
> Fix is to implement the no-arg createSocket() method.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira