Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10903

Getting Error due to higher version of JSCH

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 2.16.2
    • Fix Version/s: None
    • Component/s: camel-ftp
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Hi, We are getting error when we are using higher version(0.1.53) of JSCH jar. but it work fine with JSCH version (0.1.49) while using camel-ftp route while making SFTP connection. Here we are using the proxy for getting connected to SFTP. Please let me know if you need more detail.

      Please find the below error :

      This is the set of credentials was provided by HSBC but we were getting the following error:
      org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sftp://xxxx@ftp.xxxx:22
      at org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperations.java:146)
      at org.apache.camel.component.file.remote.RemoteFileConsumer.connectIfNecessary(RemoteFileConsumer.java:203)
      at org.apache.camel.component.file.remote.SftpConsumer.doStart(SftpConsumer.java:52)
      at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3269)
      at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:3563)
      at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:3499)
      at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3429)
      at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3197)
      at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3053)
      at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:175)
      at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2848)
      at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2844)
      at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2867)
      at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2844)
      at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2813)
      at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:270)
      at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:136)
      at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:340)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:163)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:136)
      at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:380)
      at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
      at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:851)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:540)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
      at com.bfm.etf.dixie.BDServer.loadApplicationContext(BDServer.java:98)
      at com.bfm.etf.dixie.BDServer.main(BDServer.java:60)
      Caused by: com.jcraft.jsch.JSchException: Session.connect: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 2048 (inclusive)
      at com.jcraft.jsch.Session.connect(Session.java:558)
      at org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperations.java:118)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bsourabh26 Sourabh Jain
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: