[jBPM Development] New message: "Refresh button doesn't work in jbpm4 console application"
by sunil tiwari
User development,
A new message was posted in the thread "Refresh button doesn't work in jbpm4 console application":
http://community.jboss.org/message/521509#521509
Author : sunil tiwari
Profile : http://community.jboss.org/people/sunilkt
Message:
--------------------------------------------------------------
I am running jbpm4.2 console application on was6.1 with derby database .
it's running fine and i am able to create process instanses and can see
them in the process definations tab .
My concern is , if i delete any process from the list shown it didn't get refreshed
to show only remained process instances , even after clicking refresh button nothing
happens .
here if i logout and login again now i can see original list (No deleted row) .
Even i found if clicked on process definations once it loads data from data base
and cache it into the browser , in the same session if clicked the same link again and again
it never goes to data base .Ideally clicking on refresh button does the same thing to hit
the data base and get the updated data ..
Any idea why the refresh didn't work .
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521509#521509
16 years, 3 months
[jBPM] New message: "jbpm 4.3 - org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update"
by Martin Porter
User development,
A new message was posted in the thread "jbpm 4.3 - org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update":
http://community.jboss.org/message/521504#521504
Author : Martin Porter
Profile : http://community.jboss.org/people/jedizippy
Message:
--------------------------------------------------------------
We have a subprocess that essentially is composed to two activities. The first calls a <custom> java class which in turn moves to the second <custom> activity which performs a wait until a signal is recieved. The main process is composed of a number of steps that basically call this subprocess with continue="async". We also have a version of this subprocess that just does the calls the custom java class amd another one that only does the custom wait state.
We are now running into an issue with a contraint violation which is the primary key of the JBPM4_EXECUTION table. This seems to happen at varying points throughout the workflow. Somtimes just after the main process is persisted (upon calling the first sub-process invocation).
Sometimes it is in one of the sub processes after they have executed the the wait (so is presumably persisted to the database).
In fact it seems completely random. Has anyone ran into this ? It seems (cannot be sure) that this could have been caused by removing continue="async" from some of the steps in the subprocesses however we cannot be sure !.
It seems strange to be getting unique key constraint violations on the execution table !?
We are using the JobExecutor with the default configuration (we have not changed it just imported it).
17:06:16.106 | DEBUG | pool-1-thread-2 | d.o.s.p.c.BusinessServiceResponseHandler | Order Id [Ord2717322722] Waiting For
Response - Start Time [1264089976104]
17:06:16.110 | DEBUG | pool-1-thread-2 | d.o.s.p.c.BusinessServiceResponseHandler | Order Id [Ord2717322722] Wait Execut
ed !
17:06:16.245 | WARN | pool-1-thread-2 | o.h.u.JDBCExceptionReporter | SQL Error: 1, SQLState: 23000
17:06:16.245 | WARN | pool-1-thread-2 | o.h.u.JDBCExceptionReporter | SQL Error: 1, SQLState: 23000
17:06:16.249 | ERROR | pool-1-thread-2 | o.h.u.JDBCExceptionReporter | ORA-00001: Unique Constraint (WIEDMANNJ_DEV.SYS_C
0017598) verletzt
17:06:16.249 | ERROR | pool-1-thread-2 | o.h.u.JDBCExceptionReporter | ORA-00001: Unique Constraint (WIEDMANNJ_DEV.SYS_C
0017598) verletzt
17:06:16.261 | WARN | pool-1-thread-2 | o.h.u.JDBCExceptionReporter | SQL Error: 1, SQLState: 23000
17:06:16.261 | WARN | pool-1-thread-2 | o.h.u.JDBCExceptionReporter | SQL Error: 1, SQLState: 23000
17:06:16.268 | ERROR | pool-1-thread-2 | o.h.u.JDBCExceptionReporter | ORA-00001: Unique Constraint (WIEDMANNJ_DEV.SYS_C
0017598) verletzt
17:06:16.268 | ERROR | pool-1-thread-2 | o.h.u.JDBCExceptionReporter | ORA-00001: Unique Constraint (WIEDMANNJ_DEV.SYS_C
0017598) verletzt
17:06:16.327 | ERROR | pool-1-thread-2 | o.h.e.d.AbstractFlushingEventListener | Could not synchronize database state wi
th session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94) [hibernate-core-3.3.1.GA.jar:3.3
.1.GA]
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) [hibernate-core-3.3.1.GA.jar
:3.3.1.GA]
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275) [hibernate-core-3.3.1.GA.jar:3.3.1.
GA]
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:114) [hibernate-core-3.3.1.GA.jar:3.
3.1.GA]
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:109) [hibernate-core-3.3.1.GA.jar:3.
3.1.GA]
at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:244) [hibernate-core-3.3.1.GA.j
ar:3.3.1.GA]
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2252) [hibernate-c
ore-3.3.1.GA.jar:3.3.1.GA]
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2688) [hibernate-c
ore-3.3.1.GA.jar:3.3.1.GA]
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79) [hibernate-core-3.3.1.GA.jar:3.3.
1.GA]
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) [hibernate-core-3.3.1.GA.jar:3.3.1.GA]
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) [hibernate-core-3.3.1.GA.jar:3.3.1.GA]
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167) [hibernate-core-3.3.1.GA.jar:3.3.1.GA]
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:32
1) [hibernate-core-3.3.1.GA.jar:3.3.1.GA]
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50) [hibernate-core-
3.3.1.GA.jar:3.3.1.GA]
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027) [hibernate-core-3.3.1.GA.jar:3.3.1.GA]
at org.jbpm.pvm.internal.tx.HibernateSessionResource.prepare(HibernateSessionResource.java:56) [jbpm-pvm-4.3-pat
ched.jar:na]
at org.jbpm.pvm.internal.tx.StandardTransaction.commit(StandardTransaction.java:107) [jbpm-pvm-4.3-patched.jar:n
a]
at org.jbpm.pvm.internal.tx.StandardTransaction.complete(StandardTransaction.java:64) [jbpm-pvm-4.3-patched.jar:
na]
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:61) [jbpm
-pvm-4.3-patched.jar:na]
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53) [jbp
m-pvm-4.3-patched.jar:na]
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40) [jbpm-pvm-4.3-patche
d.jar:na]
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55) [jbpm-pvm-4.3-patched.jar:na]
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43) [jbpm-pvm-4.3-patched.jar:na]
at org.jbpm.pvm.internal.jobexecutor.JobParcel.run(JobParcel.java:48) [jbpm-pvm-4.3-patched.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [na:1.6.0_11]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_11]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_11]
at java.lang.Thread.run(Thread.java:619) [na:1.6.0_11]
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521504#521504
16 years, 3 months
[jBPM] New message: "Re: Unable to distingusih between pooled-Actors and Swimlane"
by john britto
User development,
A new message was posted in the thread "Unable to distingusih between pooled-Actors and Swimlane":
http://community.jboss.org/message/521500#521500
Author : john britto
Profile : http://community.jboss.org/people/brittobics
Message:
--------------------------------------------------------------
hai
I have followed http://docs.jboss.org/jbpm/v3/userguide/taskmanagement.html#thepersonalta... ----------- 11.3.4. The group task list
and i have assigned the task in group of users.
public void assign(Assignable assignable, ExecutionContext executionContext)
throws Exception {
// TODO Auto-generated method stub
String pooledActorId[]= {"Britto,Selva,Sasi"};
assignable.setPooledActors(pooledActorId);
}
in that URL page
there is statement saying
"Make a collection that includes the user's actorId and all the ids of groups that the user belongs to. With TaskMgmtSession.findPooledTaskInstances(String actorId) or TaskMgmtSession.findPooledTaskInstances(List actorIds) you can search for task instances that are not in a personal task list (actorId==null) and for which there is a match in the pooled actorIds."
So i want to know how to find the collection of users and TaskMgmtSession
if i know these both i may achieve what i want to achieve..
Help me.
regards
britto
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521500#521500
16 years, 3 months
[JBoss Microcontainer] New message: "Re: Info required about jboss-classloading.xml"
by Adrian Brock
User development,
A new message was posted in the thread "Info required about jboss-classloading.xml":
http://community.jboss.org/message/521480#521480
Author : Adrian Brock
Profile : http://community.jboss.org/people/adrian@jboss.org
Message:
--------------------------------------------------------------
With that configuration, your ejb3 won't be able to see any classes, except those in the bootstrap classloader.
i.e. you have no requirements (imports) and you are not using import-all=true.
e.g. You won't be able to see anything in common/lib which includes the ejb3 api and container classes.
Ideally, the ejb3 deployer should automatically add the ejb3 classes as <requirement/>s to all ejb3 deployments
that don't have import-all=true, but it doesn't currently do this. So you'll have to add them yourself.
e.g. you could add package requirements for javax.ejb, etc.
but I imagine it will take a lot of work to figure out exactly what you need. :-)
A simpler way is probably to use a module requirement:
vfsfile:/home/jboss/jboss-5.1.0.GA/server/all/conf/jboss-service.xml
which is the name of your deployment that contains all the common/lib jars (it has no nice alias).
vfsfile:/${jboss.server.home.dir}/conf/jboss-service.xml
should also work just as well?
P.S. The NPE is a bug. You should ask the ejb3 developers to give you a meaningful error message. :-)
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521480#521480
16 years, 3 months
[JBoss Microcontainer] New message: "Re: Info required about jboss-classloading.xml"
by null null
User development,
A new message was posted in the thread "Info required about jboss-classloading.xml":
http://community.jboss.org/message/521473#521473
Author : null null
Profile : http://community.jboss.org/people/deanhiller
Message:
--------------------------------------------------------------
I had used that first posting already which didn't work or seem to be enough. I like that second article....THANKS.
anyone have an existing jar that deploys successfully in 5.1.0 that i can compare mine with.
Also, Do I have to use the new classloading.xml way for that example I gave.....I assume yes?
I am however still running into a NullPointerException. I removed my wars and just deploy my EJB3 jar with this file
<classloading xmlns="urn:jboss:classloading:1.0">
<capabilities>
<module name="xcore3.jar"/>
</capabilities>
</classloading>
I just want this xcore3.jar to be a supplier to two other war files basically, but just deploying this one jar, I get the below exception in jboss 5.1.0......
2010-01-21 08:33:56,590 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) N/A Error installing to Real: name=vfszip:/home/jboss/jboss-5.1.0.GA/server/all/deploy/xcore3.jar/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying xcore3.jar: failed to initialize bean container
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: failed to initialize bean container
at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:253)
at org.jboss.ejb3.session.SessionContainer.<init>(SessionContainer.java:119)
at org.jboss.ejb3.session.SessionSpecContainer.<init>(SessionSpecContainer.java:69)
at org.jboss.ejb3.stateless.StatelessContainer.<init>(StatelessContainer.java:112)
at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3AnnotationHandler.java:310)
at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:203)
at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:718)
at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)
at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)
at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)
at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
... 33 more
Caused by: java.lang.IllegalStateException: Null beannMetaData
at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.setupMetaDataLists(BeanInterceptorMetaDataBridge.java:315)
at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.initialise(BeanInterceptorMetaDataBridge.java:235)
at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.<init>(BeanInterceptorMetaDataBridge.java:138)
at org.jboss.ejb3.interceptors.metadata.AdditiveBeanInterceptorMetaDataBridge.<init>(AdditiveBeanInterceptorMetaDataBridge.java:48)
at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:194)
at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:249)
... 44 more
Caused by: java.lang.NullPointerException
at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.setupMetaDataLists(BeanInterceptorMetaDataBridge.java:268)
... 49 more
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521473#521473
16 years, 3 months