Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001113 [Quercus] major always 05-16-06 12:37 06-29-06 19:31
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.20 Product Version 3.0.20
  Product Build
Summary 0001113: mysql_query() throws "Connection is not properly initialized" exception
Description With the 5/16 snapshot, mysql_query() has stopped working. Queries that worked fine in the previous snapshot now do the following:

com.caucho.quercus.QuercusExecutionException: com.caucho.quercus.QuercusRuntimeException
Connection is not properly initialized [mysql_query]
    at com.caucho.quercus.env.Env.errorException(Env.java:2822)
    at com.caucho.quercus.lib.mysql.Mysqli.validateConnection(Mysqli.java:715)
    at com.caucho.quercus.lib.mysql.Mysqli.query(Mysqli.java:393)
    at com.caucho.quercus.lib.mysql.MysqlModule.mysql_query(MysqlModule.java:377)
    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.module.StaticFunction.eval(StaticFunction.java:368)
    at com.caucho.quercus.module.StaticFunction.evalCopy(StaticFunction.java:439)
    at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:188)
    at com.caucho.quercus.expr.FunctionExpr.evalCopy(FunctionExpr.java:153)
    at com.caucho.quercus.expr.SuppressErrorExpr.evalCopy(SuppressErrorExpr.java:152)
    at com.caucho.quercus.expr.AssignExpr.eval(AssignExpr.java:81)
    at com.caucho.quercus.program.ExprStatement.execute(ExprStatement.java:78)
    at .query(/Users/sgrimm/www/lib/mysql.php:158)
    at .get_site_variable(/Users/sgrimm/www/html/cache_sitevar.php:58)
    at .(/Users/sgrimm/www/lib/profiling.php:19)

As far as I can tell this affects all my queries -- none of them seem to be succeeding any more.

In case it's relevant, my Resin configuration does not define any databases; the host/port/login/password is supplied by the PHP code.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0001141)
koreth
05-16-06 12:41

I can provide sample code for this if you like, but since it wouldn't work without the same database I'm trying to connect to, I didn't think it'd help.
 
(0001142)
koreth
05-16-06 13:03

Ugh, this was pilot error -- switched to the new Resin build and forgot to copy in the MySQL JDBC driver jarfile. Sorry if you wasted any time on this -- please close the bug.
 
(0001146)
ferg
05-17-06 08:15

I'm leaving this open since we should be returning a more informative error message.
 
(0001173)
megacz
05-22-06 16:12

It appears that this is also the main issue stopping gallery2 from installing

500 Servlet Exception
com.caucho.quercus.QuercusExitException: /home/megacz/caucho/resin/dist/resin-3.0.s060522/webapps/ROOT/gallery2/modules/core/classes/GalleryStorage/MySqlStorage.class:220:
Fatal Error: Connection is not properly initialized [mysql_get_server_info]
    at com.caucho.quercus.env.Env.error(Env.java:3240)
    at com.caucho.quercus.env.Env.errorException(Env.java:2978)
    at com.caucho.quercus.lib.mysql.Mysqli.validateConnection(Mysqli.java:722)
    at com.caucho.quercus.lib.mysql.Mysqli.get_server_info(Mysqli.java:243)
    at com.caucho.quercus.lib.mysql.MysqlModule.mysql_get_server_info(MysqlModule.java:592)
    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.module.StaticFunction.eval(StaticFunction.java:368)
    at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:186)
    at com.caucho.quercus.expr.FunctionExpr.eval(FunctionExpr.java:126)
    at com.caucho.quercus.program.ReturnStatement.execute(ReturnStatement.java:76)
    at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:112)
    at com.caucho.quercus.program.Function.evalImpl(Function.java:343)
    at com.caucho.quercus.program.Function.eval(Function.java:291)
    at com.caucho.quercus.program.AbstractFunction.evalMethod(AbstractFunction.java:196)
    at com.caucho.quercus.program.AbstractFunction.evalMethod(AbstractFunction.java:366)
    at com.caucho.quercus.env.ObjectExtValue.evalMethod(ObjectExtValue.java:528)
    at com.caucho.quercus.env.Var.evalMethod(Var.java:802)
    at _quercus._gallery2._install._steps._InstallCoreModuleStep__class$quercus_InstallCoreModuleStep.fun__addSystemInformationToDebugLog(_InstallCoreModuleStep__class.java:303)
    at _quercus._gallery2._install._steps._InstallCoreModuleStep__class$quercus_InstallCoreModuleStep$3.evalMethod(_InstallCoreModuleStep__class.java:312)
    at com.caucho.quercus.env.ObjectExtValue.evalMethod(ObjectExtValue.java:528)
    at _quercus._gallery2._install._steps._InstallCoreModuleStep__class$quercus_InstallCoreModuleStep.fun_processRequest(_InstallCoreModuleStep__class.java:140)
    at _quercus._gallery2._install._steps._InstallCoreModuleStep__class$quercus_InstallCoreModuleStep$1.evalMethod(_InstallCoreModuleStep__class.java:266)
    at com.caucho.quercus.env.ObjectExtValue.evalMethod(ObjectExtValue.java:528)
    at com.caucho.quercus.env.Var.evalMethod(Var.java:802)
    at _quercus._gallery2._install._index__php.execute(home/megacz/caucho/resin/dist/resin-3.0.s060522/webapps/ROOT/gallery2/install/index.php:197)
    at com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:122)
    at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:228)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:389)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:507)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:433)
    at java.lang.Thread.run(Thread.java:595)
 
