D
Dave Rathnow
I've been banging my head against this one for a couple of days now
and need some help. We recenly started using the URL class to transfer
files via FTP. Our code works well with all servers we've run into,
except Solaris. When we try to FTP a file, we get the following error:
501 EPRT not allowed after EPSV ALL
I pulled the Java sourcs for the associated classes and moved them
into my own packages so I could modify and debug the code. I haven't
been using the URL class, however, instead I've been using my own
FtpURLConnection classes and a few other classes that lay between it
and java Sockets. I turned on debug and have gotten the following (some
overhead removed...):
Sending: TYPE I
200 Type set to I.
Sending: EPSV ALL
200 EPSV ALL command successful.
Sending: EPSV
229 Entering Extended Passive Mode (|||14389|)
Sending: EPRT |1|192.168.2.33|3861|
501 EPRT not allowed after EPSV ALL
Sending: PORT 192,168,2,33,15,21
501 PORT not allowed after EPSV ALL
Can anyone tell me what may be going on here? I'm not an expert in the
FTP RFC but from what little I've read, there is some incompatability
between the Java API and the Solaris server.
Thanks,
Dave.
and need some help. We recenly started using the URL class to transfer
files via FTP. Our code works well with all servers we've run into,
except Solaris. When we try to FTP a file, we get the following error:
501 EPRT not allowed after EPSV ALL
I pulled the Java sourcs for the associated classes and moved them
into my own packages so I could modify and debug the code. I haven't
been using the URL class, however, instead I've been using my own
FtpURLConnection classes and a few other classes that lay between it
and java Sockets. I turned on debug and have gotten the following (some
overhead removed...):
Sending: TYPE I
200 Type set to I.
Sending: EPSV ALL
200 EPSV ALL command successful.
Sending: EPSV
229 Entering Extended Passive Mode (|||14389|)
Sending: EPRT |1|192.168.2.33|3861|
501 EPRT not allowed after EPSV ALL
Sending: PORT 192,168,2,33,15,21
501 PORT not allowed after EPSV ALL
Can anyone tell me what may be going on here? I'm not an expert in the
FTP RFC but from what little I've read, there is some incompatability
between the Java API and the Solaris server.
Thanks,
Dave.