I am trying to evalute ABBYY but every time I get this exception
Exception in thread "main" java.lang.Exception: Error: Invalid task state
at com.abbyy.ocrsdk.Client.getResponse(Client.java:297)
at com.abbyy.ocrsdk.Client.processDocument(Client.java:62)
at TestApp.main(TestApp.java:43)
I have modified only a couple of lines in TestApp.java
restClient = new Client();
// replace with 'https://cloud.ocrsdk.com' to enable secure connection
restClient.serverUrl = "http://cloud.ocrsdk.com";
restClient.applicationId = ClientSettings.APPLICATION_ID;
restClient.password = ClientSettings.PASSWORD;
/* ******************************************Modifications **************************/
File filePath = new File("C:\\Users\\nali\\Desktop\\Tiff Image\\New Image.JPG");
restClient.submitImage(filePath.getAbsolutePath(), null);
ProcessingSettings settings = new ProcessingSettings();
settings.setOutputFormat(OutputFormat.txt);
Task task = restClient.processImage(filePath.getAbsolutePath(), settings);
Task task1 = null;
do{
task1 = restClient.processDocument(task.Id, settings);
}
while(!task1.Status.equals("Completed"));
System.out.print("What should do with the task");
Vector<String> argList = new Vector<String>(Arrays.asList(args));"