Here is my compete taskmethod code :
TaskClient client = null;
try {
client = connectToTaskServer(TASK_SERVER_HOST_IP_ADD,
TASK_SERVER_PORT);
BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
Map<String, Object> taskVariables = new HashMap<String, Object>();
// Currency validation accepted
taskVariables.put("o_validationResult", true);
client.completeWithResults(aTaskId, aOwnerId, taskVariables, responseHandler);
responseHandler.waitTillDone(2000);
client.disconnect();
} catch (Exception e) {
try {
client.disconnect();
} catch (Exception e1) {
e1.printStackTrace();
}
e.printStackTrace();
logger.error("Unable to completing the Task '" + aTaskId
+ "' assigned to user '" + aOwnerId + "' : " + e.toString());
throw new TaskManagerException("Unable to completing the Task '"
+ aTaskId + "' assigned to user '" + aOwnerId + "' : "
+ e.toString(), e);
}
After hard searching in the net, I'm not able to detect where this exception triggered !
Here is exception javadoc :
http://docs.oracle.com/javase/6/docs/api/java/io/OptionalDataException.html
Thanks in advance.