[jBPM Users] - Re: NullPointerException using identityService
by Krohm
"cjmanju123" wrote : Sorry here it is again, I had removed the following entry from the jbpm.cfg.xml.
|
| <import resource="jbpm.identity.cfg.xml" />
I have the same error when trying to create Users / Groups through the IdentityService in JBPM 4.1 :
java.lang.NullPointerException
| at org.jbpm.pvm.internal.identity.cmd.CreateGroupCmd.execute(CreateGroupCmd.java:48)
| at org.jbpm.pvm.internal.identity.cmd.CreateGroupCmd.execute(CreateGroupCmd.java:32)
| 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.IdentityServiceImpl.createGroup(IdentityServiceImpl.java:70)
I have investigated it a bit, and it seems some classes are somehow "Missing" in the JBPM4.1 I am working with.
These classes are (from what I have tried from now) :
org.jbpm.pvm.internal.identity.cmd.CreateGroupCmd
org.jbpm.pvm.internal.identity.cmd.CreateUserCmd
I was expecting it to be with the other classes of the same package and downloadable with the following maven dependency :
<dependency>
| <groupId>org.jbpm.jbpm4</groupId>
| <artifactId>jbpm-pvm</artifactId>
| <version>4.0</version>
| </dependency>
Do I have missed something ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257258#4257258
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257258
16 years, 7 months
[jBPM Users] - Issues About JobExecutor in Jbpm 3.3.0GA
by draculawong
Hi,
I had a few questions about job executor and jbpmcontext,
1.Do we need to close jbpmContext every time after we used it?Like:
public myMethod(){
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| .....
| jbpmContext.close();
| }
2.In jbpm.cfg.xml,if I set jobExecutor singleton="false" ,what will happen?
<bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor" singleton="true">
3.In the jbpm source code ,there is a class DbMessageService.java,below is source code of this class,Could any one tell me why use "synchronized" here?
public void close() {
| if ( (hasProducedJobs)
| && (jobExecutor!=null)
| ) {
| log.debug("messages were produced, job executor will be signalled");
| synchronized(jobExecutor) {
| jobExecutor.notify();
| }
| }
| }
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257257#4257257
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257257
16 years, 7 months