You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by mordjah <de...@gmail.com> on 2010/10/28 00:47:48 UTC

ftpclient and telnetclient socket timeout exception with getproperties()

Hello,

I am experiencing an issue with both ftpclient and telnetclient connect(),
when I call connect with a standard string ie connect(ip) its fine, but when
I call it like this connect(applicationProps.getProperty("ftp_ip"); it
throws a timeout. the ftp_ip prop is set, and calling println() shows no
difference in the string. Anyone else experienced this, or know where to
look?

~Dean
-- 
View this message in context: http://apache-commons.680414.n4.nabble.com/ftpclient-and-telnetclient-socket-timeout-exception-with-getproperties-tp3016399p3016399.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


RE: ftpclient and telnetclient socket timeout exception with getproperties()

Posted by Dean <de...@gmail.com>.
Hello all,

Thanks but I'm an idiot.. the prop was set to xx.255.xxx.xxx and not
xx.225.xxx.xxx.. the sort of typo that is invisible when you have been
coding for 10 hours..


On Thu, 2010-10-28 at 16:52 +0800, chenxuejie wrote:
> May be, you can use applicationProps.getProperty("ftp_ip").toString()
> 
> --Chen
> 
> > -----Original Message-----
> > From: mordjah [mailto:dean.w.parshall@gmail.com] 
> > Sent: Thursday, October 28, 2010 6:48 AM
> > To: user@commons.apache.org
> > Subject: ftpclient and telnetclient socket timeout exception 
> > with getproperties()
> > 
> > 
> > Hello,
> > 
> > I am experiencing an issue with both ftpclient and 
> > telnetclient connect(), when I call connect with a standard 
> > string ie connect(ip) its fine, but when I call it like this 
> > connect(applicationProps.getProperty("ftp_ip"); it throws a 
> > timeout. the ftp_ip prop is set, and calling println() shows 
> > no difference in the string. Anyone else experienced this, or 
> > know where to look?
> > 
> > ~Dean
> > --
> > View this message in context: 
> > http://apache-commons.680414.n4.nabble.com/ftpclient-and-telne
> > tclient-socket-timeout-exception-with-getproperties-tp3016399p
> > 3016399.html
> > Sent from the Commons - User mailing list archive at Nabble.com.
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> > For additional commands, e-mail: user-help@commons.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


RE: ftpclient and telnetclient socket timeout exception with getproperties()

Posted by chenxuejie <ch...@nec.cn>.
 
May be, you can use applicationProps.getProperty("ftp_ip").toString()

--Chen

> -----Original Message-----
> From: mordjah [mailto:dean.w.parshall@gmail.com] 
> Sent: Thursday, October 28, 2010 6:48 AM
> To: user@commons.apache.org
> Subject: ftpclient and telnetclient socket timeout exception 
> with getproperties()
> 
> 
> Hello,
> 
> I am experiencing an issue with both ftpclient and 
> telnetclient connect(), when I call connect with a standard 
> string ie connect(ip) its fine, but when I call it like this 
> connect(applicationProps.getProperty("ftp_ip"); it throws a 
> timeout. the ftp_ip prop is set, and calling println() shows 
> no difference in the string. Anyone else experienced this, or 
> know where to look?
> 
> ~Dean
> --
> View this message in context: 
> http://apache-commons.680414.n4.nabble.com/ftpclient-and-telne
> tclient-socket-timeout-exception-with-getproperties-tp3016399p
> 3016399.html
> Sent from the Commons - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org