|
You are correct in theory, but
unfortunately, CF doesn’t always behave. I have seen the same error for the
aforementioned reasons – especially in development, where files change all the time.
It seems that in certain circumstances, CF just doesn’t properly clean that
cache out or files become locked, even when caching is disabled. I think that
under the hood, CF does something with compiled files/types to differentiate
them – ie, they don’t just use the strict class name as the identifier. That’s
why the files in the cache all have numbers appended to them, and that’s how CF
can have 3 different applications running with 3 different objects that have
the same name. I think that’s why it becomes a “type” error – I would be
willing to bet that somewhere in that error stack, the actual java type name is
quite different than what it is complaining that the CF type should be. Roland From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Kotek Well locally I have
trusted cache and save class files disabled. But even if they were enabled,
then wouldn't it just do nothing (ie keep using the same version of the CFC it
has in memory or written to disk)? That's not what's happening, it's generating
an error saying a returned CFC is not of the specified type, but it IS of the
specified type. It's the same file name in the same location on disk. I could
understand it if CF simply didn't pick up the changes at all, but throwing an
error about an invalid type when the type IS correct (the object can be dumped
to confirm this) definitely seems odd. On 5/10/06, Roland
Collins <[EMAIL PROTECTED]>
wrote: Check the help docs for the info on the Trusted Cache and
Save Class Files settings. That's what's causing your error – basically,
CF ignores updated files under some circumstances with those settings enabled. Roland From: [EMAIL PROTECTED]
[mailto:
[EMAIL PROTECTED]] On Behalf Of Brian
Kotek Do we have any idea why this is happening though? If I
have a CFC, and I update it in some way but it is still named the same thing
and has the same path, why would CF suddenly not think it is the proper type
any longer? On
5/10/06, Peter J. Farrell <[EMAIL PROTECTED]>
wrote: Brian Kotek said the following on 5/10/2006 9:53 AM:
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] |
- Re: [CFCDev] CFC typing errors when there should be none? Ryan Guill
- Re: [CFCDev] CFC typing errors when there should be ... Brian Kotek
- Re: [CFCDev] CFC typing errors when there should... Brian Kotek
- Re: [CFCDev] CFC typing errors when there sh... Ryan Guill
- Re: [CFCDev] CFC typing errors when ther... Brian Kotek
- Re: [CFCDev] CFC typing errors when... Peter J. Farrell
- Re: [CFCDev] CFC typing errors ... Brian Kotek
- Re: [CFCDev] CFC typing errors ... Peter J. Farrell
- RE: [CFCDev] CFC typing errors ... Roland Collins
- Re: [CFCDev] CFC typing errors ... Brian Kotek
- RE: [CFCDev] CFC typing errors ... Roland Collins
