Ticket #64 (closed defect: fixed)

Opened 20 years ago

Last modified 19 years ago

Session required for instantiating framework

Reported by: Jason Owned by: joe.rinehart
Priority: normal Milestone: 2.0 Beta 1 Bugfixes
Version: 2.0.304 Severity: major
Keywords: session scope Cc:

Description

I wouldn't mind enabling session, but I know that session is not supposed to be required any more, so I'll post this. When running an upgraded M-G 1.x app under Beta 2, I get:

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 E:\web\inetprivate\wwwroot\ModelGlue?\unity\statebuilder\StateBuilder?.cfc: line 63

So, I checked into StateBuilder?.cfc, line 63 and found that it is, in fact, config'd to *not* require session, by testing against arguments.framework.getUseSession(). So, that line is apparently reading 'true', yet when I add a debug to FrameworkLoader?.cfc, I see see that the framework correctly sets 'false'.

[I added the following as line 40 in FrameworkLoader?.cfc: <cfoutput>#mg.getUseSession()#</cfoutput><cfabort> to get a screen dump saying 'false'.]

Basically, not sure where it's getting reset to true along the way. I can load the framework with sessionmanagement="yes".

Error Message:

Error Occurred While Processing Request 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 E:\web\inetprivate\wwwroot\ModelGlue?\unity\statebuilder\StateBuilder?.cfc: line 63 Called from E:\web\inetprivate\wwwroot\ModelGlue?\unity\eventrequest\EventRequest?.cfc: line 26 Called from E:\web\inetprivate\wwwroot\ModelGlue?\unity\framework\ModelGlue?.cfc: line 196 Called from E:\web\inetprivate\wwwroot\ModelGlue?\unity\ModelGlue?.cfm: line 46 Called from E:\web\inetprivate\wwwroot\ModelGlue?\ModelGlue?.cfm: line 1 Called from E:\web\inetprivate\wwwroot\gc200X\index.cfm: line 19 61 : 62 : <cfif variables._useSession> 63 : <cfparam name="session._ModelGlue.forwardedRequestLog" default="" /> 64 : </cfif> 65 :

Also, getting a lot of exceptions for ColdSpring?, but don't know whether or not they play a role.

Exceptions:

16:39:09.009 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: frameworkLoader

16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: modelGlue

16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: modelGlue

16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: modelGlue

16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: modelGlue

16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: modelGlue

16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: modelGlue

16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: stateBuilder

16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: coldSpringAdapter

16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: eventLoader

16:39:11.011 - Expression Exception - in E:\web\inetprivate\wwwroot\ModelGlue?\unity\loader\FrameworkLoader?.cfc : line 35

The requested scope session has not been enabled.

16:39:16.016 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: ormService

16:39:16.016 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: reactorConfiguration

16:39:16.016 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: reactorConfiguration

16:39:35.035 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: ormController

16:39:35.035 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168

property requested does not exist for bean: ormController

16:39:36.036 - Expression Exception - in E:\web\inetprivate\wwwroot\ModelGlue?\unity\statebuilder\StateBuilder?.cfc : line 63

The requested scope session has not been enabled.

16:39:36.036 - Expression Exception - in E:\web\inetprivate\wwwroot\ModelGlue?\unity\statebuilder\StateBuilder?.cfc : line 63

The requested scope session has not been enabled.

Change History

Changed 20 years ago by joe.rinehart

  • owner changed from somebody to joe.rinehart
  • status changed from new to assigned
  • milestone changed from User Reported Issues (with full information) to Resolve Public Beta 1 Defects

Changed 20 years ago by joe.rinehart

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [177]

Note: See TracTickets for help on using tickets.