cancel
Showing results for 
Search instead for 
Did you mean: 

Running Activiti Engine with SpringFramework 3.2.4

limcheekin
Champ on-the-rise
Champ on-the-rise
Hi there,

First of all, I know that Activiti 5.13 run with Spring 3.1.2. I'm developer of the Grails Activiti Plugin, the plugin is cease to execute in latest version of Grails 2.3.0 which bundled with Spring 3.2.4.

May I know any chance to run Activiti 5.13 with  Spring 3.2.4
I configured the dependencies of the Activiti using Spring 3.2.4 instead of 3.1.2, but not luck, I unable to make it work and facing the following error while calling the IdentityService API and attached here is the dependency report:
Error initializing the application: null
java.lang.NullPointerException
        at org.activiti.engine.impl.db.DbSqlSession$CheckedDeleteOperation.clearCache(DbSqlSession.j
ava:215)
        at org.activiti.engine.impl.db.DbSqlSession.removeUnnecessaryOperations(DbSqlSession.java:46
7)
        at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:423)
        at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:169
)
        at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:116)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInte
rceptor.java:70)
        at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInter
ceptor.java:42)
        at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.jav
a:40)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
        at org.activiti.engine.impl.IdentityServiceImpl.deleteGroup(IdentityServiceImpl.java:91)
        at VacationRequestBootStrap$_createUsersAndGroups_closure3.doCall(VacationRequestBootStrap.g
roovy:50)
        at VacationRequestBootStrap.createUsersAndGroups(VacationRequestBootStrap.groovy:49)
        at VacationRequestBootStrap$_closure1_closure4_closure6.doCall(VacationRequestBootStrap.groo
vy:41)
        at grails.util.Environment$EnvironmentBlockEvaluator.execute(Environment.java:321)
        at grails.util.Environment.executeForEnvironment(Environment.java:302)
        at grails.util.Environment.executeForCurrentEnvironment(Environment.java:277)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
schema export unsuccessful
org.h2.jdbc.JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdow
n, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-170]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
        at org.h2.message.DbException.get(DbException.java:169)
        at org.h2.message.DbException.get(DbException.java:146)
        at org.h2.message.DbException.get(DbException.java:135)
        at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1391)
        at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1366)
        at org.h2.jdbc.JdbcConnection.getAutoCommit(JdbcConnection.java:424)
        at java.lang.Thread.run(Thread.java:662)

Best regards,
Chee Kin
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Is it possible to create jUnit test according to
http://forums.activiti.org/content/sticky-how-write-unit-test?

Thanks
Martin

limcheekin
Champ on-the-rise
Champ on-the-rise
Hi there,

Thanks for writing. This issue had been found as a defect caused by Grails. It is not relevant to Activiti Engine.

It is being tracked at https://github.com/limcheekin/activiti/issues/18

Best regards,
Chee Kin