B4J Question SFTP problems

moore_it

Well-Known Member
Licensed User
Hi all,

i've a problem with an SFTP server, using jSCH i'm connect to a SFTP server but when i try to upload an file this message appear ...

com.jcraft.jsch.JSchException: java.net.UnknownHostException: xxxxx ( server password )
at com.jcraft.jsch.Util.createSocket(Util.java:349)
at com.jcraft.jsch.Session.connect(Session.java:215)
at com.jcraft.jsch.Session.connect(Session.java:183)
at anywheresoftware.b4a.objects.SFtpWrapper.connectIfNeeded(SFtpWrapper.java:378)
at anywheresoftware.b4a.objects.SFtpWrapper.access$5(SFtpWrapper.java:373)
at anywheresoftware.b4a.objects.SFtpWrapper$1.run(SFtpWrapper.java:113)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.UnknownHostException: xxxxxx (server password)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:211)
at com.jcraft.jsch.Util.createSocket(Util.java:343)
... 10 more

any ideas ?
 

moore_it

Well-Known Member
Licensed User
simply i wrong the sftp initialization ...

i've initialize like FTP
(EVENT NAME,HOST,PORT,USER,PASSWORD)

but the initilization of SFTP is
(EVENT NAME,USER,PASSWORD,HOST,PORT)

This is all
 
Upvote 0
Top