在多线程高并发的情况下,报了异常求大佬帮看看,卡住一周了

发布于 2022-09-12 04:19:03 字数 3374 浏览 18 评论 0

image.png

`Exception [EclipseLink-2004] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ConcurrencyException
Exception Description: A signal was attempted before wait() on ConcurrencyManager. This normally means that an attempt was made to
commit or rollback a transaction before it was started, or to rollback a transaction twice.

    at org.eclipse.persistence.exceptions.ConcurrencyException.signalAttemptedBeforeWait(ConcurrencyException.java:84)
    at org.eclipse.persistence.internal.helper.ConcurrencyManager.releaseReadLock(ConcurrencyManager.java:468)
    at org.eclipse.persistence.internal.identitymaps.CacheKey.releaseReadLock(CacheKey.java:468)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.cloneAndRegisterObject(UnitOfWorkImpl.java:1041)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.cloneAndRegisterObject(UnitOfWorkImpl.java:955)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkIdentityMapAccessor.getAndCloneCacheKeyFromParent(UnitOfWorkIdentityMapAccessor.java:209)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkIdentityMapAccessor.getFromIdentityMap(UnitOfWorkIdentityMapAccessor.java:137)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerExistingObject(UnitOfWorkImpl.java:3942)
    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerExistingObject(UnitOfWorkImpl.java:3894)
    at org.eclipse.persistence.mappings.CollectionMapping.buildElementUnitOfWorkClone(CollectionMapping.java:308)
    at org.eclipse.persistence.mappings.CollectionMapping.buildElementClone(CollectionMapping.java:321)
    at org.eclipse.persistence.internal.queries.ContainerPolicy.addNextValueFromIteratorInto(ContainerPolicy.java:217)
    at org.eclipse.persistence.mappings.CollectionMapping.buildCloneForPartObject(CollectionMapping.java:223)
    at org.eclipse.persistence.internal.indirection.UnitOfWorkQueryValueHolder.buildCloneFor(UnitOfWorkQueryValueHolder.java:60)
    at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiateImpl(UnitOfWorkValueHolder.java:173)
    at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:234)
    at org.eclipse.persistence.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:89)
    at org.eclipse.persistence.indirection.IndirectList.buildDelegate(IndirectList.java:252)
    at org.eclipse.persistence.indirection.IndirectList.getDelegate(IndirectList.java:423)
    at org.eclipse.persistence.indirection.IndirectList.isEmpty(IndirectList.java:498)
    at org.apache.aquila.server.state.cluster.ClusterImpl.loadServices(ClusterImpl.java:412)
    at org.apache.aquila.server.state.cluster.ClusterImpl.loadServiceHostComponents(ClusterImpl.java:348)
    at org.apache.aquila.server.state.cluster.ClusterImpl.getServiceComponentHosts(ClusterImpl.java:861)
    at org.apache.aquila.server.agent.HeartbeatMonitor.generateStatusCommands(HeartbeatMonitor.java:291)
    at org.apache.aquila.server.agent.HeartbeatMonitor.doWork(HeartbeatMonitor.java:216)
    at org.apache.aquila.server.agent.HeartbeatMonitor.run(HeartbeatMonitor.java:126)
    at java.lang.Thread.run(Thread.java:834)`
    
    

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

戈亓 2022-09-19 04:19:03

日志里说你可能事务没开始就commit/rollback了, 或者commit了两次;
你可以看看, 是不是事务开启没有起作用还是, 事务初始化有什么错误或资源阻碍了

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文