I’ve got the same Nullpointer-Issue as described in HHH-19020 by Lukas Eckert. I tried to upgrade 6.4.10. → 6.6.5.
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:221)
at org.hibernate.boot.model.internal.ClassPropertyHolder.addPropertyToMappedSuperclass(ClassPropertyHolder.java:304)
@Lumun_Blumun the issue already has a reproducer, but if you want to provide an additional use-case that demonstrates how to reproduce the problem using our test case templates that would be appreciated. I suggest you vote for the issue (Jira) to increase its visibility, you can also watch it to receive updates on any progress with it.
I verified the fact that ORM 6.6.0 works fine and ORM 6.6.1. shows the nullpointer issue. Exactly as in HHH-19020.
I found out that the NullPointerException occurs when an @Embeddable
class extends a @MappedSuperclass
. Avoiding this configuration prevents the NullPointerException.
@Lumun_Blumun @Embeddable
types can extend @MappedSuperclass
es, so I don’t think that’s the problem. You might be running into Jira, if that’s the case, you can follow that issue for updates and join the discussion.
@mbladel I’m pretty sure it really is that simple. The Nullpointer occurs if any @Embeddable extends any @MappedSuperclass. In ORM 6.6.0 evth is ok. It starts from 6.6.1.