zoukankan      html  css  js  c++  java
  • IntelliJ IDEA 使用 Cloud Toolkit 出现Failed to connect to server的报错

    异常问题描述:

    [ERROR] Failed to connect to server
    [ERROR] java.io.IOException
    [ERROR]       com.alibabacloud.commons.ssh.sshj.SshjConnectionManager.createAndConnectAndAuthClient(SshjConnectionManager.java:136)
    [ERROR]       com.alibabacloud.commons.ssh.sshj.SshjConnectionManager.makeConnection(SshjConnectionManager.java:60)
    [ERROR]       com.alibabacloud.commons.ssh.sshj.SshjConnectionManager.makeConnection(SshjConnectionManager.java:29)
    [ERROR]       com.alibabacloud.commons.task.SshUploadTask.run(SshUploadTask.java:75)
    [ERROR]       com.alibabacloud.intellij.runner.host.HostRunProfileState$2.run(HostRunProfileState.java:134)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:932)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:434)
    [ERROR]       com.intellij.openapi.progress.impl.ProgressRunner.lambda$null$3(ProgressRunner.java:233)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:166)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572)
    [ERROR]       com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:153)
    [ERROR]       com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:233)
    [ERROR]       java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
    [ERROR]       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    [ERROR]       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    [ERROR]       java.lang.Thread.run(Thread.java:745)
    [ERROR] null

    解决方式:
    进入 File -> Settings -> Alibaba Cloud Toolkit -> Appearance & Behavior -> System Settings

    将 SSH Library 选择  JSch 即可

     保存配置即可

    进行测试:
    打包:

     包上传:

    最后,感谢 阿里  ,是他们帮我解决的。

  • 相关阅读:
    Springboot整合dubbo搭建基本的消费、提供和负载均衡
    SpringBoot与Dubbo整合的三种方式
    Dubbo整合SpringBoot
    Java 如何有效地避免OOM:善于利用软引用和弱引用
    finalize的作用
    垃圾回收
    不同JDK版本之间的intern()方法的区别-JDK6 VS JDK6+
    Java8内存模型—永久代(PermGen)和元空间(Metaspace)
    to meet you
    Atomic long 和long的区别
  • 原文地址:https://www.cnblogs.com/zhangzhonghui/p/13606452.html
Copyright © 2011-2022 走看看