org.hibernate.MappingException: duplicate import: com.plumtree.analytics.core.persist.BaseCustomEventFact$$BeanGeneratorByCGLIB$$6a896b0d

Oracle Community | user11958935 | 6 years ago
  1. 0

    Portal events are not getting loaded into the Analytics database tables

    Oracle Community | 6 years ago | user11958935
    org.hibernate.MappingException: duplicate import: com.plumtree.analytics.core.persist.BaseCustomEventFact$$BeanGeneratorByCGLIB$$6a896b0d
  2. 0

    When generating from an existing database, I perform the following. 1. Output Directory: DataAccess\src 2. Check Reverse engineer from JDBC Connection 3. Define Package com.llic.business 4. Check generate domain code 4.1 (optional, check EJB3/JSR-220 Annotations. This fails checked and unchecked. 5. Check Generate Mappings Stack Trace [code] !ENTRY org.hibernate.eclipse.console.HibernateConsolePlugin 4 4 2005-03-04 14:43:22.858 !MESSAGE Error under artifact generation !STACK 0 org.hibernate.MappingException: duplicate import: com.llic.business.Userauth at org.hibernate.cfg.Mappings.addImport(Mappings.java:99) at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:180) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:123) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) !SUBENTRY 1 org.hibernate.eclipse.console.HibernateConsolePlugin 4 4 2005-03-04 14:43:22.858 !MESSAGE duplicate import: com.llic.business.Userauth !STACK 0 org.hibernate.MappingException: duplicate import: com.llic.business.Userauth at org.hibernate.cfg.Mappings.addImport(Mappings.java:99) at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:180) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:123) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) !SUBENTRY 2 org.hibernate.eclipse.console.HibernateConsolePlugin 4 150 2005-03-04 14:43:22.858 !MESSAGE duplicate import: com.llic.business.Userauth !STACK 0 org.hibernate.MappingException: duplicate import: com.llic.business.Userauth at org.hibernate.cfg.Mappings.addImport(Mappings.java:99) at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:180) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:123) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) [/code]

    Hibernate JIRA | 1 decade ago | Todd Nine
    org.hibernate.MappingException: duplicate import: com.llic.business.Userauth
  3. 0

    When generating from an existing database, I perform the following. 1. Output Directory: DataAccess\src 2. Check Reverse engineer from JDBC Connection 3. Define Package com.llic.business 4. Check generate domain code 4.1 (optional, check EJB3/JSR-220 Annotations. This fails checked and unchecked. 5. Check Generate Mappings Stack Trace [code] !ENTRY org.hibernate.eclipse.console.HibernateConsolePlugin 4 4 2005-03-04 14:43:22.858 !MESSAGE Error under artifact generation !STACK 0 org.hibernate.MappingException: duplicate import: com.llic.business.Userauth at org.hibernate.cfg.Mappings.addImport(Mappings.java:99) at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:180) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:123) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) !SUBENTRY 1 org.hibernate.eclipse.console.HibernateConsolePlugin 4 4 2005-03-04 14:43:22.858 !MESSAGE duplicate import: com.llic.business.Userauth !STACK 0 org.hibernate.MappingException: duplicate import: com.llic.business.Userauth at org.hibernate.cfg.Mappings.addImport(Mappings.java:99) at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:180) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:123) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) !SUBENTRY 2 org.hibernate.eclipse.console.HibernateConsolePlugin 4 150 2005-03-04 14:43:22.858 !MESSAGE duplicate import: com.llic.business.Userauth !STACK 0 org.hibernate.MappingException: duplicate import: com.llic.business.Userauth at org.hibernate.cfg.Mappings.addImport(Mappings.java:99) at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:180) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:123) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) [/code]

    Hibernate JIRA | 1 decade ago | Todd Nine
    org.hibernate.MappingException: duplicate import: com.llic.business.Userauth
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When generating from an existing database, I perform the following. 1. Output Directory: DataAccess\src 2. Check Reverse engineer from JDBC Connection 3. Define Package com.llic.business 4. Check generate domain code 4.1 (optional, check EJB3/JSR-220 Annotations. This fails checked and unchecked. 5. Check Generate Mappings Stack Trace [code] !ENTRY org.hibernate.eclipse.console.HibernateConsolePlugin 4 4 2005-03-04 14:43:22.858 !MESSAGE Error under artifact generation !STACK 0 org.hibernate.MappingException: duplicate import: com.llic.business.Userauth at org.hibernate.cfg.Mappings.addImport(Mappings.java:99) at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:180) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:123) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) !SUBENTRY 1 org.hibernate.eclipse.console.HibernateConsolePlugin 4 4 2005-03-04 14:43:22.858 !MESSAGE duplicate import: com.llic.business.Userauth !STACK 0 org.hibernate.MappingException: duplicate import: com.llic.business.Userauth at org.hibernate.cfg.Mappings.addImport(Mappings.java:99) at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:180) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:123) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) !SUBENTRY 2 org.hibernate.eclipse.console.HibernateConsolePlugin 4 150 2005-03-04 14:43:22.858 !MESSAGE duplicate import: com.llic.business.Userauth !STACK 0 org.hibernate.MappingException: duplicate import: com.llic.business.Userauth at org.hibernate.cfg.Mappings.addImport(Mappings.java:99) at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:180) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:123) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) [/code]

    Hibernate JIRA | 1 decade ago | Todd Nine
    org.hibernate.MappingException: duplicate import: com.llic.business.Userauth
  6. 0

    org.hibernate.MappingException: duplicate import - Genuitec

    genuitec.com | 6 months ago
    org.hibernate.MappingException: Error reading resource: com/innova/siom2/bd/OfertaMd.hbm.xml

    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

      duplicate import: com.plumtree.analytics.core.persist.BaseCustomEventFact$$BeanGeneratorByCGLIB$$6a896b0d

      at org.hibernate.cfg.Mappings.addImport()
    2. Hibernate
      Configuration.addXML
      1. org.hibernate.cfg.Mappings.addImport(Mappings.java:105)
      2. org.hibernate.cfg.HbmBinder.bindPersistentClassCommonValues(HbmBinder.java:541)
      3. org.hibernate.cfg.HbmBinder.bindClass(HbmBinder.java:488)
      4. org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:234)
      5. org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:152)
      6. org.hibernate.cfg.Configuration.add(Configuration.java:362)
      7. org.hibernate.cfg.Configuration.addXML(Configuration.java:317)
      7 frames
    3. com.plumtree.analytics
      AnalyticsInitServlet.init
      1. com.plumtree.analytics.core.HibernateUtil.loadEventMappings(HibernateUtil.java:796)
      2. com.plumtree.analytics.core.HibernateUtil.loadEventMappings(HibernateUtil.java:652)
      3. com.plumtree.analytics.core.HibernateUtil.refreshCustomEvents(HibernateUtil.java:496)
      4. com.plumtree.analytics.ui.common.AnalyticsInitServlet.init(AnalyticsInitServlet.java:104)
      4 frames
    4. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
      2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
      3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
      4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
      5. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      6. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      7. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      8. org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
      9. org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
      10. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
      11. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
      12. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
      13. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      14. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      15. org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
      16. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      17. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      18. org.apache.catalina.core.StandardService.start(StandardService.java:516)
      19. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      20. org.apache.catalina.startup.Catalina.start(Catalina.java:566)
      20 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    6. com.plumtree.container
      Bootstrap.main
      1. com.plumtree.container.Bootstrap.start(Bootstrap.java:531)
      2. com.plumtree.container.Bootstrap.main(Bootstrap.java:254)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    8. Java Service Wrapper
      WrapperStartStopApp.run
      1. org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238)
      1 frame
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame