quote:
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.
quote:
Originally posted by: Newsgroup User
Since, while Adobe provides the drivers, they do not write them. Other
companies write the drivers.
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.
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.
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.
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
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?
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.
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?
We finally figured this out on our box. Turns out that we had set the maxtimeout on the mysql box low for some other applications we have running against it. So, when we configured the timeout for each datasource to be less than the maxtimeout on the mysql box, all was well. set mysql max timeout = 60 seconds...datasource timeouts at 58 seconds. obviously, you can configure as you see fit, we figured at the one minute point someone was throwing the keyboard anyway. ;-)
Hi I am working on an application which requires integration with Twitter. I have used twitter4j api,n when i tried to run the server and client it is giving the following error. Can you help me get through this.
[Thread-4] INFO twitter4j.internal.logging.Logger - Will use class
twitter4j.internal.logging.SLF4JLoggerFactory as logging factory.
14:20:48.375 [Thread-4] INFO t.internal.http.HttpClientFactory - Will use twitt
er4j.internal.http.alternative.HttpClientImpl as HttpClient implementation.
14:20:48.531 [Thread-4] DEBUG twitter4j.http.OAuthAuthorization - OAuth base str
ing: POST&http%3A%2F%2Fapi.twitter.com%2F1%2Fdirect_messages%2Fnew.json&oa uth_co
nsumer_key%3D2n2xvpH3gK1gjAawipnDw%26oauth_nonce%3D-385779984%26oauth_ signature_
method%3DHMAC-SHA1%26oauth_timestamp%3D1285568448%26oauth_token%3D1802 66706-lOs2
Jj46bXBTsKJaQiE4XMM0Vj3z6Jslg5UgpEVS%26oauth_version%3D1.0%26screen_na me%3Dpifi3
%26text%3Daaa
java.lang.NullPointerException
at twitter4j.internal.http.BASE64Encoder.encode(BASE64Encoder.java:46)
at twitter4j.http.OAuthAuthorization.generateSignature(OAuthAuthorizatio
n.java:321)
at twitter4j.http.OAuthAuthorization.generateAuthorizationHeader(OAuthAu
thorization.java:216)
at twitter4j.http.OAuthAuthorization.generateAuthorizationHeader(OAuthAu
thorization.java:257)
at twitter4j.http.OAuthAuthorization.getAuthorizationHeader(OAuthAuthori
zation.java:95)
at twitter4j.internal.http.alternative.HttpClientImpl.request(HttpClient
Impl.java:166)
at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.j
ava:72)
at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java
:103)
at twitter4j.Twitter.sendDirectMessage(Twitter.java:964)
at multiverse.org.mxr.qri.server.util.TwitterIntegration1.SendChatMessag
e(TwitterIntegration1.java:55)
at multiverse.org.mxr.qri.server.service.impl.GiftSendService.process(Gi
ftSendService.java:127)
at multiverse.org.mxr.qri.server.service.impl.GiftSendService.<init>(Gif
tSendService.java:41)
at multiverse.org.mxr.qri.server.util.MessageRouter.run(MessageRouter.ja
va:40)
Shrutipriya-
Please start a new thread - this is not at all related to the topic the others were talking about.
Also, if you haven't gone too far with your solution, I highly recommend using the monkehTweet project to connect to Twitter from ColdFusion. Open source, works great (using it on a project now) and really easy to work with. http://monkehtweet.riaforge.org/
Steve
I am suffering from this same problem. I am receiving all sorts of random, disturbing errors, and after realizing that all the stacktraces started the same way, I found myself here.
All the errors start like this: java.lang.NullPointerException at com.mysql.jdbc.Statement.setMaxRows(Statement.java:2178)
Is anyone aware of any reliable fix for this??
Thanks,
Brian
Have you tried tweaking all the timeout settings (both on the CF and MySQL side) as suggested in any of the prior posts?
Failing that, please provide more information:
* OS/version
* CF version (and any/all updaters and hotfixes applied)
* code snippet
* exact exception/stack information
Or if you don't feel like doing any of that, try a clean re-installation of ColdFusion. I know it sounds dramatic, but sometimes it's the easiest way out.
steve
North America
Europe, Middle East and Africa
Asia Pacific