5 Replies Latest reply on May 15, 2015 9:37 AM by Gunther v. Wolffersdorff

    Error checking for a transaction in Wildfly

    sebp Newbie

      I have an application that runs fine on JBoss 7.1.3. After switching to Wildfly 8.0.0.Beta1 I'm getting exceptions as soon as Hibernate tries to access the database:

       

      javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection

      ...

      Caused by: java.sql.SQLException: javax.resource.ResourceException: IJ000460: Error checking for a transaction

       

      All the database access is wrapped in Spring JPA Repositories. The Repositories get the EntityManager from CDI. Therefore I have an EntityManager producer:

       

      class EntityManagerFactoryProducer {

       

        @PersistenceContext

        EntityManager em;

       

        @Produces

        @RequestScoped

        public EntityManager createEntityManager() {

        return this.em;

        }

      }

       

      Is there any reason why an applicacation that worked on JBoss 7.1.3 should have problems with starting transactions in Wildfly?

        • 1. Re: Error checking for a transaction in Wildfly
          Scott Marlow Master

          Can you show us the entire Exception.  I have seen this occur when the transaction is marked for rollback only but that is very obvious (from the logged messages), when it occurs.

           

          I'm not sure that you need to but you can always enable TRACE logging (for Hibernate, JPA EE container, Arjuna transaction manager) as mentioned here

          1 of 1 people found this helpful
          • 2. Re: Re: Error checking for a transaction in Wildfly
            sebp Newbie

            Hi,

            here comes the log. There is no rollback. Maybe you can see something that I missed in here. I will try the TRACE logging.

             

            2014-01-06 08:27:17,750 INFO  [org.dozer.config.GlobalSettings] (EJB default - 3) Trying to find Dozer configuration file: dozer.properties
            2014-01-06 08:27:17,750 INFO  [org.dozer.config.GlobalSettings] (EJB default - 3) Using URL [vfs:/C:/temp/wildfly-8.0.0.Beta1/bin/content/flexmodel.ear/com.qualitype.flexmodel.management.jpa.jar/dozer.properties] for Dozer global property configuration
            2014-01-06 08:27:17,750 INFO  [org.dozer.config.GlobalSettings] (EJB default - 3) Reading Dozer properties from URL [vfs:/C:/temp/wildfly-8.0.0.Beta1/bin/content/flexmodel.ear/com.qualitype.flexmodel.management.jpa.jar/dozer.properties]
            2014-01-06 08:27:17,750 INFO  [org.dozer.DozerInitializer] (EJB default - 3) Initializing Dozer. Version: 5.4.0, Thread Name: EJB default - 3
            2014-01-06 08:27:17,760 INFO  [org.dozer.jmx.JMXPlatformImpl] (EJB default - 3) Dozer JMX MBean [org.dozer.jmx:type=DozerStatisticsController] auto registered with the Platform MBean Server
            2014-01-06 08:27:17,760 INFO  [org.dozer.jmx.JMXPlatformImpl] (EJB default - 3) Dozer JMX MBean [org.dozer.jmx:type=DozerAdminController] auto registered with the Platform MBean Server
            2014-01-06 08:27:17,760 INFO  [org.dozer.DozerBeanMapper] (EJB default - 3) Initializing a new instance of dozer bean mapper.
            2014-01-06 08:27:17,800 INFO  [org.dozer.DozerBeanMapper] (EJB default - 3) Initializing a new instance of dozer bean mapper.
            2014-01-06 08:27:17,810 INFO  [org.dozer.DozerBeanMapper] (EJB default - 3) Using the following xml files to load custom mappings for the bean mapper instance: [com/qualitype/flexmodel/management/jpa/service/value-mappings.xml]
            2014-01-06 08:27:17,810 INFO  [org.dozer.DozerBeanMapper] (EJB default - 3) Trying to find xml mapping file: com/qualitype/flexmodel/management/jpa/service/value-mappings.xml
            2014-01-06 08:27:17,810 INFO  [org.dozer.DozerBeanMapper] (EJB default - 3) Using URL [vfs:/C:/temp/wildfly-8.0.0.Beta1/bin/content/flexmodel.ear/com.qualitype.flexmodel.management.jpa.jar/com/qualitype/flexmodel/management/jpa/service/value-mappings.xml] to load custom xml mappings
            2014-01-06 08:27:17,850 INFO  [org.dozer.DozerBeanMapper] (EJB default - 3) Successfully loaded custom xml mappings from URL: [vfs:/C:/temp/wildfly-8.0.0.Beta1/bin/content/flexmodel.ear/com.qualitype.flexmodel.management.jpa.jar/com/qualitype/flexmodel/management/jpa/service/value-mappings.xml]
            2014-01-06 08:27:18,530 INFO  [stdout] (EJB default - 3) Hibernate: select localeenti0_.id as id1_48_, localeenti0_.country_key as country_2_48_, localeenti0_.language_key as language3_48_, localeenti0_.variant as variant4_48_ from flexmodel.locale localeenti0_ where localeenti0_.country_key=? and localeenti0_.language_key=? and localeenti0_.variant=?
            
            2014-01-06 08:27:18,530 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (EJB default - 3) SQL Error: 0, SQLState: null
            2014-01-06 08:27:18,530 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (EJB default - 3) javax.resource.ResourceException: IJ000460: Error checking for a transaction
            2014-01-06 08:27:18,540 ERROR [org.dozer.MappingProcessor] (EJB default - 3) Field mapping error -->
              MapId: null
              Type: null
              Source parent class: com.qualitype.flexmodel.core.BaseDataModel
              Source field name: supportedLocales
              Source field type: class java.util.Arrays$ArrayList
              Source field value: [de, en]
              Dest parent class: com.qualitype.flexmodel.management.jpa.model.DataModelEntity
              Dest field name: supportedLocales
              Dest field type: java.util.List: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection
                at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1661) [hibernate-entitymanager-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1575) [hibernate-entitymanager-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.jpa.internal.QueryImpl.getSingleResult(QueryImpl.java:464) [hibernate-entitymanager-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.jpa.criteria.compile.CriteriaQueryTypeQueryAdapter.getSingleResult(CriteriaQueryTypeQueryAdapter.java:71) [hibernate-entitymanager-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.jboss.as.jpa.container.TypedQueryNonTxInvocationDetacher.getSingleResult(TypedQueryNonTxInvocationDetacher.java:69) [wildfly-jpa-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.springframework.data.jpa.repository.query.JpaQueryExecution$SingleEntityExecution.doExecute(JpaQueryExecution.java:123) [spring-data-jpa-1.3.4.RELEASE.jar:]
                at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:55) [spring-data-jpa-1.3.4.RELEASE.jar:]
                at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:95) [spring-data-jpa-1.3.4.RELEASE.jar:]
                at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:85) [spring-data-jpa-1.3.4.RELEASE.jar:]
                at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:312) [spring-data-commons-1.5.2.RELEASE.jar:]
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.data.jpa.repository.support.LockModeRepositoryPostProcessor$LockModePopulatingMethodIntercceptor.invoke(LockModeRepositoryPostProcessor.java:92) [spring-data-jpa-1.3.4.RELEASE.jar:]
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) [spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at $Proxy137.findByCountryAndLanguageAndVariant(Unknown Source)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_04]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_04]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_04]
                at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_04]
                at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:40) [weld-core-impl-2.1.0.CR1.jar:2013-09-26 16:53]
                at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100) [weld-core-impl-2.1.0.CR1.jar:2013-09-26 16:53]
                at org.jboss.weld.proxies.LocaleRepository$PagingAndSortingRepository$1366014921$Proxy$_$$_WeldClientProxy.findByCountryAndLanguageAndVariant(Unknown Source) [weld-core-impl-2.1.0.CR1.jar:]
                at com.qualitype.flexmodel.management.jpa.mapper.LocaleFactory.createBean(LocaleFactory.java:32) [com.qualitype.flexmodel.management.jpa.jar:]
                at org.dozer.factory.ConstructionStrategies$ByFactory.create(ConstructionStrategies.java:154) [dozer-5.4.0.jar:]
                at org.dozer.factory.DestBeanCreator.create(DestBeanCreator.java:65) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapCustomObject(MappingProcessor.java:489) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:446) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.addOrUpdateToList(MappingProcessor.java:776) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.addOrUpdateToList(MappingProcessor.java:850) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapListToList(MappingProcessor.java:686) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapCollection(MappingProcessor.java:541) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:434) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapFromFieldMap(MappingProcessor.java:342) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapField(MappingProcessor.java:288) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.map(MappingProcessor.java:248) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.map(MappingProcessor.java:197) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.map(MappingProcessor.java:187) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.map(MappingProcessor.java:124) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.map(MappingProcessor.java:119) [dozer-5.4.0.jar:]
                at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:120) [dozer-5.4.0.jar:]
                at org.dozer.DozerBeanMapper$Proxy$_$$_WeldClientProxy.map(Unknown Source) [dozer-5.4.0.jar:]
                at com.qualitype.flexmodel.management.jpa.service.ModelService.save(ModelService.java:71) [com.qualitype.flexmodel.management.jpa.jar:]
                at com.qualitype.flexmodel.management.jpa.JpaModelManagementServiceBean.createDataModel(JpaModelManagementServiceBean.java:80) [com.qualitype.flexmodel.management.jpa.jar:]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_04]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_04]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_04]
                at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_04]
                at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:406)
                at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:130) [wildfly-weld-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:138) [wildfly-weld-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) [wildfly-jpa-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:406)
                at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) [weld-core-impl-2.1.0.CR1.jar:2013-09-26 16:53]
                at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:84) [wildfly-weld-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:340) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:325)
                at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:437)
                at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:325)
                at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
                at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.invokeMethod(MethodInvocationMessageHandler.java:329) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$100(MethodInvocationMessageHandler.java:70) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:203) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_04]
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_04]
                at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_04]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_04]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_04]
                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]
                at org.jboss.threads.JBossThread.run(JBossThread.java:122)
            Caused by: org.hibernate.exception.GenericJDBCException: Could not open connection
                at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:234) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:170) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:63) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:164) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:185) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:162) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1867) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1844) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1821) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.doQuery(Loader.java:903) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.doList(Loader.java:2534) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.doList(Loader.java:2520) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2350) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.list(Loader.java:2345) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:496) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:371) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:222) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1270) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.jpa.internal.QueryImpl.getSingleResult(QueryImpl.java:435) [hibernate-entitymanager-4.3.0.Beta4.jar:4.3.0.Beta4]
                ... 117 more
            Caused by: java.sql.SQLException: javax.resource.ResourceException: IJ000460: Error checking for a transaction
                at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:150)
                at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:138) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:357) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:227) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                ... 137 more
            Caused by: javax.resource.ResourceException: IJ000460: Error checking for a transaction
                at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:369)
                at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:513)
                at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:142)
                ... 140 more
            Caused by: javax.resource.ResourceException: IJ000459: Transaction is not active: tx=TransactionImple < ac, BasicAction: 0:ffffc0a80a92:-1ae01f0b:52ca5ac9:14 status: ActionStatus.ABORT_ONLY >
                at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:359)
                ... 142 more
            
            2014-01-06 08:27:18,900 ERROR [org.jboss.as.ejb3.invocation] (EJB default - 3) JBAS014134: EJB Invocation failed on component DataModelManager for method public abstract com.qualitype.flexmodel.api.DataModel com.qualitype.flexmodel.api.DataModelManager.createDataModel(com.qualitype.flexmodel.api.DataModel) throws com.qualitype.flexmodel.api.DataModelManagementException: javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:190) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:340) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:325)
                at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:437)
                at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:325)
                at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
                at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.invokeMethod(MethodInvocationMessageHandler.java:329) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$100(MethodInvocationMessageHandler.java:70) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:203) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_04]
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_04]
                at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_04]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_04]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_04]
                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]
                at org.jboss.threads.JBossThread.run(JBossThread.java:122)
            Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection
                at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1661) [hibernate-entitymanager-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1575) [hibernate-entitymanager-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.jpa.internal.QueryImpl.getSingleResult(QueryImpl.java:464) [hibernate-entitymanager-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.jpa.criteria.compile.CriteriaQueryTypeQueryAdapter.getSingleResult(CriteriaQueryTypeQueryAdapter.java:71) [hibernate-entitymanager-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.jboss.as.jpa.container.TypedQueryNonTxInvocationDetacher.getSingleResult(TypedQueryNonTxInvocationDetacher.java:69) [wildfly-jpa-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.springframework.data.jpa.repository.query.JpaQueryExecution$SingleEntityExecution.doExecute(JpaQueryExecution.java:123) [spring-data-jpa-1.3.4.RELEASE.jar:]
                at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:55) [spring-data-jpa-1.3.4.RELEASE.jar:]
                at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:95) [spring-data-jpa-1.3.4.RELEASE.jar:]
                at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:85) [spring-data-jpa-1.3.4.RELEASE.jar:]
                at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:312) [spring-data-commons-1.5.2.RELEASE.jar:]
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.data.jpa.repository.support.LockModeRepositoryPostProcessor$LockModePopulatingMethodIntercceptor.invoke(LockModeRepositoryPostProcessor.java:92) [spring-data-jpa-1.3.4.RELEASE.jar:]
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) [spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at $Proxy137.findByCountryAndLanguageAndVariant(Unknown Source)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_04]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_04]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_04]
                at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_04]
                at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:40) [weld-core-impl-2.1.0.CR1.jar:2013-09-26 16:53]
                at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100) [weld-core-impl-2.1.0.CR1.jar:2013-09-26 16:53]
                at org.jboss.weld.proxies.LocaleRepository$PagingAndSortingRepository$1366014921$Proxy$_$$_WeldClientProxy.findByCountryAndLanguageAndVariant(Unknown Source) [weld-core-impl-2.1.0.CR1.jar:]
                at com.qualitype.flexmodel.management.jpa.mapper.LocaleFactory.createBean(LocaleFactory.java:32) [com.qualitype.flexmodel.management.jpa.jar:]
                at org.dozer.factory.ConstructionStrategies$ByFactory.create(ConstructionStrategies.java:154) [dozer-5.4.0.jar:]
                at org.dozer.factory.DestBeanCreator.create(DestBeanCreator.java:65) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapCustomObject(MappingProcessor.java:489) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:446) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.addOrUpdateToList(MappingProcessor.java:776) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.addOrUpdateToList(MappingProcessor.java:850) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapListToList(MappingProcessor.java:686) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapCollection(MappingProcessor.java:541) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:434) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapFromFieldMap(MappingProcessor.java:342) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.mapField(MappingProcessor.java:288) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.map(MappingProcessor.java:248) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.map(MappingProcessor.java:197) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.map(MappingProcessor.java:187) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.map(MappingProcessor.java:124) [dozer-5.4.0.jar:]
                at org.dozer.MappingProcessor.map(MappingProcessor.java:119) [dozer-5.4.0.jar:]
                at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:120) [dozer-5.4.0.jar:]
                at org.dozer.DozerBeanMapper$Proxy$_$$_WeldClientProxy.map(Unknown Source) [dozer-5.4.0.jar:]
                at com.qualitype.flexmodel.management.jpa.service.ModelService.save(ModelService.java:71) [com.qualitype.flexmodel.management.jpa.jar:]
                at com.qualitype.flexmodel.management.jpa.JpaModelManagementServiceBean.createDataModel(JpaModelManagementServiceBean.java:80) [com.qualitype.flexmodel.management.jpa.jar:]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_04]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_04]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_04]
                at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_04]
                at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:406)
                at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:130) [wildfly-weld-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:138) [wildfly-weld-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) [wildfly-jpa-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:406)
                at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) [weld-core-impl-2.1.0.CR1.jar:2013-09-26 16:53]
                at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:84) [wildfly-weld-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273) [wildfly-ejb3-8.0.0.Beta1.jar:8.0.0.Beta1]
                ... 40 more
            Caused by: org.hibernate.exception.GenericJDBCException: Could not open connection
                at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:234) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:170) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:63) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:164) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:185) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:162) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1867) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1844) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1821) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.doQuery(Loader.java:903) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.doList(Loader.java:2534) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.doList(Loader.java:2520) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2350) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.Loader.list(Loader.java:2345) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:496) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:371) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:222) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1270) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.jpa.internal.QueryImpl.getSingleResult(QueryImpl.java:435) [hibernate-entitymanager-4.3.0.Beta4.jar:4.3.0.Beta4]
                ... 117 more
            Caused by: java.sql.SQLException: javax.resource.ResourceException: IJ000460: Error checking for a transaction
                at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:150)
                at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:138) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:357) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:227) [hibernate-core-4.3.0.Beta4.jar:4.3.0.Beta4]
                ... 137 more
            Caused by: javax.resource.ResourceException: IJ000460: Error checking for a transaction
                at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:369)
                at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:513)
                at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:142)
                ... 140 more
            Caused by: javax.resource.ResourceException: IJ000459: Transaction is not active: tx=TransactionImple < ac, BasicAction: 0:ffffc0a80a92:-1ae01f0b:52ca5ac9:14 status: ActionStatus.ABORT_ONLY >
                at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:359)
                ... 142 more
            
            
            • 3. Re: Error checking for a transaction in Wildfly
              sebp Newbie

              Ok, I think I found the problem. Enabling tracing for Arjuna and Hibernate made the transaction rollback visible in the logs but didn't show the cause. Debugging into Hibernate and Spring JPA makes the problem obvious. Before Spring JPA creates a query dynamically it checkes if this query exists as a named query. But checking for the named query restults in

              java.lang.IllegalArgumentException: No query defined for that name [xyz]

              which is the reason for the rollback. But this has nothing to do with Wildfly...

              • 4. Re: Error checking for a transaction in Wildfly
                pgy Newbie

                Hello,

                You've found the reason of the rollback, but did you find a way for your code to work ?

                I have the same problem with Wildfly 8.2 & using Spring Data repositories...

                Thanks.

                • 5. Re: Error checking for a transaction in Wildfly
                  Gunther v. Wolffersdorff Newbie

                  Hi Sebastian,

                  we migrating from JBoss 7 to WildFly 8.2 (sping-data-jps 1.8.0) and are faced with the same problem.

                  Did you find a solution?

                   

                  Thanks.