(0001174)
megacz
05-22-06 16:13

It appears that this is also the main issue stopping gallery2 from installing

500 Servlet Exception
com.caucho.quercus.QuercusExitException: /home/megacz/caucho/resin/dist/resin-3.0.s060522/webapps/ROOT/gallery2/modules/core/classes/GalleryStorage/MySqlStorage.class:220:
Fatal Error: Connection is not properly initialized [mysql_get_server_info]
    at com.caucho.quercus.env.Env.error(Env.java:3240)
    at com.caucho.quercus.env.Env.errorException(Env.java:2978)
    at com.caucho.quercus.lib.mysql.Mysqli.validateConnection(Mysqli.java:722)
    at com.caucho.quercus.lib.mysql.Mysqli.get_server_info(Mysqli.java:243)
    at com.caucho.quercus.lib.mysql.MysqlModule.mysql_get_server_info(MysqlModule.java:592)
    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.module.StaticFunction.eval(StaticFunction.java:368)
    at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:186)
    at com.caucho.quercus.expr.FunctionExpr.eval(FunctionExpr.java:126)
    at com.caucho.quercus.program.ReturnStatement.execute(ReturnStatement.java:76)
    at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:112)
    at com.caucho.quercus.program.Function.evalImpl(Function.java:343)
    at com.caucho.quercus.program.Function.eval(Function.java:291)
    at com.caucho.quercus.program.AbstractFunction.evalMethod(AbstractFunction.java:196)
    at com.caucho.quercus.program.AbstractFunction.evalMethod(AbstractFunction.java:366)
    at com.caucho.quercus.env.ObjectExtValue.evalMethod(ObjectExtValue.java:528)
    at com.caucho.quercus.env.Var.evalMethod(Var.java:802)
    at _quercus._gallery2._install._steps._InstallCoreModuleStep__class$quercus_InstallCoreModuleStep.fun__addSystemInformationToDebugLog(_InstallCoreModuleStep__class.java:303)
    at _quercus._gallery2._install._steps._InstallCoreModuleStep__class$quercus_InstallCoreModuleStep$3.evalMethod(_InstallCoreModuleStep__class.java:312)
    at com.caucho.quercus.env.ObjectExtValue.evalMethod(ObjectExtValue.java:528)
    at _quercus._gallery2._install._steps._InstallCoreModuleStep__class$quercus_InstallCoreModuleStep.fun_processRequest(_InstallCoreModuleStep__class.java:140)
    at _quercus._gallery2._install._steps._InstallCoreModuleStep__class$quercus_InstallCoreModuleStep$1.evalMethod(_InstallCoreModuleStep__class.java:266)
    at com.caucho.quercus.env.ObjectExtValue.evalMethod(ObjectExtValue.java:528)
    at com.caucho.quercus.env.Var.evalMethod(Var.java:802)
    at _quercus._gallery2._install._index__php.execute(home/megacz/caucho/resin/dist/resin-3.0.s060522/webapps/ROOT/gallery2/install/index.php:197)
    at com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:122)
    at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:228)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:389)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:507)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:433)
    at java.lang.Thread.run(Thread.java:595)
 
(0001177)
megacz
05-22-06 16:41

test
 
(0001178)
megacz
05-22-06 16:42

test
 
(0001179)
megacz
05-22-06 16:46

test
 
(0001181)
megacz
05-22-06 16:50

test
 
(0001182)
megacz
05-22-06 16:51

test
 
(0001183)
megacz
05-22-06 16:51

test
 
(0001184)
megacz
05-22-06 16:52

test
 
(0001185)
megacz
05-22-06 16:52

test
 
(0001186)
megacz
05-22-06 16:52

test
 
(0001187)
megacz
05-22-06 16:53

test
 
(0001188)
megacz
05-22-06 16:53

test
 
(0001189)
megacz
05-22-06 16:53

test
 
(0001190)
megacz
05-22-06 16:54

test
 
(0001191)
megacz
05-22-06 16:54

test
 
(0001192)
megacz
05-22-06 16:55

test
 
(0001193)
megacz
05-22-06 16:55

test
 
(0001194)
megacz
05-22-06 16:55

test
 
(0001195)
megacz
05-22-06 16:55

test
 
(0001196)
koreth
05-22-06 16:56

Please cut that out. It is really obnoxious.
 
(0001197)
megacz
05-22-06 16:57

test
 
(0001198)
megacz
05-22-06 16:57

test
 
(0001199)
megacz
05-22-06 16:58

test
 
(0001200)
megacz
05-22-06 16:59

test
 
(0001201)
megacz
05-22-06 17:00

test
 
(0001202)
megacz
05-22-06 17:01

test
 
