commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Allison (JIRA)" <>
Subject [jira] [Created] (POOL-326) Threading issue
Date Fri, 12 May 2017 15:49:05 GMT
Chris Allison created POOL-326:

             Summary: Threading issue
                 Key: POOL-326
             Project: Commons Pool
          Issue Type: Bug
    Affects Versions: 2.4.2
            Reporter: Chris Allison

I'll included a test to help reproduce this issue.  Take a look at the embedded comments as
it's extremely difficult to reproduce.  I've seen the provided test show the failure on more
than one PC so I believe it will show the problem.

Example stack trace:
java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at java.util.concurrent.FutureTask.get(
	at threading_pool.ObjectPoolIssue.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at com.intellij.rt.execution.application.AppMain.main(
Caused by: java.lang.NullPointerException
	at org.apache.commons.pool2.impl.GenericKeyedObjectPool.create(
	at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(
	at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(
	at threading_pool.ObjectPoolIssue$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$

This message was sent by Atlassian JIRA

View raw message