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

Weird Error Message

Participant ,
Mar 02, 2018 Mar 02, 2018

Copy link to clipboard

Copied

I am setting up a new site and getting this cryptic error message. 500 error

Element NAME is undefined in a Java object of type class coldfusion.runtime.StructBean. The specific sequence of files included or processed is:

I cant get any pages to run. It looks like the session vars aren't getting set. Any idea what this is? Maybe some server settings arent correct?

Views

572

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 ,
Mar 02, 2018 Mar 02, 2018

Copy link to clipboard

Copied

I assume that the error message contains a document and line number indicating where the error is happening.  Are you setting up a Bean for anything?  Does the CFAdmin error log give any more information?

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
Participant ,
Mar 02, 2018 Mar 02, 2018

Copy link to clipboard

Copied

More info.

I am migrating this code from Railo ( I know!!) to CF2016.
Code worked in railo just fine. Cant get it to do the most basic thing on CF server.

I think this may be the problem code.

<cfscript>

                app = application.getApplicationSettings().name;

                sessiontracker = createObject("java","coldfusion.runtime.SessionTracker");

                sessionCollection = sessionTracker.getSessionCollection(app);

            </cfscript>

      <cfloop collection="#sessionCollection#" item="sessionId">

        <cfset thisSession = sessionCollection[sessionId]>

        <cfif not StructIsEmpty(thisSession) and StructKeyExists(thisSession,"USER")>

          <cfif thisSession.USER.ID eq #getUser.WEBUSER_ID#>

            <cfset StructClear(thisSession)>

          </cfif>

        </cfif>

      </cfloop>


Is this CF2016 compliant or does CF need this to be rewritten?

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 ,
Mar 02, 2018 Mar 02, 2018

Copy link to clipboard

Copied

We're going to need more information than that. I have no idea what code is being run prior to receiving that error.

Dave Watts, Fig Leaf Software

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
Participant ,
Mar 02, 2018 Mar 02, 2018

Copy link to clipboard

Copied

LATEST

More info.

I am migrating this code from Railo ( I know!!) to CF2016.
Code worked in railo just fine. Cant get it to do the most basic thing on CF server.

I think this may be the problem code.

<cfscript>

                app = application.getApplicationSettings().name;

                sessiontracker = createObject("java","coldfusion.runtime.SessionTracker");

                sessionCollection = sessionTracker.getSessionCollection(app);

            </cfscript>

      <cfloop collection="#sessionCollection#" item="sessionId">

        <cfset thisSession = sessionCollection[sessionId]>

        <cfif not StructIsEmpty(thisSession) and StructKeyExists(thisSession,"USER")>

          <cfif thisSession.USER.ID eq #getUser.WEBUSER_ID#>

            <cfset StructClear(thisSession)>

          </cfif>

        </cfif>

      </cfloop>


Is this CF2016 compliant or does CF need this to be rewritten?

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