2023-07-13 19:06:51.487 -ERROR 17629 --- [http-nio-192.168.2.206-36093-exec-8] c.t.b.p.b.c.common.util.sftp.SftpPool : com.jcraft.jsch.JSchException: java.net.C onnectException: 拒 绝 连 接 (Connection refused)_ 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 com.transfar.boot.platform.basicframe.core.common.util.sftp.SftpClientFactory.create(SftpClientFactory.j ava:63)_ at com.transfar.boot.platform.basicframe.core.common.util.sftp.SftpClientFactory.create(SftpClientFactory.java:24)_ at org.apache.commons.pool2 .BaseKeyedPooledObjectFactory.makeObject(BaseKeyedPooledObjectFactory.java:82)_ at org.apache.commons.pool2.impl.GenericKeyedObjectPool.create(GenericKeyedObjectPo ol.java:780)_ at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:439)_ at org.apache.commons.pool2.impl.GenericKey edObjectPool.borrowObject(GenericKeyedObjectPool.java:350)_ at com.transfar.boot.platform.basicframe.core.common.util.sftp.SftpPool.getChannelSftp(SftpPool.jav a:37)_ at com.transfar.boot.platform.basicframe.core.common.util.sftp.SftpUtil.getFiles(SftpUtil.java:313)_ at com.transfar.boot.platform.basicframe.core.commo n.util.sftp.SftpUtil.getFiles(SftpUtil.java:298)_ at com.transfar.boot.platform.portal.schedule.biz.impl.FileHandlerBiz.downloadFile(FileHandlerBiz.java:35)_ at com.transfar.boot.platform.portal.schedule.biz.impl.FileHandlerBiz$$FastClassBySpringCGLIB$$2e1e7912.invoke()_
标签:jsch,java,transfar,Util,platform,jcraft,com From: https://www.cnblogs.com/fanxianhua/p/17550628.html