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

Session is Invalid

Guest
Feb 24, 2011 Feb 24, 2011

Has anyone seen this exception before.... and if so, how do I keep it from happening?

Message: Session is invalid
StackTrace: java.lang.IllegalStateException: Session is invalid
     at jrun.servlet.session.JRunSession.checkSessionValidity(JRunSession.java:397)
     at jrun.servlet.session.JRunSession.getMaxInactiveInterval(JRunSession.java:111)
     at coldfusion.runtime.J2eeSessionScope.SetMaxInactiveInterval(J2eeSessionScope.java:96)
     at coldfusion.runtime.AppHelper.setupJ2eeSessionScope(AppHelper.java:593)
     at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:648)
     at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:293)
     at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
     at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
     at coldfusion.filter.PathFilter.invoke(PathFilter.java:94)
     at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
     at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
     at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
     at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
     at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
     at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
     at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
     at coldfusion.CfmServlet.service(CfmServlet.java:200)
     at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
     at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
     at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
     at jrun.servlet.FilterChain.service(FilterChain.java:101)
     at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
     at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
     at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
     at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
     at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
     at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
     at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
     at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
     at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
TagContext:  
     [array]
Type: java.lang.IllegalStateException

1.0K
Translate
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 ,
Feb 26, 2011 Feb 26, 2011
LATEST

liferealized wrote:

Has anyone seen this exception before....

Google has - a few thousand times!

It's likely to do with how you set up the application. You should enable the application and session scopes in the ColdFusion Administrator. Also, make sure your application files contain at least the following information

Application.cfm:

<cfapplication name="myApplicationName"
sessionmanagement="yes"
setclientcookies="yes"
sessiontimeout="#createTimeSpan(0,0,20,0)#"
applicationtimeout="#createTimeSpan(1,0,0,0)#">

Application.cfc:

<cfset this.name="myApplicationName">
<cfset this.sessionmanagement="yes">
<cfset this.setclientcookies="yes">
<cfset this.sessiontimeout="#createtimespan(0,0,20,0)#">
<cfset this.applicationtimeout="#createtimespan(1,0,0,0)#">

I can imagine you getting that exception if you, for example, set the sessiontimeout at a higher value than the applicationtimeout.

Translate
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