Re: [Collections] Transforming Maps and Lists

2008-12-15 Thread Michael
Michael wrote: James Carman wrote: Have you tried this? http://commons.apache.org/collections/api-release/org/apache/commons/collections/CollectionUtils.html#transform(java.util.Collection,%20org.apache.commons.collections.Transformer) No, I tried http://commons.apache.org/collections/api

Re: [Collections] Transforming Maps and Lists

2008-12-15 Thread Michael
James Carman wrote: Have you tried this? http://commons.apache.org/collections/api-release/org/apache/commons/collections/CollectionUtils.html#transform(java.util.Collection,%20org.apache.commons.collections.Transformer) No, I tried http://commons.apache.org/collections/api-release/org/apach

Re: [Collections] Transforming Maps and Lists

2008-12-15 Thread James Carman
Have you tried this? http://commons.apache.org/collections/api-release/org/apache/commons/collections/CollectionUtils.html#transform(java.util.Collection,%20org.apache.commons.collections.Transformer) On Mon, Dec 15, 2008 at 3:47 PM, Michael wrote: > Hi folks, > > I'd like to transform both. > E

[Collections] Transforming Maps and Lists

2008-12-15 Thread Michael
Hi folks, I'd like to transform both. E.g. adding strings to a list and let the transformer lowercase them. Unfortunately the ListUtils#tranformedList(List, Transformer) transformer only when I add elements. Is there a way to achieve one-time tranformation? Thanks, Mike ---

Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread Jörg Schaible
lmk wrote at Montag, 15. Dezember 2008 15:55: > > I passed to the last version of jcraft I get more explicit exception: > > UnknownHostKey: x.x.x.x. RSA key fingerprint is > 0d:51:c6:7f:e1:84:5e:37:8b:93:29:bd:d4:d1:ba:79 > > how can I verify the host key?? OK, this is really something differe

Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread Jörg Schaible
lmk wrote at Montag, 15. Dezember 2008 15:33: > > Actually I have a host name defined on hosts file, but, I cannot ping it > however. Well, that should be possible if the entry in the hosts file is correct and the hosts file is in use. > I can connect to SFTP server with Win SCP, I put the serv

Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread Jörg Schaible
lmk wrote at Montag, 15. Dezember 2008 15:18: > > how can I do that? http://en.wikipedia.org/wiki/Hosts_file - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@comm

Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk
I resolve the problem by adding SftpFileSystemConfigBuilder.getInstance().setStrictHostKeyChecking(ops, "no"); thanks.. -- View this message in context: http://www.nabble.com/-VFS--SFTP--cannot-connect-to-SFT-server-tp21011512p21015554.html Sent from the Commons - User mailing list archive at

Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk
I passed to the last version of jcraft I get more explicit exception: UnknownHostKey: x.x.x.x. RSA key fingerprint is 0d:51:c6:7f:e1:84:5e:37:8b:93:29:bd:d4:d1:ba:79 how can I verify the host key?? lmk wrote: > > I dont have a DNS server installed, the host cannot be found by name. > >

Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk
Actually I have a host name defined on hosts file, but, I cannot ping it however. I can connect to SFTP server with Win SCP, I put the server ip address and it works .. lmk wrote: > > how can I do that? > > > > Jörg Schaible-2 wrote: >> >> lmk wrote at Montag, 15. Dezember 2008 14:20: >

Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk
how can I do that? Jörg Schaible-2 wrote: > > lmk wrote at Montag, 15. Dezember 2008 14:20: > >> >> I dont have a DNS server installed, the host cannot be found by name. > > Well, you may temporarily add an entry to your local hosts file. > > - Jörg > > >

Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread Jörg Schaible
lmk wrote at Montag, 15. Dezember 2008 14:20: > > I dont have a DNS server installed, the host cannot be found by name. Well, you may temporarily add an entry to your local hosts file. - Jörg - To unsubscribe, e-mail: user-un

Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk
I dont have a DNS server installed, the host cannot be found by name. Jörg Schaible-2 wrote: > > Well, > > lmk wrote at Montag, 15. Dezember 2008 11:35: > >> >> Hi all, >> >> I try vainly to use VFS to connect to SFTP server . >> I do the same as explained on >> http://wiki.apache.org/commo

Re: [VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread Jörg Schaible
Well, lmk wrote at Montag, 15. Dezember 2008 11:35: > > Hi all, > > I try vainly to use VFS to connect to SFTP server . > I do the same as explained on > http://wiki.apache.org/commons/SimpleSftpFileDownload wiki page [snip] > Caused by: com.jcraft.jsch.JSchException: UnknownHostKey: x.x.x.x

[VFS][SFTP] cannot connect to SFT server

2008-12-15 Thread lmk
Hi all, I try vainly to use VFS to connect to SFTP server . I do the same as explained on http://wiki.apache.org/commons/SimpleSftpFileDownload wiki page here a snippet code FileSystemManager fsManager = VFS.getManager(); UserAuthenticator auth = new StaticUserAuthenticator