问题描述
代码如下:------------------------------------------------------------------ListtempList=smgTCenterInfoDAO.findByProperty("centerCode",centerCode);------------------------------------------------------------------调用find方法执行一个查询,报错如下:------------------------------------------------------------------2011-05-3008:46:30[ERROR][SmgTCenterInfoDAO:98]findbypropertynamefailedjava.util.ConcurrentModificationException:concurrentaccesstoHashMapattemptedbyThread[pool-1-thread-4,5,main]atjava.util.HashMap.onEntry(HashMap.java:214)atjava.util.HashMap.transfer(HashMap.java:686)atjava.util.HashMap.resize(HashMap.java:676)atjava.util.HashMap.addEntry(HashMap.java:1049)atjava.util.HashMap.put(HashMap.java:561)atorg.apache.commons.collections.SequencedHashMap.put(SequencedHashMap.java:447)atorg.apache.commons.collections.LRUMap.put(LRUMap.java:126)atorg.hibernate.util.SoftLimitMRUCache.get(SoftLimitMRUCache.java:53)atorg.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:65)atorg.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:134)atorg.hibernate.impl.SessionImpl.list(SessionImpl.java:1122)atorg.hibernate.impl.QueryImpl.list(QueryImpl.java:79)atorg.springframework.orm.hibernate3.HibernateTemplate$29.doInHibernate(HibernateTemplate.java:856)atorg.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:373)atorg.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:847)atorg.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:843)atcom.ccb.cost.biz.persistence.dao.SmgTCenterInfoDAO.findByProperty(SmgTCenterInfoDAO.java:96)atcom.ccb.cost.biz.bizcommon.account.util.AcctCommonUtil.getCurrCenterDate(AcctCommonUtil.java:1428)atcom.ccb.cost.biz.bizcommon.account.util.AcctWaitUtil.canAcctSend(AcctWaitUtil.java:152)atcom.ccb.cost.biz.bizcommon.account.service.impl.AccountBaseServiceImpl.currExecute(AccountBaseServiceImpl.java:151)atcom.ccb.cost.biz.bizcommon.account.service.impl.AccountBaseServiceImpl.execute(AccountBaseServiceImpl.java:74)atsun.reflect.GeneratedMethodAccessor102.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:618)atorg.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)atorg.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)atorg.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)atorg.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)at$Proxy51.execute(UnknownSource)atcom.ccb.cost.biz.bizcommon.account.facade.impl.AccountAutofacadeImpl.execute(AccountAutofacadeImpl.java:79)atcom.ccb.cost.biz.robot.account.AccountAutoBatchThread.run(AccountAutoBatchThread.java:83)atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:678)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:703)atjava.lang.Thread.run(Thread.java:811)------------------------------------------------------------------望高手指教一二。。。谢谢。。。。。。