org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFa ctory': Invocation of init method failed; nested exception is org.hibernate.MappingException: An association from the table generic_market_data_event refers to an unmapped class: com.algoTrader.entity.marketData.MarketDataEventDefinitionImpl


Solutions on the web

Solution icon of googlegroups
via Google Groups by Clebson Derivan, 1 year ago
Error creating bean with name 'sessionFa ctory': Invocation of init method failed; nested exception is org.hibernate.MappingException: An association from the table

Solution icon of stackoverflow
via Stack Overflow by tinny
, 1 year ago
Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: An association from the table maintenance_task refers to an unmapped class: preventIT.maintenance.MaintenanceSchedule

Solution icon of stackoverflow
Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: OwnedResource

Solution icon of stackoverflow
via Stack Overflow by freecouch
, 1 year ago
Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: OracleXmlType, at table: drop_file, for columns: [org.hibernate.mapping.Column(xml_content)]

Solution icon of stackoverflow
name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: No discriminator found for edu.test.B1. Discriminator is needed when 'single-table-per-hierarchy' is used and a class has subclasses

Solution icon of web
Error creating bean with name 'gretty': Invocation of init method failed; nested exception is java.lang.NullPointerException

Solution icon of web
via nabble.com by Unknown author, 1 year ago
Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate class/entity mapping UserUsage

Solution icon of web
Error creating bean with name 'controllerHandlerMappings': Cannot resolve reference to bean 'openSessionInViewInterceptor' while setting bean property 'interceptors' with key [1]; nested exception is

Solution icon of stackoverflow
'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.PropertyNotFoundException: Could not find a setter for property nameAttribute in class com.gra.register.User

Solution icon of web
Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Invocation of DatabaseMetaData method 'getDatabaseMajorVersion' failed; nested exception is java.lang.reflect.InvocationTargetException

Stack trace

org.springframework.beans.factory.BeanCreationException: Error creating 
 bean with name 'sessionFa                                                   
                 ctory': Invocation of init method failed; nested exception 
 is org.hibernate.MappingException: An association from the table 
 generic_market_data_event refers to                                         
                            an unmapped class: 
 com.algoTrader.entity.marketData.MarketDataEventDefinitionImpl
	at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)
	at grails.web.container.EmbeddableServer$start.call(Unknown Source)
	at _GrailsRun$_run_closure5_closure12.doCall(_GrailsRun.groovy:158)
	at _GrailsRun$_run_closure5_closure12.doCall(_GrailsRun.groovy)
	at _GrailsSettings$_run_closure10.doCall(_GrailsSettings.groovy:280)
	at _GrailsSettings$_run_closure10.call(_GrailsSettings.groovy)
	at _GrailsRun$_run_closure5.doCall(_GrailsRun.groovy:149)
	at _GrailsRun$_run_closure5.call(_GrailsRun.groovy)
	at _GrailsRun.runInline(_GrailsRun.groovy:116)
	at _GrailsRun.this$4$runInline(_GrailsRun.groovy)
	at _GrailsRun$_run_closure1.doCall(_GrailsRun.groovy:59)
	at RunApp$_run_closure1.doCall(RunApp.groovy:33)
	at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
	at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
	at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
	at gant.Gant.withBuildListeners(Gant.groovy:427)
	at gant.Gant.this$2$withBuildListeners(Gant.groovy)
	at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
	at gant.Gant.dispatch(Gant.groovy:415)
	at gant.Gant.this$2$dispatch(Gant.groovy)
	at gant.Gant.invokeMethod(Gant.groovy)
	at gant.Gant.executeTargets(Gant.groovy:590)
	at gant.Gant.executeTargets(Gant.groovy:589)
	at org.grails.maven.plugin.AbstractGrailsMojo.runGrails(AbstractGrailsMojo.java:286)
	at org.grails.maven.plugin.GrailsRunAppMojo.execute(GrailsRunAppMojo.java:35)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'transactionManager': Cannot resolve reference to 
 bean 'sessi                                                                 
   onFactory' while setting bean property 'sessionFactory'; nested exception 
 is org.springframework.beans.factory.BeanCreationException: Error creating 
 bean with                                                                   
  name 'sessionFactory': Invocation of init method failed; nested exception 
 is org.hibernate.MappingException: An association from the table 
 generic_market_data_                                                       
             event refers to an unmapped class: 
 com.algoTrader.entity.marketData.MarketDataEventDefinitionImpl
	... 40 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'sessionFactory': Invocation of init method failed; 
 nested ex                                                                   
 ception is org.hibernate.MappingException: An association from the table 
 generic_market_data_event refers to an unmapped class: 
 com.algoTrader.entity.marketDat                                             
                       a.MarketDataEventDefinitionImpl
	... 40 more
Caused by: org.hibernate.MappingException: An association from the table 
 generic_market_data_event refers to an unmapped class: 
 com.algoTrader.entity.marketDat                                             
                       a.MarketDataEventDefinitionImpl
	... 40 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.