possible non-threadsafe access to the session错误

y000n520 发布于 2014/03/03 16:28
阅读 1K+
收藏 0

【Gopher China万字分享】华为云的Go语言云原生实战经验!>>>

各位大神:

 代码里面出现这种错误 不知道是什么问题 麻烦各位解答哈 急急急。。。

ERROR [Thread-62] (AssertionFailure.java:22) an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: possible non-threadsafe access to the session
        at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:104)
        at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)
        at org.hibernate.loader.Loader.doQuery(Loader.java:729)
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
        at org.hibernate.loader.Loader.doList(Loader.java:2213)
        at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
        at org.hibernate.loader.Loader.list(Loader.java:2099)
        at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
        at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
        at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
        at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
        at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:65)
        at domain.GlobalDataManager.getRelatedEntitysResult(GlobalDataManager.java:1518)
        at domain.performance.entity.pm_rnc_kpi.toXML(pm_rnc_kpi.java:77)
        at domain.performance.performanceManager.createXmlFile(performanceManager.java:192)
        at domain.performance.performanceManager.run(performanceManager.java:431)
        at java.lang.Thread.run(Thread.java:619)

加载中
返回顶部
顶部