From: Eduard H. (JIRA) <no...@at...> - 2006-06-29 10:48:50
|
NullPointerException in org.hibernate.util.ComparableComparator --------------------------------------------------------------- Key: HHH-1866 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1866 Project: Hibernate3 Type: Bug Versions: 3.2.0.cr2 Environment: - Hibernate 3.2.0 CR2 - Spring 1.2.5 - JBoss Cache 1.4 - Oracle 9i - Windows and Linux Reporter: Eduard Hildebrandt I think that org.hibernate.util.ComparableComparator or OptimisticTreeCache.DataVersionAdapter has a bug. "return ((Comparable) x).compareTo(y);" throws a NullPointerException if x is a null pointer. org.hibernate.util.ComparableComparator. compare(..) is called from OptimisticTreeCache.DataVersionAdapter in line "return versionComparator.compare( previousVersion, other ) > 1;". We get this NullPointerExption if we use Hibernate with org.hibernate.cache.OptimisticTreeCacheProvider which causes an org.springframework.transaction.UnexpectedRollbackException. Greetings from Germany! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |