The null null Error

September 16, 2004

We have a global error handler setup on our site that emails us whenever an uncaught exception is thrown by ColdFusion. Ever since we upgraded to ColdFusion MX we had been randomly getting the error null null The error occurred on line 1. thrown from our Application.cfm file. On line 1 was our cfapplication tag. The error would be thrown from several different urls within the site, and we were never able to reproduce it - until last week.

Shortly after I started outputting cookie values in the error emails, I noticed that this error is thrown when the CFTOKEN cookie is not defined but the CFID cookie exists - or vise versa. You will only get this error if you have client variables turned on.

With that I was able to provide some code to reproduce the problem, and report it to Macromedia. If your having this issue you may inquire about bug 57458.

Here's the stack trace that shows up in my logs:

 at coldfusion.runtime.ClientScopeKey.hashCode(
 at java.util.Hashtable.get(
 at coldfusion.runtime.ClientScopeServiceImpl.GetClientScope(
 at coldfusion.tagext.lang.ApplicationTag.setupClientScope(
 at coldfusion.tagext.lang.ApplicationTag.doStartTag(
 at coldfusion.runtime.CfJspPage._emptyTag(
 at cfApplication2ecfm81526635.runPage(/web/Application.cfm:2)
 at coldfusion.runtime.CfJspPage.invoke(
 at coldfusion.tagext.lang.IncludeTag.doStartTag(
 at coldfusion.filter.CfincludeFilter.invoke(
 at coldfusion.filter.CfincludeFilter.include(
 at coldfusion.filter.ApplicationFilter.invoke(
 at coldfusion.filter.RequestMonitorFilter.invoke(
 at coldfusion.filter.PathFilter.invoke(
 at coldfusion.filter.ExceptionFilter.invoke(
 at coldfusion.filter.ClientScopePersistenceFilter.invoke(
 at coldfusion.filter.BrowserFilter.invoke(
 at coldfusion.filter.GlobalsFilter.invoke(
 at coldfusion.filter.DatasourceFilter.invoke(
 at coldfusion.CfmServlet.service(
 at jrun.servlet.ServletInvoker.invoke(
 at jrun.servlet.JRunInvokerChain.invokeNext(
 at jrun.servlet.JRunRequestDispatcher.invoke(
 at jrun.servlet.ServletEngineService.dispatch(
 at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(
 at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(
 at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(
 at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(

17 people found this page useful, what do you think?


Do you have UUID token setting on in CFAdmin or not? Does switching that have different result?
I have the UUID setting on, but I think you would still get the error either way.
Pete, Had MM recognized 57458 as a legit bug as of today? I could not find it on their site. --Thanks!
Has anyone verified bug # 57458? Has anyone contacted with Macromedia re: this bug with positive results? We went through the per-incident tech support once before when we were having several issues (including NULL NULL) and were less than satisfied.
<h1>Please check out some relevant pages dedicated to... Thanks!!! </h1>
I too had this.. In may case it was corruption in MYSQL. I basically let CF recreate the tables and it seemed to sort it.
Also.. I don't think they have fixed it as it's still happening in Blackstone :¬(
Now i'm getting this error for a particular user. Have never had this problem before in MX. Have been using it for a couple of years. We are using client variable in a sql database, UUID is NOT turned on, though, i swear i had that turned on at one point! I thought i could just blow away the client records in the cdata and cglobal tables, have the user clear her cookies....but none of this worked either.
I was going crazy with a null null error on MX 6.1. I narrowed it down to a CFQUERY that did this.... "select * from ..." I changed it from using an asterisk to actually naming the columns, and the problem went away. Go figure.
was getting the same error.. need to contact Macromedia for the fix.. or upgrade to CFMX7. following is the reply.. Bug 57458 is a duplicate of bug 45343. This has been fixed but was not included in the CFMX 6.1 Updater -- it is included in CFMX 7.
This NULL NULL error is not fixed in CFMX7. I'm getting it somewhat frequently on my Linux server. It even said line -1 a few times! Moving to Java was great but the worthless error messages we get now are appalling.
Pete - can you post the code to duplicate this error please..
We were getting a null null error now and then and traced it down to the JVM running out of stack space. Doubled it up and the issue went away. Just an idea.
html might be the answer. kiss
The JVM memory is the issue here. We just had the same thing this morning where we go the null null error and it referenced line -1. When we bumped the max heap from 512 to 640, it solved the problem. We have a process that uses quite a few objects (components) and has some very large query data sets. Both of these stressed JRun a bit.
Upping the JVM heap did not seem to help. We've increased ours from 512 to 800, and have not seen any decrease in "null null" errors. These all reference the line containing our cfapplication tag (and occasionally line -1). Anyone else had any luck with finding this on Macromedia's site, or better yet, fixing it themselves?
Hi How can I successsful replicate the NULL ERROR? We sometimes get it when we try to log into the application. Thanks.
We receive this error on occasion, with both MySQL and MS SQL, in our case it is not DB specific. One of our pages that emails a confirmation also exhibits this error. I narrowed the error to a few sets of lines: <cfif Order.Country neq ' and Order.Country neq 'us'> Your order will be processed and shipped. The country you selected may have additional international charges (such as customs, duty, tax and/or VAT), these charges are not being imposed or collected, if they are applicable you will be contacted by customs to remit payment at the time of delivery. <cfelse> You should receive your #session.item_book_textplural# within one to five business days of the ship date depending upon the shipping destination and shipping method. </cfif> If I simply comment these lines out the error disappears, it is very odd indeed.
You can now install the hotfix:
I was also getting a null null error. (CFMX7) In my case I was doing a query on query. The first query was being built using queryNew(), querySetCell()... etc and had a field (rank) that contained integers. The rank field was also one of the fields in my ORDER BY clause. When I dumped out the query after it errored in a try-catch statement it looked like normal, valid numbers in the rank field (there were a few 0's - which may be CF's way of representing "other" things). But when I removed the rank field from the ORDER BY clause I didnt get an error. So, I forced the rank field to be a value by doing this: querySetCell(myQuery,"rank",val(someval)); and stuck the rank field back in the ORDER BY clause and it worked. Hope this helps someone.
does any1 no how to get rid of the error null plz email me. with thoughts and ideas
I got this error when I accidentally put cfoutput tags inside a cfmail (CF6).
This one was confusing the hell out of me... same problem as Lee, cfoutput tags inside a cfmail will result in a null null error. Moving the cfoutput outside the cfmail fixed the problem.
I got the same error when updating a table from CF, it disappeared when I removed the "Cachedwithin" clause from the CFquery parameters. Hope this helps.
I got the same error when updating a table from CF, it disappeared when I removed the "Cachedwithin" clause from the CFquery parameters. Hope this helps.

Recent Entries