Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: BKBK
Let's follow another strategy. Run the following query on the MySQL database
show variables;
What value do you get for wait_timeout and for interactive_timeout ? Each has a default value of 28800, that is, 8 hours, converted into seconds.
Is either of the values much lower for your MySQL server? If so, increase it or have it increased. You can do so, for example, by adding the line
wait_timeout=28800
or the line
interactive_timeout=28800
or both to the [mysqld] section of the my.ini configuration file. Restart the MySQL server for the changes to take effect.
Copy link to clipboard
Copied
quote:
changing the 2 timeout's above appears to have done the trick for us - ...
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
Since, while Adobe provides the drivers, they do not write them. Other
companies write the drivers.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
No I do *NOT* work for Adobe, and these Forums are not official adobe
support, but rather community friends helping friends, so since my help
is undesired, I'll stop offering it to you.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I have an idea. Coldfusion 8 has a new setting in the Administrator for MySQL datasources. It is the checkbox field, "Validation query". My idea is that it has something to do with this particular NullPointerException.
To my knowledge, no one yet knows what is responsible for the broken connection. Is it the database driver, the database itself or an external influence such as a firewall? However, we know one thing for sure. When the current connection drops, the driver makes no attempt to get a new connection from the connection pool. That led me to the following hypothesis about how Coldfusion 8 and the MySQL driver work together:
1) if the current connection fails the Validation Query must run
and
2) if the Validation Query fails, no new connection is obtained from the connection pool; instead, an exception is silently thrown.
That could then explain the NullPointerException. By default, the Validation Query field is empty. If, for whatever reason, the database connection is broken then, by my hypothesis, the validation query is run. This fails, for the query is nonexistent. As a result, no new connection is obtained from the connection pool. Instead, an exception is silently thrown.
Copy link to clipboard
Copied
Has a solution to this bug been created? I am receiving the same random error when we upgraded to CF8 from CF7. Please help...
Server Product ColdFusion
Version 8,0,1,195765
Edition Standard
Java Version 1.6.0_04
Java Vendor Sun Microsystems Inc.
Java Vendor URL http://java.sun.com/
Java Home C:\ColdFusion8\runtime\jre
Driver SeeFusion (MySQL5) - mysql-connector-java-commercial-5.0.5-bin.jar, seefusion.jar
Copy link to clipboard
Copied
I wanted to resurrect this old post because I have a client that is seeing this error on a site and he's tried moving it to CF9 and is getting the same error. It does generally occur on the same query, but it's a pretty simply update statement, the only variable in the query is definitely not null (verified in an error dump), the same code runs fine on many other sites without issue. But we are seeing this on a regular basis:
java.lang.NullPointerException at com.mysql.jdbc.Statement.setMaxRows(Statement.java:2178) at coldfusion.sql.Executive.executeQuery(Executive.java:1267) at coldfusion.sql.Executive.executeQuery(Executive.java:1009) at coldfusion.sql.Executive.executeQuery(Executive.java:940) at coldfusion.sql.SqlImpl.execute(SqlImpl.java:325) at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:838) at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:528)
Has anyone found a solution for this?
Copy link to clipboard
Copied
Oops, small correction. It does appear the setMaxRows issue was indeed corrected in CF9 and we're now getting the underlying error that caused that one to occur on CF8. We haven't yet figured it out yet but does appear to be something that's causing a null exception...I've got enough information on the exact steps that recreate it so should be able to track it down.
Copy link to clipboard
Copied
We're suffering from the same issue; unfortunately none of the suggestions in this thread have done anything for us. I have created a detailed explanation of the symptoms in my blog at http://devbox.computec.de/2010/06/coldfusion-8-and-mysql-5-1-via-jdbc-help-needed/. Is there any news or any other suggestions to get CF8 and MySQL 5.1 to play nice?