[hibernate-issues] [JIRA] (HHH-13941) row exists in DB but EntityNotFoundException thrown with message No row with the given identifier exists: this instance does not yet exist as a row in the database

IT Support (JIRA) jira at hibernate.atlassian.net
Wed Apr 8 09:53:05 EDT 2020


IT Support ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A7c7fc415-3805-43c8-9dfa-7cbe1117db94 ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiY2QxNjhjMzE4NDdjNDI2NWExNDkwNzk3NjBlZmFhMmUiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-13941?atlOrigin=eyJpIjoiY2QxNjhjMzE4NDdjNDI2NWExNDkwNzk3NjBlZmFhMmUiLCJwIjoiaiJ9 ) HHH-13941 ( https://hibernate.atlassian.net/browse/HHH-13941?atlOrigin=eyJpIjoiY2QxNjhjMzE4NDdjNDI2NWExNDkwNzk3NjBlZmFhMmUiLCJwIjoiaiJ9 ) row exists in DB but EntityNotFoundException thrown with message No row with the given identifier exists: this instance does not yet exist as a row in the database ( https://hibernate.atlassian.net/browse/HHH-13941?atlOrigin=eyJpIjoiY2QxNjhjMzE4NDdjNDI2NWExNDkwNzk3NjBlZmFhMmUiLCJwIjoiaiJ9 )

Issue Type: Bug Affects Versions: 4.3.11, 5.0.12, 5.4.13 Assignee: Unassigned Components: hibernate-core Created: 08/Apr/2020 06:53 AM Priority: Major Reporter: IT Support ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A7c7fc415-3805-43c8-9dfa-7cbe1117db94 )

When the persist occurs prior to an active transaction, and is then persisted again along with other related (by foreign key) entities inside of an active transaction, the compressed state is 17, missing bit 13 (in database).

Stacktrace from test case.

javax.persistence.EntityNotFoundException: No row with the given identifier exists: [this instance does not yet exist as a row in the database#1]
	at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:133)
	at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
	at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)
	at org.hibernate.internal.SessionImpl.fireRefresh(SessionImpl.java:1339)
	at org.hibernate.internal.SessionImpl.refresh(SessionImpl.java:1280)
	at org.hibernate.bugs.JPAUnitTestCase.hhh123Test2(JPAUnitTestCase.java:105)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)

( https://hibernate.atlassian.net/browse/HHH-13941#add-comment?atlOrigin=eyJpIjoiY2QxNjhjMzE4NDdjNDI2NWExNDkwNzk3NjBlZmFhMmUiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13941#add-comment?atlOrigin=eyJpIjoiY2QxNjhjMzE4NDdjNDI2NWExNDkwNzk3NjBlZmFhMmUiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100124- sha1:c13ca0d )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200408/8b9ca051/attachment.html 


More information about the hibernate-issues mailing list