tracker issue : CF-3041746

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 83514:We are getting sporadic "java

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Daniel Mackey / Daniel Mackey (Daniel Mackey)

Created: 07/08/2010

Components: Core Runtime, Session Management

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 278554

Priority/Frequency: Major / Unknown

Locale/System: English / Win All

Vote Count: 22

Problem:

We are getting sporadic "java.lang.IllegalStateException: Session is invalid" exceptions since we moved to ColdFusion 9 from ColdFusion 8.This started happening since we turned on J2EE Sessions (which we have to have on or Flash is not maintaining sessions)I'm at a loss as to know how to work around it, trap it etc and it's causing us alot of problems with end users.I read that the internal J2EE Sessions expire after 30 mins but we have our ColdFusion Session expiration set to 30 mins also. 
Method:

I'm not sure how to trigger it all the time. It seems since we turned on J2EE session variables.
Result:

java.lang.IllegalStateException: Session is invalid

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041746

External Customer Info:
External Company:  
External Customer Name: Daniel Mackey
External Customer Email: 658B2AB1445F42D7992016B6
External Test Config: 07/08/2010

Attachments:

Comments:

Same issue after applying patch. Application is set for 22 minues and jrun is set for 30 minutes and still randomly get users with invalid sessions. Please fix this ASAP!
Vote by External U.
21831 | November 11, 2011 12:49:10 AM GMT
This bug has been voted..
Vote by External U.
21832 | November 11, 2011 12:49:11 AM GMT
This started occuring on our servers when we applied APSB11-14
Vote by External U.
21833 | November 11, 2011 12:49:12 AM GMT
Still getting this issue. Why not create a new session instead of throwing an exception?? 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:582) at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:637) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:275) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:87) 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:53) 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)
Vote by External U.
21834 | November 11, 2011 12:49:14 AM GMT
David Stockton from FusionReactor / CFConsultant.com here. We have diagnosed and resolved this issue and can provide support under our paid consulting services to resolve this on your systems. However, it would be great for the community if Adobe can release a patch to fix this directly.
Vote by External U.
21835 | November 11, 2011 12:49:15 AM GMT
This bug has been voted..
Vote by External U.
21836 | November 11, 2011 12:49:16 AM GMT
This bug happens regularly on our production system when a call gets redirected from another siie, so a user does not have a running session.
Vote by External U.
21837 | November 11, 2011 12:49:17 AM GMT
We are getting this error very often since we applied hotfix2.
Vote by External U.
21838 | November 11, 2011 12:49:19 AM GMT
This bug has been voted..
Vote by External U.
21839 | November 11, 2011 12:49:20 AM GMT
Running on Debian, multiple servers patched, but only one see this problem and very regularly...
Vote by External U.
21840 | November 11, 2011 12:49:21 AM GMT
Same issue since we applied the patch. We have one instance handling two CF Application on the same domain. One is for the HTTP side, the other the HTTPS side. I am able to replicate it 100% of the time on our staging server. 1) Lowered the session timeout to 2 minutes and 3 minutes in web.xml (as per common hotfix for these issues) 2) Load the HTTP site, I get assigned a jsessionID in cookie. 3) Load the HTTPS site, same jsessionID its the same domain but HTTPS 4) Leave the HTTP site alone but browse the HTTPS site. 5) After two minutes of leaving the HTTP site inactive its session will timeout and you start getting "Session is invalid" error on the HTTPS site. If you refresh the HTTP site at any time, during the two minutes the timeout resets and you are able to navigate longer on the HTTPS site.
Vote by External U.
21841 | November 11, 2011 12:49:22 AM GMT
The recent security hotfix (APSB11-14) made this problem substantially worse on our site. We run multiserver configuration on Win 2003 64-bit. and JDK 1.6.0.26
Vote by External U.
21842 | November 11, 2011 12:49:24 AM GMT
This bug has been voted..
Vote by External U.
21843 | November 11, 2011 12:49:25 AM GMT
We're getting the same exception too. Using CF 8.01. It's very random but the error remains in place until the user waits 30 mins for their session to naturally expire. Very frustrating for them and us. Exception is as follows: "Error","jrpp-825","08/25/11","09:06:41","App_secure","Session is invalid The specific sequence of files included or processed is: \\the path to cfm file (removed for security reasons)'' " java.lang.IllegalStateException: Session is invalid at jrun.servlet.session.JRunSession.checkSessionValidity(JRunSession.java:394) at jrun.servlet.session.JRunSession.getMaxInactiveInterval(JRunSession.java:111) at coldfusion.runtime.J2eeSessionScope.SetMaxInactiveInterval(J2eeSessionScope.java:97) at coldfusion.runtime.AppHelper.setupJ2eeSessionScope(AppHelper.java:559) at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:614) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:235) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) 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.CfmServlet.service(CfmServlet.java:198) 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$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Vote by External U.
21844 | November 11, 2011 12:49:26 AM GMT
This is causing MAJOR issues for us. Flex apps and CF apps failing randomly. Whatever the fix is, I need to know ASAP.
Vote by External U.
21845 | November 11, 2011 12:49:28 AM GMT
This bug has been voted..
Vote by External U.
21846 | November 11, 2011 12:49:29 AM GMT
After applying the hotfix 2, this bug seems to have crawled into use a lot more frequent.
Vote by External U.
21847 | November 11, 2011 12:49:30 AM GMT
This bug has been voted..
Vote by External U.
21848 | November 11, 2011 12:49:32 AM GMT
+1. We have been seeing this error on our CF 8 servers as well, would be nice to see it addressed.
Vote by External U.
21849 | November 11, 2011 12:49:33 AM GMT
The update on the patch doesn't seem to resolve this issue
Vote by External U.
21850 | November 11, 2011 12:49:34 AM GMT
Same thing happens on all of our environments after applying APSB11-14.
Vote by External U.
21851 | November 11, 2011 12:49:35 AM GMT
This bug has been voted..
Vote by External U.
21852 | November 11, 2011 12:49:37 AM GMT