cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco community upgrade 3.4d - 4.2.c

outlandish
Champ in-the-making
Champ in-the-making
I am trying to upgrade Alfresco Community from 3.4d to 4.2.c.

I first upgraged to 4.0.d then I upgraded to 4.2c. Everything works fine but My Tasks dashlet and My Tasks page does not work; it simply says 'Error loading items' in a red background.

Following is the error when I try to access My Tasks page:


2013-02-12 00:56:06,004  ERROR [extensions.webscripts.AbstractRuntime] [http-8080-4] Exception from executeScript - redirecting to status template error: 01120002 Wrapped Exception (with status template): fromIndex(1000000) > toIndex(1509)
org.springframework.extensions.webscripts.WebScriptException: 01120002 Wrapped Exception (with status template): fromIndex(1000000) > toIndex(1509)
   at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
   at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:426)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.IllegalArgumentException: fromIndex(1000000) > toIndex(1509)
   at java.util.ArrayList.subListRangeCheck(ArrayList.java:924)
   at java.util.ArrayList.subList(ArrayList.java:914)
   at org.alfresco.repo.workflow.WorkflowServiceImpl.getPooledTasks(WorkflowServiceImpl.java:762)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:245)
   at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:211)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:164)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy66.getPooledTasks(Unknown Source)
   at org.alfresco.repo.web.scripts.workflow.TaskInstancesGet.buildModel(TaskInstancesGet.java:124)
   at org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript.executeImpl(AbstractWorkflowWebscript.java:80)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
   … 25 more


Complete log file is attached.

Would appreciate any insight. Thank you.
5 REPLIES 5

afaust
Legendary Innovator
Legendary Innovator
Hello,

looking at the exception trace and the source code of HEAD, this is a rather obvious development bug (the for-loop needs some work). I have not found a JIRA for this yet, so you should go ahead and report your problem.

Regards
Axel

outlandish
Champ in-the-making
Champ in-the-making
Thank you, I will do that right away. Meanwhile, what would you suggest as a temporary fix for this problem. Perhaps reverting back to a previous version?

afaust
Legendary Innovator
Legendary Innovator
Hello,

if you can afford waiting a while before upgrading to 4.2, I would consider going on a 4.0 release. Alternatively, you might try an earlier 4.2, but I would expect those to be a bit more unstable than the latest 4.0 Community. Since we use Enterprise Editions for most if not all of our work (Community only for demonstrations), I don't have any practical experience with the overall stability of the 4.x Community releases…

Regards
Axel

andy
Champ on-the-rise
Champ on-the-rise
Hi

This is fixed. The code was rolled back and implemented with some controls on how many tasks to report and how many groups to consider.
It seems to have slipped into community incorrectly.

Andy

paiyyavj13
Star Contributor
Star Contributor
hi Andy,

I am currently implementing a stack in which there 1500+ groups and there is a special User present in all these groups. The 'My Tasks' dashlet keeps saying "Loading…..".

I am guessing it is because of the number of groups the user is part of.

If i had to edit the number of groups to be considered while pulling the tasks in 'My Tasks', would it work in fixing the issue? Also could you let me know where to fix the same?

Thanks,
Vijay.