Skip to main content
Participating Frequently
November 25, 2010
Question

Coldfusion Update 9,0,1,274733 disables session

  • November 25, 2010
  • 2 replies
  • 5389 views

Installed CF 9  and left all settings at default @ WindowsXP 32 bit with No Problems

Installed CF 9.0.1 and run very simple index.cfm with  Application.cfc with:

xxxxxxx cut xxxxxxxxxxxxxxxxxx

this.sessionmanagement = true;

this.sessiontimeout = CreateTimeSpan( 0, 0, 1, 0 );

xxxxxxx / cut xxxxxxxxxxxxxxxxxx     Results in:

java.lang.NullPointerException

Debugging Information

ColdFusion Server Developer 9,0,1,274733

Template /walk/index.cfm

Time Stamp 25-Nov-10 10:18 PM

Locale English (UK)

User Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/6.0.495.0 Safari/534.6

No top level page was found.

---------------------------------------------------------------------

Commenting out session vars gets rid of error

The session vars are enabled in CF Admin

BUT - trying to view log files in CF Admin produces this error below

========================================================================

The requested scope session has not been enabled.

Before session variables can be used, the session state management system must be enabled using the cfapplication tag.

The error occurred in _searchloglogic.cfm: line 29

-1 : Unable to display error's location in a CFML template.

Resources:

Check the ColdFusion documentation to verify that you are using the correct syntax.

Search the Knowledge Base to find a solution to your problem.

Browser  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/6.0.495.0 Safari/534.6

Remote Address  127.0.0.1

Referrer  http://127.0.0.1/CFIDE/administrator/logging/index.cfm

Date/Time  25-Nov-10 10:31 PM

Stack Trace

at cf_searchloglogic2ecfm1272957748.runPage(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\logviewer\_searchloglogic.cfm:29) at cfsearchlog2ecfm333999345.runPage(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\logviewer\searchlog.cfm:48)

coldfusion.runtime.NoOperScope$ScopeDisabledException: The requested scope session has not been enabled.

at coldfusion.runtime.NoOperScope.resolveName(NoOperScope.java:36)

at coldfusion.runtime.Scope.get(Scope.java:60)

at coldfusion.runtime.DotResolver.resolve(DotResolver.java:45)

at coldfusion.runtime.DotResolver.resolve(DotResolver.java:72)

at coldfusion.runtime.NeoPageContext.SymTab_resolveSplitName(NeoPageContext.java:1017)

at coldfusion.runtime.NeoPageContext.SymTab_resolveDottedName(NeoPageContext.java:995)

at coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:649)

at coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:622)

at coldfusion.runtime.CfJspPage._checkParam(CfJspPage.java:2939)

at coldfusion.runtime.CfJspPage.checkSimpleParameter(CfJspPage.java:3012)

at cf_searchloglogic2ecfm1272957748.runPage(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\logviewer\_searchloglogic.cfm:29)

===============================================================

Server Details

Server Product                     ColdFusion

Version                               9,0,1,274733

Edition Developer

Operating System                Windows XP

OS Version                          5.1

Adobe Driver Version           4.0 (Build 0005)

Type                                     COOKIE

Description                           Client based text file.

Purge data after time limit      Yes

Time limit                          10 days

Disable global updates           No

Memory Variables

J2EE Sessions                     No

Application Variables

Enable Application Variables Yes

Default Timeout                     1,0,0,0

Maximum Timeout                2,0,0,0

Session Variables

Enable session variables           Yes

Default Timeout                     0,0,1,0

Maximum Timeout                0,0,2,0

================================================

I have tweaked time out settings and set J2ee settings on/off and installed chf9000001 hotfix

Tried same on Windows 7 32 bit/64 bit

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

EDIT--- Ubuntu Server 64bit works

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I have not seen this reported anywhere else.

The settings say session is enabled - even looked in neo-runtime.xml - very carefully

very discouraged ... must be dementia kicking in

    This topic has been closed for replies.

    2 replies

    Giancarlo Gomez
    Inspiring
    March 16, 2011

    I don't know if this has to do with your problem, but I had an issue after I updated ColdFusion 9 to the hotfix you mention and my session id's would reset on every browser refresh unless you had jsessionid's on. What fixed it was setting the following flag to the JVM arguments.

    -Dcoldfusion.sessioncookie.httponly=true

    To find out more about this check out : http://www.petefreitag.com/item/764.cfm

    Giancarlo Gomez aka "JC"
    Participating Frequently
    November 28, 2010

    Hmm, strange.

    A few questions/ideas:

    - Try it with Application.cfm and a <cfapplication>-tag - same results?

    - Do you specify an application, e.g. this.name in the Application.cfc? Just wondering, because if you don't your applications ends up in a "unnamed" application scope which might create all sorts of weird things.

    Cheers

    Kai

    gremukAuthor
    Participating Frequently
    November 28, 2010

    Hello Kai

    Thanks for response

    Same problem on

    Windows XP SP3

    Windows 7 32bit/64bit

    Application.cfc /cfm

    Error is consistent @ all applications

    Same code @ Ubuntu server runs fine ?????

    Been all over this thing

    This all @ Vbox installs

    /**

      * @displayname "walk"

      * @hint "Application Component for walk test App"

      * @output "no"

      **/

    component {

    // application settings

    this.name = "walk";

    this.applicationtimeout = createTimeSpan(0,2,0,0);

    // below = Null Pointer Error!

        //this.sessionmanagement = true;

    //this.sessiontimeout = createTimeSpan(0,1,0,0);

        this.clientstorage = "cookie";

        this.clientmanagement = true;

    The Error on the Log file viewer in Coldfusion Administrator

    ========================================================================

    The requested scope session has not been enabled.

    Before session variables can be used, the session state management system must be enabled using the cfapplication tag.

    The error occurred in _searchloglogic.cfm: line 29

    -1 : Unable to display error's location in a CFML template.

    Resources:

    Check the ColdFusion documentation to verify that you are using the correct syntax.

    Search the Knowledge Base to find a solution to your problem.

    Browser  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/6.0.495.0 Safari/534.6

    Remote Address  127.0.0.1

    Referrer  http://127.0.0.1/CFIDE/administrator/logging/index.cfm

    Date/Time  28-Nov-10 09:29 PM

    Stack Trace

    at cf_searchloglogic2ecfm1272957748.runPage(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\logviewer\_searchloglogic.cfm:29) at cfsearchlog2ecfm333999345.runPage(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\logviewer\searchlog.cfm:48)

    ==================================================================================

    This from install CF 9.0 runs OK

    Update to  9.01 @ build 9,0,1,274733

    Started CF @ 4.5 - went away @ CF 7

    Came back to this - thinking of taking up knitting

    Just trying to update my skillset a bit

    G

    Participating Frequently
    November 29, 2010

    Do you have both an Application.cfc and an Application.cfm maybe?