org.springframework.ldap.odm.core.impl.InvalidEntryException: Missing converter from class java.lang.String to interface org.hibernate.bytecode.enhance.spi.CollectionTracker, this is needed for field $$_hibernate_collectionTracker on Entry class com.ericsson.gscro.eohs.entity.Person

Hibernate JIRA | Andrei Ivanov | 11 months ago
  1. 0

    Hi, Trying to upgrade Hibernate from 4.3 to 5.0, I've stumbled into this issue: {noformat} org.springframework.ldap.odm.core.impl.InvalidEntryException: Missing converter from class java.lang.String to interface org.hibernate.bytecode.enhance.spi.CollectionTracker, this is needed for field $$_hibernate_collectionTracker on Entry class com.ericsson.gscro.eohs.entity.Person at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.verifyConversion(DefaultObjectDirectoryMapper.java:168) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.addManagedClass(DefaultObjectDirectoryMapper.java:144) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.getEntityData(DefaultObjectDirectoryMapper.java:107) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.filterFor(DefaultObjectDirectoryMapper.java:447) at org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1824) at org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1857) {noformat} I'm trying to use the same entity class to populate it using the [ODM|http://docs.spring.io/spring-ldap/docs/2.0.x/reference/#odm] support from Spring LDAP. As far as I see, it tries to detect if it can convert the fields of the entity and it finds the ones added by the Hibernate enhancer and it throws an exception as it can't handle them. Looking at the detection code, it ignores synthetic fields, and, in my opinion, these fields should be marked as synthetic. Would that create any issues?

    Hibernate JIRA | 11 months ago | Andrei Ivanov
    org.springframework.ldap.odm.core.impl.InvalidEntryException: Missing converter from class java.lang.String to interface org.hibernate.bytecode.enhance.spi.CollectionTracker, this is needed for field $$_hibernate_collectionTracker on Entry class com.ericsson.gscro.eohs.entity.Person
  2. 0

    Hi, Trying to upgrade Hibernate from 4.3 to 5.0, I've stumbled into this issue: {noformat} org.springframework.ldap.odm.core.impl.InvalidEntryException: Missing converter from class java.lang.String to interface org.hibernate.bytecode.enhance.spi.CollectionTracker, this is needed for field $$_hibernate_collectionTracker on Entry class com.ericsson.gscro.eohs.entity.Person at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.verifyConversion(DefaultObjectDirectoryMapper.java:168) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.addManagedClass(DefaultObjectDirectoryMapper.java:144) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.getEntityData(DefaultObjectDirectoryMapper.java:107) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.filterFor(DefaultObjectDirectoryMapper.java:447) at org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1824) at org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1857) {noformat} I'm trying to use the same entity class to populate it using the [ODM|http://docs.spring.io/spring-ldap/docs/2.0.x/reference/#odm] support from Spring LDAP. As far as I see, it tries to detect if it can convert the fields of the entity and it finds the ones added by the Hibernate enhancer and it throws an exception as it can't handle them. Looking at the detection code, it ignores synthetic fields, and, in my opinion, these fields should be marked as synthetic. Would that create any issues?

    Hibernate JIRA | 11 months ago | Andrei Ivanov
    org.springframework.ldap.odm.core.impl.InvalidEntryException: Missing converter from class java.lang.String to interface org.hibernate.bytecode.enhance.spi.CollectionTracker, this is needed for field $$_hibernate_collectionTracker on Entry class com.ericsson.gscro.eohs.entity.Person

    1 unregistered visitors

    Root Cause Analysis

    1. org.springframework.ldap.odm.core.impl.InvalidEntryException

      Missing converter from class java.lang.String to interface org.hibernate.bytecode.enhance.spi.CollectionTracker, this is needed for field $$_hibernate_collectionTracker on Entry class com.ericsson.gscro.eohs.entity.Person

      at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.verifyConversion()
    2. spring-ldap-core
      LdapTemplate.find
      1. org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.verifyConversion(DefaultObjectDirectoryMapper.java:168)
      2. org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.addManagedClass(DefaultObjectDirectoryMapper.java:144)
      3. org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.getEntityData(DefaultObjectDirectoryMapper.java:107)
      4. org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.filterFor(DefaultObjectDirectoryMapper.java:447)
      5. org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1824)
      6. org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1857)
      6 frames