org.hibernate.MappingException: component class not found: org.openbravo.model.ad.process.Log$Id

openbravo | martintaal | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    install.source/import.sample.data changes

    openbravo | 8 years ago | martintaal
    org.hibernate.MappingException: component class not found: org.openbravo.model.ad.process.Log$Id
  2. 0

    Unable to instantiate custom type error in Hibernate mapping Enum mapping

    Stack Overflow | 4 years ago | Johnny
    org.hibernate.MappingException: Unable to instantiate custom type: org.hibernate.type.EnumType
  3. 0

    Hibernate mapping. Table related with other two

    Stack Overflow | 2 years ago | Rob
    org.hibernate.MappingException: An association from the table A refers to an unmapped class: Shortcut
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    To reproduce this issue you need to: a) Load some hbm files using the AnnotationConfiguration b) Use a subclass reference referring to a class in a separate file via the "extends" attribute in your hbm files What happens is that you will get an exception from the buildSessionFactory call on AnnotationConfiguration similar to the following: org.hibernate.MappingException: Following superclasses referenced in extends not found: org.gs1.v202.gdsn.RegistryPartyDataDumpType at org.hibernate.cfg.Configuration.processExtendsQueue(Configuration.java:1077) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1016) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:218) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1138) A simple workaround is to use the base Configuration class rather than the AnnotationConfiguration. However, this is not practical if you need to load a mix of existing hbm files as well as new classes that use annotations. The reason that this occurs is that the AnnotationConfiguration class overrides the add method of Configuration, storing all of the hbm files in a Map for later processing. This works fine for regular class files; however, it is not compatible with the recursive hbm file processing performed by processExtendsQueue. I've attached a fix for this issue that disables the delayed hbm processing before processing of the extends queue begins. This modification fixes this issue in the unit tests of the application I am working on. Please see the attached java file that includes the integrated fix built off the latest CVS version, as well as the unified diff I created via CVS. I would appreciate it if this fix could be rolled into the upcoming 3.1beta7, and would be happy to help out with whatever documentation or unit tests are needed for final integration. Cheers, --Steve

    Hibernate JIRA | 1 decade ago | Stephen Chin
    org.hibernate.MappingException: Following superclasses referenced in extends not found: org.gs1.v202.gdsn.RegistryPartyDataDumpType
  6. 0

    how to insert values in database using Hibernate in dynamic web project

    Stack Overflow | 3 years ago | Vishnu Ranganathan
    org.hibernate.MappingException: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(email)]
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. org.hibernate.MappingException

    component class not found: org.openbravo.model.ad.process.Log$Id

    at org.hibernate.mapping.Component.getComponentClass()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.mapping.Component.getComponentClass(Component.java:104)
    2. org.hibernate.tuple.component.PojoComponentTuplizer.buildGetter(PojoComponentTuplizer.java:133)
    3. org.hibernate.tuple.component.AbstractComponentTuplizer.<init>(AbstractComponentTuplizer.java:43)
    4. org.hibernate.tuple.component.PojoComponentTuplizer.<init>(PojoComponentTuplizer.java:38)
    5. org.hibernate.tuple.component.ComponentEntityModeToTuplizerMapping.<init>(ComponentEntityModeToTuplizerMapping.java:52)
    6. org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:50)
    7. org.hibernate.mapping.Component.buildType(Component.java:152)
    8. org.hibernate.mapping.Component.getType(Component.java:145)
    9. org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
    10. org.hibernate.mapping.RootClass.validate(RootClass.java:193)
    11. org.hibernate.cfg.Configuration.validate(Configuration.java:1102)
    12. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)
    12 frames
  3. org.openbravo.base
    SessionFactoryController.initialize
    1. org.openbravo.base.session.SessionFactoryController.initialize(SessionFactoryController.java:145)
    1 frame
  4. org.openbravo.dal
    DalInitializingTask.execute
    1. org.openbravo.dal.core.DalLayerInitializer.initialize(DalLayerInitializer.java:83)
    2. org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:113)
    2 frames
  5. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  7. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.Target.execute(Target.java:357)
    4. org.apache.tools.ant.Target.performTasks(Target.java:385)
    5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    6. org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    7. org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    8. org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    9. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    9 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  9. Ant
    Main.startAnt
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.Target.execute(Target.java:357)
    4. org.apache.tools.ant.Target.performTasks(Target.java:385)
    5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    6. org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    8. org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    9. org.apache.tools.ant.Main.runBuild(Main.java:758)
    10. org.apache.tools.ant.Main.startAnt(Main.java:217)
    10 frames
  10. Apache Ant Launcher
    Launcher.main
    1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    2 frames