From: | Abhra Kar <abhra(dot)kar(at)gmail(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | CannotAcquireResourceException in Junit |
Date: | 2018-01-24 16:57:08 |
Message-ID: | CAFNULEfBcXOaWAbxGX2hHKGjM7q55+G7ZJSTVXw9TgJ8bu_S1A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
I am getting the following error while running bunch of Junit test
cases through “ant test” command----
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A
ResourcePool could not acquire a resource from its primary factory or
source.
PFA full stack trace.
After execution of 300 test cases I got this error. The setup() method code
snippet is ---
@Before
public void setUp() throws Exception {
entityManager =
entityManagerFactory.createEntityManager();//javax.persistence.EntityManager
entityManager.getTransaction().begin();
}
this method ran for all 300 test cases but didn’t get error .
Another 900 test cases are remaining. I tried running single test cases
from those test cases, getting same error for all.
What is root cause of this error.
Thanks and Regards,
Abhra
Attachment | Content-Type | Size |
---|---|---|
StackTrace.doc | application/msword | 205.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2018-01-24 17:22:22 | Re: PGSQL 10, many Random named DB |
Previous Message | Merlin Moncure | 2018-01-24 15:21:27 | Re: Postgres for hadoop |