You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

I have tried today to download the source codes for Joget Workflow from Github and tried running the build using the command "mvn install". It is able to run up to the wflow-core project and then fails with exceptions. The most notable one is "java.lang.IllegalStateException: wrong state: TERMINATED". Has anyone encountered this? What is the solution to this problem?

A key thing to note, I am not using MySQL, I am using MS SQL Server instead. All others are the same and and have been trying to follow the instructions "Building From Source".

I have included the "output.txt" attachment which contains the stdout messages of the build.

I have included the stack trace below for more information which can also be found in the attachment:-

2012-06-12 00:02:33,206: setRollbackOnly() called for transaction 192.168.2.7.tm0001500023Jun 12, 2012 12:02:33 AM org.joget.apps.form.service.FormService recursiveExecuteFormStoreBindersSEVERE: Error executing store binderorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customFormDataSessionFactory' defined in class path resource [appsApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Hibernate Dialect must be explicitly set	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$CglibSubclassCreator$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:156)	at org.joget.apps.form.dao.FormDataDaoImpl$$EnhancerByCGLIB$$c948f76a.loadCustomSessionFactory(<generated>)	at org.joget.apps.form.dao.FormDataDaoImpl.createHibernateTemplate(FormDataDaoImpl.java:900)	at org.joget.apps.form.dao.FormDataDaoImpl.getHibernateTemplate(FormDataDaoImpl.java:749)	at org.joget.apps.form.dao.FormDataDaoImpl.internalSaveOrUpdate(FormDataDaoImpl.java:464)	at org.joget.apps.form.dao.FormDataDaoImpl.saveOrUpdate(FormDataDaoImpl.java:443)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)2012-06-12 00:02:33,206: suspend() for transaction 192.168.2.7.tm0001500023	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)	at $Proxy26.saveOrUpdate(Unknown Source)	at org.joget.apps.app.service.AppServiceImpl.storeFormData(AppServiceImpl.java:1078)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy37.storeFormData(Unknown Source)	at org.joget.apps.form.lib.DefaultFormBinder.store(DefaultFormBinder.java:85)	at org.joget.apps.form.lib.WorkflowFormBinder.store(WorkflowFormBinder.java:83)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:407)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.executeFormStoreBinders(FormService.java:384)	at org.joget.apps.form.service.FormService.submitForm(FormService.java:250)	at org.joget.apps.app.service.AppServiceImpl.submitForm(AppServiceImpl.java:931)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy37.submitForm(Unknown Source)	at org.joget.apps.app.model.TestAppService.testSubForms(TestAppService.java:417)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.test.context.junit4.SpringTestMethod.invoke(SpringTestMethod.java:160)	at org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:233)	at org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333)	at org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217)	at org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197)	at org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143)	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:160)	at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)	at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)	at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)	at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)	at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:97)	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)Caused by: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set	at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57)	at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)	at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)	at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2090)	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2086)	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1311)	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)	at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	... 89 more2012-06-12 00:02:33,221: Error performing load commandorg.hibernate.ObjectNotFoundException: No row with the given identifier exists: [app_fd_testFormB#b001]	at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:386)	at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:145)	at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:179)	at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103)	at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:879)	at org.hibernate.impl.SessionImpl.load(SessionImpl.java:796)	at org.springframework.orm.hibernate3.HibernateTemplate$4.doInHibernate(HibernateTemplate.java:588)	at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)	at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)	at org.springframework.orm.hibernate3.HibernateTemplate.load(HibernateTemplate.java:582)	at org.springframework.orm.hibernate3.HibernateTemplate.load(HibernateTemplate.java:576)	at org.joget.apps.form.dao.FormDataDaoImpl.internalLoad(FormDataDaoImpl.java:169)	at org.joget.apps.form.dao.FormDataDaoImpl.loadWithoutTransaction(FormDataDaoImpl.java:137)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy26.loadWithoutTransaction(Unknown Source)	at org.joget.apps.app.service.AppServiceImpl.internalLoadFormData(AppServiceImpl.java:992)	at org.joget.apps.app.service.AppServiceImpl.loadFormDataWithoutTransaction(AppServiceImpl.java:976)	at org.joget.apps.app.service.AppServiceImpl.storeFormData(AppServiceImpl.java:1064)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy37.storeFormData(Unknown Source)	at org.joget.apps.form.lib.DefaultFormBinder.store(DefaultFormBinder.java:85)	at org.joget.apps.form.lib.WorkflowFormBinder.store(WorkflowFormBinder.java:83)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:407)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.executeFormStoreBinders(FormService.java:384)	at org.joget.apps.form.service.FormService.submitForm(FormService.java:250)	at org.joget.apps.app.service.AppServiceImpl.submitForm(AppServiceImpl.java:931)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy37.submitForm(Unknown Source)	at org.joget.apps.app.model.TestAppService.testSubForms(TestAppService.java:417)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.test.context.junit4.SpringTestMethod.invoke(SpringTestMethod.java:160)	at org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:233)	at org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333)	at org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217)	at org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197)	at org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143)	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:160)	at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)	at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)	at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)	at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)	at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:97)	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)2012-06-12 00:02:33,221: resume ( com.atomikos.icatch.imp.CompositeTransactionImp@8b5693a8 ) done for transaction 192.168.2.7.tm00015000232012-06-12 00:02:33,221: suspend() for transaction 192.168.2.7.tm00015000232012-06-12 00:02:33,221: configuring from resource: /hibernate.cfg.xml2012-06-12 00:02:33,221: Configuration resource: /hibernate.cfg.xml2012-06-12 00:02:33,237: Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately2012-06-12 00:02:33,237: Configured SessionFactory: null2012-06-12 00:02:33,237: Reading mappings from file: C:\Users\gwtam\wflow\app_forms\FormRow_testFormB.hbm.xml2012-06-12 00:02:33,252: Mapping class: FormRow_testFormB -> app_fd_testFormB2012-06-12 00:02:33,252: closing2012-06-12 00:02:33,252: configuring from resource: /hibernate.cfg.xml2012-06-12 00:02:33,252: Configuration resource: /hibernate.cfg.xml2012-06-12 00:02:33,252: Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately2012-06-12 00:02:33,252: Configured SessionFactory: null2012-06-12 00:02:33,252: Reading mappings from resource: org/joget/apps/form/model/FormRow.hbm.xml2012-06-12 00:02:33,252: Reading mappings from resource: org/joget/apps/form/model/FormRow.hbm.xml2012-06-12 00:02:33,268: Mapping class: FormRow -> app_fd2012-06-12 00:02:33,284: Reading mappings from file: C:\Users\gwtam\wflow\app_forms\FormRow_testFormB.hbm.xml2012-06-12 00:02:33,315: Mapping class: FormRow_testFormB -> app_fd_testFormB2012-06-12 00:02:33,315: Building new Hibernate SessionFactory2012-06-12 00:02:33,315: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider2012-06-12 00:02:33,315: RDBMS: Microsoft SQL Server, version: 10.50.25002012-06-12 00:02:33,315: JDBC driver: Microsoft SQL Server JDBC Driver 3.0, version: 3.0.1301.1012012-06-12 00:02:33,315: Using dialect: org.hibernate.dialect.SQLServerDialect2012-06-12 00:02:33,315: Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory2012-06-12 00:02:33,315: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)2012-06-12 00:02:33,315: Automatic flush during beforeCompletion(): disabled2012-06-12 00:02:33,315: Automatic session close at end of transaction: disabled2012-06-12 00:02:33,315: Scrollable result sets: enabled2012-06-12 00:02:33,315: JDBC3 getGeneratedKeys(): enabled2012-06-12 00:02:33,315: Connection release mode: auto2012-06-12 00:02:33,315: Default batch fetch size: 12012-06-12 00:02:33,315: Generate SQL with comments: disabled2012-06-12 00:02:33,315: Order SQL updates by primary key: disabled2012-06-12 00:02:33,315: Order SQL inserts for batching: disabled2012-06-12 00:02:33,315: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory2012-06-12 00:02:33,315: Using ASTQueryTranslatorFactory2012-06-12 00:02:33,315: Query language substitutions: {}2012-06-12 00:02:33,315: JPA-QL strict compliance: disabled2012-06-12 00:02:33,315: Second-level cache: enabled2012-06-12 00:02:33,315: Query cache: disabled2012-06-12 00:02:33,315: Cache provider: org.hibernate.cache.NoCacheProvider2012-06-12 00:02:33,315: Optimize cache for minimal puts: disabled2012-06-12 00:02:33,315: Structured second-level cache entries: disabled2012-06-12 00:02:33,315: Statistics: disabled2012-06-12 00:02:33,315: Deleted entity synthetic identifier rollback: disabled2012-06-12 00:02:33,315: Default entity-mode: pojo2012-06-12 00:02:33,315: Named query checking : enabled2012-06-12 00:02:33,330: building session factory2012-06-12 00:02:33,330: Not binding factory to JNDI, no JNDI name configured2012-06-12 00:02:33,330: Running hbm2ddl schema update2012-06-12 00:02:33,330: fetching database metadata2012-06-12 00:02:33,330: updating schema2012-06-12 00:02:33,362: table found: jwdb.dbo.app_fd_testFormB2012-06-12 00:02:33,362: columns: [id, c_b1, c_aid, c_b2, c_id, datemodified, datecreated, c_cid]2012-06-12 00:02:33,362: foreign keys: []2012-06-12 00:02:33,362: indexes: [pk__app_fd_t__3213e83f7073af84]2012-06-12 00:02:33,362: schema update completeJun 12, 2012 12:02:33 AM org.joget.apps.form.dao.FormDataDaoImpl getHibernateTemplateINFO:   --- Form FormRow_testFormB hibernate template created2012-06-12 00:02:33,362: resume ( com.atomikos.icatch.imp.CompositeTransactionImp@8b5693a8 ) done for transaction 192.168.2.7.tm00015000232012-06-12 00:02:33,362: configuring from resource: /hibernate.cfg.xml2012-06-12 00:02:33,362: Configuration resource: /hibernate.cfg.xml2012-06-12 00:02:33,377: Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately2012-06-12 00:02:33,377: Configured SessionFactory: null2012-06-12 00:02:33,377: Reading mappings from file: C:\Users\gwtam\wflow\app_forms\FormRow_testFormB.hbm.xml2012-06-12 00:02:33,393: Mapping class: FormRow_testFormB -> app_fd_testFormB2012-06-12 00:02:33,393: closing2012-06-12 00:02:33,393: configuring from resource: /hibernate.cfg.xml2012-06-12 00:02:33,393: Configuration resource: /hibernate.cfg.xml2012-06-12 00:02:33,408: Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately2012-06-12 00:02:33,408: Configured SessionFactory: null2012-06-12 00:02:33,408: Reading mappings from resource: org/joget/apps/form/model/FormRow.hbm.xml2012-06-12 00:02:33,408: Reading mappings from resource: org/joget/apps/form/model/FormRow.hbm.xml2012-06-12 00:02:33,424: Mapping class: FormRow -> app_fd2012-06-12 00:02:33,440: Reading mappings from file: C:\Users\gwtam\wflow\app_forms\FormRow_testFormB.hbm.xml2012-06-12 00:02:33,455: Mapping class: FormRow_testFormB -> app_fd_testFormB2012-06-12 00:02:33,455: Building new Hibernate SessionFactory2012-06-12 00:02:33,455: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider2012-06-12 00:02:33,455: SQL Error: 0, SQLState: null2012-06-12 00:02:33,455: Unable to register transaction context listener2012-06-12 00:02:33,455: Could not obtain connection metadatajava.sql.SQLException: Unable to register transaction context listener	at org.apache.commons.dbcp.managed.TransactionContext.addTransactionContextListener(TransactionContext.java:119)	at org.apache.commons.dbcp.managed.ManagedConnection.updateTransactionStatus(ManagedConnection.java:104)	at org.apache.commons.dbcp.managed.ManagedConnection.<init>(ManagedConnection.java:55)	at org.apache.commons.dbcp.managed.ManagedDataSource.getConnection(ManagedDataSource.java:77)	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)	at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82)	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)	at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2090)	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2086)	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1311)	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)	at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$CglibSubclassCreator$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:156)	at org.joget.apps.form.dao.FormDataDaoImpl$$EnhancerByCGLIB$$c948f76a.loadCustomSessionFactory(<generated>)	at org.joget.apps.form.dao.FormDataDaoImpl.createHibernateTemplate(FormDataDaoImpl.java:900)	at org.joget.apps.form.dao.FormDataDaoImpl.getHibernateTemplate(FormDataDaoImpl.java:749)	at org.joget.apps.form.dao.FormDataDaoImpl.internalSaveOrUpdate(FormDataDaoImpl.java:464)	at org.joget.apps.form.dao.FormDataDaoImpl.saveOrUpdate(FormDataDaoImpl.java:443)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)	at $Proxy26.saveOrUpdate(Unknown Source)	at org.joget.apps.app.service.AppServiceImpl.storeFormData(AppServiceImpl.java:1078)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy37.storeFormData(Unknown Source)	at org.joget.apps.form.lib.DefaultFormBinder.store(DefaultFormBinder.java:85)	at org.joget.apps.form.lib.WorkflowFormBinder.store(WorkflowFormBinder.java:83)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:407)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.recursiveExecuteFormStoreBinders(FormService.java:396)	at org.joget.apps.form.service.FormService.executeFormStoreBinders(FormService.java:384)	at org.joget.apps.form.service.FormService.submitForm(FormService.java:250)	at org.joget.apps.app.service.AppServiceImpl.submitForm(AppServiceImpl.java:931)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at $Proxy37.submitForm(Unknown Source)	at org.joget.apps.app.model.TestAppService.testSubForms(TestAppService.java:417)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.test.context.junit4.SpringTestMethod.invoke(SpringTestMethod.java:160)	at org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:233)	at org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333)	at org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217)	at org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197)	at org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143)	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:160)	at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)	at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)	at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)	at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)	at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:97)	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)Caused by: java.lang.IllegalStateException: wrong state: TERMINATED	at com.atomikos.icatch.imp.CoordinatorImp.registerSynchronization(CoordinatorImp.java:655)	at com.atomikos.icatch.imp.TransactionStateHandler.registerSynchronization(TransactionStateHandler.java:146)	at com.atomikos.icatch.imp.CompositeTransactionImp.registerSynchronization(CompositeTransactionImp.java:248)	at com.atomikos.icatch.jta.TransactionImp.registerSynchronization(TransactionImp.java:175)	at org.apache.commons.dbcp.managed.TransactionContext.addTransactionContextListener(TransactionContext.java:107)	... 102 more
  • No labels