Hi,
I encountered this problem when one of the name search servers was down (2 was up).
For explanation, the Application server will usually connect to the name search server to look up which server to connect based on the hostname, once it found the actual location of the database, it will connect to the database.
After the last line, it sort of hanged there.
This was encountered when the application tries to connect to both the main and backup database.
Will C3P0 tries to look for the 2nd name search server in order to connect? If not, are there any rectifying methods I can use?
Thx for any help rendered.
Code:
[23/5/2010 12:56:26] WARN [Timer-0] ThreadPoolAsynchronousRunner.processReplacedThreads(416) | Task com.mchange.v2.resourcepoo
l.BasicResourcePool$AcquireTask@2da12da1 (in deadlocked PoolThread) failed to complete in maximum time 60000ms. Trying interru
pt().
[23/5/2010 12:56:26] WARN [Timer-0] ThreadPoolAsynchronousRunner.processReplacedThreads(416) | Task com.mchange.v2.resourcepoo
l.BasicResourcePool$AcquireTask@2d252d25 (in deadlocked PoolThread) failed to complete in maximum time 60000ms. Trying interru
pt().
[23/5/2010 12:56:26] WARN [Timer-0] ThreadPoolAsynchronousRunner.processReplacedThreads(416) | Task com.mchange.v2.resourcepoo
l.BasicResourcePool$AcquireTask@2dac2dac (in deadlocked PoolThread) failed to complete in maximum time 60000ms. Trying interru
pt().
[23/5/2010 12:57:47] WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] BasicResourcePool.run(1876) | com.
mchange.v2.resourcepool.BasicResourcePool@2000200 -- Thread unexpectedly interrupted while performing an acquisition attempt.
java.lang.InterruptedException
at java.lang.Thread.sleep(Native Method)
at java.lang.Thread.sleep(Thread.java:938)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
[23/5/2010 13:00:32] WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] BasicResourcePool.run(1876) | com.
mchange.v2.resourcepool.BasicResourcePool@2000200 -- Thread unexpectedly interrupted while performing an acquisition attempt.
java.lang.InterruptedException
at java.lang.Thread.sleep(Native Method)
at java.lang.Thread.sleep(Thread.java:938)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
[23/5/2010 13:01:36] INFO [pool-1-thread-6] RBFMessageChannel.run(83) | RBFMessageChannel.run: processing I1MCC004661.rbs
[23/5/2010 13:06:02] WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] BasicResourcePool.run(1876) | com.
mchange.v2.resourcepool.BasicResourcePool@2000200 -- Thread unexpectedly interrupted while performing an acquisition attempt.
java.lang.InterruptedException
at java.lang.Thread.sleep(Native Method)
at java.lang.Thread.sleep(Thread.java:938)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)