org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sftp://user@host:22

Stack Overflow | MozenRath | 3 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Apache Camel SFTP consumer with privateKeyFile gives error SSH_MSG_DISCONNECT: 2 Protocol error: no matching DH grp found

    Stack Overflow | 3 months ago | MozenRath
    org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sftp://user@host:22
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. jf-ast 2 times, last 4 months ago
  2. jstrayer 3 times, last 5 months ago
  3. abrazeneb 1 times, last 9 months ago
97 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.jcraft.jsch.JSchException

    SSH_MSG_DISCONNECT: 2 Protocol error: no matching DH grp found

    at com.jcraft.jsch.Session.read()
  2. JSch
    Session.connect
    1. com.jcraft.jsch.Session.read(Session.java:996)
    2. com.jcraft.jsch.Session.connect(Session.java:323)
    2 frames
  3. Camel :: FTP
    SftpConsumer.doStart
    1. org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperations.java:118)
    2. org.apache.camel.component.file.remote.RemoteFileConsumer.connectIfNecessary(RemoteFileConsumer.java:203)
    3. org.apache.camel.component.file.remote.SftpConsumer.doStart(SftpConsumer.java:52)
    3 frames
  4. Camel :: Core
    MainSupport.run
    1. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
    2. org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3269)
    3. org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:3563)
    4. org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:3499)
    5. org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3429)
    6. org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3197)
    7. org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3053)
    8. org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:175)
    9. org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2848)
    10. org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2844)
    11. org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2867)
    12. org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2844)
    13. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
    14. org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2813)
    15. org.apache.camel.main.Main.doStart(Main.java:127)
    16. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
    17. org.apache.camel.main.MainSupport.run(MainSupport.java:138)
    18. org.apache.camel.main.MainSupport.run(MainSupport.java:390)
    18 frames
  5. com.me.mypackage
    MainApp.main
    1. com.me.mypackage.MainApp.main(MainApp.java:27)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  7. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    1 frame