splitio / java-client

Java SDK client for Split Software
https://split.io
Other
25 stars 18 forks source link

java.lang.NoSuchMethodError: 'void redis.clients.jedis.JedisPoolConfig.setMinEvictableIdleTime(java.time.Duration)' #509

Closed moshiul-rabbi-seera closed 2 months ago

moshiul-rabbi-seera commented 2 months ago

public class JedisPoolConfig extends GenericObjectPoolConfig { public JedisPoolConfig() { this.setTestWhileIdle(true); this.setMinEvictableIdleTime(Duration.ofMillis(60000L)); this.setTimeBetweenEvictionRuns(Duration.ofMillis(30000L)); this.setNumTestsPerEvictionRun(-1); } }

Screen Shot 2024-06-27 at 5 58 48 PM

chillaq commented 2 months ago

Hi @moshiul-rabbi-seera, thanks for the info, checking this issue now.

Thanks Bilal

chillaq commented 2 months ago

Hi @moshiul-rabbi-seera, The "setMinEvictableIdleTime" exist in class BaseObjectPoolConfig, which is extended in GenericObjectPoolConfig, see screenshots.

Untitled2 Untitled

moshiul-rabbi-seera commented 2 months ago

Many thanks @chillaq. Its due to commons-pool2 library version.