Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8740469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:08:09+00:00 2026-06-13T11:08:09+00:00

when I start up my project by tomcat or resin,my project will throw the

  • 0

when I start up my project by tomcat or resin,my project will throw the error: APPARENT DEADLOCK

I think the error caused by c3p0 can’t connect my database, I change my xml and replace the domain name by ip of my database, and then the project start up!

I use a listener before my c3p0 working ,and I can get the correct domain name and ip,I can’t find the reason of APPARENT DEADLOCK.

012-10-22 16:53:04 24344    WARN  [Timer-0] com.mchange.v2.async.ThreadPoolAsynchronousRunner:624 - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1e79aa -- APPARENT DEADLOCK!!! Complete Status: 
    Managed Threads: 3
    Active Threads: 3
    Active Tasks: 
        com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@723a14 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
        com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@14313ff (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
        com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@d5f50d (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
    Pending Tasks: 
        com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@cb560b
        com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@17e107c
Pool thread stack traces:
    Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]
        java.net.PlainSocketImpl.socketConnect(Native Method)
        java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:08:10+00:00Added an answer on June 13, 2026 at 11:08 am

    It sounds like you’ve found the cause: you are having DNS problems, so that attempts to lookup your database by name hang, while connecting to your database by IP is fine. The c3p0 messages you are seeing indicate that attempts to acquire Connections from the database are hanging (that is, neither succeeding nor failing with an Exception). Eventually those hung tasak exhaust c3p0’s thread pool, and you see APPARENT DEADLOCK warnings.

    The setting suggested by user1516873, statementCacheNumDeferredCloseThreads, is useful when you see Statement-related tasks causing deadlocks, but is unlikely to help in your case. You are hanging on attempts by the pool to acquire Connections from the database.

    The main thing you ought to do is debug the DNS issue on your web-app server. Try tools like nslookup or dig, and see if you can lookup your database server by name, and if the results come promptly or if you hang in the lookup. From what you describe, you will very likely find a problem there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Eclipse, while trying to start Tomcat, I am getting this error: The project:
I will start new project which is based on ASP.NET MVC 3 using C#
I need to start a project that will be json-API-centric, which means that most
I am going to start a project of my own, which will be ASP.NET
I start new project and I want to use TDD methodology. I use tomcat
When I start tomcat in my IDE with this specific project in there (adminapp),
Since this morning Maven can not build any project that requires tomcat-maven-plugin. I tried
I can't start eclipse 3.6 helios on ubuntu 10.10 after creating dynamic web project
I start a project MyFileChooser which contains package com.MyFileChooser.In my Project i have a
Im unable to start new project in a virtualenv. This is what i did

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.