impraveen / gnizr

Automatically exported from code.google.com/p/gnizr
Other
0 stars 0 forks source link

ConcurrentModificationException on logout using RC1 #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. logout
2.
3.

What is the expected output? What do you see instead?
Expect: cookies cleared from session and returned to home page.
Get: every time logout, a stack trace is displayed, rooted on 
ConcurrentModificationException

What version of the product are you using? On what operating system?
2.3.0 RC2 on CentOs, Servlet container - Winstone 0.9.1

Stack Trace
java.util.ConcurrentModificationException
    at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
    at java.util.HashMap$KeyIterator.next(HashMap.java:828)
    at java.util.Collections$1.nextElement(Collections.java:3389)
    at com.opensymphony.webwork.dispatcher.SessionMap.clear
(SessionMap.java:72)
    at com.gnizr.web.action.user.UserLogout.go(UserLogout.java:52)
    at com.gnizr.web.action.AbstractAction.execute
(AbstractAction.java:86)
    at sun.reflect.GeneratedMethodAccessor197.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.opensymphony.xwork.DefaultActionInvocation.invokeAction
(DefaultActionInvocation.java:358)
    at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly
(DefaultActionInvocation.java:218)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:192)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept
(AroundInterceptor.java:31)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:190)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept
(AroundInterceptor.java:31)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:190)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept
(AroundInterceptor.java:31)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:190)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept
(AroundInterceptor.java:31)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:190)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept
(AroundInterceptor.java:31)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:190)
    at 
com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept
(ExceptionMappingInterceptor.java:186)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:190)
    at com.gnizr.web.interceptor.ConfigurationInterceptor.intercept
(ConfigurationInterceptor.java:55)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:190)
    at com.opensymphony.xwork.DefaultActionProxy.execute
(DefaultActionProxy.java:116)
    at 
com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction
(DispatcherUtils.java:273)
    at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter
(FilterDispatcher.java:202)
    at winstone.FilterConfiguration.execute
(FilterConfiguration.java:195)
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter
(UrlRewriteFilter.java:738)
    at winstone.FilterConfiguration.execute
(FilterConfiguration.java:195)
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
    at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite
(RewrittenUrl.java:176)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter
(UrlRewriteFilter.java:728)
    at winstone.FilterConfiguration.execute
(FilterConfiguration.java:195)
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
    at winstone.RequestHandlerThread.processRequest
(RequestHandlerThread.java:244)
    at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
    at java.lang.Thread.run(Thread.java:619)

Please provide any additional information below.

Original issue reported on code.google.com by jeffrey....@gmail.com on 11 Mar 2008 at 11:01

GoogleCodeExporter commented 9 years ago
Jeffrey, 

Did you check out 2.3.0 RC2 from SVN and build which yourself? As of 3/14/2008 
2pm,
we haven't released 2.3.0 RC2 binary in the download section. If you didn't 
build the
software from the source, maybe you were referring to a different version of 
gnizr.

BTW. Which version of the JRE are you running? 

Original comment by harry.c...@gmail.com on 14 Mar 2008 at 7:01

GoogleCodeExporter commented 9 years ago
Apologies ... this was indeed 2.3.0 RC1. Running on JDK1.6.0_10. Sorry for 
crappy bug
report.

Original comment by jeffrey....@gmail.com on 15 Mar 2008 at 12:08

GoogleCodeExporter commented 9 years ago
I was unable to reproduce the exception. However, I've added some log4j calls to
trace this exception and made changes to how the session object (a Map 
instance) is
cleared. 

http://fisheye2.cenqua.com/changelog/gnizr/branches/gnizr-2.3?cs=695

In the final release of 2.3.0, you should be able to set log4j properties to see
whether the error persists in the UserLogout action.

In WEB-INF/log4.properties, set

log4j.logger.com.gnizr.web.action.user=DEBUG

Original comment by harry.c...@gmail.com on 20 Mar 2008 at 3:47