ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vivek <er.jadiyavi...@gmail.com>
Subject EntityListIterator Not Closed Error
Date Fri, 13 May 2011 13:17:25 GMT
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

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"
	<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"/>

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.



Vivek Jadiya
+91-9686757747 http://ofbiz.135035.n4.nabble.com/file/n3520179/code.txt

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

View raw message