[
https://issues.apache.org/jira/browse/OFBIZ-9919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Le Roux closed OFBIZ-9919.
----------------------------------
Resolution: Fixed
Fix Version/s: Upcoming Release
Thanks Suraj,
Your patch is in trunk r1814561. This was broken by OFBIZ-9549 so there is no
need to backport
I'd add that there is not much gain for cases where the pre-allocation makes
sense:
https://stackoverflow.com/questions/15430247/why-start-an-arraylist-with-an-initial-capacity
> EntityListIterator.getComplateList returns error randomly
> ---------------------------------------------------------
>
> Key: OFBIZ-9919
> URL: https://issues.apache.org/jira/browse/OFBIZ-9919
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Reporter: Suraj Khurana
> Assignee: Jacques Le Roux
> Fix For: Upcoming Release
>
> Attachments: OFBIZ-9919.patch
>
>
> Here are the logs that I found in the console.
> at
> org.apache.ofbiz.entity.jdbc.SQLProcessor.executeQuery(SQLProcessor.java:402)
> ~[ofbiz.jar:?]
> at
> org.apache.ofbiz.entity.datasource.GenericDAO.selectCountByCondition(GenericDAO.java:1101)
> ~[ofbiz.jar:?]
> at
> org.apache.ofbiz.entity.util.EntityListIterator.getResultSize(EntityListIterator.java:508)
> ~[ofbiz.jar:?]
> at
> org.apache.ofbiz.entity.util.EntityListIterator.getCompleteList(EntityListIterator.java:417)
> ~[ofbiz.jar:?]
> at
> org.apache.ofbiz.entity.util.EntityListIterator$getCompleteList.call(Unknown
> Source) ~[?:?]
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
> ~[groovy-all-2.4.12.jar:2.4.12]
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
> ~[groovy-all-2.4.12.jar:2.4.12]
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
> ~[groovy-all-2.4.12.jar:2.4.12]
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)