Program: 47367
Project: 47367
Buggy source:
/** 
 * Creates a new Job/Schedule <p><b>Example Request:</b><br /> PUT api/scheduler/job </p>
 * @param scheduleRequest A JobScheduleRequest object to define the parameters of the job being created<pre function="syntax.xml"> &lt;jobScheduleRequest&gt; &lt;jobName&gt;JobName&lt;/jobName&gt; &lt;simpleJobTrigger&gt; &lt;uiPassParam&gt;MINUTES&lt;/uiPassParam&gt; &lt;repeatInterval&gt;1800&lt;/repeatInterval&gt; &lt;repeatCount&gt;-1&lt;/repeatCount&gt; &lt;startTime&gt;2014-08-14T11:46:00.000-04:00&lt;/startTime&gt; &lt;endTime /&gt; &lt;/simpleJobTrigger&gt; &lt;inputFile&gt;/path/to/input/file&lt;/inputFile&gt; &lt;outputFile&gt;/path/to/output/file&lt;/outputFile&gt; &lt;jobParameters&gt; &lt;name&gt;ParameterName&lt;/name&gt; &lt;type&gt;string&lt;/type&gt; &lt;stringValue&gt;false&lt;/stringValue&gt; &lt;/jobParameters&gt; &lt;/jobScheduleRequest&gt; </pre>
 * @return A jax-rs Response object with the created jobId<pre function="syntax.xml"> username	JobName	1405356465422 </pre>
 */
@POST @Path("String_Node_Str") @Consumes({APPLICATION_JSON,APPLICATION_XML}) @Produces("String_Node_Str") @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=401,condition="String_Node_Str"),@ResponseCode(code=403,condition="String_Node_Str"),@ResponseCode(code=500,condition="String_Node_Str")}) public Response createJob(JobScheduleRequest scheduleRequest){
  try {
    Job job=schedulerService.createJob(scheduleRequest);
    return buildPlainTextOkResponse(job.getJobId());
  }
 catch (  SchedulerException e) {
    return buildServerErrorResponse(e.getCause().getMessage());
  }
catch (  IOException e) {
    return buildServerErrorResponse(e.getCause().getMessage());
  }
catch (  SecurityException e) {
    return buildStatusResponse(UNAUTHORIZED);
  }
catch (  IllegalAccessException e) {
    return buildStatusResponse(FORBIDDEN);
  }
}

Fixed version (ground truth):
/** 
 * Creates a new Job/Schedule <p><b>Example Request:</b><br /> PUT api/scheduler/job </p>
 * @param scheduleRequest A JobScheduleRequest object to define the parameters of the job being created<pre function="syntax.xml"> &lt;jobScheduleRequest&gt; &lt;jobName&gt;JobName&lt;/jobName&gt; &lt;simpleJobTrigger&gt; &lt;uiPassParam&gt;MINUTES&lt;/uiPassParam&gt; &lt;repeatInterval&gt;1800&lt;/repeatInterval&gt; &lt;repeatCount&gt;-1&lt;/repeatCount&gt; &lt;startTime&gt;2014-08-14T11:46:00.000-04:00&lt;/startTime&gt; &lt;endTime /&gt; &lt;/simpleJobTrigger&gt; &lt;inputFile&gt;/path/to/input/file&lt;/inputFile&gt; &lt;outputFile&gt;/path/to/output/file&lt;/outputFile&gt; &lt;jobParameters&gt; &lt;name&gt;ParameterName&lt;/name&gt; &lt;type&gt;string&lt;/type&gt; &lt;stringValue&gt;false&lt;/stringValue&gt; &lt;/jobParameters&gt; &lt;/jobScheduleRequest&gt; </pre>
 * @return A jax-rs Response object with the created jobId<p><b>Example Response:</b></p> <pre function="syntax.xml"> username	JobName	1405356465422 </pre>
 */
@POST @Path("String_Node_Str") @Consumes({APPLICATION_JSON,APPLICATION_XML}) @Produces("String_Node_Str") @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=401,condition="String_Node_Str"),@ResponseCode(code=403,condition="String_Node_Str"),@ResponseCode(code=500,condition="String_Node_Str")}) public Response createJob(JobScheduleRequest scheduleRequest){
  try {
    Job job=schedulerService.createJob(scheduleRequest);
    return buildPlainTextOkResponse(job.getJobId());
  }
 catch (  SchedulerException e) {
    return buildServerErrorResponse(e.getCause().getMessage());
  }
catch (  IOException e) {
    return buildServerErrorResponse(e.getCause().getMessage());
  }
catch (  SecurityException e) {
    return buildStatusResponse(UNAUTHORIZED);
  }
catch (  IllegalAccessException e) {
    return buildStatusResponse(FORBIDDEN);
  }
}