You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Noah White <nw...@virage.com> on 2005/11/21 20:43:31 UTC

ftp.setSoTimeout throwing NullPointer Exception

Client platform:
    VM J2SDK 1.5.0_04.
    Commons NET 1.4.0
    Windows 2000 Pro all Windows updates applied

FTP server(s) this fails against

    1.
        Windows Server 2003 all latest hotfixes
        Default MS FTP sever config/install
    2. Windows 2000 Server all latest hotfixes
       Default MS FTP server config/install

Code in question:

    FTPClient ftp = new FTPClient();
    try {
       ftp.setDefaultTimeout(60000);
       ftp.setSoTimeout(60000);
       ...

Generates -

java.lang.NullPointerException
    at 
org.apache.commons.net.SocketClient.setSoTimeout(SocketClient.java:354)



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org