[ 
https://issues.apache.org/jira/browse/OFBIZ-6218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14385518#comment-14385518
 ] 

Pierre Smits commented on OFBIZ-6218:
-------------------------------------

This might be related to something I am experiencing with a piece of groovy 
code:

{code}
rolesIter = partyRelationRoles.iterator()
while (rolesIter){
thisItem = rolesIter.next()
partyNameView = delegator.findOne("PartyNameView",["partyId" : 
thisItem.partyIdFrom], false)
}

{code}

Which results in following log messages:
{code}
     [java] 2015-03-28 21:33:36,303 |http-bio-8443-exec-7 |                     
         |I| in community, 
getRoles:org.ofbiz.entity.util.EntityListIterator@12f4bdac
     [java] 2015-03-28 21:33:36,303 |http-bio-8443-exec-7 |EntityListIterator   
         |W| For performance reasons do not use the 
EntityListIterator.hasNext() method, just call next() until it returns null; 
see JavaDoc comments in the EntityListIterator class for details and an example
     [java] java.lang.Exception
     [java] at 
org.ofbiz.entity.util.EntityListIterator.hasNext(EntityListIterator.java:254) 
[ofbiz-entity.jar:?]
     [java] at 
org.codehaus.groovy.runtime.DefaultGroovyMethods.asBoolean(DefaultGroovyMethods.java:7781)
 [groovy-all-2.2.1.jar:2.2.1]
     [java] at org.codehaus.groovy.runtime.dgm$28.doMethodInvoke(Unknown 
Source) [groovy-all-2.2.1.jar:2.2.1]
     [java] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085) 
[groovy-all-2.2.1.jar:2.2.1]
{code}

> Unit tests throw exception in DBCP
> ----------------------------------
>
>                 Key: OFBIZ-6218
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6218
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Adrian Crum
>
> Details in comments.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to