(0001203)
megacz
05-22-06 17:01

test
 
(0001204)
megacz
05-22-06 17:02

test
 
(0001205)
megacz
05-22-06 17:02

test
 
(0001206)
megacz
05-22-06 17:03

test
 
(0001207)
megacz
05-22-06 17:04

test
 
(0001208)
megacz
05-22-06 17:06

test
 
(0001209)
megacz
05-22-06 17:07

test
 
(0001210)
megacz
05-22-06 17:09

test
 
(0001211)
megacz
05-22-06 17:10

test
 
(0001212)
megacz
05-22-06 17:13

test
 
(0001213)
megacz
05-22-06 17:13

test
 
(0001214)
megacz
05-22-06 17:14

test
 
(0001215)
megacz
05-22-06 17:15

test
 
(0001216)
megacz
05-22-06 17:16

test
 
(0001217)
megacz
05-22-06 17:16

test
 
(0001218)
megacz
05-22-06 17:17

test
 
(0001219)
megacz
05-22-06 17:18

test
 
(0001220)
megacz
05-22-06 17:24

test
 
(0001221)
megacz
05-22-06 17:24

test
 
(0001222)
megacz
05-22-06 17:25

test
 
(0001223)
megacz
05-22-06 17:25

test
 
(0001224)
megacz
05-22-06 17:29

test
 
(0001225)
megacz
05-22-06 17:29

test
 
(0001226)
megacz
05-22-06 17:30

test
 
(0001227)
megacz
05-22-06 17:35

test
 

- Issue History
Date Modified Username Field Change
05-16-06 12:37 koreth New Issue
05-16-06 12:41 koreth Note Added: 0001141
05-16-06 13:03 koreth Note Added: 0001142
05-17-06 08:15 ferg Note Added: 0001146
05-22-06 16:12 megacz Note Added: 0001173
05-22-06 16:13 megacz Note Added: 0001174
05-22-06 16:41 megacz Note Added: 0001177
05-22-06 16:42 megacz Note Added: 0001178
05-22-06 16:46 megacz Note Added: 0001179
05-22-06 16:50 megacz Note Added: 0001181
05-22-06 16:51 megacz Note Added: 0001182
05-22-06 16:51 megacz Note Added: 0001183
05-22-06 16:52 megacz Note Added: 0001184
05-22-06 16:52 megacz Note Added: 0001185
05-22-06 16:52 megacz Note Added: 0001186
05-22-06 16:53 megacz Note Added: 0001187
05-22-06 16:53 megacz Note Added: 0001188
05-22-06 16:53 megacz Note Added: 0001189
05-22-06 16:54 megacz Note Added: 0001190
05-22-06 16:54 megacz Note Added: 0001191
05-22-06 16:55 megacz Note Added: 0001192
05-22-06 16:55 megacz Note Added: 0001193
05-22-06 16:55 megacz Note Added: 0001194
05-22-06 16:55 megacz Note Added: 0001195
05-22-06 16:56 koreth Note Added: 0001196
05-22-06 16:57 megacz Note Added: 0001197
05-22-06 16:57 megacz Note Added: 0001198
05-22-06 16:58 megacz Note Added: 0001199
05-22-06 16:59 megacz Note Added: 0001200
05-22-06 17:00 megacz Note Added: 0001201
05-22-06 17:01 megacz Note Added: 0001202
05-22-06 17:01 megacz Note Added: 0001203
05-22-06 17:02 megacz Note Added: 0001204
05-22-06 17:02 megacz Note Added: 0001205
05-22-06 17:03 megacz Note Added: 0001206
05-22-06 17:04 megacz Note Added: 0001207
05-22-06 17:06 megacz Note Added: 0001208
05-22-06 17:07 megacz Note Added: 0001209
05-22-06 17:09 megacz Note Added: 0001210
05-22-06 17:10 megacz Note Added: 0001211
05-22-06 17:13 megacz Note Added: 0001212
05-22-06 17:13 megacz Note Added: 0001213
05-22-06 17:14 megacz Note Added: 0001214
05-22-06 17:15 megacz Note Added: 0001215
05-22-06 17:16 megacz Note Added: 0001216
05-22-06 17:16 megacz Note Added: 0001217
05-22-06 17:17 megacz Note Added: 0001218
05-22-06 17:18 megacz Note Added: 0001219
05-22-06 17:24 megacz Note Added: 0001220
05-22-06 17:24 megacz Note Added: 0001221
05-22-06 17:25 megacz Note Added: 0001222
05-22-06 17:25 megacz Note Added: 0001223
05-22-06 17:29 megacz Note Added: 0001224
05-22-06 17:29 megacz Note Added: 0001225
05-22-06 17:30 megacz Note Added: 0001226
05-22-06 17:35 megacz Note Added: 0001227
06-29-06 19:31 ferg Assigned To  => ferg
06-29-06 19:31 ferg Status new => closed
06-29-06 19:31 ferg Resolution open => fixed
06-29-06 19:31 ferg Fixed in Version  => 3.0.20


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
138 total queries executed.
81 unique queries executed.
Powered by Mantis Bugtracker