Skip to main content
WolfShade
Legend
May 9, 2011
Question

Weird: an application variable exists, except when a CFC method is called

  • May 9, 2011
  • 2 replies
  • 712 views

Scratching my head on this one.

A CFDUMP shows that all  application scoped variables are defined and have a value, when the site  first loads, and when another document is included; but when JavaScript  is used to call a CFC, one of the variables doesn't exist; and if  checked after this error, it's still in the application scope, still has  the proper value.

CFAJAXPROXY is seeing the .cfc file, no  problem.  At the top of the .cfc file, many application scope variables  are being copied to the "this" scope.  It is here that the error message  is happening (application.CACHE_TIME is the object of questionable  existential status.)

What could be causing this?

Thanks,

^_^

    This topic has been closed for replies.

    2 replies

    Inspiring
    May 9, 2011

    It sounds to me that the CFC request is not running in the same application space as your CFM requests.

    Does it share the same Application.cfc?

    --

    Adam

    WolfShade
    WolfShadeAuthor
    Legend
    May 9, 2011

    Session variables are disabled (load-balanced environment); everything is within the same domain.

    Same application.cfc is being used for whole site.

    Another developer thinks that it might be because the .cfc is in a folder below the site root, not in the same directory structure.

    Thoughts?

    ^_^

    ilssac
    Inspiring
    May 9, 2011

    WolfShade wrote:

    Another developer thinks that it might be because the .cfc is in a folder below the site root, not in the same directory structure.

    Where are the Application.cfc|cfm file(s)reletive to the errant cfc file?  That is what matters.

    Legend
    May 9, 2011

    Check if your session cookies are present and that your javascript is calling the exact same domain or IP address as your page.