P (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYTJlNDRhYzZk...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-13927?atlOrigin=eyJpIjoiYTJlND...
) HHH-13927 (
https://hibernate.atlassian.net/browse/HHH-13927?atlOrigin=eyJpIjoiYTJlND...
) Problem with JPA converters (
https://hibernate.atlassian.net/browse/HHH-13927?atlOrigin=eyJpIjoiYTJlND...
)
Change By: P (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
I have an entity that has uses converter
@Column(name = "STATE_ID")
@Convert(converter = StateConverter.class)
private State state;
When I use hibernate-core-5.4.14-SNAPSHOT.jar everything works fine and there is no any
exceptions. However, when I tried to use hibernate-core-6.0.0.Alpha4.jar I get the
following:
{code:java}
java.lang.NullPointerException: null
at org.hibernate.type.TypeHelper.lambda$static$0(TypeHelper.java:43)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at org.hibernate.type.TypeHelper.lambda$deepCopy$1(TypeHelper.java:72)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at
org.hibernate.metamodel.mapping.EntityMappingType.lambda$visitStateArrayContributors$0(EntityMappingType.java:204)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at java.util.ArrayList.forEach(ArrayList.java:1510) ~[?:?]
at
org.hibernate.persister.entity.AbstractEntityPersister.visitAttributeMappings(AbstractEntityPersister.java:5676)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at
org.hibernate.metamodel.mapping.EntityMappingType.visitStateArrayContributors(EntityMappingType.java:203)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at org.hibernate.type.TypeHelper.deepCopy(TypeHelper.java:68)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at org.hibernate.type.TypeHelper.deepCopy(TypeHelper.java:53)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at
org.hibernate.sql.results.graph.entity.AbstractEntityInitializer.initializeInstance(AbstractEntityInitializer.java:592)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at
org.hibernate.sql.results.internal.StandardRowReader.coordinateInitializers(StandardRowReader.java:150)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at org.hibernate.sql.results.internal.StandardRowReader.readRow(StandardRowReader.java:84)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at org.hibernate.sql.results.spi.ListResultsConsumer.consume(ListResultsConsumer.java:57)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at org.hibernate.sql.results.spi.ListResultsConsumer.consume(ListResultsConsumer.java:23)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at
org.hibernate.sql.exec.internal.JdbcSelectExecutorStandardImpl.executeQuery(JdbcSelectExecutorStandardImpl.java:191)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at
org.hibernate.sql.exec.internal.JdbcSelectExecutorStandardImpl.list(JdbcSelectExecutorStandardImpl.java:71)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at
org.hibernate.query.sqm.internal.ConcreteSqmSelectQueryPlan.performList(ConcreteSqmSelectQueryPlan.java:165)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at org.hibernate.query.sqm.internal.QuerySqmImpl.doList(QuerySqmImpl.java:413)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at org.hibernate.query.spi.AbstractQuery.list(AbstractQuery.java:1356)
~[hibernate-core-6.0.0.Alpha4.jar:?]
at org.hibernate.query.Query.getResultList(Query.java:136)
~[hibernate-core-6.0.0.Alpha4.jar:?]
{code}
(
https://hibernate.atlassian.net/browse/HHH-13927#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13927#add-comment?atlOrigin=ey...
)
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....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100124- sha1:7217f9f )