java.lang.NullPointerException due to converter

Description

java.lang.NullPointerException
at org.hibernate.type.AbstractStandardBasicType.compare(AbstractStandardBasicType.java:225)
at org.hibernate.type.ComponentType.compare(ComponentType.java:226)
at org.hibernate.action.internal.EntityAction.compareTo(EntityAction.java:171)
at org.hibernate.engine.spi.ExecutableList.add(ExecutableList.java:222)
at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:225)
at org.hibernate.event.internal.DefaultDeleteEventListener.deleteEntity(DefaultDeleteEventListener.java:299)
at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:160)
at org.hibernate.internal.SessionImpl.fireDelete(SessionImpl.java:965)
at org.hibernate.internal.SessionImpl.delete(SessionImpl.java:909)
at org.hibernate.engine.spi.CascadingActions$1.cascade(CascadingActions.java:74)
at org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:350)

Environment

None

Activity

Show:
ShyamE
July 28, 2016, 2:33 PM

accessing like

Gail Badner
July 28, 2016, 8:06 PM

The 4.3 branch is no longer supported and there have been many attribute converter improvements in 5.0. Please check to see if your issue is resolved in 5.0.9 or 5.2.1 and let us know.

ShyamE
July 29, 2016, 4:21 AM
Edited

,i replaced with hibernate-core with 5.2.1.Final and also with 5.0.9.Final, but still it not working.

Chris Cranford
August 4, 2016, 1:48 PM
Edited

Are you applying the converter on an @EmbeddedId column?

Gail Badner
August 16, 2016, 7:07 PM

This looks very much like HHH-8999, which was fixed in 5.0.10, 5.2.1, 5.1.1.

Are you setting hibernate.order_updates=true or hibernate.order_inserts=true? If so, TaskId would need to implement Comparable.

Please let us know. If you are still having problems, please attach a short but complete test case that reproduces the reported bug.

Assignee

Unassigned

Reporter

ShyamE

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure