commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah White <nwh...@virage.com>
Subject ftp.setSoTimeout throwing NullPointer Exception
Date Mon, 21 Nov 2005 19:43:31 GMT
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


Mime
View raw message