org.hibernate.exception.SQLGrammarException: could not initialize a collection: [Storage.productQuantity#779317485]

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

Solutions on the web

via Hibernate JIRA by Philipp Pirozhkov, 1 year ago
could not initialize a collection: [Storage.productQuantity#779317485]
via Hibernate JIRA by Philipp Pirozhkov, 1 year ago
could not initialize a collection: [Storage.productQuantity#779317485]
via Stack Overflow by user2436719
, 2 years ago
could not initialize a collection: [database.A.listB#1]
via Hibernate JIRA by Mattias Arbin, 1 year ago
could not initialize a collection: [test.data.MyEntity.props#1]
via Hibernate JIRA by Todd O, 1 year ago
could not initialize a collection: [test.data.MyEntity.props#1]
via Hibernate JIRA by Todd O, 1 year ago
could not initialize a collection: [test.data.MyEntity.props#1]
org.hibernate.exception.SQLGrammarException: could not initialize a collection: [Storage.productQuantity#779317485]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:65)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.loadCollection(Loader.java:1926)
at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:71)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1693)
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
at undefined.PTest.listStorage(Ptest.java:87)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 more bugmates

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