Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1497 | major | always | 12-08-06 05:37 | 03-20-07 10:41 | |
|
|||||
Reporter: | dberry | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.1 | ||
|
|||||
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) |
||||
Steps To Reproduce: | |||||
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> |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|