No - I know what I did.  I WANT(ed) to copy the full (deep) structure as
it contains several layers of information.  I had just recently added
the CFC reference however which was blowing it up (this isn't a new
system but additions to an old one).  As the issue only occurs during
the end-of-session processing it's not immediately apparent (the problem
only occurs during the scheduled task that clears out old sessions).


To address this I've simply removed the CFC reference before doing the
dupe.  The CFC's not important to the end-of-session handling.  I had
thought at first that duplicate would just copy the reference - it
doesn't.  I definitely didn't expect it to blow a gasket all the way
down to the JRun core - at the very least I would have figured on a
nice, simple "don't dupe CFCs, dummy!" error.  ;^)


The error message (actually the lack of one) is what took me so long to
diagnose the problem - once I figured out what was causing the problem
the solution was simple.


Jim Davis


-----Original Message-----
From: Matt Liotta [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 02, 2003 9:21 PM
To: CF-Talk
Subject: Re: Duplicate() and CFCs cause JRUN Servlet Error (500 Null)?


> Yeah - I was just assuming (bad word!  Maybe "hoping" is a better one)
> that duplicating a structure containing a reference to a CFC would
> duplicate just the reference to the CFC and not try to dupe the whole
> CFC. doesn't appear to work however.
>
I believe what you are in fact looking for is StructCopy(), which
doesn't attempt to create copies below the first level.

Matt Liotta
President & CEO
Montara Software, Inc.
http://www.MontaraSoftware.com
(888) 408-0900 x901

  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to