Search:
Calendar:
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 |
Subscribe:
Enter your email address to subscribe to this blog.
Archives By Subject:
Adobe (31) [RSS]
AIR (6) [RSS]
Ajax (3) [RSS]
Buzzword (1) [RSS]
CFUG (39) [RSS]
ColdFusion (65) [RSS]
Flash (5) [RSS]
Flex (37) [RSS]
Frameworks (2) [RSS]
Free Software (2) [RSS]
FXUG (21) [RSS]
General (33) [RSS]
JpgMetadataReader (3) [RSS]
jQuery (1) [RSS]
Mac (2) [RSS]
Off Topic (13) [RSS]
OpenSource (13) [RSS]
PaperVision (10) [RSS]
Spry (2) [RSS]
AIR (6) [RSS]
Ajax (3) [RSS]
Buzzword (1) [RSS]
CFUG (39) [RSS]
ColdFusion (65) [RSS]
Flash (5) [RSS]
Flex (37) [RSS]
Frameworks (2) [RSS]
Free Software (2) [RSS]
FXUG (21) [RSS]
General (33) [RSS]
JpgMetadataReader (3) [RSS]
jQuery (1) [RSS]
Mac (2) [RSS]
Off Topic (13) [RSS]
OpenSource (13) [RSS]
PaperVision (10) [RSS]
Spry (2) [RSS]
Tags:
adobe
air
ajax
cfug
coldfusion
flash
flex
frameworks
free software
fxug
general
jpgmetadatareader
mac
off topic
opensource
papervision
spry
Recent Entries:
Top Posts:
- [9361] Paper Vision 3D Sphere - Carousels on Steroids!
- [5119] PaperVision Carousel0.3 - one step closer to the master plan!
- [5013] Carousel v0.2 - source code
- [4956] PaperVision3D/Flex2 Carousel v0.2
- [4930] Simple PaperVision3D Blurring example
- [4502] Saving images from Flex using ColdFusion: Simple Example with source code
- [4412] PaperVision3D is good for cubes! - a "geek" gift
- [3925] Simple Dynamic Cursor Example in Flex2: With source code
- [3842] Simple PaperVision3D Blurring example : source code
- [3628] PaperVision, Flex2 and my daughter all playing together!
Recent Comments:
- Adventures in jQuery
Joe Roberts said: I'm glad you are finding the project useful. I agree, I find it quite liberating to be able to fill ... [More] - Adventures in jQuery
Ben Nadel said: David, Good point. White space does add overhead unlike in a ColdFusion file which is compiled on t... [More] - Adventures in jQuery
David said: Hi Ben, I too have a coding style that works for me. Laying out the code in a consistent manner sur... [More] - Adventures in jQuery
Ben Nadel said: jQuery is awesome. One of the biggest hurdles for me initially was coming up with a tabbing / line-... [More] - Trace log not working on Flash Player 9,0,28,0
Mr-Yellow said: This log folder no longer exists on my player. [More]
Top Commenters:
- [8] Campbell
- [8] Ben Nadel
- [6] Mark Flewellen
- [6] Steve Bryant
- [4] barry.b
- [4] Raymond Camden
- [3] Peter Bell
- [2] Dan Wilson
- [2] carlos
- [2] riabook
My Links:
RSS:
ColdFusion Error: can't load a null
I was working with a CFC today and ColdFusion threw this error at me:
can't load a null
There was no more information than that...
I'm not sure why is this error happens, but I did work what is causing it...
If you define a function that has an argument that has a default that is a variable or function with the same name as any of the arguments, this error is thrown.
You don't even need to call the function, you just need to define it.
Create a .cfm or .cfc and put this function in it:
<cffunction name="someFunction">
<cfargument name="myValue" default="#myValue#">
<cfreturn false>
</cffunction>
<cfargument name="myValue" default="#myValue#">
<cfreturn false>
</cffunction>
The error is occurring when ColdFusion is parsing the code, and not running it.
Weird eh?
I'm off to http://www.adobe.com/go/wish now to log a bug (all-be-it an obscure odd one...)

<cffunction name="foo">
<cfargument name="firstArg" default="1">
<cfargument name="secondArg" default="#firstArg#">
</cffunction>
@Robert: I tested exactly that, and you are correct in that it won't throw an error. Good spotting
@Gareth: The error is thrown at parsing time and not run-time. The code just has to be there and not even run for the issue to happen :-) - try it out, you'll see what I mean
@Radek: I'm not sure what you mean by that. I suspect Adobe didn't know about this issue, so they couldn't of told us about it even if they wanted to.
Or are you meaning that the error reporting tells us more information? (EG: like every other "normal" error will tell us with "Enable Robust Exception Information" turned on)