Exception: Batch update returned unexpected row count from update

1,225 views
Skip to first unread message

Diego Marconato

unread,
Nov 5, 2018, 9:53:43 AM11/5/18
to HAPI FHIR
Hi,

from log Tomcat I see many errors of this type.
Which kind of error is this? Can I solved it?


2018-11-05 13:16:37.745 [scheduledExecutorService-2] INFO o.h.e.j.b.internal.AbstractBatchImpl [AbstractBatchImpl.java:193] HHH000010: On release of batch it still contained JDBC statements
2018-11-05 13:16:37.746 [scheduledExecutorService-2] ERROR o.h.e.j.batch.internal.BatchingBatch [BatchingBatch.java:132] HHH000315: Exception executing batch [org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1], SQL: delete from HFJ_SEARCH where PID=?
2018-11-05 13:16:37.746 [scheduledExecutorService-2] ERROR o.h.i.ExceptionMapperStandardImpl [ExceptionMapperStandardImpl.java:39] HHH000346: Error during managed flush [Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1]
2018-11-05 13:16:37.761 [search_coord_1344] INFO c.u.f.j.s.SearchCoordinatorSvcImpl [SearchCoordinatorSvcImpl.java:523] Completed search for 0 resources in 179ms
2018-11-05 13:16:37.775 [scheduledExecutorService-2] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler [TaskUtils.java:96] Unexpected error occurred in scheduled task.
org.springframework.orm.jpa.JpaOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is javax.persistence.OptimisticLockException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

Thanks
Diego
Reply all
Reply to author
Forward
0 new messages