Skip to content

The following method did not exist: 'void org.apache.commons.pool2.impl.GenericObjectPoolConfig.setTimeBetweenEvictionRuns(java.time.Duration)' #2293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
osya opened this issue Mar 30, 2022 · 3 comments

Comments

@osya
Copy link

osya commented Mar 30, 2022

LettuceConnectionConfiguration from spring-boot-autoconfigure 2.6.1 uses method void org.apache.commons.pool2.impl.GenericObjectPoolConfig.setTimeBetweenEvictionRuns(java.time.Duration) which is not exist in commons-pool2 version 2.9 from spring-data-redis 2.6.0 which is used from spring-boot-starter-data-redis 2.6.1. This method in commons-pool2 appears in version 2.10.
The only "workaround" I found is to delete from application.yml spring.redis.lettuce.pool.time-between-eviction-runs

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 30, 2022
@mp911de
Copy link
Member

mp911de commented Mar 31, 2022

I'm not sure I understand the arrangement. Spring Boot defines Commons Pool2 with version 2.11.x.

@mp911de mp911de added the status: waiting-for-feedback We need additional information before we can continue label Mar 31, 2022
@mp911de
Copy link
Member

mp911de commented Mar 31, 2022

Likely it makes sense anyway to upgrade to Commons Pool2 2.11.1, I created #2295

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Mar 31, 2022
@mp911de mp911de added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Mar 31, 2022
@osya
Copy link
Author

osya commented Mar 31, 2022

The problem solved by deleting explicit dependency org.apache.commons:commons-pool2:2.9.0. Now it uses commpons-pool2:2.11.1

@osya osya closed this as completed Mar 31, 2022
@christophstrobl christophstrobl removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants