Gary Brown created BAM-118:
------------------------------
Summary: Exception during schema creation in H2
Key: BAM-118
URL:
https://issues.jboss.org/browse/BAM-118
Project: Business Activity Monitoring
Issue Type: Bug
Reporter: Gary Brown
Assignee: Gary Brown
Fix For: 1.0.0.M4
The exception is:
{noformat}
11:33:02,209 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-5)
HHH000227: Running hbm2ddl schema export
11:33:02,210 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-5)
HHH000231: Schema export unsuccessful: java.sql.SQLException: You cannot set autocommit
during a managed transaction!
at
org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWrapperManagedConnection.java:888)
at
org.jboss.jca.adapters.jdbc.WrappedConnection.setAutoCommit(WrappedConnection.java:715)
at
org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:60)
[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.tool.hbm2ddl.DatabaseExporter.<init>(DatabaseExporter.java:52)
[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:368)
[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:305)
[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:294)
[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:452)
[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737)
[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at
org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)
[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at org.overlord.bam.activity.store.jpa.JPAActivityStore.init(JPAActivityStore.java:95)
[activity-store-jpa-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_07]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_07]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_07]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_07]
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:174)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:391)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.postConstruct(ManagedBean.java:174)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:294)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:620)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:686)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:123)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:709)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:718)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:161)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:157)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:131)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:153)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:293)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:620)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:686)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:123)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:709)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:718)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:161)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:157)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:131)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:153)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:293)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:107)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:620)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:686)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:123)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:709)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:718)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.SessionBean$1$1.proceed(SessionBean.java:176)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.SessionBean$1.inject(SessionBean.java:173)
[weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.as.weld.injection.WeldEEInjection.inject(WeldEEInjection.java:78)
[jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:60)
[jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:333)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:116)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:130)
[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44)
[jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_07]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_07]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
11:33:02,240 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-5)
HHH000230: Schema export complete
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira