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

2023-01-02 Thread Phil Steitz (Jira)


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

Phil Steitz commented on POOL-264:
--

The entire setup was changed in 2.0.  Unless someone wants to take up the task 
of creating a 1.6.x, I think we should close this as WONT_FIX.  Users of 1.x 
versions of commons pool should upgrade to version 2+

> 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, 1.5.7, 1.6
>Reporter: Leonid Meyerguz
>Priority: Major
>
> 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
(v8.20.10#820010)


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

2022-12-24 Thread Niall Pemberton (Jira)


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

Niall Pemberton commented on POOL-264:
--

The synchronization was removed in May 2011 when it was refactored to use 
java.util.concurrent based pooling:
 * [https://svn.apache.org/viewvc?view=revision=1102500]

This change was included in the Pool 2.0 release (Java 1.5 minimum) but not in 
any of the Pool 1.x versions (Java 1.3 minimum).

> 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, 1.5.7, 1.6
>Reporter: Leonid Meyerguz
>Priority: Major
>
> 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
(v8.20.10#820010)


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

2022-04-21 Thread Gary D. Gregory (Jira)


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

Gary D. Gregory commented on POOL-264:
--

I'm guessing this is fixed in 2.x... ok to close?

> 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, 1.5.7, 1.6
>Reporter: Leonid Meyerguz
>Priority: Major
> Fix For: 1.5.8, 1.6.1
>
>
> 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
(v8.20.7#820007)


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

2014-04-21 Thread Phil Steitz (JIRA)

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

Phil Steitz commented on POOL-264:
--

Thank you for reporting this.  It would be great if you could provide a stack 
trace showing the NPE.

A workaround that you can try is to leave maxActive = -1 but set 
WHEN_EXHAUSTED_ACTION to WHEN_EXHAUSTED_BLOCK.  That may correct the sync and 
will achieve the same end result as negative maxActive means no limit to the 
number of available instances.

 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)