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

Error after applying CF2021 Update 2 and CF2018 Update 12 : The IndexOf method was not found

Community Beginner ,
Oct 13, 2021 Oct 13, 2021

Copy link to clipboard

Copied

We recently updated two customers with the latest security hotfix, Coldfusion 2021 Standard Update 2 and Coldfusion 2018 Update 12 Enterprise.
 
After applying the update portions of our code broke.  We need to know if this is an unsupported feature, a deprecated feature, or a bug in each of the updates. 
 
This code allows us to reference a value within a query using the underlying Java method IndexOf and prior to the updates, has worked correctly since Coldfusion 9.
 
Code: getCCRepairs["MAP_CustID"].IndexOf(JavaCast("string","#session.MAP_CustID#"))
    :: getCCRepairs is a Query 
    :: object "MAP_CustID" is a column in the query object
    :: #session.MAP_CustID# is a variable that contains the current value of MAP_CustID
 
Error: The IndexOf method was not found
 

I can confirm that this is related to each of the updates and previous versions/updates are not affected and work as expected.

 

Have any of you experienced this?  Any thoughts?  

I appreciate your help.

Views

1.1K

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

correct answers 2 Correct answers

Community Expert , Oct 16, 2021 Oct 16, 2021

The issue you face looks similar to the toArray() issue reported earlier. There, the following line of code broke when CF2018 Update 12 or CF2021 Update 2 were installed:

 

<cfset myQueryColumnArray=myQuery["myColumn"].toArray()>

 

Adobe confirmed it is a bug, and has fixed it. It might be worth your while to request a hotfix from them: cfinstal[at]adobe.com

 

 

Votes

Translate

Translate
Community Beginner , Mar 22, 2022 Mar 22, 2022

@Greg P   There is a hotfix which addressed the bug we encounted.  If you reach out to cfsup@adobe.com, they will provide you with the patch that is applicable to your version of CF.

 

I hope that this helps.

Votes

Translate

Translate
Community Expert ,
Oct 16, 2021 Oct 16, 2021

Copy link to clipboard

Copied

The issue you face looks similar to the toArray() issue reported earlier. There, the following line of code broke when CF2018 Update 12 or CF2021 Update 2 were installed:

 

<cfset myQueryColumnArray=myQuery["myColumn"].toArray()>

 

Adobe confirmed it is a bug, and has fixed it. It might be worth your while to request a hotfix from them: cfinstal[at]adobe.com

 

 

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
Community Beginner ,
Oct 16, 2021 Oct 16, 2021

Copy link to clipboard

Copied

Thank you BKBK.  I have been chatting / emailing with Ravi at cfsup@ in hopes of a resolution.  I will share this with him to get his thoughts.

 

I appreciate your follow-up.  Thanks!

 

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 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

@moalspvic, do you have any updates on this issue? We are upgrading our servers as well and just ran into this issue.

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
Community Beginner ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

LATEST

@Greg P   There is a hotfix which addressed the bug we encounted.  If you reach out to cfsup@adobe.com, they will provide you with the patch that is applicable to your version of CF.

 

I hope that this helps.

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