Pete Freitag Pete Freitag

The null null Error

Published on September 16, 2004
By Pete Freitag
coldfusion

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:

java.lang.NullPointerException
 at coldfusion.runtime.ClientScopeKey.hashCode(ClientScopeKey.java:29)
 at java.util.Hashtable.get(Hashtable.java:333)
 at coldfusion.runtime.ClientScopeServiceImpl.GetClientScope(ClientScopeServiceImpl.java:168)
 at coldfusion.tagext.lang.ApplicationTag.setupClientScope(ApplicationTag.java:571)
 at coldfusion.tagext.lang.ApplicationTag.doStartTag(ApplicationTag.java:283)
 at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1876)
 at cfApplication2ecfm81526635.runPage(/web/Application.cfm:2)
 at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
 at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
 at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
 at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:30)
 at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:93)
 at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
 at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
 at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
 at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
 at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
 at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
 at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
 at coldfusion.CfmServlet.service(CfmServlet.java:105)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
 at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
 at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
 at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
 at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
 at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

The null null Error was first published on September 16, 2004.

Fixinator

The Fixinator Code Security Scanner for ColdFusion & CFML is an easy to use security tool that every CF developer can use. It can also easily integrate into CI for automatic scanning on every commit.


Try Fixinator

CFBreak
The weekly newsletter for the CFML Community


Comments

I have the UUID setting on, but I think you would still get the error either way.
by Pete Freitag on 09/17/2004 at 12:31:57 PM UTC
Pete,
Had MM recognized 57458 as a legit bug as of today? I could not find it on their site.

--Thanks!
by Jad on 10/18/2004 at 2:16:06 PM UTC
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.
by Matt on 10/26/2004 at 6:46:34 AM UTC
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.
by Martin Parry on 01/14/2005 at 11:27:02 AM UTC
Also.. I don't think they have fixed it as it's still happening in Blackstone :¬(
by Martin Parry on 01/14/2005 at 11:28:21 AM UTC
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.
by ron on 02/23/2005 at 7:12:01 PM UTC
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.
by Umer Farooq on 02/24/2005 at 7:30:49 PM UTC
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.
by Brian G on 03/01/2005 at 6:07:07 PM UTC
Pete - can you post the code to duplicate this error please..
by Martin Parry on 03/28/2005 at 7:53:35 AM UTC
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.
by Paul Carney on 05/16/2005 at 7:53:14 AM UTC
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?
by 2wicked on 07/05/2005 at 8:54:47 AM UTC