The null null Error

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)

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

 Download FuseGuard WAF for ColdFusion

Trackbacks

Trackback Address: 163/B9E028F27F634F8625D0D313D5318A28

Comments

On 09/16/2004 at 8:53:17 PM EDT Erki Esken wrote:
1
Do you have UUID token setting on in CFAdmin or not? Does switching that have different result?

On 09/17/2004 at 2:31:57 PM EDT Pete Freitag wrote:
2
I have the UUID setting on, but I think you would still get the error either way.

On 10/18/2004 at 4:16:06 PM EDT Jad wrote:
3
Pete, Had MM recognized 57458 as a legit bug as of today? I could not find it on their site.

--Thanks!

On 10/26/2004 at 8:46:34 AM EDT Matt wrote:
4
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.

On 12/22/2004 at 4:45:07 AM EST Anonymous wrote:
5
<h1>Please check out some relevant pages dedicated to... Thanks!!! </h1>

On 01/14/2005 at 1:27:02 PM EST Martin Parry wrote:
6
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.

On 01/14/2005 at 1:28:21 PM EST Martin Parry wrote:
7
Also.. I don't think they have fixed it as it's still happening in Blackstone :¬(

On 02/18/2005 at 2:08:55 PM EST Jason Andrea wrote:
8
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.

On 02/23/2005 at 9:12:01 PM EST ron wrote:
9
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.

On 02/24/2005 at 9:30:49 PM EST Umer Farooq wrote:
10
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.

On 03/01/2005 at 8:07:07 PM EST Brian G wrote:
11
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.

On 03/28/2005 at 9:53:35 AM EST Martin Parry wrote:
12
Pete - can you post the code to duplicate this error please..

On 03/29/2005 at 3:03:14 AM EST Ajillis wrote:
13
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.

On 04/25/2005 at 5:24:03 PM EDT bjbailey wrote:
14
html might be the answer. kiss

On 05/16/2005 at 9:53:14 AM EDT Paul Carney wrote:
15
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.

On 07/05/2005 at 10:54:47 AM EDT 2wicked wrote:
16
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?

On 08/03/2005 at 7:44:26 AM EDT Pieter wrote:
17
Hi How can I successsful replicate the NULL ERROR? We sometimes get it when we try to log into the application. Thanks.

On 11/22/2005 at 11:58:23 AM EST Matt wrote:
18
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.

On 01/15/2006 at 10:36:43 PM EST James wrote:
19
You can now install the hotfix:

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=b3c51ba1

On 07/10/2006 at 9:20:02 PM EDT Wazza wrote:
20
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.

On 01/11/2007 at 7:01:57 PM EST Anonymous wrote:
21
does any1 no how to get rid of the error null plz email me. with thoughts and ideas

On 05/23/2007 at 8:41:22 AM EDT Lee wrote:
22
I got this error when I accidentally put cfoutput tags inside a cfmail (CF6).

On 07/03/2007 at 10:30:08 AM EDT Dave wrote:
23
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.

On 07/13/2007 at 2:15:13 PM EDT Sam5127 wrote:
24
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.

On 07/13/2007 at 2:15:35 PM EDT Sam5127 wrote:
25
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.

Post a Comment




  



Spell Checker by Foundeo

Recent Entries



foundeo


did you hack my cf?