Getting java.lang.IllegalArgumentException: Item Handle array cannot exceed 2048 elements-when loading file into component in stream
Hello Jazz Team,
I am getting below exception in RTC when i load a more component(more than 1500..etc) into particular stream. Please provide solution to resolve this issue.
Exception in thread "main" java.lang.IllegalArgumentException: Item Handle array cannot exceed 2048 elements.
at com.ibm.team.repository.service.internal.RepositoryItemService.fetchItemsPermissionAware(RepositoryItemService.java:796)
at sun.reflect.GeneratedMethodAccessor305.invoke(null)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
I am getting below exception in RTC when i load a more component(more than 1500..etc) into particular stream. Please provide solution to resolve this issue.
Exception in thread "main" java.lang.IllegalArgumentException: Item Handle array cannot exceed 2048 elements.
at com.ibm.team.repository.service.internal.RepositoryItemService.fetchItemsPermissionAware(RepositoryItemService.java:796)
at sun.reflect.GeneratedMethodAccessor305.invoke(null)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
3 answers
Use more than one arrays with item handles to resolve items?
As far as I can tell, RTC components are not designed to be such fine grained and it also has other severe side effects to have so many components in streams.
See https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Ft_component_bestpractices.html
See https://jazz.net/library/article/205
Please also read How should I ask a question in the Forum if I want to receive useful answers? because you don't provide any information really that would allow to answer.
As far as I can tell, RTC components are not designed to be such fine grained and it also has other severe side effects to have so many components in streams.
See https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Ft_component_bestpractices.html
While there is no hard limit to the number of components in a stream, the recommended maximum number of components is 500, with up to 100,000 files and folders per component.
See https://jazz.net/library/article/205
Source Control: We recommend 50K files and folders in a single component and if you have more files to split them into multiple components. We encourage individual users to keep less than 300 change sets suspended. While there is no limitation, there is a tendency for a large suspended set can slow down operations involving the suspended set (suspend, resume, discard) as well as add to some additional costs in refreshing or changing collaborations. We have tested the user experience of working with a large number of components in workspaces and streams. There are no known issues with having hundreds of components in a stream or workspace, and we have tested the user experience with 500 components in a collaboration.
Please also read How should I ask a question in the Forum if I want to receive useful answers? because you don't provide any information really that would allow to answer.
With the addition of hierarchical components, RTC should be able to handle more that 2000 components in a stream, as long as there are a reasonable number (less than 500, say) and any given level of the hierarchy.
So if you are working with RTC-6.x, please create a component hierarchy, and have no more than 500 components at any given level of the hierarchy. If this still fails, please submit this as a defect (as a PMR, if you are under IBM support, as a jazz.net defect if you are not).
So if you are working with RTC-6.x, please create a component hierarchy, and have no more than 500 components at any given level of the hierarchy. If this still fails, please submit this as a defect (as a PMR, if you are under IBM support, as a jazz.net defect if you are not).
Follow up Question [forgive me for piggy-back ], but when I searched on the message, very few "fresh" things were found.
[RTC 6.0.2 ifix02 ]
User reports similar message on Deliver operation from workspace that has lagged behind the stream. This is part of the stack trace:
<com.ibm.team.repository.transport.client.RemoteTeamService spnego-enabled@9.123.135.66> /ccm/service/com.ibm.team.scm.common.IScmService] ERROR com.ibm.team.process.common
- Item Handle array cannot exceed 2048 elements.
java.lang.IllegalArgumentException: Item Handle array cannot exceed 2048 elements.
at com.ibm.team.repository.service.internal.RepositoryItemService.fetchItemsPermissionAware(RepositoryItemService.java:796)com.ibm.team.repository.service.internal.ComponentRepositoryItemService.fetchItems(ComponentRepositoryItemService.java:657)
at com.ibm.team.scm.service.internal.utils.ServerItemProvider.fetchItems(ServerItemProvider.java:90)
at com.ibm.team.scm.common.internal.util.ItemProviderUtil.fetchCurrents(ItemProviderUtil.java:58)
at com.ibm.team.scm.common.internal.util.ItemProviderUtil.resolveLinks(ItemProviderUtil.java:132)
at com.ibm.team.scm.common.links.ChangeSetLinks.resolveLinks(ChangeSetLinks.java:125)
at com.ibm.team.filesystem.service.internal.ServerRequireWorkItemAdvisor.addProblems(ServerRequireWorkItemAdvisor.java:210)
at com.ibm.team.filesystem.service.internal.ServerRequireWorkItemAdvisor.run(ServerRequireWorkItemAdvisor.java:170)
at
I highlight the WorkItemAdvisor because there are Deliver (client)/ Deliver (server) preconditions, the latter requiring work item.
Could the Operation Advisor(s) be removed to enable that delivery ?
[RTC 6.0.2 ifix02 ]
User reports similar message on Deliver operation from workspace that has lagged behind the stream. This is part of the stack trace:
<com.ibm.team.repository.transport.client.RemoteTeamService spnego-enabled@9.123.135.66> /ccm/service/com.ibm.team.scm.common.IScmService] ERROR com.ibm.team.process.common
- Item Handle array cannot exceed 2048 elements.
java.lang.IllegalArgumentException: Item Handle array cannot exceed 2048 elements.
at com.ibm.team.repository.service.internal.RepositoryItemService.fetchItemsPermissionAware(RepositoryItemService.java:796)com.ibm.team.repository.service.internal.ComponentRepositoryItemService.fetchItems(ComponentRepositoryItemService.java:657)
at com.ibm.team.scm.service.internal.utils.ServerItemProvider.fetchItems(ServerItemProvider.java:90)
at com.ibm.team.scm.common.internal.util.ItemProviderUtil.fetchCurrents(ItemProviderUtil.java:58)
at com.ibm.team.scm.common.internal.util.ItemProviderUtil.resolveLinks(ItemProviderUtil.java:132)
at com.ibm.team.scm.common.links.ChangeSetLinks.resolveLinks(ChangeSetLinks.java:125)
at com.ibm.team.filesystem.service.internal.ServerRequireWorkItemAdvisor.addProblems(ServerRequireWorkItemAdvisor.java:210)
at com.ibm.team.filesystem.service.internal.ServerRequireWorkItemAdvisor.run(ServerRequireWorkItemAdvisor.java:170)
at
I highlight the WorkItemAdvisor because there are Deliver (client)/ Deliver (server) preconditions, the latter requiring work item.
Could the Operation Advisor(s) be removed to enable that delivery ?
Comments
showing 5 of 8
show 3 more comments