You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NullPointerException
at org.springframework.data.cassandra.mapping.CassandraPrimaryKeyColumnAnnotationComparator.compare(CassandraPrimaryKeyColumnAnnotationComparator.java:46)
at org.springframework.data.cassandra.mapping.CassandraPersistentPropertyComparator.compare(CassandraPersistentPropertyComparator.java:67)
at org.springframework.data.cassandra.mapping.CassandraPersistentPropertyComparator.compare(CassandraPersistentPropertyComparator.java:29)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
at java.util.TimSort.sort(TimSort.java:220)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1454)
at java.util.Collections.sort(Collections.java:175)
at org.springframework.data.mapping.model.BasicPersistentEntity.verify(BasicPersistentEntity.java:382)
at org.springframework.data.cassandra.mapping.BasicCassandraPersistentEntity.verify(BasicCassandraPersistentEntity.java:196)
at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:317)
at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:276)
at org.springframework.data.mapping.context.AbstractMappingContext.initialize(AbstractMappingContext.java:392)
at org.springframework.data.cassandra.mapping.BasicCassandraMappingContext.initialize(BasicCassandraMappingContext.java:79)
at org.springframework.data.mapping.context.AbstractMappingContext.afterPropertiesSet(AbstractMappingContext.java:382)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
... 119 more
This becomes a particular problem when the Entity is in a class hierarchy, as methods can be overridden but fields cannot.
Affects: 1.3.2 (Gosling SR2)
Issue Links:
DATACASS-216 BasicCassandraPersistentProperty.isCompositePrimaryKey produces NPE when getField() returns null
("supersedes")
James Howe opened DATACASS-248 and commented
This code works:
This code doesn't:
Exception is:
This becomes a particular problem when the Entity is in a class hierarchy, as methods can be overridden but fields cannot.
Affects: 1.3.2 (Gosling SR2)
Issue Links:
("supersedes")
Referenced from: pull request #64
Backported to: 1.4.2 (Hopper SR2)
The text was updated successfully, but these errors were encountered: