j.setSubmitted(true);
j.setSubjobComplete(false);
// System.out.println(WsURL + " Job Id '" + jobId + "'");
+ return;
}
else
{
+ _lex.getMessage());
wsInfo.warnUser(_lex.getMessage(), "Input is too big!");
wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_ERROR);
- wsInfo.setStatus(j.getJobnum(),
- WebserviceInfo.STATE_STOPPED_ERROR);
+ wsInfo.setStatus(j.getJobnum(), WebserviceInfo.STATE_STOPPED_ERROR);
} catch (compbio.metadata.WrongParameterException _lex)
{
lex = _lex;
+ _lex.getMessage()
+ "\nPlease check to make sure you have used the correct parameter set for this service!\n");
wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_ERROR);
- wsInfo.setStatus(j.getJobnum(),
- WebserviceInfo.STATE_STOPPED_ERROR);
- }
- catch (Error e)
+ wsInfo.setStatus(j.getJobnum(), WebserviceInfo.STATE_STOPPED_ERROR);
+ } catch (Error e)
{
// For unexpected errors
System.err
wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_SERVERERROR);
wsInfo.setStatus(j.getJobnum(),
WebserviceInfo.STATE_STOPPED_SERVERERROR);
- }
- catch (Exception e)
+ } catch (Exception e)
{
// For unexpected errors
System.err
WebserviceInfo.STATE_STOPPED_SERVERERROR);
} finally
{
- // Boilerplate code here
- // TODO: JBPNote catch timeout or other fault types explicitly
+ if (!j.isSubmitted())
+ {
+ // Boilerplate code here
+ // TODO: JBPNote catch timeout or other fault types explicitly
- j.setAllowedServerExceptions(0);
- wsInfo.appendProgressText(j.getJobnum(),
- "Failed to submit sequences for alignment.\n"
- + "Just close the window\n");
+ j.setAllowedServerExceptions(0);
+ wsInfo.appendProgressText(j.getJobnum(),
+ "Failed to submit sequences for alignment.\n"
+ + "Just close the window\n");
+ }
}
}
msjob.alignment = server.getResult(msjob.getJobId());
} catch (compbio.metadata.ResultNotAvailableException e)
{
- // job has failed for some reason - probably due to invalid parameters
- Cache.log.debug("Results not available for finished job - marking as broken job.",e);
+ // job has failed for some reason - probably due to invalid
+ // parameters
+ Cache.log
+ .debug("Results not available for finished job - marking as broken job.",
+ e);
msjob.setjobStatus(JobStatus.FAILED);
- }
- catch (Exception e)
+ } catch (Exception e)
{
Cache.log.error("Couldn't get Alignment for job.", e);
// TODO: Increment count and retry ?