[jboss-user] [jBPM Users] - NullPointerException using identityService
cjmanju123
do-not-reply at jboss.com
Thu Sep 10 12:23:44 EDT 2009
I am getting NullPointerException when trying to do anything using the identityservcie. following is the test code. i can create process, assign tasks but when i try any method on the identityservice it throws NullPointerException. Please help.
Configuration configuration = JBPMSingleton.getConfig();
ProcessEngine processEngine = configuration.buildProcessEngine();
IdentityService identityService = processEngine.getIdentityService();
String group = identityService.createGroup("test");
identityService.createUser("jason", "jason", "king");
identityService.createMembership("alex", group, "developer");
int i = identityService.findUsers().size();
System.out.println("no of users " + i);
Thanks
Manju
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254518#4254518
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254518
More information about the jboss-user
mailing list