luigi
|
Posted: 10/14/2004, 1:58 AM |
|
I have a page (codecharge - jsp) that make request to a db oracle and it works fine...
but if I refresh the page with F5 ( I press F5 for 3-4 seconds ) and many times tomcat 5 show me a page with this error
java.lang.RuntimeException: Unable to create connection 'MiaConn' to the database.
at com.codecharge.db.PoolJDBCConnection.getConnection(PoolJDBCConnection.java:19)
at com.codecharge.db.JDBCConnection.<init>(JDBCConnection.java:80)
at com.codecharge.db.PoolJDBCConnection.<init>(PoolJDBCConnection.java:11)
at com.codecharge.db.JDBCConnectionFactory.getJDBCConnection(JDBCConnectionFactory.java:36)
at com.codecharge.db.JDBCConnectionFactory.getJDBCConnection(JDBCConnectionFactory.java:27)
at com.codecharge.ListProcessor.process(ListProcessor.java:39)
at com.codecharge.RecordProcessor.processList(RecordProcessor.java:121)
at com.codecharge.RecordProcessor.process(RecordProcessor.java:109)
at com.codecharge.PageProcessor.process(PageProcessor.java:30)
at com.codecharge.PageController.process(PageController.java:155)
at org.apache.jsp.Modifica_jsp._jspService(Modifica_jsp.java:316)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
anyone know the solution to this problem
|
|
|
ignat
Posts: 55
|
Posted: 10/14/2004, 6:01 AM |
|
Seems that you just have ran out of connections in pool. The same will happen when too many users will request the same page simultaniously. Increase the pool size. Increase the connection timeout.
Regards,
Ignat.
|
|
|
|