[ 
https://issues.apache.org/jira/browse/CAMEL-9130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14743441#comment-14743441
 ] 

Djee commented on CAMEL-9130:
-----------------------------

Tested from 2.7.0 to 2.7.3, got the following stack trace :
{code:java}
Exception in thread "main" java.lang.NoSuchMethodError: 
redis.clients.jedis.JedisShardInfo.setTimeout(I)V
        at 
org.springframework.data.redis.connection.jedis.JedisConnectionFactory.afterPropertiesSet(JedisConnectionFactory.java:126)
        at 
org.apache.camel.component.redis.RedisConfiguration.createDefaultConnectionFactory(RedisConfiguration.java:127)
        at 
org.apache.camel.component.redis.RedisConfiguration.getConnectionFactory(RedisConfiguration.java:106)
        at 
org.apache.camel.component.redis.RedisConfiguration.createDefaultTemplate(RedisConfiguration.java:135)
        at 
org.apache.camel.component.redis.RedisConfiguration.getRedisTemplate(RedisConfiguration.java:78)
        at 
org.apache.camel.component.redis.RedisProducer.<init>(RedisProducer.java:31)
        at 
org.apache.camel.component.redis.RedisEndpoint.createProducer(RedisEndpoint.java:41)
        at 
org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:402)
        at 
org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:123)
        at 
org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:219)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1272)
        at 
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
        at 
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:155)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:61)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:1122)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
        at 
org.apache.camel.processor.FilterProcessor.doStart(FilterProcessor.java:80)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:61)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.ChoiceProcessor.doStart(ChoiceProcessor.java:171)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1272)
        at 
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
        at 
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:155)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:61)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:1122)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
        at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
        at 
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at 
org.apache.camel.impl.RouteService.startChildService(RouteService.java:340)
        at org.apache.camel.impl.RouteService.warmUp(RouteService.java:182)
        at 
org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3106)
        at 
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3036)
        at 
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:2813)
        at 
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2669)
        at 
org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167)
        at 
org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2483)
        at 
org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2479)
        at 
org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2502)
        at 
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2479)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2448)
{code}

> "need to add the dependency of jedis as redis client lib"
> ---------------------------------------------------------
>
>                 Key: CAMEL-9130
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9130
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-redis
>    Affects Versions: 2.15.3
>            Reporter: Djee
>            Priority: Minor
>              Labels: easyfix, maven
>             Fix For: 2.16.0, 2.15.4
>
>
> When I tried to use spring-redis component, it turned out it needed a 
> dependency on Jedis, which is explained in the pom of the component. I was 
> wondering if there's any reason for the dependency not being used (looking 
> for a more performant redis client for example) ? Otherwise, Jedis 2.6.3 
> should be used as 2.7.X didn't seem to work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to