cancel
Showing results for 
Search instead for 
Did you mean: 

Error while loading users in DemoDataGenerator in MSSQL server

mbalaji2000
Champ in-the-making
Champ in-the-making
Hi
I am trying to use the ACTIVITI api in MSSQL SERVER 2008, while i try to use the activiti-explorer application's DemoDataGenerator bean im getting the below error in a particular senario.
If i run this application as such im not getting any error and its able to run.
Senarios when i get this error.
If I try to add the demo apps xml file and other needfull files with an existing application im getting this below error.
Am not sure where am missing or going wrong.
Error
### Error querying database.  Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'pictureByteArrayRef' of 'org.activiti.engine.impl.persistence.entity.UserEntity@4506f' with value 'ByteArrayRef[id=12501, name=null, entity=null]' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'pictureByteArrayRef' in 'class org.activiti.engine.impl.persistence.entity.UserEntity'
### The error may involve org.activiti.engine.impl.persistence.entity.UserEntity.selectUserById-Inline
### The error occurred while setting parameters
### Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'pictureByteArrayRef'
regards
Balaji M

[pool-2-thread-1] ERROR org.springframework.web.context.ContextLoader  - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoDataGenerator' defined in ServletContext resource [/WEB-INF/activiti-standalone-context.xml]: Invocation of init method failed; nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database.  Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'pictureByteArrayRef' of 'org.activiti.engine.impl.persistence.entity.UserEntity@4506f' with value 'ByteArrayRef[id=12501, name=null, entity=null]' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'pictureByteArrayRef' in 'class org.activiti.engine.impl.persistence.entity.UserEntity'
### The error may involve org.activiti.engine.impl.persistence.entity.UserEntity.selectUserById-Inline
### The error occurred while setting parameters
### Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'pictureByteArrayRef' of 'org.activiti.engine.impl.persistence.entity.UserEntity@4506f' with value 'ByteArrayRef[id=12501, name=null, entity=null]' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'pictureByteArrayRef' in 'class org.activiti.engine.impl.persistence.entity.UserEntity'
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
   at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
   at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.ibatis.exceptions.PersistenceException:
1 REPLY 1

danilo_mendez
Champ in-the-making
Champ in-the-making
I set this values
# demo data properties
create.demo.users=false
create.demo.definitions=false
create.demo.models=false
create.demo.reports=false

in engine.properties