[prev in list] [next in list] [prev in thread] [next in thread]
List: snap
Subject: [SNAP] FTP Client debug. SECOND POST!
From: "Giorgio Bresciani - FAST S.p.A." <g.bresciani () fastautomation ! it>
Date: 2006-03-10 10:53:50
Message-ID: 002a01c64430$eaa552e0$aa00a8c0 () fastglobale ! locale
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
How could I debug the problem and get the error code the server returns?
----- Original Message -----
From: Anders Gradén
To: snap@imsystech.com
Sent: Tuesday, March 07, 2006 3:56 PM
Subject: RE: [SNAP] FTP Client exception. SECOND POST!
Hello,
you get the exception:
java.io.IOException: FtpClient.put: Error accessing file
when the server returns an error code that says it can not for some reason \
receive the file from the client.
And you get the exception:
java.io.IOException: FtpClient.put: Error receiving response from server
if the server does not answer and there is a time out in the connection.
/Anders
-----Original Message-----
From: snap-bounces@listserver.songnetworks.se \
[mailto:snap-bounces@listserver.songnetworks.se]On Behalf Of Giorgio Bresciani - FAST \
S.p.A. Sent: Monday, March 06, 2006 17:58
To: snap@imsystech.com
Subject: [SNAP] FTP Client exception. SECOND POST!
I'm trying to upload a file through PPP modem connection to a remote FTP \
server. This is the procedure to connect to the server:
PPP link up...
FtpClient fc = new FtpClient();
fc.open(IPAddress,21,Username,Password);
fc.passive(true);
ff = new FtpFile(outfile, FtpFile.FILE, data.length);
ff.setData(data);
fc.put(ff);
At this point, I get the exception:
java.io.IOException: FtpClient.put: Error accessing file
or
java.io.IOException: FtpClient.put: Error receiving response from server
I'm using 1.0.2 release.
Which could be the cause?
regards
----------------------------------------------------------------------------
_______________________________________________
Snap mailing list
snap@imsystech.com
http://www.imsystech.com/support/maillist.htm
------------------------------------------------------------------------------
_______________________________________________
Snap mailing list
snap@imsystech.com
http://www.imsystech.com/support/maillist.htm
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>How could I debug the problem and get the error
code the server returns?</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px"> <BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: \
#000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original \
Message ----- </DIV> <DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=anders.graden@imsystech.com
href="mailto:anders.graden@imsystech.com">Anders Gradén</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=snap@imsystech.com
href="mailto:snap@imsystech.com">snap@imsystech.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, March 07, 2006 3:56
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [SNAP] FTP Client
exception. SECOND POST!</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2>you get the exception:
</FONT></SPAN></DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681075114-07032006><FONT
size=2>
java.io.IOException: FtpClient.put: Error accessing file</FONT></SPAN></DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2>when the server returns an
error code that says it can not for some reason receive the file from the
client.</FONT></SPAN></DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2>And you get the
exception:</FONT></SPAN></DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681075114-07032006>
<DIV><FONT size=2><SPAN
class=681075114-07032006> </SPAN>java.io.IOException: \
FtpClient.put: Error receiving response from server</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2>if the server does not
answer and there is a time out in the connection.</FONT></SPAN></DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2>/Anders</FONT></SPAN></DIV>
<DIV><SPAN class=681075114-07032006><FONT
size=2></FONT></SPAN> </DIV></SPAN></DIV>
<DIV><SPAN class=681075114-07032006><FONT size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; \
MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
snap-bounces@listserver.songnetworks.se
[mailto:snap-bounces@listserver.songnetworks.se]<B>On Behalf Of
</B>Giorgio Bresciani - FAST S.p.A.<BR><B>Sent:</B> Monday, March 06, 2006
17:58<BR><B>To:</B> snap@imsystech.com<BR><B>Subject:</B> [SNAP] FTP
Client exception. SECOND POST!<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I'm trying to upload a file through PPP modem
connection to a remote FTP server.</FONT></DIV>
<DIV><FONT face=Arial size=2>This is the procedure to connect to the
server:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>PPP link up...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>FtpClient fc = new FtpClient();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>fc.open(IPAddress,21,Username,Password);<BR>fc.passive(true);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ff = new FtpFile(outfile, FtpFile.FILE,
data.length);<BR>ff.setData(data);<BR>fc.put(ff);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>At this point, I get the
exception:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>java.io.IOException: FtpClient.put: Error
accessing file</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>or</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>java.io.IOException: FtpClient.put: Error
receiving response from server</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm using 1.0.2 release.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Which could be the cause?</FONT></DIV>
<DIV><FONT face=Arial size=2>regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Snap mailing
list<BR>snap@imsystech.com<BR>http://www.imsystech.com/support/maillist.htm</BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Snap mailing
list<BR>snap@imsystech.com<BR>http://www.imsystech.com/support/maillist.htm</BLOCKQUOTE></BODY></HTML>
_______________________________________________
Snap mailing list
snap@imsystech.com
http://www.imsystech.com/support/maillist.htm
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic