commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: ftp.setSoTimeout throwing NullPointer Exception
Date Thu, 24 Nov 2005 22:45:59 GMT

In message <43822363.9030208@virage.com>, Noah White writes:
>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)

http://jakarta.apache.org/commons/net/apidocs/org/apache/commons/net/SocketClient.html#setSoTimeout(int)

  "Set the timeout in milliseconds of a currently open connection. Only call
   this method after a connection has been opened by connect()."

daniel

-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
    s a v a r e s e      # In distant lands, I hear the call of my home.
   software research     # Yet my work is not done.  My journey's just begun.
http://www.savarese.com/ #  -- http://www.sleepandthetraveller.com/


---------------------------------------------------------------------
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