1 Reply Latest reply on Jan 23, 2011 11:11 AM by Odelya Holiday

    NullPointerException - on taskclient.complete

    Odelya Holiday Novice



      I am working on tomcat 6


      When the application starts - I start the taskserver:



      server = new MinaTaskServer(taskService);
      Thread thread = new Thread(server);


      When the user logs in to my application,  I start a taskclient like this:


      TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1", new MinaTaskClientHandler(
      boolean connected = client.connect("", 9123);



      I am using this taskclient in the code to start and complete it:


      BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
      taskClient.start(taskId, userName, responseHandler);
      BlockingTaskOperationResponseHandler blockingTaskOperationResponseHandler = new BlockingTaskOperationResponseHandler();
      taskClient.complete(taskId, userName, result, blockingTaskOperationResponseHandler);



      I found out that it falls on NullPointerException here:


      out.writeUTF( text ); 


      which comes from


      CollectionUtils.writeI18NTextList( subjects, out );


      but since jbpm code is not documented it's hard to understand what are the subjects, and where do I define them!