I didnt run your program.from the error message, it seems that no DB connection is available (activeCount=10, useCount=10). so the code is stuck at: getconn();In the code segment, you didnt close DB connetion. So pls close a connection right after:user=new User(conn);