net.sf.hibernate.MappingException: bug in initComponentPropertyPaths

Hibernate JIRA | Marco Papini | 1 decade ago
  1. 0

    I've generated two hbm with Middlegen with a simple one-to-one relation: A first object with a composite 2 field key, and 10 other plain properties, and another object with a normal long key and two properties. The declaration on the relation in the first object is: <many-to-one name="commento" class="Commento" unique="false" insert="false" update="false" > <column name="MLCOM" /> </many-to-one> In the other object: <one-to-one name="marelo" class="Marelo" outer-join="auto" property-ref="commento" /> When I ask any page of the application, I get an error during Hibernate session's initialization. Here's the stack trace: 16:20:54,849 ERROR HibernateSessionFactory:35 - error configuring net.sf.hibernate.MappingException: bug in initComponentPropertyPaths at net.sf.hibernate.persister.AbstractPropertyMapping.initComponentPropertyPaths(AbstractPropertyMapping.java:140) at net.sf.hibernate.persister.AbstractPropertyMapping.initPropertyPaths(AbstractPropertyMapping.java:111) at net.sf.hibernate.persister.AbstractPropertyMapping.initPropertyPaths(AbstractPropertyMapping.java:80) at net.sf.hibernate.persister.AbstractEntityPersister.initPropertyPaths(AbstractEntityPersister.java:515) at net.sf.hibernate.persister.EntityPersister.postInstantiate(EntityPersister.java:110) at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:156) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:750) at cinetica.hibernate.web.component.HibernateSessionFactory.init(HibernateSessionFactory.java:32) [snip] Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at net.sf.hibernate.util.ArrayHelper.slice(ArrayHelper.java:61) at net.sf.hibernate.persister.AbstractPropertyMapping.initComponentPropertyPaths(AbstractPropertyMapping.java:135) ... 52 more

    Hibernate JIRA | 1 decade ago | Marco Papini
    net.sf.hibernate.MappingException: bug in initComponentPropertyPaths
  2. 0

    I've generated two hbm with Middlegen with a simple one-to-one relation: A first object with a composite 2 field key, and 10 other plain properties, and another object with a normal long key and two properties. The declaration on the relation in the first object is: <many-to-one name="commento" class="Commento" unique="false" insert="false" update="false" > <column name="MLCOM" /> </many-to-one> In the other object: <one-to-one name="marelo" class="Marelo" outer-join="auto" property-ref="commento" /> When I ask any page of the application, I get an error during Hibernate session's initialization. Here's the stack trace: 16:20:54,849 ERROR HibernateSessionFactory:35 - error configuring net.sf.hibernate.MappingException: bug in initComponentPropertyPaths at net.sf.hibernate.persister.AbstractPropertyMapping.initComponentPropertyPaths(AbstractPropertyMapping.java:140) at net.sf.hibernate.persister.AbstractPropertyMapping.initPropertyPaths(AbstractPropertyMapping.java:111) at net.sf.hibernate.persister.AbstractPropertyMapping.initPropertyPaths(AbstractPropertyMapping.java:80) at net.sf.hibernate.persister.AbstractEntityPersister.initPropertyPaths(AbstractEntityPersister.java:515) at net.sf.hibernate.persister.EntityPersister.postInstantiate(EntityPersister.java:110) at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:156) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:750) at cinetica.hibernate.web.component.HibernateSessionFactory.init(HibernateSessionFactory.java:32) [snip] Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at net.sf.hibernate.util.ArrayHelper.slice(ArrayHelper.java:61) at net.sf.hibernate.persister.AbstractPropertyMapping.initComponentPropertyPaths(AbstractPropertyMapping.java:135) ... 52 more

    Hibernate JIRA | 1 decade ago | Marco Papini
    net.sf.hibernate.MappingException: bug in initComponentPropertyPaths
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. net.sf.hibernate.MappingException

      bug in initComponentPropertyPaths

      at net.sf.hibernate.persister.AbstractPropertyMapping.initComponentPropertyPaths()
    2. net.sf.hibernate
      Configuration.buildSessionFactory
      1. net.sf.hibernate.persister.AbstractPropertyMapping.initComponentPropertyPaths(AbstractPropertyMapping.java:140)
      2. net.sf.hibernate.persister.AbstractPropertyMapping.initPropertyPaths(AbstractPropertyMapping.java:111)
      3. net.sf.hibernate.persister.AbstractPropertyMapping.initPropertyPaths(AbstractPropertyMapping.java:80)
      4. net.sf.hibernate.persister.AbstractEntityPersister.initPropertyPaths(AbstractEntityPersister.java:515)
      5. net.sf.hibernate.persister.EntityPersister.postInstantiate(EntityPersister.java:110)
      6. net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:156)
      7. net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:750)
      7 frames
    3. cinetica.hibernate.web
      HibernateSessionFactory.init
      1. cinetica.hibernate.web.component.HibernateSessionFactory.init(HibernateSessionFactory.java:32)
      1 frame