This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes Unable to get a physical connection from the database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Unable to get a physical connection from the database" Watch "Unable to get a physical connection from the database" New topic
Author

Unable to get a physical connection from the database

Omar Mohaidat
Ranch Hand

Joined: Jan 16, 2008
Posts: 34
Dears,

I have developed web application using servlet and JSP, and have deployed on OC4J application server, i have used it and it is working fine... but after a period i got this error:

Unable to get a physical connection from the database...there are no connections available

how can i fix this problem.

Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Are all connections to the DB properly closed after they're being used?
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi,
Can you show the database code from where you are getting the exception.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Miku Ranjan wrote:Hi,
Can you show the database code from where you are getting the exception.


With the error code we will be able to help you more. Always post them! [=


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to get a physical connection from the database