ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Foxworthy <p...@cohsoft.com.au>
Subject Re: EntityListIterator Not Closed Error
Date Thu, 19 May 2011 13:37:32 GMT
Hello Vivek,

Are you consuming your productReviewList anywhere? That might be what frees
up the iterator.

See for example the screen EditContactListParty in
applications/marketing/widget/ContactListScreens.xml at
There's an iterate-section using the list defined by the entity-condition.

I haven't tested it, but if the EditContactListParty doesn't bring on the
problem you're seeing, you might be able to narrow down the difference
between it and your code. If it does produce the same error, maybe a bug has
crept into the entity-condition action.


Paul Foxworthy

vivek wrote:
> Dear Friends,
> Greetings of the day.
> I am working on a request to display latest 5 pending reviews in one
> particular section of the website.
> For this reason i have written entity-condition in the actions section of
> the screen.
> However i can make use of groovy or ftl itself & call the list out there,
> but wish to perform in this way.
> The concern i am facing is that when the list gets prepared, it is
> throwing EntityListIterator error stating
>  EntityListIterator Not Closed for Entity [ProductReview], caught in
> Finalize
> Here is the attached code what i am trying to do.
> <entity-condition entity-name="ProductReview"
> list-name="productReviewList">
> 	<condition-expr field-name="statusId" operator="equals"
> value="PRR_PENDING"/>
> 	<select-field field-name="productRating"/>
> 	<select-field field-name="productReview"/>
> 	<select-field field-name="postedAnonymous"/>
> 	<select-field field-name="userLoginId"/>
> 	<select-field field-name="postedDateTime"/>
> 	<order-by field-name="productReviewId"/>
> 	<limit-range start="0" size="5"/>
> </entity-condition>
> As it observed there should be an object of EntityListIterator say eli
> which must be closed (eli.close()). However the same thing in groovy or
> java with eli.close() works fine, but I am unaware as how to write the
> said expression in xml or is there any other way around to prevent the
> concern i am facing.
> i have attached an file containing the same code, if in case the code gets
> messy while posting.
> Kindly let me know what can be done in the process to rectify the concern
> or how can i avoid the error being encountered?
> Your early reply & help in this regard will be highly appreciated.
> Thanks.
> Regards:-
> Vivek Jadiya
> er.jadiyavivek@gmail.com
> +91-9686757747 http://ofbiz.135035.n4.nabble.com/file/n3520179/code.txt
> code.txt 

View this message in context: http://ofbiz.135035.n4.nabble.com/EntityListIterator-Not-Closed-Error-tp3520179p3535697.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

View raw message