Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 23.07 14:06:16 ERROR [HibernateBackedLoyTxDao] Failed to save loy-tx: loy-tx [shop: 85571, cash: 1, inn: 7802781104, shift: 1, purchase-number: (NULL), discount-value: 12069, discount-positions: [discount-position [position-order: 1, discount-amount: 6036, adv-action: adv-action [guid: -1538204597, action-type: DISCOUNT, apply-mode: AUTOMATIC]], discount-position [position-order: 2, discount-amount: 6033, adv-action: adv-action [guid: -1538204597, action-type: DISCOUNT, apply-mode: AUTOMATIC]]]]
- java.lang.IllegalStateException: Multiple representations of the same entity [ru.crystals.discount.processing.entity.LoyAdvActionInPurchaseEntity#69340] are being merged. Detached: [adv-action [guid: 69340, action-type: DEFAULT, apply-mode: UNCONDITIONAL]]; Detached: [adv-action [guid: 69340, action-type: DEFAULT, apply-mode: UNCONDITIONAL]]
- at org.hibernate.event.internal.EntityCopyNotAllowedObserver.entityCopyDetected(EntityCopyNotAllowedObserver.java:51)
- at org.hibernate.event.internal.MergeContext.put(MergeContext.java:262)
- at org.hibernate.event.internal.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:320)
- at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:186)
- at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:886)
- at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:868)
- at org.hibernate.engine.spi.CascadingActions$6.cascade(CascadingActions.java:277)
- at org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:350)
- at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:293)
- at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161)
- at org.hibernate.engine.internal.Cascade.cascade(Cascade.java:118)
- at org.hibernate.event.internal.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:442)
- at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:248)
- at org.hibernate.event.internal.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:317)
- at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:186)
- at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:886)
- at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:868)
- at org.hibernate.engine.spi.CascadingActions$6.cascade(CascadingActions.java:277)
- at org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:350)
- at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:293)
- at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161)
- at org.hibernate.engine.internal.Cascade.cascadeCollectionElements(Cascade.java:379)
- at org.hibernate.engine.internal.Cascade.cascadeCollection(Cascade.java:319)
- at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:296)
- at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161)
- at org.hibernate.engine.internal.Cascade.cascade(Cascade.java:118)
- at org.hibernate.event.internal.DefaultMergeEventListener.cascadeOnMerge(DefaultMergeEventListener.java:474)
- at org.hibernate.event.internal.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:343)
- at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:186)
- at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:85)
- at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:876)
- at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:858)
- at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:863)
- at sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:356)
- at com.sun.proxy.$Proxy139.merge(Unknown Source)
- at ru.crystals.pos.loyal.cash.persistence.HibernateBackedLoyTxDao.saveLoyTx(HibernateBackedLoyTxDao.java:328)
- at ru.crystals.pos.loyal.cash.service.LoyalServiceImpl.updateLoyTransaction(LoyalServiceImpl.java:1500)
- at ru.crystals.pos.loyal.cash.service.LoyalServiceImpl.restoreBackupedTx(LoyalServiceImpl.java:1005)
- at ru.crystals.pos.loyal.cash.service.LoyalServiceImpl.doSave(LoyalServiceImpl.java:908)
- at ru.crystals.pos.loyal.cash.service.LoyalServiceImpl.doDiscount(LoyalServiceImpl.java:771)
- at ru.crystals.pos.loyal.bridge.service.LoyalBridgeServiceImpl.doDiscount(LoyalBridgeServiceImpl.java:320)
- at ru.crystals.pos.techprocess.TechProcessImpl.applyDiscountsAndGetResult(TechProcessImpl.java:3515)
- at ru.crystals.pos.techprocess.TechProcessImpl.subtotalScenary(TechProcessImpl.java:3081)
- at ru.crystals.pos.visualization.check.CheckContainer.startSubtotalScenary(CheckContainer.java:1481)
- at ru.crystals.pos.visualization.check.CheckContainer.subtotalProcessPurchaseState(CheckContainer.java:1464)
- at ru.crystals.pos.visualization.check.CheckContainer.subtotal(CheckContainer.java:1360)
- at ru.crystals.pos.visualization.check.CheckPaymentTypesContainer.lambda$null$0(CheckPaymentTypesContainer.java:276)
- at ru.crystals.pos.loyal.cash.service.LoyalServiceImpl.processRecalculateAfterPaymentTypeChange(LoyalServiceImpl.java:2067)
- at ru.crystals.pos.loyal.bridge.service.LoyalBridgeServiceImpl.processRecalculateAfterPaymentTypeChange(LoyalBridgeServiceImpl.java:664)
- at ru.crystals.pos.visualization.check.CheckPaymentTypesContainer.lambda$enter$1(CheckPaymentTypesContainer.java:272)
- at java.util.Optional.ifPresent(Optional.java:159)
- at ru.crystals.pos.visualization.check.CheckPaymentTypesContainer.enter(CheckPaymentTypesContainer.java:272)
- at ru.crystals.pos.visualization.components.CompositeContainer.enter(CompositeContainer.java:97)
- at ru.crystals.pos.visualization.check.CheckContainer.enter(CheckContainer.java:1852)
- at ru.crystals.pos.visualization.components.MainWindow.enter(MainWindow.java:1106)
- at ru.crystals.pos.visualization.Factory.eventControlKey(Factory.java:484)
- at ru.crystals.pos.techprocess.TechProcessImpl.eventControlKey(TechProcessImpl.java:4099)
- at ru.crystals.pos.CashEventSource.sentOldKey(CashEventSource.java:167)
- at ru.crystals.pos.CashEventSource.process(CashEventSource.java:138)
- at ru.crystals.pos.CashEventSource.processEvent(CashEventSource.java:118)
- at ru.crystals.pos.CashEventSource.run(CashEventSource.java:101)
- at ru.crystals.pos.InternalCashPoolExecutorImpl$4.run(InternalCashPoolExecutorImpl.java:125)
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
- at java.util.concurrent.FutureTask.run(FutureTask.java:266)
- at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
- at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- 23.07 14:06:16 INFO [LoyalBridgeServiceImpl] Total time of discount calculation = 225 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement