Mantis - Quercus
Viewing Issue Advanced Details
2109 minor always 10-23-07 15:40 10-23-07 19:46
mo  
nam  
low  
closed  
fixed  
none    
none 3.1.4  
0002109: ClassCastException when mysql server is not running
I am seeing a confusing error message when a PHP application
tries to use mysql but it can't connect to the mysql server.

500 Servlet Exception

java.lang.ClassCastException: com.caucho.quercus.env.JavaValue
    at com.caucho.quercus.lib.db.MysqlModule.getConnection(MysqlModule.java:907)
    at com.caucho.quercus.lib.db.MysqlModule.getConnection(MysqlModule.java:902)
    at com.caucho.quercus.lib.db.MysqlModule.mysql_error(MysqlModule.java:232)
    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)


A better error message should be displayed in this common error case.

Notes
(0002379)
nam   
10-23-07 19:46   
php/1401

regression issue