AnsweredAssumed Answered

Activiti 5.12.1 not compatiable with Mybatis 3.2.2

Question asked by long_187 on May 9, 2013
Latest reply on May 14, 2013 by dguggi
Activiti 5.12.1 not compatiable with Mybatis 3.2.2 :


org.apache.ibatis.exceptions.PersistenceException:
### Error updating database.  Cause: org.apache.ibatis.reflection.ReflectionException: Illegal overloaded getter method with ambiguous type for property scope in class class org.activiti.engine.impl.persistence.entity.ExecutionEntity.  This breaks the JavaBeans specification and can cause unpredicatble results.
### Cause: org.apache.ibatis.reflection.ReflectionException: Illegal overloaded getter method with ambiguous type for property scope in class class org.activiti.engine.impl.persistence.entity.ExecutionEntity.  This breaks the JavaBeans specification and can cause unpredicatble results.
   at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:150) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:137) ~[mybatis-3.2.2.jar:3.2.2]
   at org.activiti.engine.impl.db.DbSqlSession.flushInserts(DbSqlSession.java:633) ~[activiti-engine-5.12.1.jar:5.12.1]
   at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:460) ~[activiti-engine-5.12.1.jar:5.12.1]
   at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:168) ~[activiti-engine-5.12.1.jar:5.12.1]
   at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:115) ~[activiti-engine-5.12.1.jar:5.12.1]
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:70) [activiti-engine-5.12.1.jar:5.12.1]
   at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42) [activiti-spring-5.12.1.jar:na]
   at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131) [spring-tx-3.2.2.RELEASE.jar:3.2.2.RELEASE]
   at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40) [activiti-spring-5.12.1.jar:na]
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31) [activiti-engine-5.12.1.jar:5.12.1]
   at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:66) [activiti-engine-5.12.1.jar:5.12.1]
   at com.tesla.framework.workflow.action.StartProcessInstanceAction.execute(StartProcessInstanceAction.java:61) [classes/:na]
   at com.tesla.framework.workflow.action.TeslaTestProcessTest.testStartProcess(TeslaTestProcessTest.java:73) [test-classes/:na]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_26]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_26]
   at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_26]
   at junit.framework.TestCase.runTest(TestCase.java:168) [junit-4.10.jar:na]
   at junit.framework.TestCase.runBare(TestCase.java:134) [junit-4.10.jar:na]
   at junit.framework.TestResult$1.protect(TestResult.java:110) [junit-4.10.jar:na]
   at junit.framework.TestResult.runProtected(TestResult.java:128) [junit-4.10.jar:na]
   at junit.framework.TestResult.run(TestResult.java:113) [junit-4.10.jar:na]
   at junit.framework.TestCase.run(TestCase.java:124) [junit-4.10.jar:na]
   at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-4.10.jar:na]
   at junit.framework.TestSuite.run(TestSuite.java:238) [junit-4.10.jar:na]
   at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) [junit-4.10.jar:na]
   at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) [.cp/:na]
   at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
Caused by: org.apache.ibatis.reflection.ReflectionException: Illegal overloaded getter method with ambiguous type for property scope in class class org.activiti.engine.impl.persistence.entity.ExecutionEntity.  This breaks the JavaBeans specification and can cause unpredicatble results.
   at org.apache.ibatis.reflection.Reflector.resolveGetterConflicts(Reflector.java:136) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.reflection.Reflector.addGetMethods(Reflector.java:110) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.reflection.Reflector.<init>(Reflector.java:62) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.reflection.Reflector.forClass(Reflector.java:463) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.reflection.MetaClass.<init>(MetaClass.java:34) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.reflection.MetaClass.forClass(MetaClass.java:38) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.reflection.wrapper.BeanWrapper.<init>(BeanWrapper.java:37) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.reflection.MetaObject.<init>(MetaObject.java:51) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.reflection.MetaObject.forObject(MetaObject.java:59) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.session.Configuration.newMetaObject(Configuration.java:430) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.scripting.xmltags.DynamicContext.<init>(DynamicContext.java:43) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.scripting.xmltags.DynamicSqlSource.getBoundSql(DynamicSqlSource.java:36) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.mapping.MappedStatement.getBoundSql(MappedStatement.java:265) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.executor.statement.BaseStatementHandler.<init>(BaseStatementHandler.java:61) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.executor.statement.PreparedStatementHandler.<init>(PreparedStatementHandler.java:36) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.executor.statement.RoutingStatementHandler.<init>(RoutingStatementHandler.java:42) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.session.Configuration.newStatementHandler(Configuration.java:448) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:43) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:100) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75) ~[mybatis-3.2.2.jar:3.2.2]
   at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:148) ~[mybatis-3.2.2.jar:3.2.2]
   … 32 common frames omitted


In class org.activiti.engine.impl.persistence.entity.ExecutionEntity have to method:
public ScopeImp getScope();
public boolean isScope();

mybe this is the reason of error.

Outcomes