Skip to main content
September 25, 2014
Answered

The getBuiltInScopes method was not found

  • September 25, 2014
  • 3 replies
  • 6840 views

  I have an application that has worked for quite a while. I have made no changes to the code since the last time I used it. Basically, the code creates a zip file with input for an involved report. I used it in March of this year it worked fine. I've been assured by the gov't sysadmins and DBAs that nothing has changed, but I still get the attached error. Any ideas?    I have just heard from a friend who knows CF, that it could be a version issue.  I am currently running 8 and I believe he is running 10.   If this is an issue, is the solution somewhere on this site?   I do minimal CF and am at a loss.   The function that is throwing the error is when a button is clicked, a javascript routine is run which combines all the files requred for the zip file.   Yesterday, another application started throwing the error.  I haven't been through the code yet, but it is another button being clicked, and I'm sure, another javascript error.

This topic has been closed for replies.
Correct answer

getBultInScopes() is a ColdFusion 8  procedure...   getCFScopes() is the current call.   My problem was, there was a special debug module that had the call and I could find it nowhere else.  Finally refreshed my Application.cfc from Production and found a call to getBuiltInScopes() there that wasn't in the module I had.   Commented that section out and the error disappeared.  Thank you all for your assistance.

3 replies

Correct answer
October 7, 2014

getBultInScopes() is a ColdFusion 8  procedure...   getCFScopes() is the current call.   My problem was, there was a special debug module that had the call and I could find it nowhere else.  Finally refreshed my Application.cfc from Production and found a call to getBuiltInScopes() there that wasn't in the module I had.   Commented that section out and the error disappeared.  Thank you all for your assistance.

September 30, 2014

Since I have discovered (for my own knowledge) getBuiltInScopes() vs getCFScopes()...   is there anything else like that out there?   The application I inherited, was written with ColdFusion 8 and the Production server is now up to CF10.    A bunch of errors, similar to this, have popped up recently without me doing anything to the code.  I am assuming the SysAdmin on the production system did an update or patch and some of this older stuff is not compatible...   I really need to solve this error and any other related.   Thank you.

BKBK
Community Expert
Community Expert
October 1, 2014

Your concerns are justified. The issue may turn out to have consequences. The error stops Coldfusion processing the page further. However, the user who pressed on the button to approve or disapprove apparently did so for a reason.

Bring any errors you may have to the forum. We shall be glad to discuss them with you. Good luck.

BKBK
Community Expert
Community Expert
October 3, 2014

It did work.  It got rid of the getBuiltInScopes error and gives me now this lovely error:

XXX has experienced an error. XXX Administrators have been notified and will coordinate with you in resolving the error.

Error 1286 - Event handler exception.

The error number means nothing, that I can find.  Every time I attempt the task, the error number increments.   Not sure where to go on this one.   Just start searching the code, I guess.

I have requested a copy of the logs for today.  Hopefully that will give me more info.


LouieWarren wrote:

It did work.  It got rid of the getBuiltInScopes error and gives me now this lovely error:

XXX has experienced an error. XXX Administrators have been notified and will coordinate with you in resolving the error.

Error 1286 - Event handler exception.

The error number means nothing, that I can find.  Every time I attempt the task, the error number increments.   Not sure where to go on this one. 

Error 1286 may refer to a well-known error in the MySQL database: corrupt InnoDB files. If so, then this has nothing to do with Coldfusion.

You have gone far and beyond the call of duty. My advice to you now is to bring in an experienced Coldfusion Developer.

BKBK
Community Expert
Community Expert
September 26, 2014

The functionality getPageContext().getBuiltInScopes() was only implied. Adobe has removed it. Search your code for the function and replace it with getPageContext().getCFScopes().

September 26, 2014

Yes,, I found that yesterday and did just that.  I promoted it to Production and am still getting the same error.   In my search, I only found one place where the getBuiltInScopes shows up... 

BKBK
Community Expert
Community Expert
September 26, 2014

Check the stack trace that comes with the error message. It should point you to the location of the error.