[jBPM Users] - Re: EventListener questions
by jbarrez
anonymous wrote : I have to say that I don't understand the workaround you have proposed. I've been re-thinking this and it came to my mind that thinking in a transition-wise way actually I would have to get the activitiy the transition originates from and than retrieve the corresponding task since it's an activity of type task, right?
Yes, you're correct. But this doesn't simplify the problem
anonymous wrote : Could you try to explain your proposition a bit more?
I was thinking something simple: attach an eventlistener to the task-end event. When the eventlistener is called, it simply sets the current task name/id/whatever as a process variable.
In the next task you can use this variable.
Like a said, this is a quick hack-aroo solution which can work until we enlarge the history event capabilities
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263949#4263949
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263949
16 years, 5 months
org.jbpm.pvm.internal.wire.WireException: couldn't initialize object 'org.jbpm.pvm.internal.repository.RepositorySessionImpl'
by Swapna Sangal
Hi All,
Im trying to integrate JBPM with OSGI using Equinox,
But getting error while create deployment ID in JBPM,
The following is the stack trace,
Nov 4, 2009 6:55:53 PM org.jbpm.internal.log.Jdk14Log info
INFO: exception while executing command
org.jbpm.pvm.internal.cmd.DeployCmd@186df0f
org.jbpm.pvm.internal.wire.WireException: couldn't initialize object
'org.jbpm.pvm.internal.repository.RepositorySessionImpl': couldn't
construct new 'null' with args null
at
org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(Object
Descriptor.java:233)
at
org.jbpm.pvm.internal.wire.WireContext.performInitialization(WireContext
.java:537)
at
org.jbpm.pvm.internal.wire.WireContext.initialize(WireContext.java:499)
at
org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:453)
at
org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:441)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:421)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:331)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:707)
at
org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:139
)
at
org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:130
)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:46)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:33)
at
org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandSe
rvice.java:42)
at
org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(Standard
TransactionInterceptor.java:54)
at
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInte
rceptor.java:46)
at
org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java
:55)
at
org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.ja
va:89)
at testosgi.SampleJbpmClient.initiate(SampleJbpmClient.java:38)
at testosgi.Activator.start(Activator.java:17)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleC
ontextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivato
r(BundleContextImpl.java:773)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
ontextImpl.java:754)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
st.java:352)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractB
undle.java:370)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framewor
k.java:1068)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles
(StartLevelManager.java:557)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(Start
LevelManager.java:464)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLev
el(StartLevelManager.java:248)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent
(StartLevelManager.java:445)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventMana
ger.java:220)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventMa
nager.java:330)
Caused by: org.jbpm.api.JbpmException: couldn't construct new 'null'
with args null
at
org.jbpm.pvm.internal.util.ReflectUtil.newInstance(ReflectUtil.java:224)
at
org.jbpm.pvm.internal.util.ReflectUtil.newInstance(ReflectUtil.java:193)
at
org.jbpm.pvm.internal.wire.descriptor.HibernateConfigurationDescriptor.c
onstruct(HibernateConfigurationDescriptor.java:61)
at
org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:473)
at
org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:452)
at
org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:441)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:421)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:331)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:707)
at
org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactoryDescriptor.
construct(HibernateSessionFactoryDescriptor.java:57)
at
org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:473)
at
org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:452)
at
org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:441)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:421)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:331)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:707)
at
org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:139
)
at
org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:130
)
at
org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescriptor.constru
ct(HibernateSessionDescriptor.java:63)
at
org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:473)
at
org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:452)
at
org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:441)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:421)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:331)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:707)
at
org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.autoWire(ObjectDe
scriptor.java:294)
at
org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(Object
Descriptor.java:225)
... 31 more
Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.getConstructor(Class.java:1629)
at
org.jbpm.pvm.internal.util.ReflectUtil.newInstance(ReflectUtil.java:214)
... 57 more
org.jbpm.pvm.internal.wire.WireException: couldn't initialize object
'org.jbpm.pvm.internal.repository.RepositorySessionImpl': couldn't
construct new 'null' with args null
at
org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(Object
Descriptor.java:233)
at
org.jbpm.pvm.internal.wire.WireContext.performInitialization(WireContext
.java:537)
at
org.jbpm.pvm.internal.wire.WireContext.initialize(WireContext.java:499)
at
org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:453)
at
org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:441)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:421)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:331)
at
org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:707)
at
org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:139
)
at
org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:130
)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:46)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:33)
at
org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandSe
rvice.java:42)
at
org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(Standard
TransactionInterceptor.java:54)
at
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInte
rceptor.java:46)
at org.jbpm
Please provide any information reg
Swapna
--------------------------------------------------------------------------------------------
This message, including any attachments, contains confidential information
intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of
this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message.
--------------------------------------------------------------------------------------------
16 years, 5 months
[jBPM Users] - Re: JpdlProcessDefinition cannot be cast to java.util.List
by sebastian.s
This is the only error I see:
| INFO: exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd@5ad89e02
| java.lang.ClassCastException: org.jbpm.jpdl.internal.model.JpdlProcessDefinition cannot be cast to java.util.List
| at org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(ProcessDeployer.java:64)
| at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)
| at org.jbpm.pvm.internal.repository.RepositorySessionImpl.getObject(RepositorySessionImpl.java:120)
| at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(ProcessDefinitionQueryImpl.java:72)
| at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(AbstractQuery.java:65)
| at org.jbpm.pvm.internal.query.AbstractQuery.untypedUniqueResult(AbstractQuery.java:69)
| at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.uniqueResult(ProcessDefinitionQueryImpl.java:145)
| at org.jbpm.pvm.internal.repository.RepositorySessionImpl.findProcessDefinitionByKey(RepositorySessionImpl.java:144)
| at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:58)
| at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)
| at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
| at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
| at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46)
| at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
| at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:70)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263933#4263933
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263933
16 years, 5 months