.getData().trim()); } else { throw new SubmissionException("Create Class not successful. Message: " + ((CharacterData) (root.getElementsByTagName("rmessage").item(0).getFirstChild())).getData() .trim()
public void doAssignments() { log.info("About to update all turnitin assignments"); List<ContentReviewItem> items = crqs.getAllContentReviewItemsGroupedBySiteAndTask(getProviderId()); for (ContentReviewItem item : items) { try { updateAssignment(item.getSiteId(), item.getTaskId()); } catch (SubmissionException e) { log.error(e.getMessage(), e); } } }
break; } catch (SubmissionException e) { log.warn("Update failed due to SubmissionException error: " + e.toString(), e); currentItem.setStatus(ContentReviewConstants.CONTENT_REVIEW_REPORT_ERROR_RETRY_CODE); currentItem.setLastError(e.getMessage()); crqs.update(currentItem); break;
} catch (SubmissionException t) { log.error("Submission attempt unsuccessful: Could not create class", t); item.setLastError("Class creation error: " + t.getMessage()); item.setStatus(ContentReviewConstants.CONTENT_REVIEW_SUBMISSION_ERROR_RETRY_CODE); crqs.update(item); item.setLastError("Assign creation error: " + se.getMessage()); item.setStatus(ContentReviewConstants.CONTENT_REVIEW_SUBMISSION_ERROR_NO_RETRY_CODE); if (se.getErrorCode() != null) { item.setErrorCode(se.getErrorCode()); item.setStatus(ContentReviewConstants.CONTENT_REVIEW_SUBMISSION_ERROR_RETRY_CODE); item.setLastError( "Error Submitting Assignment for Submission: " + e.getMessage() + ". Assume unsuccessful"); crqs.update(item); errors++;
/** * Access all AssignmentSubmission objects - known to us (not from external providers). * * @return A list of AssignmentSubmission objects. */ protected List getSubmissions(String context) { List<AssignmentSubmission> submissions = m_submissionStorage.getAll(context); //get all the review scores if (contentReviewService != null) { try { List<ContentReviewItem> reports = contentReviewService.getReportList(null, context); if (reports != null && reports.size() > 0) { updateSubmissionList(submissions, reports); } } catch (QueueException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SubmissionException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ReportException e) { // TODO Auto-generated catch block e.printStackTrace(); } } return submissions; } // getAssignmentSubmissions
+ ((CharacterData) (root.getElementsByTagName("rmessage").item(0).getFirstChild())).getData().trim() + ". Code: " + rcode); throw new SubmissionException("Create Assignment not successful. Message: " + ((CharacterData) (root.getElementsByTagName("rmessage").item(0).getFirstChild())).getData().trim() + ". Code: " + rcode);
log.error(e.getMessage()); } catch (SubmissionException e) { log.warn("SubmissionException error. " + e.getMessage());
throw new SubmissionException("zero length submission!");
user = userDirectoryService.getUser(userId); } catch (Exception t) { throw new SubmissionException("Cannot get user information", t); throw new SubmissionException("User has no first name"); throw new SubmissionException("User has no last name");