11 Replies Latest reply on Sep 28, 2009 4:34 AM by Adolf Grazou

    NullPointerException using identityService

    Manjunath Changalpet Newbie

      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