Advertisement
fedorm

Untitled

Feb 12th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 104.90 KB | None | 0 0
  1.  
  2. 12.02 01:29:03 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:252 START: ru.crystals.cards.segments.load.SegmentsFileReader.handleTimeout[org.jboss.as.ejb3.timerservice.TimerImpl]
  3. 12.02 01:29:03 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:252 Time:4 FINISH: ru.crystals.cards.segments.load.SegmentsFileReader.handleTimeout
  4. 12.02 01:29:05 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  5. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  6. 12.02 01:29:05 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  7. Detail: Key (numberfield)=(7001) already exists.
  8. 12.02 01:29:05 ERROR [org.hibernate.engine.jdbc.batch.internal.BatchingBatch] HHH000315: Exception executing batch [Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  9. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.]
  10. 12.02 01:29:05 ERROR [org.jboss.as.ejb3.tx.CMTTxInterceptor] javax.ejb.EJBTransactionRolledbackException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  11. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  12. 12.02 01:29:05 ERROR [org.jboss.ejb3.invocation] JBAS014134: EJB Invocation failed on component CardsDaoBean for method public abstract java.util.Collection ru.crystals.cards.persistence.CardsDao.getCardsByNumbers(java.util.Collection): javax.ejb.EJBTransactionRolledbackException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  13. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  14. at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:139)
  15. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:204)
  16. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  17. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  18. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  19. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  20. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  21. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  22. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  23. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  24. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  25. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  26. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  27. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  28. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  29. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  30. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  31. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  32. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  33. at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
  34. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  35. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  36. at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
  37. at ru.crystals.cards.persistence.CardsDao$$$view510.getCardsByNumbers(Unknown Source)
  38. at ru.crystals.cards.processing.PresentCardManagerBean.getPresentCard(PresentCardManagerBean.java:120)
  39. at ru.crystals.cards.processing.PresentCardManagerBean.getPresentCardInformationPrivate(PresentCardManagerBean.java:81)
  40. at ru.crystals.cards.processing.PresentCardManagerBean.activatePresentCard(PresentCardManagerBean.java:285)
  41. at sun.reflect.GeneratedMethodAccessor1356.invoke(Unknown Source)
  42. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  43. at java.lang.reflect.Method.invoke(Method.java:498)
  44. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  45. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  46. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  47. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  48. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  49. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  50. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  51. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  52. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  53. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  54. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  55. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  56. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  57. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  58. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  59. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  60. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  61. at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)
  62. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  63. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  64. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  65. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  66. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  67. at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80)
  68. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  69. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  70. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  71. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  72. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  73. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  74. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  75. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  76. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  77. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  78. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  79. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  80. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  81. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  82. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  83. at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:179)
  84. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)
  85. at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)
  86. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  87. at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)
  88. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  89. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
  90. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
  91. at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
  92. at com.sun.proxy.$Proxy446.activatePresentCard(Unknown Source)
  93. at ru.crystals.cards.processing.services.PresentCardsProcessingManager.activatePresentCard(PresentCardsProcessingManager.java:64)
  94. at sun.reflect.GeneratedMethodAccessor1355.invoke(Unknown Source)
  95. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  96. at java.lang.reflect.Method.invoke(Method.java:498)
  97. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  98. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  99. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  100. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  101. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  102. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  103. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  104. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  105. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  106. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  107. at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
  108. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  109. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  110. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  111. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  112. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  113. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  114. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  115. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  116. at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
  117. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  118. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  119. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  120. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  121. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  122. at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80)
  123. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  124. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  125. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  126. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  127. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  128. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  129. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  130. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  131. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  132. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  133. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  134. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  135. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  136. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  137. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  138. at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:179)
  139. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)
  140. at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)
  141. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  142. at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)
  143. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  144. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
  145. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
  146. at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
  147. at com.sun.proxy.$Proxy445.activatePresentCard(Unknown Source)
  148. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  149. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  150. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  151. at java.lang.reflect.Method.invoke(Method.java:498)
  152. at ru.crystals.commons.httptransport.TransportServlet.javaSerializationProcess(TransportServlet.java:266)
  153. at ru.crystals.commons.httptransport.TransportServlet.processRequest(TransportServlet.java:168)
  154. at ru.crystals.commons.httptransport.TransportServlet.doPost(TransportServlet.java:618)
  155. at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
  156. at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
  157. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
  158. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  159. at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
  160. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
  161. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  162. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
  163. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
  164. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
  165. at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
  166. at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
  167. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
  168. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  169. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  170. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
  171. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
  172. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
  173. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
  174. at java.lang.Thread.run(Thread.java:745)
  175. Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  176. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  177. at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)
  178. at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)
  179. at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:261)
  180. at ru.crystals.cards.persistence.CardsDaoBean.getCardsByNumbers(CardsDaoBean.java:368)
  181. at sun.reflect.GeneratedMethodAccessor1188.invoke(Unknown Source)
  182. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  183. at java.lang.reflect.Method.invoke(Method.java:498)
  184. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  185. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  186. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  187. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  188. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  189. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  190. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  191. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  192. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  193. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  194. at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
  195. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  196. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  197. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  198. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  199. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  200. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  201. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  202. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  203. at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
  204. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  205. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  206. ... 159 more
  207. Caused by: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  208. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  209. at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:128)
  210. at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)
  211. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
  212. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
  213. at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129)
  214. at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)
  215. at com.sun.proxy.$Proxy402.executeBatch(Unknown Source)
  216. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:110)
  217. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:101)
  218. at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:161)
  219. at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.getBatch(JdbcCoordinatorImpl.java:151)
  220. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2827)
  221. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290)
  222. at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80)
  223. at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272)
  224. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264)
  225. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186)
  226. at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326)
  227. at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:59)
  228. at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1053)
  229. at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1108)
  230. at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
  231. at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:252)
  232. ... 185 more
  233. Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  234. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  235. at org.postgresql.jdbc.BatchResultHandler.handleError(BatchResultHandler.java:148)
  236. at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2179)
  237. at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:479)
  238. at org.postgresql.jdbc.PgStatement.executeBatch(PgStatement.java:835)
  239. at org.postgresql.jdbc.PgPreparedStatement.executeBatch(PgPreparedStatement.java:1556)
  240. at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
  241. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  242. at java.lang.reflect.Method.invoke(Method.java:498)
  243. at org.postgresql.ds.PGPooledConnection$StatementHandler.invoke(PGPooledConnection.java:428)
  244. at com.sun.proxy.$Proxy401.executeBatch(Unknown Source)
  245. at org.jboss.jca.adapters.jdbc.CachedPreparedStatement.executeBatch(CachedPreparedStatement.java:708)
  246. at org.jboss.jca.adapters.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:1072)
  247. at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
  248. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  249. at java.lang.reflect.Method.invoke(Method.java:498)
  250. at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)
  251. ... 203 more
  252. Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  253. Detail: Key (numberfield)=(7001) already exists.
  254. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
  255. at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
  256. ... 217 more
  257.  
  258. 12.02 01:29:05 ERROR [org.jboss.as.ejb3.tx.CMTTxInterceptor] javax.ejb.EJBTransactionRolledbackException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  259. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  260. 12.02 01:29:05 ERROR [org.jboss.ejb3.invocation] JBAS014134: EJB Invocation failed on component SET/Cards/PresentCards/PresentCardManagerBean for method public abstract ru.crystals.cards.presentcards.PresentCardInformationVO ru.crystals.cards.processing.interfaces.IPresentCardsProcessingRemote.activatePresentCard(java.lang.String,ru.crystals.cards.common.PurchaseUid,java.lang.Long,java.lang.String,java.lang.Long) throws ru.crystals.cards.processing.exception.PresentCardException: javax.ejb.EJBTransactionRolledbackException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  261. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  262. at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:139)
  263. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:204)
  264. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  265. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  266. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  267. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  268. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  269. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  270. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  271. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  272. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  273. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  274. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  275. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  276. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  277. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  278. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  279. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  280. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  281. at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
  282. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  283. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  284. at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
  285. at ru.crystals.cards.persistence.CardsDao$$$view510.getCardsByNumbers(Unknown Source)
  286. at ru.crystals.cards.processing.PresentCardManagerBean.getPresentCard(PresentCardManagerBean.java:120)
  287. at ru.crystals.cards.processing.PresentCardManagerBean.getPresentCardInformationPrivate(PresentCardManagerBean.java:81)
  288. at ru.crystals.cards.processing.PresentCardManagerBean.activatePresentCard(PresentCardManagerBean.java:285)
  289. at sun.reflect.GeneratedMethodAccessor1356.invoke(Unknown Source)
  290. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  291. at java.lang.reflect.Method.invoke(Method.java:498)
  292. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  293. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  294. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  295. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  296. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  297. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  298. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  299. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  300. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  301. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  302. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  303. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  304. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  305. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  306. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  307. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  308. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  309. at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)
  310. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  311. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  312. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  313. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  314. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  315. at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80)
  316. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  317. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  318. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  319. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  320. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  321. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  322. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  323. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  324. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  325. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  326. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  327. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  328. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  329. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  330. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  331. at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:179)
  332. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)
  333. at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)
  334. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  335. at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)
  336. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  337. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
  338. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
  339. at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
  340. at com.sun.proxy.$Proxy446.activatePresentCard(Unknown Source)
  341. at ru.crystals.cards.processing.services.PresentCardsProcessingManager.activatePresentCard(PresentCardsProcessingManager.java:64)
  342. at sun.reflect.GeneratedMethodAccessor1355.invoke(Unknown Source)
  343. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  344. at java.lang.reflect.Method.invoke(Method.java:498)
  345. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  346. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  347. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  348. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  349. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  350. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  351. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  352. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  353. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  354. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  355. at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
  356. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  357. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  358. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  359. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  360. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  361. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  362. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  363. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  364. at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
  365. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  366. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  367. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  368. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  369. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  370. at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80)
  371. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  372. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  373. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  374. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  375. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  376. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  377. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  378. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  379. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  380. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  381. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  382. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  383. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  384. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  385. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  386. at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:179)
  387. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)
  388. at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)
  389. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  390. at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)
  391. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  392. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
  393. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
  394. at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
  395. at com.sun.proxy.$Proxy445.activatePresentCard(Unknown Source)
  396. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  397. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  398. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  399. at java.lang.reflect.Method.invoke(Method.java:498)
  400. at ru.crystals.commons.httptransport.TransportServlet.javaSerializationProcess(TransportServlet.java:266)
  401. at ru.crystals.commons.httptransport.TransportServlet.processRequest(TransportServlet.java:168)
  402. at ru.crystals.commons.httptransport.TransportServlet.doPost(TransportServlet.java:618)
  403. at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
  404. at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
  405. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
  406. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  407. at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
  408. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
  409. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  410. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
  411. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
  412. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
  413. at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
  414. at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
  415. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
  416. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  417. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  418. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
  419. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
  420. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
  421. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
  422. at java.lang.Thread.run(Thread.java:745)
  423. Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  424. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  425. at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)
  426. at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)
  427. at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:261)
  428. at ru.crystals.cards.persistence.CardsDaoBean.getCardsByNumbers(CardsDaoBean.java:368)
  429. at sun.reflect.GeneratedMethodAccessor1188.invoke(Unknown Source)
  430. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  431. at java.lang.reflect.Method.invoke(Method.java:498)
  432. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  433. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  434. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  435. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  436. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  437. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  438. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  439. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  440. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  441. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  442. at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
  443. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  444. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  445. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  446. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  447. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  448. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  449. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  450. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  451. at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
  452. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  453. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  454. ... 159 more
  455. Caused by: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  456. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  457. at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:128)
  458. at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)
  459. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
  460. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
  461. at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129)
  462. at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)
  463. at com.sun.proxy.$Proxy402.executeBatch(Unknown Source)
  464. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:110)
  465. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:101)
  466. at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:161)
  467. at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.getBatch(JdbcCoordinatorImpl.java:151)
  468. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2827)
  469. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290)
  470. at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80)
  471. at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272)
  472. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264)
  473. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186)
  474. at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326)
  475. at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:59)
  476. at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1053)
  477. at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1108)
  478. at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
  479. at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:252)
  480. ... 185 more
  481. Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  482. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  483. at org.postgresql.jdbc.BatchResultHandler.handleError(BatchResultHandler.java:148)
  484. at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2179)
  485. at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:479)
  486. at org.postgresql.jdbc.PgStatement.executeBatch(PgStatement.java:835)
  487. at org.postgresql.jdbc.PgPreparedStatement.executeBatch(PgPreparedStatement.java:1556)
  488. at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
  489. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  490. at java.lang.reflect.Method.invoke(Method.java:498)
  491. at org.postgresql.ds.PGPooledConnection$StatementHandler.invoke(PGPooledConnection.java:428)
  492. at com.sun.proxy.$Proxy401.executeBatch(Unknown Source)
  493. at org.jboss.jca.adapters.jdbc.CachedPreparedStatement.executeBatch(CachedPreparedStatement.java:708)
  494. at org.jboss.jca.adapters.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:1072)
  495. at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
  496. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  497. at java.lang.reflect.Method.invoke(Method.java:498)
  498. at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)
  499. ... 203 more
  500. Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  501. Detail: Key (numberfield)=(7001) already exists.
  502. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
  503. at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
  504. ... 217 more
  505.  
  506. 12.02 01:29:05 ERROR [org.jboss.as.ejb3.tx.CMTTxInterceptor] javax.ejb.EJBTransactionRolledbackException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  507. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  508. 12.02 01:29:05 ERROR [org.jboss.ejb3.invocation] JBAS014134: EJB Invocation failed on component SET/Cards/PresentCards/ProcessingManager for method public abstract ru.crystals.cards.presentcards.PresentCardInformationVO ru.crystals.cards.presentcards.IPresentCardsProcessingManagerRemote.activatePresentCard(java.lang.String,ru.crystals.cards.common.PurchaseUid,java.lang.Long,java.lang.String,java.lang.Long) throws ru.crystals.cards.processing.exception.PresentCardException: javax.ejb.EJBTransactionRolledbackException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  509. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  510. at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:139)
  511. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:204)
  512. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  513. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  514. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  515. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  516. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  517. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  518. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  519. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  520. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  521. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  522. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  523. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  524. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  525. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  526. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  527. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  528. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  529. at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
  530. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  531. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  532. at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
  533. at ru.crystals.cards.persistence.CardsDao$$$view510.getCardsByNumbers(Unknown Source)
  534. at ru.crystals.cards.processing.PresentCardManagerBean.getPresentCard(PresentCardManagerBean.java:120)
  535. at ru.crystals.cards.processing.PresentCardManagerBean.getPresentCardInformationPrivate(PresentCardManagerBean.java:81)
  536. at ru.crystals.cards.processing.PresentCardManagerBean.activatePresentCard(PresentCardManagerBean.java:285)
  537. at sun.reflect.GeneratedMethodAccessor1356.invoke(Unknown Source)
  538. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  539. at java.lang.reflect.Method.invoke(Method.java:498)
  540. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  541. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  542. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  543. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  544. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  545. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  546. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  547. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  548. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  549. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  550. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  551. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  552. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  553. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  554. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  555. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  556. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  557. at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)
  558. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  559. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  560. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  561. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  562. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  563. at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80)
  564. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  565. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  566. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  567. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  568. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  569. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  570. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  571. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  572. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  573. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  574. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  575. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  576. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  577. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  578. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  579. at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:179)
  580. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)
  581. at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)
  582. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  583. at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)
  584. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  585. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
  586. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
  587. at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
  588. at com.sun.proxy.$Proxy446.activatePresentCard(Unknown Source)
  589. at ru.crystals.cards.processing.services.PresentCardsProcessingManager.activatePresentCard(PresentCardsProcessingManager.java:64)
  590. at sun.reflect.GeneratedMethodAccessor1355.invoke(Unknown Source)
  591. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  592. at java.lang.reflect.Method.invoke(Method.java:498)
  593. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  594. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  595. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  596. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  597. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  598. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  599. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  600. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  601. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  602. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  603. at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
  604. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  605. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  606. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  607. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  608. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  609. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  610. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  611. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  612. at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
  613. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  614. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  615. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  616. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  617. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  618. at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80)
  619. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  620. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  621. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  622. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  623. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  624. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  625. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  626. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  627. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  628. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  629. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  630. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  631. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  632. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  633. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  634. at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:179)
  635. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)
  636. at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)
  637. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  638. at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)
  639. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  640. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
  641. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
  642. at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
  643. at com.sun.proxy.$Proxy445.activatePresentCard(Unknown Source)
  644. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  645. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  646. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  647. at java.lang.reflect.Method.invoke(Method.java:498)
  648. at ru.crystals.commons.httptransport.TransportServlet.javaSerializationProcess(TransportServlet.java:266)
  649. at ru.crystals.commons.httptransport.TransportServlet.processRequest(TransportServlet.java:168)
  650. at ru.crystals.commons.httptransport.TransportServlet.doPost(TransportServlet.java:618)
  651. at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
  652. at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
  653. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
  654. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  655. at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
  656. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
  657. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  658. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
  659. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
  660. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
  661. at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
  662. at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
  663. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
  664. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  665. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  666. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
  667. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
  668. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
  669. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
  670. at java.lang.Thread.run(Thread.java:745)
  671. Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  672. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  673. at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)
  674. at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)
  675. at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:261)
  676. at ru.crystals.cards.persistence.CardsDaoBean.getCardsByNumbers(CardsDaoBean.java:368)
  677. at sun.reflect.GeneratedMethodAccessor1188.invoke(Unknown Source)
  678. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  679. at java.lang.reflect.Method.invoke(Method.java:498)
  680. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  681. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  682. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  683. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  684. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  685. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  686. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  687. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  688. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  689. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  690. at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
  691. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  692. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  693. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  694. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  695. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  696. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  697. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  698. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  699. at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
  700. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  701. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  702. ... 159 more
  703. Caused by: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  704. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  705. at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:128)
  706. at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)
  707. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
  708. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
  709. at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129)
  710. at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)
  711. at com.sun.proxy.$Proxy402.executeBatch(Unknown Source)
  712. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:110)
  713. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:101)
  714. at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:161)
  715. at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.getBatch(JdbcCoordinatorImpl.java:151)
  716. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2827)
  717. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290)
  718. at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80)
  719. at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272)
  720. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264)
  721. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186)
  722. at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326)
  723. at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:59)
  724. at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1053)
  725. at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1108)
  726. at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
  727. at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:252)
  728. ... 185 more
  729. Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  730. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  731. at org.postgresql.jdbc.BatchResultHandler.handleError(BatchResultHandler.java:148)
  732. at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2179)
  733. at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:479)
  734. at org.postgresql.jdbc.PgStatement.executeBatch(PgStatement.java:835)
  735. at org.postgresql.jdbc.PgPreparedStatement.executeBatch(PgPreparedStatement.java:1556)
  736. at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
  737. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  738. at java.lang.reflect.Method.invoke(Method.java:498)
  739. at org.postgresql.ds.PGPooledConnection$StatementHandler.invoke(PGPooledConnection.java:428)
  740. at com.sun.proxy.$Proxy401.executeBatch(Unknown Source)
  741. at org.jboss.jca.adapters.jdbc.CachedPreparedStatement.executeBatch(CachedPreparedStatement.java:708)
  742. at org.jboss.jca.adapters.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:1072)
  743. at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
  744. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  745. at java.lang.reflect.Method.invoke(Method.java:498)
  746. at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)
  747. ... 203 more
  748. Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  749. Detail: Key (numberfield)=(7001) already exists.
  750. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
  751. at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
  752. ... 217 more
  753.  
  754. 12.02 01:29:05 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:275 START: ru.crystals.cards.CardsManagerFileTransferRemoteBean.getNewCardsForCash[ru.crystals.setretailx.topology.TopologyAddress, 80511, false]
  755. 12.02 01:29:05 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:275 Time:3 FINISH: ru.crystals.cards.CardsManagerFileTransferRemoteBean.getNewCardsForCash
  756. 12.02 01:29:05 ERROR [ru.crystals.commons.httptransport.TransportServlet] Could not invoke service method.
  757. Client ip: 172.29.16.213
  758. Servlet info:
  759. Service name: java:app/SET-Cards-PresentCards/SET/Cards/PresentCards/ProcessingManager!ru.crystals.cards.presentcards.IPresentCardsProcessingManagerRemote
  760. Method: activatePresentCard
  761. Params: 7001(java.lang.String),shopNum: 1777 cashNum: 61 shiftNum: 50 checkNum: 26 createDate: Tue Feb 12 01:29:05 MSK 2019(ru.crystals.cards.common.PurchaseUid),50000(java.lang.Long),Администраторов Администратор(java.lang.String),1(java.lang.Long)
  762. Method types: java.lang.String,ru.crystals.cards.common.PurchaseUid,java.lang.Long,java.lang.String,java.lang.Long: java.lang.reflect.InvocationTargetException
  763. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  764. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  765. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  766. at java.lang.reflect.Method.invoke(Method.java:498)
  767. at ru.crystals.commons.httptransport.TransportServlet.javaSerializationProcess(TransportServlet.java:266)
  768. at ru.crystals.commons.httptransport.TransportServlet.processRequest(TransportServlet.java:168)
  769. at ru.crystals.commons.httptransport.TransportServlet.doPost(TransportServlet.java:618)
  770. at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
  771. at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
  772. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
  773. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  774. at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
  775. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
  776. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
  777. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
  778. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
  779. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
  780. at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
  781. at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
  782. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
  783. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  784. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  785. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
  786. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
  787. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
  788. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
  789. at java.lang.Thread.run(Thread.java:745)
  790. Caused by: javax.ejb.EJBTransactionRolledbackException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  791. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  792. at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:139)
  793. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:204)
  794. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  795. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  796. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  797. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  798. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  799. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  800. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  801. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  802. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  803. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  804. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  805. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  806. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  807. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  808. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  809. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  810. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  811. at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
  812. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  813. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  814. at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
  815. at ru.crystals.cards.persistence.CardsDao$$$view510.getCardsByNumbers(Unknown Source)
  816. at ru.crystals.cards.processing.PresentCardManagerBean.getPresentCard(PresentCardManagerBean.java:120)
  817. at ru.crystals.cards.processing.PresentCardManagerBean.getPresentCardInformationPrivate(PresentCardManagerBean.java:81)
  818. at ru.crystals.cards.processing.PresentCardManagerBean.activatePresentCard(PresentCardManagerBean.java:285)
  819. at sun.reflect.GeneratedMethodAccessor1356.invoke(Unknown Source)
  820. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  821. at java.lang.reflect.Method.invoke(Method.java:498)
  822. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  823. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  824. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  825. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  826. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  827. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  828. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  829. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  830. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  831. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  832. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  833. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  834. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  835. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  836. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  837. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  838. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  839. at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)
  840. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  841. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  842. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  843. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  844. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  845. at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80)
  846. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  847. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  848. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  849. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  850. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  851. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  852. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  853. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  854. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  855. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  856. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  857. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  858. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  859. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  860. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  861. at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:179)
  862. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)
  863. at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)
  864. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  865. at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)
  866. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  867. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
  868. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
  869. at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
  870. at com.sun.proxy.$Proxy446.activatePresentCard(Unknown Source)
  871. at ru.crystals.cards.processing.services.PresentCardsProcessingManager.activatePresentCard(PresentCardsProcessingManager.java:64)
  872. at sun.reflect.GeneratedMethodAccessor1355.invoke(Unknown Source)
  873. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  874. at java.lang.reflect.Method.invoke(Method.java:498)
  875. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  876. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  877. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  878. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  879. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  880. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  881. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  882. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  883. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  884. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  885. at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
  886. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  887. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  888. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  889. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  890. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  891. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  892. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  893. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  894. at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
  895. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  896. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  897. at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
  898. at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
  899. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  900. at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80)
  901. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  902. at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
  903. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  904. at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76)
  905. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  906. at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
  907. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  908. at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
  909. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  910. at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)
  911. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  912. at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
  913. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  914. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  915. at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
  916. at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:179)
  917. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)
  918. at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)
  919. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  920. at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)
  921. at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
  922. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
  923. at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
  924. at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
  925. at com.sun.proxy.$Proxy445.activatePresentCard(Unknown Source)
  926. ... 27 more
  927. Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  928. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  929. at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)
  930. at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)
  931. at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:261)
  932. at ru.crystals.cards.persistence.CardsDaoBean.getCardsByNumbers(CardsDaoBean.java:368)
  933. at sun.reflect.GeneratedMethodAccessor1188.invoke(Unknown Source)
  934. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  935. at java.lang.reflect.Method.invoke(Method.java:498)
  936. at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
  937. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  938. at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
  939. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)
  940. at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
  941. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  942. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  943. at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  944. at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
  945. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  946. at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
  947. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  948. at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
  949. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  950. at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
  951. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  952. at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
  953. at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
  954. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  955. at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
  956. at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
  957. at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
  958. ... 159 more
  959. Caused by: org.hibernate.exception.ConstraintViolationException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  960. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  961. at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:128)
  962. at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)
  963. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
  964. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
  965. at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129)
  966. at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)
  967. at com.sun.proxy.$Proxy402.executeBatch(Unknown Source)
  968. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:110)
  969. at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:101)
  970. at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:161)
  971. at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.getBatch(JdbcCoordinatorImpl.java:151)
  972. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2827)
  973. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290)
  974. at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80)
  975. at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272)
  976. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264)
  977. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186)
  978. at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326)
  979. at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:59)
  980. at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1053)
  981. at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1108)
  982. at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
  983. at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:252)
  984. ... 185 more
  985. Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into card_cards (activationDate, amount, barcode, cardType_id, client_id, counterparty, createDate, debitor_type, deleted, display_number, expirationDate, guid, msr_number, newCardType_id, numberField, status, statusDescription, id_cardref, id) values ('2019-02-12 01:29:05.546+03', 50000, NULL, 58983, NULL, NULL, '2019-02-12 01:29:05.575+03', NULL, 'FALSE', NULL, NULL, NULL, NULL, NULL, '7001', 3, NULL, NULL, 86921) was aborted: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  986. Detail: Key (numberfield)=(7001) already exists. Call getNextException to see other errors in the batch.
  987. at org.postgresql.jdbc.BatchResultHandler.handleError(BatchResultHandler.java:148)
  988. at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2179)
  989. at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:479)
  990. at org.postgresql.jdbc.PgStatement.executeBatch(PgStatement.java:835)
  991. at org.postgresql.jdbc.PgPreparedStatement.executeBatch(PgPreparedStatement.java:1556)
  992. at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
  993. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  994. at java.lang.reflect.Method.invoke(Method.java:498)
  995. at org.postgresql.ds.PGPooledConnection$StatementHandler.invoke(PGPooledConnection.java:428)
  996. at com.sun.proxy.$Proxy401.executeBatch(Unknown Source)
  997. at org.jboss.jca.adapters.jdbc.CachedPreparedStatement.executeBatch(CachedPreparedStatement.java:708)
  998. at org.jboss.jca.adapters.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:1072)
  999. at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
  1000. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1001. at java.lang.reflect.Method.invoke(Method.java:498)
  1002. at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)
  1003. ... 203 more
  1004. Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "card_cards_numberfield_key"
  1005. Detail: Key (numberfield)=(7001) already exists.
  1006. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
  1007. at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
  1008. ... 217 more
  1009.  
  1010. 12.02 01:29:05 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:275 START: ru.crystals.transport.ejb.cash.FileTransferManagerImpl.getNewFile["cards_props", 1777, 61]
  1011. 12.02 01:29:05 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:275 START: ru.crystals.transport.ejb.file.FileTransportSender.getPacketUrl["cards_props", 1777, 61]
  1012. 12.02 01:29:05 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:275 Time:3 FINISH: ru.crystals.transport.ejb.file.FileTransportSender.getPacketUrl
  1013. 12.02 01:29:05 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:275 Time:66 FINISH: ru.crystals.transport.ejb.cash.FileTransferManagerImpl.getNewFile
  1014. 12.02 01:29:08 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:323 START: ru.crystals.cards.segments.load.SegmentsFileReader.handleTimeout[org.jboss.as.ejb3.timerservice.TimerImpl]
  1015. 12.02 01:29:08 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:323 Time:4 FINISH: ru.crystals.cards.segments.load.SegmentsFileReader.handleTimeout
  1016. 12.02 01:29:10 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:289 START: ru.crystals.operday.transport.processing.ODMessageProcessorWorkhorseBean.process[25]
  1017. 12.02 01:29:10 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:289 Time:3 FINISH: ru.crystals.operday.transport.processing.ODMessageProcessorWorkhorseBean.process
  1018. 12.02 01:29:11 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:275 START: ru.crystals.transport.ejb.cash.FileTransferManagerImpl.getNewFile["SELLERS", 1777, 61]
  1019. 12.02 01:29:11 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:271 START: ru.crystals.transport.ejb.cash.FileTransferManagerImpl.getNewFile["PAY_TYPE_FOR_CASH", 1777, 61]
  1020. 12.02 01:29:11 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:275 START: ru.crystals.transport.ejb.file.FileTransportSender.getPacketUrl["SELLERS", 1777, 61]
  1021. 12.02 01:29:11 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:271 START: ru.crystals.transport.ejb.file.FileTransportSender.getPacketUrl["PAY_TYPE_FOR_CASH", 1777, 61]
  1022. 12.02 01:29:11 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:271 Time:3 FINISH: ru.crystals.transport.ejb.file.FileTransportSender.getPacketUrl
  1023. 12.02 01:29:11 INFO [ru.crystals.speedlog] SPEEDLOG> ThreadID:275 Time:4 FINISH: ru.crystals.transport.ejb.file.FileTransportSender.getPacketUrl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement