tracker issue : CF-3971069

select a category, or use search below
(searches all categories and all time range)
Title:

Error with encrypt() function after applying CF 11 Update 5

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): David Neuman / David Neuman (David Neuman)

Created: 04/16/2015

Components: Language

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Most users will encounter

Locale/System: ALL / Platforms All

Vote Count: 8

Problem Description:  

After applying the CF 11 Update 5, anywhere we use the encrypt() function, it throws an error randomly. 

This is the function we have used in multiple places in our application:  encrypt(string, key, "AES", "BASE64")>

Most places that function is used, we get this error:

Expected static method coldfusion.runtime.CFPage.Encrypt(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

Steps to Reproduce:

Navigate to a page that has the encrypt function, and it will throw that error listed above.

Actual Result:

Page errors out.

Expected Result:

Page should render properly and user should continue working.

Any Workarounds:

Cleared the caches in the CF Admin, and it seems like a temporary fix, because it will work for a short time, and then the same errors will again start to occur randomly throughout the site.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3971069

External Customer Info:
External Company:  
External Customer Name: David
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

+1 Another work around which seems to have a more permanent fix is clearing the classes from {cfrootdir}/wwwroot/WEB-INF/cfclasses
Comment by External U.
7840 | April 22, 2015 02:14:55 AM GMT
Same exact scenario. Did the update and started getting the error on code that has not been changed: Expected static method coldfusion.runtime.CFPage.Encrypt(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; I will clear the cache in CF Admin, things will go back to working for a few days then the error starts up again. Repeat clear, it works for a few days, and then the error starts again.
Vote by External U.
7844 | April 23, 2015 08:19:24 AM GMT
Encountering the exact same problem as detailed in the bug report. Within minutes of updating to Update 5, these errors were showing up in my log. Clearing the cache is a temporary fix.
Vote by External U.
7845 | April 23, 2015 09:07:35 AM GMT
+1 Encountering the same problem.
Comment by External U.
7841 | April 27, 2015 02:36:22 PM GMT
Experienced same bug. Clearing cfusion/wwwroot/WEB-INF/cfclasses fixed.
Vote by External U.
7846 | April 27, 2015 04:16:29 PM GMT
+1 coldfusion.runtime.EventHandlerException Expected static method coldfusion.runtime.CFPage.Encrypt(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; Clearing Cashe resolves issue for a quick temporary work around.
Vote by External U.
7847 | April 28, 2015 07:44:11 AM GMT
Encountering the exact same problem as detailed in the bug report. Within minutes of updating to Update 5, these errors were showing up in my log. Clearing the cache is a temporary fix.
Vote by External U.
7848 | April 28, 2015 09:03:54 AM GMT
Had the same issue. Clearing Web-inf/cfclasses and restarting CF service seems to have helped.
Vote by External U.
7849 | April 30, 2015 11:59:20 AM GMT
+1. Using encrypt() to manage some logon functions, which are no longer working after applying CF11 Update 5.
Vote by External U.
7850 | May 22, 2015 09:12:51 AM GMT
I am getting this error and I am running my code encrypted and also got the same error except for it was the ArrayAppend function.
Vote by External U.
7851 | July 06, 2015 12:38:02 PM GMT
Clearing the WEB-INF/cfclasses folder should fix this as there was change in method signature.
Comment by Vamseekrishna N.
7842 | September 10, 2015 01:45:51 AM GMT
Hi Vamseekrishna, Going forward, maybe updater installer should auto-clear WEB-INF/cfclasses? Thanks!, -Aaron
Comment by External U.
7843 | September 10, 2015 05:49:22 PM GMT