org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.springframework.transaction.PlatformTransactionManager, at table: job, for columns: [org.hibernate.mapping.Column(transaction_manager)]

Google Groups | Buddha Shrestha | 5 months ago
  1. 0

    integration test not working in grails 3.2.0.M1

    Google Groups | 5 months ago | Buddha Shrestha
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.springframework.transaction.PlatformTransactionManager, at table: job, for columns: [org.hibernate.mapping.Column(transaction_manager)]
  2. 0

    Hibernate Community • View topic - How to insert Entity Which has BasicDBObject field?

    hibernate.org | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoEntityManagerFactory' defined in class path resource [Beans.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: primary] Unable to build Hibernate SessionFactory
  3. 0

    Hibernate Mapping exception using Java Generics

    Stack Overflow | 11 months ago | Rajith Delantha
    javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Boot Cross-Store not working

    Stack Overflow | 8 months ago | Sandra
    javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
  6. 0

    Spring-Boot not able to start embedded Tomcat

    Stack Overflow | 5 months ago | CodeMonkey
    org.hibernate.MappingException: Could not determine type for: java.util.List, at table: comment, for columns: [org.hibernate.mapping.Column(responses)]

  1. kuldeep 16 times, last 3 months ago
  2. esaar 1 times, last 4 months ago
  3. r1chjames 1 times, last 6 months ago
  4. Kawada 6 times, last 6 months ago
  5. Harsh 1 times, last 8 months ago
34 unregistered visitors
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

    Could not determine type for: org.springframework.transaction.PlatformTransactionManager, at table: job, for columns: [org.hibernate.mapping.Column(transaction_manager)]

    at org.hibernate.mapping.SimpleValue.getType()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:349)
    2. org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:322)
    3. org.hibernate.mapping.Property.isValid(Property.java:241)
    4. org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:496)
    5. org.hibernate.mapping.RootClass.validate(RootClass.java:270)
    6. org.hibernate.cfg.Configuration.validate(Configuration.java:1360)
    7. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1851)
    7 frames
  3. Grails GORM
    HibernateMappingContextSessionFactoryBean.afterPropertiesSet
    1. org.grails.orm.hibernate.cfg.HibernateMappingContextConfiguration.buildSessionFactory(HibernateMappingContextConfiguration.java:196)
    2. org.grails.orm.hibernate.HibernateMappingContextSessionFactoryBean.doBuildSessionFactory(HibernateMappingContextSessionFactoryBean.java:476)
    3. org.grails.orm.hibernate.HibernateMappingContextSessionFactoryBean.buildSessionFactory(HibernateMappingContextSessionFactoryBean.java:470)
    4. org.grails.orm.hibernate.HibernateMappingContextSessionFactoryBean.afterPropertiesSet(HibernateMappingContextSessionFactoryBean.java:93)
    4 frames
  4. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    9. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
    10. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    11. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481)
    12. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226)
    13. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
    14. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    15. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    16. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    17. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    18. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
    18 frames
  5. Grails
    TransactionManagerPostProcessor.setBeanFactory
    1. org.grails.transaction.TransactionManagerPostProcessor.initialize(TransactionManagerPostProcessor.java:75)
    2. org.grails.transaction.TransactionManagerPostProcessor.setBeanFactory(TransactionManagerPostProcessor.java:53)
    2 frames
  6. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1597)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1565)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
    8 frames
  7. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:207)
    2. org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:687)
    3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523)
    3 frames
  8. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
    3. org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
    4 frames
  9. Grails
    GrailsApp.run
    1. grails.boot.GrailsApp.run(GrailsApp.groovy:55)
    1 frame
  10. Spring Boot
    SpringApplicationContextLoader.loadContext
    1. org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:98)
    1 frame
  11. org.springframework.test
    DefaultCacheAwareContextLoaderDelegate.loadContext
    1. org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
    2. org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
    2 frames
  12. Spring TestContext
    TestContextManager.prepareTestInstance
    1. org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
    2. org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117)
    3. org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
    4. org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228)
    4 frames
  13. org.spockframework.spring
    SpringInterceptor.interceptSetupMethod
    1. org.spockframework.spring.SpringTestContextManager.prepareTestInstance(SpringTestContextManager.java:49)
    2. org.spockframework.spring.SpringInterceptor.interceptSetupMethod(SpringInterceptor.java:42)
    2 frames
  14. Spock Framework - Core Module
    Sputnik.run
    1. org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:28)
    2. org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:87)
    3. org.spockframework.runtime.BaseSpecRunner.invoke(BaseSpecRunner.java:471)
    4. org.spockframework.runtime.BaseSpecRunner.runSetup(BaseSpecRunner.java:375)
    5. org.spockframework.runtime.BaseSpecRunner.runSetup(BaseSpecRunner.java:370)
    6. org.spockframework.runtime.BaseSpecRunner.doRunIteration(BaseSpecRunner.java:323)
    7. org.spockframework.runtime.BaseSpecRunner$6.invoke(BaseSpecRunner.java:309)
    8. org.spockframework.runtime.BaseSpecRunner.invokeRaw(BaseSpecRunner.java:480)
    9. org.spockframework.runtime.BaseSpecRunner.invoke(BaseSpecRunner.java:463)
    10. org.spockframework.runtime.BaseSpecRunner.runIteration(BaseSpecRunner.java:288)
    11. org.spockframework.runtime.BaseSpecRunner.initializeAndRunIteration(BaseSpecRunner.java:278)
    12. org.spockframework.runtime.BaseSpecRunner.runSimpleFeature(BaseSpecRunner.java:269)
    13. org.spockframework.runtime.BaseSpecRunner.doRunFeature(BaseSpecRunner.java:263)
    14. org.spockframework.runtime.BaseSpecRunner$5.invoke(BaseSpecRunner.java:246)
    15. org.spockframework.runtime.BaseSpecRunner.invokeRaw(BaseSpecRunner.java:480)
    16. org.spockframework.runtime.BaseSpecRunner.invoke(BaseSpecRunner.java:463)
    17. org.spockframework.runtime.BaseSpecRunner.runFeature(BaseSpecRunner.java:238)
    18. org.spockframework.runtime.BaseSpecRunner.runFeatures(BaseSpecRunner.java:188)
    19. org.spockframework.runtime.BaseSpecRunner.doRunSpec(BaseSpecRunner.java:98)
    20. org.spockframework.runtime.BaseSpecRunner$1.invoke(BaseSpecRunner.java:84)
    21. org.spockframework.runtime.BaseSpecRunner.invokeRaw(BaseSpecRunner.java:480)
    22. org.spockframework.runtime.BaseSpecRunner.invoke(BaseSpecRunner.java:463)
    23. org.spockframework.runtime.BaseSpecRunner.runSpec(BaseSpecRunner.java:76)
    24. org.spockframework.runtime.BaseSpecRunner.run(BaseSpecRunner.java:67)
    25. org.spockframework.runtime.Sputnik.run(Sputnik.java:63)
    25 frames
  15. JUnit
    JUnitCore.run
    1. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    1 frame
  16. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    2 frames
  17. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    2 frames
  18. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  19. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    1 frame