[jBPM Users] - Re: jBPM4 and JBoss IDM
by jeff.yuchang
Hi,
below is the step to use jboss idm in jBPM 4.1 manually.
1. Download the JBoss Identity IDM 1.0.0.Beta1 from here http://repository.jboss.com/maven2/org/jboss/identity/idm/jbossidm/1.0.0..... (Sorry for that didn't put this distribution into the download page yet, will do it in the future).
2. Extract the zip ball, update the build.properties file, to config your database, jboss.home etc.
3. Go to the jboss folder, run: ant install.jbossidm.into.jboss to install the jbossidm.
4. Go to the JBoss AS (which jbpm 4.1 was deployed to)/server/$config (like default)/deploy/jbpm/jbpm-service.sar/jbpm.cfg.xml
Replace the
with
5. Start the AS server, you should be ready to go.
Sorry for the inconvenience, I will work on this task later then.. Please let you know if you have any other issues.
*NB, the jBPM console is using the jbpm built-in identity, if you want to change that, you need to add another application-policy in the jbpm-service.sar/META-INF/jboss-service.xml
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256846#4256846
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256846
14 years, 9 months
[jBPM Users] - jBPM 4.1 - Spring Problem
by nilspreusker
Hi,
I'm trying to integrate jBPM 4.1 with an existing spring 2.5.5 app and I'm getting the following exceptions:
| 1) Error creating bean with name 'jbpmConfiguration' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.jbpm.pvm.internal.cfg.SpringConfiguration]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
|
| 2) couldn't parse xml document : org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
I've been trying to figure out what is causing this, but got completely stuck at this point. I'm assuming that something is wrong with my jbpm.cfg.xml, but the same exception occurs with an empty jbpm.cfg.xml or any other config I've tested (and I've used working ones from a jBPM 4 projects).
Maybe someone has seen this before? Here is the whole stack trace:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbpmConfiguration' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.jbpm.pvm.internal.cfg.SpringConfiguration]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
| at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
| at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
| at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
| at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
| at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
| at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
| at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
| at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
| at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
| at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
| at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
| at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
| at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
| at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
| at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
| at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
| at org.apache.catalina.core.StandardService.start(StandardService.java:516)
| at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
| Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.jbpm.pvm.internal.cfg.SpringConfiguration]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
| at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
| at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
| at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
| ... 41 more
| Caused by: java.lang.ExceptionInInitializerError
| at org.jbpm.pvm.internal.env.JbpmConfigurationParser.<init>(JbpmConfigurationParser.java:47)
| at org.jbpm.pvm.internal.env.JbpmConfigurationParser.<clinit>(JbpmConfigurationParser.java:50)
| at org.jbpm.pvm.internal.cfg.JbpmConfiguration.parse(JbpmConfiguration.java:178)
| at org.jbpm.pvm.internal.cfg.JbpmConfiguration.setInputStream(JbpmConfiguration.java:145)
| at org.jbpm.pvm.internal.cfg.SpringConfiguration.<init>(SpringConfiguration.java:65)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
| at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
| ... 43 more
| Caused by: org.jbpm.api.JbpmException:
| error: couldn't parse xml document : org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
| at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:168)
| at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:141)
| at org.jbpm.pvm.internal.xml.Parse.checkErrors(Parse.java:189)
| at org.jbpm.pvm.internal.wire.xml.WireParser.<clinit>(WireParser.java:279)
| ... 53 more
| Caused by: org.jbpm.api.JbpmException
| at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:164)
| ... 56 more
| Caused by: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
| at org.apache.xerces.dom.CoreDocumentImpl.createElementNS(Unknown Source)
| at org.apache.xerces.dom.DOMImplementationImpl.createDocument(Unknown Source)
| at org.jbpm.pvm.internal.xml.Parser.buildDom(Parser.java:443)
| at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:389)
| at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:157)
| ... 54 more
| Sep 24, 2009 11:14:16 AM org.apache.catalina.core.StandardContext listenerStart
| SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
| org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbpmConfiguration' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.jbpm.pvm.internal.cfg.SpringConfiguration]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
| at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
| at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
| at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
| at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
| at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
| at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
| at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
| at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
| at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
| at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
| at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
| at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
| at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
| at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
| at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
| at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
| at org.apache.catalina.core.StandardService.start(StandardService.java:516)
| at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
| Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.jbpm.pvm.internal.cfg.SpringConfiguration]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
| at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
| at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
| at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
| ... 41 more
| Caused by: java.lang.ExceptionInInitializerError
| at org.jbpm.pvm.internal.env.JbpmConfigurationParser.<init>(JbpmConfigurationParser.java:47)
| at org.jbpm.pvm.internal.env.JbpmConfigurationParser.<clinit>(JbpmConfigurationParser.java:50)
| at org.jbpm.pvm.internal.cfg.JbpmConfiguration.parse(JbpmConfiguration.java:178)
| at org.jbpm.pvm.internal.cfg.JbpmConfiguration.setInputStream(JbpmConfiguration.java:145)
| at org.jbpm.pvm.internal.cfg.SpringConfiguration.<init>(SpringConfiguration.java:65)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
| at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
| ... 43 more
| Caused by: org.jbpm.api.JbpmException:
| error: couldn't parse xml document : org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
| at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:168)
| at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:141)
| at org.jbpm.pvm.internal.xml.Parse.checkErrors(Parse.java:189)
| at org.jbpm.pvm.internal.wire.xml.WireParser.<clinit>(WireParser.java:279)
| ... 53 more
| Caused by: org.jbpm.api.JbpmException
| at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:164)
| ... 56 more
| Caused by: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
| at org.apache.xerces.dom.CoreDocumentImpl.createElementNS(Unknown Source)
| at org.apache.xerces.dom.DOMImplementationImpl.createDocument(Unknown Source)
| at org.jbpm.pvm.internal.xml.Parser.buildDom(Parser.java:443)
| at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:389)
| at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:157)
| ... 54 more
Unfortunately the exceptions are missing crucial bits of information ("INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified", file, location and character could be displayed here).
Anyway, this is my jbpm.cfg.xml:
<?xml version="1.0" encoding="UTF-8">
|
| <jbpm-configuration>
|
| <import resource="jbpm.jpdl.cfg.xml" />
|
| <import resource="jbpm.identity.cfg.xml" />
|
| <process-engine-context>
|
| <repository-service />
| <repository-cache />
| <execution-service />
| <history-service />
| <management-service />
| <identity-service />
| <task-service />
|
| <script-manager default-expression-language="juel"
| default-script-language="juel"
| read-contexts="execution, environment, process-engine, spring"
| write-context="">
| <script-language name="juel"
| factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
| </script-manager>
|
| <!-- <authentication /> -->
|
| <id-generator />
| <types resource="jbpm.variable.types.xml" />
|
| <address-resolver />
|
| <business-calendar>
| <monday hours="9:00-12:00 and 12:30-17:00" />
| <tuesday hours="9:00-12:00 and 12:30-17:00" />
| <wednesday hours="9:00-12:00 and 12:30-17:00" />
| <thursday hours="9:00-12:00 and 12:30-17:00" />
| <friday hours="9:00-12:00 and 12:30-17:00" />
| <holiday period="01/07/2008 - 31/08/2008" />
| </business-calendar>
|
| <mail-template name='task-notification'>
| <to users="${task.assignee}" />
| <subject>${task.name}</subject>
| <text><![CDATA[Hi ${task.assignee},
| Task "${task.name}" has been assigned to you.
| ${task.description}
|
| Sent by JBoss jBPM
| ]]></text>
| </mail-template>
|
| <mail-template name='task-reminder'>
| <to users="${task.assignee}" />
| <subject>${task.name}</subject>
| <text><![CDATA[Hey ${task.assignee},
| Do not forget about task "${task.name}".
| ${task.description}
|
| Sent by JBoss jBPM
| ]]></text>
| </mail-template>
|
| <command-service>
| <retry-interceptor />
| <environment-interceptor />
| <spring-transaction-interceptor />
| </command-service>
| </process-engine-context>
|
| <transaction-context>
| <repository-session />
| <db-session />
| <message-session />
| <timer-session />
| <history-session />
| <mail-session>
| <mail-server>
| <session-properties resource="jbpm.mail.properties" />
| </mail-server>
| </mail-session>
| <hibernate-session current="true" />
| </transaction-context>
| </jbpm-configuration>
... and finally, this is the configuration in the application context:
| <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
| ...
| <!-- jBPM configuration (1 of 2) -->
| <property name="configLocations">
| <list>
| <value>classpath:jbpm/hibernate.cfg.xml</value>
| </list>
| </property>
| <property name="mappingLocations">
| <list>
| <!-- jBPM Mappings -->
| <value>classpath:jbpm.execution.hbm.xml</value>
| <value>classpath:jbpm.repository.hbm.xml</value>
| <value>classpath:jbpm.task.hbm.xml</value>
| <value>classpath:jbpm.history.hbm.xml</value>
| </list>
| </property>
| <!-- End of jBPM configuration (1 of 2) -->
| </bean>
| ...
| <bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
| <constructor-arg value="jbpm/jbpm.cfg.xml" />
| </bean>
|
| <bean id="processEngine" factory-bean="jbpmConfiguration" factory-method="buildProcessEngine" />
| <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
| <bean id="executionService" factory-bean="processEngine" factory-method="getExecutionService" />
| <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
| ...
|
I appreciate your help! Cheers, Nils
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256844#4256844
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256844
14 years, 9 months
[jBPM Users] - jBPM stops processing
by hauch
I'm running jBPM in version 3.2.2 and use MySQL as database.
If I try to store a variable which exceeds the max size for TEXT on the executioncontext (65536), I get some exceptions:
anonymous wrote :
| 2009-09-23 15:44:50,045 ERROR [org.jbpm.job.executor.JobExecutorThread] problem committing job execution transaction
| org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.JbpmException: couldn't commit JTA transaction}
| at org.jbpm.svc.Services.close(Services.java:245)
| at org.jbpm.JbpmContext.close(JbpmContext.java:139)
| at org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:184)
| at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:64)
| Caused by: org.jbpm.JbpmException: couldn't commit JTA transaction
| at org.jbpm.persistence.jta.JtaDbPersistenceService.endJtaTransaction(JtaDbPersistenceService.java:78)
| at org.jbpm.persistence.jta.JtaDbPersistenceService.close(JtaDbPersistenceService.java:37)
| at org.jbpm.svc.Services.close(Services.java:225)
| ... 3 more
| Caused by: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state
| at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1401)
| at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
| at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
| at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
| at org.jbpm.persistence.jta.JtaDbPersistenceService.endJtaTransaction(JtaDbPersistenceService.java:76)
| ... 5 more
| Caused by: org.hibernate.exception.GenericJDBCException: could not update: [org.jbpm.context.exe.variableinstance.StringInstance#400587]
| at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2425)
| at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
| at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:142)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
| at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
| at org.hibernate.transaction.CacheSynchronization.beforeCompletion(CacheSynchronization.java:59)
| at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
| at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:247)
| at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
| at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
| at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1389)
| ... 9 more
| Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'STRINGVALUE_' at row 1
| at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3489)
| at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
| at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)
| at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)
| at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542)
| at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1734)
| at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2019)
| at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1937)
| at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1922)
| at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:95)
| at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407)
| ... 25 more
|
Fair enough - I asked for it.
My problem is that after these exceptions processing of all running instances stops. New instances are left in start state.
The log is - a part from above - utterly empty.
I am able to create new instances, so the db is still responding.
I don't if it means anything but (as indicated by the stacktrace) the execution is triggered from the JobExecutor.
Is this a known phenomenon/expected behaviour - and can I do anything to prevent it?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256838#4256838
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256838
14 years, 9 months
[jBPM Users] - Re: Start time of process instances
by sebastian.s
I am not too familiar with the source code but I took a look. Here's the interface HistoryProcessInstance. Since there is also a state active I suppose you can also access active process instances over this interface?
| public interface HistoryProcessInstance {
|
| /** when the full process instance has come to an end */
| String STATE_ENDED = "ended";
|
| /** when the full process instance is still active */
| String STATE_ACTIVE = "active";
|
| ..
|
| /** when the process instance started */
| Date getStartTime();
|
| ..
|
| }
|
The interface ProcessInstance just extends Execution:
| public interface ProcessInstance extends Execution {
| }
|
I checked and there is no getter or attribute for the start time.
So for me this means: When I work with the ExecutionService and a process instance is returned I cannot easily get the start time but I would have to do a query on the HistoryService for this instance to get the start time?
If I don't get anything wrong this turns out to be rather a discussion about the API for the development forum than for the users' forum.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256792#4256792
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256792
14 years, 9 months
[jBPM Users] - Re: jbpm 4.1 - Task assignment
by makarandk502
Hi,
Thanks for the reply.
I have tried exactly same fork/join approach using jBPM 4.1, JBOSS 5.0 etc
Can you please guide me in this ?
I am getting following error
org.jboss.resteasy.spi.UnhandledException: org.hibernate.LazyInitializationException: could not initialize proxy - no Session
| org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
| org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
| org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
| org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
| org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
| org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
| org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
|
| root cause
|
| org.hibernate.LazyInitializationException: could not initialize proxy - no Session
| org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86)
| org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:140)
| org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
| org.jbpm.pvm.internal.model.ExecutionImpl_$$_javassist_4.getId(ExecutionImpl_$$_javassist_4.java)
| org.jbpm.integration.console.ModelAdaptor.adoptTask(ModelAdaptor.java:147)
| org.jbpm.integration.console.TaskManagementImpl.adoptTasks(TaskManagementImpl.java:69)
| org.jbpm.integration.console.TaskManagementImpl.getAssignedTasks(TaskManagementImpl.java:49)
| org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:99)
| sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source)
| sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| java.lang.reflect.Method.invoke(Method.java:597)
| org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
| org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
| org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
| org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
| org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
| org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
| org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
| org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
| org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
|
| note The full stack trace of the root cause is available in the JBoss Web/2.1.1.GA logs.
|
|
| --------------------------------------------------------------------------------
|
| JBoss Web/2.1.1.GA
|
|
jpdl attached :
| <?xml version="1.0" encoding="UTF-8" ?>
| - <process name="SubProcessFill" xmlns="http://jbpm.org/4.0/jpdl">
| - <start g="214,171,31,24" name="start1">
| <transition g="-43,-18" name="to fork1" to="fork1" />
| </start>
| - <fork g="215,273,44,34" name="fork1">
| <transition g="-44,-18" name="to task1" to="task1" />
| <transition g="-44,-18" name="to task2" to="task2" />
| <transition g="-44,-18" name="to task3" to="task3" />
| </fork>
| <end g="229,568,33,16" name="end1" />
| - <task assignee="peter" form="tcs/com/java/giveAppDetails.ftl" g="101,379,66,29" name="task1">
| <transition g="-41,-18" name="to join1" to="join1" />
| </task>
| - <task assignee="peter" form="tcs/com/java/giveAppDetails.ftl" g="222,378,47,27" name="task2">
| <transition g="-41,-18" name="to join1" to="join1" />
| </task>
| - <task assignee="peter" form="tcs/com/java/giveAppDetails.ftl" g="342,378,63,26" name="task3">
| <transition g="-41,-18" name="to join1" to="join1" />
| </task>
| - <join g="227,465,39,35" name="join1">
| <transition g="-42,-18" name="to end1" to="end1" />
| </join>
| </process>
|
----
-Regards
Makarand
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256762#4256762
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256762
14 years, 9 months