org.hibernate.AssertionFailure: possible non-threadsafe access to the session

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by bradmac
, 1 year ago
possible non-threadsafe access to the session
org.hibernate.AssertionFailure: possible non-threadsafe access to the session
at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:130)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1112)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1066)
at org.hibernate.loader.Loader.loadSingleRow(Loader.java:404)
at org.hibernate.internal.ScrollableResultsImpl.prepareCurrentRow(ScrollableResultsImpl.java:240)
at org.hibernate.internal.ScrollableResultsImpl.next(ScrollableResultsImpl.java:117)
at io.milton.cloud.server.apps.signup.SignupLogAppIndexer.walkItems(SignupLogAppIndexer.java:54)
at io.milton.cloud.server.manager.SearchManager.lambda$reindex$6(SearchManager.java:264)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.