- try {\r
- String jobId = null;\r
- if (customOptions != null) {\r
- jobId = wsproxy.customAnalize(fastalist, customOptions);\r
- } else if (preset != null) {\r
- jobId = wsproxy.presetAnalize(fastalist, preset);\r
- } else {\r
- jobId = wsproxy.analize(fastalist);\r
- }\r
- Thread.sleep(1000);\r
- scores = wsproxy.getAnnotation(jobId);\r
-\r
- } catch (JobSubmissionException e) {\r
- writer.println("Exception while submitting job to a web server. "\r
- + "Exception details are below:");\r
- e.printStackTrace(writer);\r
- } catch (ResultNotAvailableException e) {\r
- writer.println("Exception while waiting for results. "\r
- + "Exception details are below:");\r
- e.printStackTrace(writer);\r
- } catch (InterruptedException e) {\r
- // ignore and propagate an interruption\r
- Thread.currentThread().interrupt();\r
- writer.println("Exception while waiting for results. "\r
- + "Exception details are below:");\r
- e.printStackTrace(writer);\r
- } catch (WrongParameterException e) {\r
- writer.println("Exception while parsing the web method input parameters. "\r
- + "Exception details are below:");\r
- e.printStackTrace(writer);\r
+\r
+ String jobId = null;\r
+ if (customOptions != null) {\r
+ jobId = wsproxy.customAnalize(fastalist, customOptions);\r
+ } else if (preset != null) {\r
+ jobId = wsproxy.presetAnalize(fastalist, preset);\r
+ } else {\r
+ jobId = wsproxy.analize(fastalist);\r
+ }\r
+ Thread.sleep(1000);\r
+ scores = wsproxy.getAnnotation(jobId);\r
+ if (scores != null) {\r
+ writer.println(OK);\r