cancel
Showing results for 
Search instead for 
Did you mean: 

A strange mybatis exception in a very simple starter case

netsnakecn
Champ in-the-making
Champ in-the-making
Hi,all
I'm a newbie in activiti, when I deploy a very simple activit service in Spring, flowing officer guide, I got a very strange exception:
### Error updating database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'id ' in 'class org.activiti.engine.impl.persistence.entity.ExecutionEntity'
### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.insertExecution-Inline
### The error occurred while setting parameters ### SQL: insert into ACT_RU_EXECUTION (ID_, REV_, PROC_INST_ID_, BUSINESS_KEY_, PROC_DEF_ID_, ACT_ID_, IS_ACTIVE_, IS_CONCURRENT_, IS_SCOPE_,IS_EVENT_SCOPE_, PARENT_ID_, SUPER_EXEC_, SUSPENSION_STATE_, CACHED_ENT_STATE_) values ( ?, 1, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) ### Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'id ' in 'class org.activiti.engine.impl.persistence.entity.ExecutionEntity'
org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23) org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:150) org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:137) org.activiti.engine.impl.db.DbSqlSession.flushInserts(DbSqlSession.java:538)

The system is running on Windows 7 64bit version, Tomcat 7.0.26, Spring 3.1.2, mybatis 3.2.0, activiti 5.13.
I checked the class org.activiti.engine.impl.persistence.entity.ExecutionEntity, found it have id property but it's inhert from super class VariableScopeImpl.
So I think it's very strange because in my own code, inhert property can be processed fine with mybatis.
Is there anything I missed?

Thanks a lot!
1 REPLY 1

netsnakecn
Champ in-the-making
Champ in-the-making
Ok, it's solved with mybatis 3.2.2.