• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Coldfusion 2021 CFC corrupted after any modification

New Here ,
Feb 06, 2024 Feb 06, 2024

Copy link to clipboard

Copied

We noticed an issue yesterday when with a cached CFC seemingly corrupted.  We ran a number of tests and are able to recreate the issue:

Here's a test:
- Run any web pages that use the cfc to make sure they're working
- Add a space inside one of the comments in the CFC file
- Try to run the web page again.  It'll error out.
- In CF Admin, clear the cache
- Test the web page again, it'll work

 

Also, in cfclasses, related class files are updated the moment we change the CFC and run the web page, and they won't change after clear cache, indicating the problem doesn't initiate in class files.


More details:

- The CFC errors out with any change, even if with an additional space inside a comment. 
- Once we clear the cache in CF Admin, the problem goes away.  This never happened with older version of CF all the way to the begining of CFCs.  We used to have the problem of CFC not getting updated until we cleared the cache, but with CF2021, it actually errors out.

- This is the error generated when any cfc method is called, regardless of where the change was made.  I replaced the method name with **Method/Function Name** below:


"The {**Method/Function Name**} method was not found. Either there are no methods with the specified method name and argument types or the {**Method/Function Name**} method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity."


- No syntax error is introduced in the CFC.  The moment we clear the cache, the error dissapears.

Views

140

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2024 Feb 06, 2024

Copy link to clipboard

Copied

FWIW, I've not heard of this being a general problem. Indeed, I've not heard of it at all. Still, let me ask some questions to help us help you. 

 

  1. Are you saying this happens with any cfc? Have you confirmed that? 
  2. Have you confirmed it on more than one instance of cf? 
  3. For any instance where it happens, what update of cf2021 is it running? And was the problem happening before that update?
  4. And in the update log for the most recent update, does it report "0 fatalerrors" and "0 nonfatalerrors"? 

/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

LATEST

The behaviour you describe and the error message suggest one thing: when the CFC is invoked, ColdFusion encounters a duplicate CFC name or class name somewhere. To start, give the CFC a unique name, and see what happens.

 

On the other hand, this might be a bug in ColdFusion 2021. That is, the error might be occurring through no fault of your own. That is unlikely though. If it was a bug, many developers would have reported it. In any case, my advice here is that you apply the latest ColdFusion 2021 update

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation