Advertisement
fedorm

fedorm

Jul 23rd, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.15 KB | None | 0 0
  1. 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]]]]
  2. 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]]
  3.     at org.hibernate.event.internal.EntityCopyNotAllowedObserver.entityCopyDetected(EntityCopyNotAllowedObserver.java:51)
  4.     at org.hibernate.event.internal.MergeContext.put(MergeContext.java:262)
  5.     at org.hibernate.event.internal.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:320)
  6.     at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:186)
  7.     at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:886)
  8.     at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:868)
  9.     at org.hibernate.engine.spi.CascadingActions$6.cascade(CascadingActions.java:277)
  10.     at org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:350)
  11.     at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:293)
  12.     at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161)
  13.     at org.hibernate.engine.internal.Cascade.cascade(Cascade.java:118)
  14.     at org.hibernate.event.internal.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:442)
  15.     at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:248)
  16.     at org.hibernate.event.internal.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:317)
  17.     at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:186)
  18.     at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:886)
  19.     at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:868)
  20.     at org.hibernate.engine.spi.CascadingActions$6.cascade(CascadingActions.java:277)
  21.     at org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:350)
  22.     at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:293)
  23.     at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161)
  24.     at org.hibernate.engine.internal.Cascade.cascadeCollectionElements(Cascade.java:379)
  25.     at org.hibernate.engine.internal.Cascade.cascadeCollection(Cascade.java:319)
  26.     at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:296)
  27.     at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161)
  28.     at org.hibernate.engine.internal.Cascade.cascade(Cascade.java:118)
  29.     at org.hibernate.event.internal.DefaultMergeEventListener.cascadeOnMerge(DefaultMergeEventListener.java:474)
  30.     at org.hibernate.event.internal.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:343)
  31.     at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:186)
  32.     at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:85)
  33.     at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:876)
  34.     at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:858)
  35.     at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:863)
  36.     at sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)
  37.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  38.     at java.lang.reflect.Method.invoke(Method.java:498)
  39.     at org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:356)
  40.     at com.sun.proxy.$Proxy139.merge(Unknown Source)
  41.     at ru.crystals.pos.loyal.cash.persistence.HibernateBackedLoyTxDao.saveLoyTx(HibernateBackedLoyTxDao.java:328)
  42.     at ru.crystals.pos.loyal.cash.service.LoyalServiceImpl.updateLoyTransaction(LoyalServiceImpl.java:1500)
  43.     at ru.crystals.pos.loyal.cash.service.LoyalServiceImpl.restoreBackupedTx(LoyalServiceImpl.java:1005)
  44.     at ru.crystals.pos.loyal.cash.service.LoyalServiceImpl.doSave(LoyalServiceImpl.java:908)
  45.     at ru.crystals.pos.loyal.cash.service.LoyalServiceImpl.doDiscount(LoyalServiceImpl.java:771)
  46.     at ru.crystals.pos.loyal.bridge.service.LoyalBridgeServiceImpl.doDiscount(LoyalBridgeServiceImpl.java:320)
  47.     at ru.crystals.pos.techprocess.TechProcessImpl.applyDiscountsAndGetResult(TechProcessImpl.java:3515)
  48.     at ru.crystals.pos.techprocess.TechProcessImpl.subtotalScenary(TechProcessImpl.java:3081)
  49.     at ru.crystals.pos.visualization.check.CheckContainer.startSubtotalScenary(CheckContainer.java:1481)
  50.     at ru.crystals.pos.visualization.check.CheckContainer.subtotalProcessPurchaseState(CheckContainer.java:1464)
  51.     at ru.crystals.pos.visualization.check.CheckContainer.subtotal(CheckContainer.java:1360)
  52.     at ru.crystals.pos.visualization.check.CheckPaymentTypesContainer.lambda$null$0(CheckPaymentTypesContainer.java:276)
  53.     at ru.crystals.pos.loyal.cash.service.LoyalServiceImpl.processRecalculateAfterPaymentTypeChange(LoyalServiceImpl.java:2067)
  54.     at ru.crystals.pos.loyal.bridge.service.LoyalBridgeServiceImpl.processRecalculateAfterPaymentTypeChange(LoyalBridgeServiceImpl.java:664)
  55.     at ru.crystals.pos.visualization.check.CheckPaymentTypesContainer.lambda$enter$1(CheckPaymentTypesContainer.java:272)
  56.     at java.util.Optional.ifPresent(Optional.java:159)
  57.     at ru.crystals.pos.visualization.check.CheckPaymentTypesContainer.enter(CheckPaymentTypesContainer.java:272)
  58.     at ru.crystals.pos.visualization.components.CompositeContainer.enter(CompositeContainer.java:97)
  59.     at ru.crystals.pos.visualization.check.CheckContainer.enter(CheckContainer.java:1852)
  60.     at ru.crystals.pos.visualization.components.MainWindow.enter(MainWindow.java:1106)
  61.     at ru.crystals.pos.visualization.Factory.eventControlKey(Factory.java:484)
  62.     at ru.crystals.pos.techprocess.TechProcessImpl.eventControlKey(TechProcessImpl.java:4099)
  63.     at ru.crystals.pos.CashEventSource.sentOldKey(CashEventSource.java:167)
  64.     at ru.crystals.pos.CashEventSource.process(CashEventSource.java:138)
  65.     at ru.crystals.pos.CashEventSource.processEvent(CashEventSource.java:118)
  66.     at ru.crystals.pos.CashEventSource.run(CashEventSource.java:101)
  67.     at ru.crystals.pos.InternalCashPoolExecutorImpl$4.run(InternalCashPoolExecutorImpl.java:125)
  68.     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  69.     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  70.     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
  71.     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  72.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  73.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  74.     at java.lang.Thread.run(Thread.java:745)
  75. 23.07 14:06:16 INFO  [LoyalBridgeServiceImpl] Total time of discount calculation = 225 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement