#48 NullPointerException on connect

open
nobody
None
5
2008-01-26
2008-01-26
apulix
No

Not very nice, because the exception is only visible on the console and the GUI hangs:

> 200 Mode set to S.
> > TYPE A
> 200 Type set to A
> > PORT 192,168,2,102,186,114
> 200 PORT command successful
> Got IOException while trying to open a socket!
> Can't connect socket to ServerSocket
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at net.sf.jftp.net.DataConnection.run(DataConnection.java:228)
at java.lang.Thread.run(Thread.java:619)
> java.lang.NullPointerException

Discussion