Issue when autowiring the ClientResources.

874 views
Skip to first unread message

Gael Yimen

unread,
Jun 13, 2018, 1:56:06 PM6/13/18
to lettuce-redis-client-users
Hello

I'm trying to do the following:


@Bean(destroyMethod = "shutdown")
public ClientResources clientResources() {
     
final ClientResources res = DefaultClientResources.create();
     
return res;
}


But I'm facing the following issue:

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientResources' defined in class path resource [com/consort/xxx/xxx/configuration/CacheLettuceConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.lettuce.core.resource.ClientResources]: Factory method 'clientResources' threw exception; nested exception is java.lang.NoClassDefFoundError: reactor/core/scheduler/Schedulers



Can someone please help me to figure out this issue ?

Best,
Gael

Mark Paluch

unread,
Jun 13, 2018, 2:39:49 PM6/13/18
to lettuce-redis-client-users
Looks as if you're missing Project Reactor (version 3.1+) on your class path.

Cheers, 
Mark

Gael Yimen

unread,
Jun 13, 2018, 2:56:20 PM6/13/18
to Mark Paluch, lettuce-redis-client-users
Hi Mark,
How can I get "Project Reactor  (version 3.1+) " ?

Gaël.
--

​Software Engineer


--
You received this message because you are subscribed to the Google Groups "lettuce-redis-client-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lettuce-redis-client-users+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lettuce-redis-client-users/c46dd247-d1e6-47fd-92d7-1d9b07bab1d9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Gael Yimen

unread,
Jun 13, 2018, 3:10:41 PM6/13/18
to lettuce-redis-client-users
Ooo yeah, I got it. There we go 

<dependency>
    <groupId>io.projectreactor</groupId>
    <artifactId>reactor-core</artifactId>
    <version>3.1.8.RELEASE</version>
</dependency>
Reply all
Reply to author
Forward
0 new messages