commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladislav Levitskiy <vlad.lev...@gmail.com>
Subject Errors in FTP for java 7.4.
Date Sat, 26 May 2012 18:24:58 GMT
I have installed Java JDK 7.4. (jdk-7u4-windows-x64.exe).

I try to make small java program that will get file from local ftp server
on my computer.
But I get error.

In previous version of java it worked.

Is it problem of Java version ???

Reply that I have

c:\11\FTP5>test4

c:\11\FTP5>java -cp .;.\commons-net-3.1.jar;c:\11\
ftp5\commons-io-2.3.jar FtpTest 10.0.8.21 ftpftst
test
Connected to 10.0.8.21.
220 hp22.limousin.fr.grpleg.com FTP server (Version 1.1.214.4(PHNE_33412)
Mon Sep 19 18:45:21 GMT 20
05) ready.
230 User ftpftst logged in.  Access restrictions apply.
230 User ftpftst logged in.  Access restrictions apply.
200 Type set to I.
200 NOOP command successful.
250 CWD command successful.
/
java.net.SocketException: Permission denied: recv failed
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
        at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
        at sun.nio.cs.StreamDecoder.read(Unknown Source)
        at java.io.InputStreamReader.read(Unknown Source)
        at java.io.BufferedReader.fill(Unknown Source)
        at java.io.BufferedReader.read(Unknown Source)
        at
org.apache.commons.net.io.CRLFLineReader.readLine(CRLFLineReader.java:58)
        at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:310)
        at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:290)
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:479)
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:552)
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:601)
        at org.apache.commons.net.ftp.FTP.pasv(FTP.java:952)
        at
org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:755)
        at
org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:657)
        at
org.apache.commons.net.ftp.FTPClient.listNames(FTPClient.java:2633)
        at
org.apache.commons.net.ftp.FTPClient.listNames(FTPClient.java:2682)
        at FtpTest.main(FtpTest.java:63)
In attached files:
  FtpTest.java -- Java file
  FtpTest.class -- Java compiled file.

  test4.bat -- as I run it on my computer (i have added one t letter
because google restrict to send bat files).

Mime
View raw message