0
我收到java.util.concurrentmodificationexception我下面执行为什么我在Groovy代码中得到java.util.ConcurrentModificationException?
try{
Date fromDate = new Date().parse("yyyy-MM-dd", SfromDate);
Date toDate = new Date().parse("yyyy-MM-dd", StoDate);
def sTblList = this.getMonths(SfromDate,StoDate)
def resourceInstance=Resources.get(res_id);
sTblList.each{
def OnemonthList=it.createCriteria().get {
eq('graresource',resourceInstance)
between('currentdate', fromDate, toDate)
projections {
sum(sumCol,'t_cnt')
groupProperty(groupCol)
order('t_cnt', 'desc')
maxResults(maxCount)
}
}
if (OnemonthList)
sumMap.addAll(OnemonthList)
}
return sumMap
}
catch(Exception e){
log.error("Error in SummaryUtilsService:getTop10UsersChart:" + e)
}
是不是因为我试着组上的总财产,什么毛病此语法?
是否说* CME在哪?你没有提供足够的细节。什么是sumMap?这段代码在哪里生活? – 2012-01-17 00:27:14