java.lang.IllegalArgumentException: Unable to create EvictionPolicy instance of type org.apache.commons.pool2.impl.DefaultEvictionPolicy

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

If JVM throws ClassNotFoundException the class is not found in classpath. Seems you are missing hibernate dependency in your project set up. Try downloading hibernate-core.jar and add to your project classpath.

Solutions on the web

via toadworld.com by Unknown author, 1 year ago
Unable to create EvictionPolicy instance of type org.apache.commons.pool2.impl.DefaultEvictionPolicy
via Apache's JIRA Issue Tracker by Krzysztof Sobkowiak, 1 year ago
Unable to create EvictionPolicy instance of type org.apache.commons.pool2.impl.DefaultEvictionPolicy
java.lang.IllegalArgumentException: Unable to create EvictionPolicy instance of type org.apache.commons.pool2.impl.DefaultEvictionPolicy
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.commons.pool2.impl.BaseGenericObjectPool.setEvictionPolicyClassName(BaseGenericObjectPool.java:598)
at org.apache.commons.pool2.impl.GenericObjectPool.setConfig(GenericObjectPool.java:321)
at org.apache.commons.pool2.impl.GenericObjectPool.(GenericObjectPool.java:117)
at org.apache.commons.pool2.impl.GenericObjectPool.(GenericObjectPool.java:90)
at com.dell.toadext.sql.executor.AbstractExecutorPool$ExecutorPool.(Unknown Source)
at com.dell.toadext.sql.executor.AbstractExecutorPool.(Unknown Source)
at com.dell.toadext.sql.executor.AbstractSqlExecutorPool.(Unknown Source)
at com.dell.toadext.oracle.sql.executor.pool.OraSqlExecutorPool.(Unknown Source)
at com.dell.toadext.oracle.core.OracleConnector.createSqlExecutorPool(Unknown Source)
at com.dell.toadext.core.AbstractConnector.initSqlExecutorPool(Unknown Source)
at com.dell.toadext.core.AbstractConnector.connect(Unknown Source)
at com.dell.toadext.oracle.core.OracleConnector.logon(Unknown Source)
at com.dell.toadext.ui.jobs.LogonJob$InternalLogonJob.run(Unknown Source)

Users with the same issue

4 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 week ago
2 times, 5 months ago
6 times, 6 months ago
96 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.