cancel
Showing results for 
Search instead for 
Did you mean: 

Problems executing twice exclusive gateway

carls127
Champ in-the-making
Champ in-the-making
Hello,

I'm trying execute twice a task with exclusive gateway but I recieved next error:


25 feb 2014 - 21:47:15 [ERROR] interceptor.CommandContext - Error while closing command context
org.apache.ibatis.exceptions.IbatisException:
### Error querying database.  Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'byteArrayRef' of 'VariableInstanceEntity[id=3825, name=input, type=string]' with value 'ByteArrayRef[id=null, name=null, entity=null]' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'byteArrayRef' in 'class org.activiti.engine.impl.persistence.entity.VariableInstanceEntity'
### The error may involve org.activiti.engine.impl.persistence.entity.VariableInstanceEntity.selectVariablesByExecutionId-Inline
### The error occurred while setting parameters
### Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'byteArrayRef' of 'VariableInstanceEntity[id=3825, name=input, type=string]' with value 'ByteArrayRef[id=null, name=null, entity=null]' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'byteArrayRef' in 'class org.activiti.engine.impl.persistence.entity.VariableInstanceEntity'
   at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)
   at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:61)
   at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:53)
   at org.activiti.engine.impl.db.DbSqlSession.selectListWithRawParameter(DbSqlSession.java:286)
   at org.activiti.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:277)

…..

The first execution(reject with input value == NO) was successfully but when I tried execute second execution(aceptance with input value == SI) to complete task again the last error was triggered

I add the bpm file and java class, can any help me please?
3 REPLIES 3

miguelohz
Champ in-the-making
Champ in-the-making
Hi,
I have a similar issue. My process has a loop and when I run  it in activity explorer it works fine, but if I call it from a java application I get the same error when the process tries to execute a task a second time after the loop iterate.
Is there any special consideration to run it in one way or another?

trademak
Star Contributor
Star Contributor
Can you please create a unit test showing your problem and create a JIRA issue? That would make it easier for use to reproduce the issue and fix it if necessary.

Thanks,

carls127
Champ in-the-making
Champ in-the-making
Hi Tijs,

I've solved this issue, thanks for your support.