Anonymous | Login | Signup for a new account | 11-22-2024 10:09 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0001497 | [Quercus] | major | always | 12-08-06 05:37 | 03-20-07 10:41 | ||||
Reporter | dberry | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.1.0 | ||||||
Summary | 0001497: DB Connection Management error using Mysqli | ||||||||
Description |
If you open a connection, close a connection, then open a new connection you get an acception that the connection is closed. java.lang.IllegalStateException: connection is closed at com.caucho.sql.UserConnection.getMConn(UserConnection.java:832) at com.caucho.sql.UserConnection.setAutoCommit(UserConnection.java:616) at com.caucho.quercus.lib.db.JdbcConnectionResource.setAutoCommit(JdbcConnectionResource.java:577) at com.caucho.quercus.lib.db.Mysqli.autocommit(Mysqli.java:170) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.caucho.quercus.env.JavaMethod.invoke(JavaMethod.java:76) at com.caucho.quercus.env.JavaInvoker.call(JavaInvoker.java:533) at com.caucho.quercus.program.JavaClassDef.callMethod(JavaClassDef.java:471) at com.caucho.quercus.env.JavaValue.callMethod(JavaValue.java:190) at com.caucho.quercus.expr.MethodCallExpr.eval(MethodCallExpr.java:99) at com.caucho.quercus.program.ExprStatement.execute(ExprStatement.java:63) at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:99) at com.caucho.quercus.program.QuercusProgram.execute(QuercusProgram.java:234) at com.caucho.quercus.page.InterpretedPage.execute(InterpretedPage.java:60) at com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:114) at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:167) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:477) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:591) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:513) at java.lang.Thread.run(Thread.java:613) |
||||||||
Additional Information |
Here is a test case: <?php // This is a test to find out what is causing problems with the closed connection ?> <html> <head> </head> <body> <?php $db = mysqli_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB, MYSQL_PORT); $db->autocommit(false); $db->close(); $db1 = mysqli_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB, MYSQL_PORT); $db1->autocommit(false); $db1->close(); ?> </body> </html> |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
37 total queries executed. 30 unique queries executed. |