[jira] [Created] (POOL-264) NullPointerException in GKOP.borrowObject()

2014-04-21 Thread Leonid Meyerguz (JIRA)
Leonid Meyerguz created POOL-264:


 Summary: NullPointerException in GKOP.borrowObject()
 Key: POOL-264
 URL: https://issues.apache.org/jira/browse/POOL-264
 Project: Commons Pool
  Issue Type: Bug
Affects Versions: 1.5.6
Reporter: Leonid Meyerguz


While I cannot pin down a consistent repro, I occasionally observe a 
NullPointerException at 
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1126)

The pool is configured as follows:

maxActive = -1
maxIdle = 32
maxTotal = 32
whenExhaustedAction = WHEN_EXHAUSTED_GROW
timeBetweenEvictionRunsMillis = 2
minEvictableIdleTimeMillis = 6
numTestsPerEvictionRun = -1

The NullPointerException is thrown in the WHEN_EXHAUSTED_GROW branch of the 
code.  Specifically it appears that latch.getPool() returns null.

Any suggestions for a work-around would be appreciated.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (POOL-264) NullPointerException in GKOP.borrowObject()

2014-04-21 Thread Leonid Meyerguz (JIRA)

[ 
https://issues.apache.org/jira/browse/POOL-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13976288#comment-13976288
 ] 

Leonid Meyerguz commented on POOL-264:
--

Hi Phil,

Thanks for the quick response!  The workaround is exactly what I ended up 
doing.  Haven't had issues with it so far, but didn't yet test it at the scale 
where we found the original NPE.

Best Regards,
Leonid.


 NullPointerException in GKOP.borrowObject()
 ---

 Key: POOL-264
 URL: https://issues.apache.org/jira/browse/POOL-264
 Project: Commons Pool
  Issue Type: Bug
Affects Versions: 1.5.6
Reporter: Leonid Meyerguz

 While I cannot pin down a consistent repro, I occasionally observe a 
 NullPointerException at 
 org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1126)
 The pool is configured as follows:
 maxActive = -1
 maxIdle = 32
 maxTotal = 32
 whenExhaustedAction = WHEN_EXHAUSTED_GROW
 timeBetweenEvictionRunsMillis = 2
 minEvictableIdleTimeMillis = 6
 numTestsPerEvictionRun = -1
 The NullPointerException is thrown in the WHEN_EXHAUSTED_GROW branch of the 
 code.  Specifically it appears that latch.getPool() returns null.
 Any suggestions for a work-around would be appreciated.



--
This message was sent by Atlassian JIRA
(v6.2#6252)