-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: C3P0 hanged while trying to connect to database
PostPosted: Wed May 26, 2010 10:47 pm 
Newbie

Joined: Wed May 26, 2010 10:39 pm
Posts: 1
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.