You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "David Sean Taylor (JIRA)" <je...@portals.apache.org> on 2006/10/10 18:59:23 UTC

[jira] Commented: (JS2-597) Concurrency issue in DatabasePageManger cache

    [ http://issues.apache.org/jira/browse/JS2-597?page=comments#action_12441204 ] 
            
David Sean Taylor commented on JS2-597:
---------------------------------------

Im in the process of replacing all ArrayLists with RemovalAwareCollection/Lists
I haven't seen the error you are having, but it might help if OJB synchronizes its collections
sorry, i didn't finish last night, hope to finish this today

> Concurrency issue in DatabasePageManger cache
> ---------------------------------------------
>
>                 Key: JS2-597
>                 URL: http://issues.apache.org/jira/browse/JS2-597
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: PSML
>    Affects Versions: 2.1-dev
>         Environment: java 1.5, oracle 9
>            Reporter: Ethan Adams
>            Priority: Critical
>
> The following exception tells me there is a concurrency issue with this ArrayList.  Shouldn't access be synchonized, or a synchronized List?
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 10
> 	at java.util.ArrayList.clear(ArrayList.java:455)
> 	at org.apache.jetspeed.om.folder.impl.FolderImpl.resetAll(FolderImpl.java:365)
> 	at org.apache.jetspeed.page.impl.DatabasePageManager.getAll(DatabasePageManager.java:920)
> 	at sun.reflect.GeneratedMethodAccessor418.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
> 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
> 	at org.apache.jetspeed.util.interceptors.PageManagerInterceptor.invoke(PageManagerInterceptor.java:46)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
> 	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
> 	at $Proxy4.getAll(Unknown Source)
> 	at org.apache.jetspeed.om.folder.impl.FolderImpl.getAll(FolderImpl.java:827)
> 	at org.apache.jetspeed.om.folder.proxy.FolderProxy.aggregateChildren(FolderProxy.java:763)
> 	at org.apache.jetspeed.om.folder.proxy.FolderProxy.getAll(FolderProxy.java:309)
> 	at org.apache.jetspeed.om.folder.proxy.FolderProxy.getPages(FolderProxy.java:450)
> 	at org.apache.jetspeed.om.folder.proxy.FolderProxy.getPage(FolderProxy.java:473)
> 	at org.apache.jetspeed.om.folder.proxy.FolderProxy.selectDefaultPageFromAggregateFolders(FolderProxy.java:715)
> 	at org.apache.jetspeed.om.folder.proxy.FolderProxy.getDefaultPage(FolderProxy.java:324)
> 	at org.apache.jetspeed.om.folder.proxy.FolderProxy.invoke(FolderProxy.java:203)
> 	at $Proxy78.getDefaultPage(Unknown Source)
> 	at org.apache.jetspeed.portalsite.impl.PortalSiteSessionContextImpl.selectRequestPage(PortalSiteSessionContextImpl.java:465)
> 	at org.apache.jetspeed.portalsite.impl.PortalSiteSessionContextImpl.selectRequestPage(PortalSiteSessionContextImpl.java:221)
> 	at org.apache.jetspeed.portalsite.impl.PortalSiteRequestContextImpl.getPage(PortalSiteRequestContextImpl.java:212)
> 	at org.apache.jetspeed.portalsite.impl.PortalSiteRequestContextImpl.getManagedPage(PortalSiteRequestContextImpl.java:195)
> 	at org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:248)
> 	... 43 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org