Thursday, September 10, 2009

Hot under the hotfix..

We ran into an error today on one of our dev servers.
coldfusion.runtime.J2eeSessionScopeStub cannot
be cast to coldfusion.runtime.J2eeSessionScopeStub

We had recently patched that server with "Cumulative Hot Fix 3 for ColdFusion 8.0.1" That was really the only thing that changed with the server before getting the error. I went into JRun4\servers\{instancename}\cfusion.ear\cfusion.war\WEB-INF\cfusion\lib\updates and removed chf8010003.jar. After restarting the instance, things came up normal. I thought that maybe the file we downloaded was corrupt so I grabbed a fresh copy. That file didn't work either. The head scratcher in this is that we installed the patch on other instances with no problems. Not sure what is so unique with this instance, but it just doesn't jive with the new hotfix.

here is the stack:
18840 java.lang.ClassCastException: coldfusion.runtime.J2eeSessionScopeStub cannot be cast to coldfusion.runtime.J2eeSessionScopeStub
18841 at coldfusion.runtime.SessionTracker.getSession(
18842 at coldfusion.runtime.AppHelper.setupJ2eeSessionScope(
18843 at coldfusion.runtime.AppHelper.setupSessionScope(
18844 at coldfusion.filter.ApplicationFilter.invoke(
18845 at coldfusion.filter.MonitoringFilter.invoke(
18846 at coldfusion.filter.PathFilter.invoke(
18847 at coldfusion.filter.ExceptionFilter.invoke(
18848 at coldfusion.filter.BrowserDebugFilter.invoke(
18849 at coldfusion.filter.ClientScopePersistenceFilter.invoke(
18850 at coldfusion.filter.BrowserFilter.invoke(
18851 at coldfusion.filter.NoCacheFilter.invoke(
18852 at coldfusion.filter.GlobalsFilter.invoke(
18853 at coldfusion.filter.DatasourceFilter.invoke(
18854 at coldfusion.CfmServlet.service(
18855 at coldfusion.bootstrap.BootstrapServlet.service(
18856 at jrun.servlet.FilterChain.doFilter(
18857 at coldfusion.monitor.event.MonitoringServletFilter.doFilter(
18858 at coldfusion.bootstrap.BootstrapFilter.doFilter(
18859 at jrun.servlet.FilterChain.doFilter(
18860 at jrun.servlet.FilterChain.service(
18861 at jrun.servlet.ServletInvoker.invoke(
18862 at jrun.servlet.JRunInvokerChain.invokeNext(
18863 at jrun.servlet.JRunRequestDispatcher.invoke(
18864 at jrun.servlet.ServletEngineService.dispatch(
18865 at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(
18866 at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(
18867 at


Carlos Gallupa said...

We also got all sorts of errors with the cfimage tag after installing the hotfix. After removing the hotfix everything worked without a hitch

I hope version 9 will not have those "updates"

John Edwards said...

We had hf3 running in Development fine, just went live on production and its throwing the same errors as above.

Removed the hot fix and all fine.

Thanks for the post, this was a life saver.


Seajay said...

Yes - same problem confirmed here. We were getting the same error (mucked up our session replicaiton in our cluster) after applying the CH3 package. Removed and working again.

David Collie said...

CHF4 will fix this: