You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/03/15 08:34:41 UTC

[jira] [Resolved] (CAMEL-10903) Getting Error due to higher version of JSCH

     [ https://issues.apache.org/jira/browse/CAMEL-10903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-10903.
---------------------------------
    Resolution: Not A Bug

Yeah assume its not a Camel issue 

> Getting Error due to higher version of JSCH
> -------------------------------------------
>
>                 Key: CAMEL-10903
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10903
>             Project: Camel
>          Issue Type: Task
>          Components: camel-ftp
>    Affects Versions: 2.16.2
>            Reporter: Sourabh Jain
>            Priority: Minor
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)