org.hibernate.exception.SQLGrammarException: could not initialize a collection: \[org.openxava.test.model.Customer.states\#4\]

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 openxava by hjatmbn
, 1 year ago
could not initialize a collection: \[org.openxava.test.model.Customer.states\#4\]
via Stack Overflow by user2436719
, 2 years ago
could not initialize a collection: [database.A.listB#1]
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 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]
org.hibernate.exception.SQLGrammarException: could not initialize a collection: \[org.openxava.test.model.Customer.states\#4\]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
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:36)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1676)
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
at java.util.Collections$1.(Collections.java:3369)
at java.util.Collections.enumeration(Collections.java:3368)
at org.openxava.model.impl.MapFacadeBean.getCollectionValues(MapFacadeBean.java:842)
at org.openxava.model.impl.MapFacadeBean.getCollectionValues(MapFacadeBean.java:823)
at org.openxava.model.impl.MapFacadeBean.getValues(MapFacadeBean.java:693)
at org.openxava.model.impl.MapFacadeBean.getValuesImpl(MapFacadeBean.java:489)
at org.openxava.model.impl.MapFacadeBean.getValues(MapFacadeBean.java:72)
at org.openxava.model.MapFacade.getValues(MapFacade.java:266)
at org.openxava.view.View.getCollectionValues(View.java:900)

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

Write tip

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