Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
2.6.1, 2.6.2, 2.7.0
Description
GenericObjectPool.invalidateObject(T obj) should not return NullPointerException when obj is not null.
Please see following stack trace:
Caused by: java.lang.NullPointerException at org.apache.commons.pool2.impl.LinkedBlockingDeque.putLast(LinkedBlockingDeque.java:454) at org.apache.commons.pool2.impl.LinkedBlockingDeque.put(LinkedBlockingDeque.java:788) at org.apache.commons.pool2.impl.GenericObjectPool.destroy(GenericObjectPool.java:939) at org.apache.commons.pool2.impl.GenericObjectPool.invalidateObject(GenericObjectPool.java:618)
Apparent reason: In destroy(PooledObject<T> toDestroy), create() may return null even though toDestroy is already destroyed.
Please make the fix available for JDK 1.7.
Attachments
Issue Links
- is broken by
-
POOL-356 deadlock if borrowObject gets called to fast and maxIdle is 0
- Resolved
- links to