Skip to main content
mattm93153916
Participant
October 25, 2018
Question

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

  • October 25, 2018
  • 2 replies
  • 643 views

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?

    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    October 28, 2018

    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

    WolfShade
    Legend
    October 26, 2018

    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,

    ^ _ ^

    WolfShade
    Legend
    October 26, 2018

    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,

    ^ _ ^