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

Unable to duplicate a ColdFusion Component. coldfusion.runtime.UndefinedVariableException: Variable APPLICATION is undefined.

New Here ,
Oct 25, 2018 Oct 25, 2018

Copy link to clipboard

Copied

Unable to duplicate a ColdFusion Component. coldfusion.runtime.UndefinedVariableException: Variable APPLICATION is undefined.

This error is flooding my logs and can not figure out what is causing it. Any ideas?

Views

506

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
LEGEND ,
Oct 26, 2018 Oct 26, 2018

Copy link to clipboard

Copied

Whatever page is triggering this error, place the following at the top of the document and run it:

<cfdump var="#application#" /><cfabort />

If the application scope doesn't exist, there's a huge problem.

OR, if you're setting a variable called "application", pick a different name for the variable. 

V/r,

^ _ ^

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
LEGEND ,
Oct 26, 2018 Oct 26, 2018

Copy link to clipboard

Copied

And check your code for a typo.  Maybe you meant to type "application.myVarName" and accidentally left the period out resulting in "application myVarName".

HTH,

^ _ ^

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 Expert ,
Oct 28, 2018 Oct 28, 2018

Copy link to clipboard

Copied

LATEST

mattm93153916  wrote

Unable to duplicate a ColdFusion Component. coldfusion.runtime.UndefinedVariableException: Variable APPLICATION is undefined.

What is your ColdFusion version? Did you upgrade? Does your code - or a library or framework you use - invoke the duplicate() method on a ColdFusion object?

I ask because I remember a strange problem like this one from some years ago. It seemed to involve the application scope that comes in as an argument of the onSessionEnd() event in Application.cfc.

https://forums.adobe.com/thread/219073

https://groups.google.com/forum/#!topic/cfwheels/9KXCk1yNIGQ

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