com.perforce.api.CommitException

Atlassian JIRA | Andy Nguyen [Atlassian] | 2 years ago
  1. 0

    h4. +Steps to reproduce+ # enable Perforce Job Integration in JIRA # create a multi-line text field in JIRA # create a Job Checkbox custom field (in JIRA) for Perforce # put these fields on Create Issue screen # follow [this|http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.jobspecs.html] to add a new field to Perforce jobs # edit Perforce Job Integration -> Map Custom Fields and map the multi-line text field (step 2) to the Perforce field (step 5) # create a new JIRA issue and tick Yes at the Job Checkbox field (step 3) to have it duplicated as a Perforce job # also enter several lines into the multi-line text field e.g.: {code} FirstLine SecondLine ThirdLine {code} # click Create h4. +Expected behavior+ The JIRA issue is duplicated as a Perforce job with the correct field mappings h4. +Actual behavior+ A Perforce job is not created because of this error in JIRA log: {code} 2015-03-12 21:58:29,401 http-bio-2768-exec-18 ERROR admin 1318x2636x1 jku0d9 192.168.1.100,0:0:0:0:0:0:0:1 /secure/QuickCreateIssue.jspa [com.perforce.api.Debug] P4 exited with an Error! 2015-03-12 21:58:29,402 http-bio-2768-exec-18 ERROR admin 1318x2636x1 jku0d9 192.168.1.100,0:0:0:0:0:0:0:1 /secure/QuickCreateIssue.jspa [jirafisheyeplugin.perforce.listener.JobUpdateListener] Could not commit job: Job: DEMO-17 User: admin Description: Test com.perforce.api.CommitException at com.perforce.api.Job.commit(Job.java:365) at com.atlassian.jirafisheyeplugin.perforce.listener.JobUpdateListener.createJob(JobUpdateListener.java:42) at com.atlassian.jirafisheyeplugin.perforce.listener.JobUpdateListener.workflowEvent(JobUpdateListener.java:30) ... Caused by: java.io.IOException: error: Error in job specification.error: Error detected at line 11.error: Syntax error in 'SecondLine'. at com.perforce.api.P4Process.closeProcess(P4Process.java:587) at com.perforce.api.Job.commit(Job.java:361) ... 226 more {code} h4. +Note+ * If only 1 line is entered into the text field, a Perforce job is created successfully * In Perforce, multiple lines can be manually entered into the same field * It doesn't matter whether the multi-line text field in JIRA uses Default Text or Wiki Style renderer h4. +Workaround+ Using HTML tag {{<br/>}} to indicate new lines works. For example, using this single line in the multi-line text field: {code}FirstLine<br/>SecondLine<br/>ThirdLine{code} * It appears as a single line, thus it works * In Perforce, the field is rendered correctly with separate lines

    Atlassian JIRA | 2 years ago | Andy Nguyen [Atlassian]
    com.perforce.api.CommitException
  2. 0

    h4. +Steps to reproduce+ # enable Perforce Job Integration in JIRA # create a multi-line text field in JIRA # create a Job Checkbox custom field (in JIRA) for Perforce # put these fields on Create Issue screen # follow [this|http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.jobspecs.html] to add a new field to Perforce jobs # edit Perforce Job Integration -> Map Custom Fields and map the multi-line text field (step 2) to the Perforce field (step 5) # create a new JIRA issue and tick Yes at the Job Checkbox field (step 3) to have it duplicated as a Perforce job # also enter several lines into the multi-line text field e.g.: {code} FirstLine SecondLine ThirdLine {code} # click Create h4. +Expected behavior+ The JIRA issue is duplicated as a Perforce job with the correct field mappings h4. +Actual behavior+ A Perforce job is not created because of this error in JIRA log: {code} 2015-03-12 21:58:29,401 http-bio-2768-exec-18 ERROR admin 1318x2636x1 jku0d9 192.168.1.100,0:0:0:0:0:0:0:1 /secure/QuickCreateIssue.jspa [com.perforce.api.Debug] P4 exited with an Error! 2015-03-12 21:58:29,402 http-bio-2768-exec-18 ERROR admin 1318x2636x1 jku0d9 192.168.1.100,0:0:0:0:0:0:0:1 /secure/QuickCreateIssue.jspa [jirafisheyeplugin.perforce.listener.JobUpdateListener] Could not commit job: Job: DEMO-17 User: admin Description: Test com.perforce.api.CommitException at com.perforce.api.Job.commit(Job.java:365) at com.atlassian.jirafisheyeplugin.perforce.listener.JobUpdateListener.createJob(JobUpdateListener.java:42) at com.atlassian.jirafisheyeplugin.perforce.listener.JobUpdateListener.workflowEvent(JobUpdateListener.java:30) ... Caused by: java.io.IOException: error: Error in job specification.error: Error detected at line 11.error: Syntax error in 'SecondLine'. at com.perforce.api.P4Process.closeProcess(P4Process.java:587) at com.perforce.api.Job.commit(Job.java:361) ... 226 more {code} h4. +Note+ * If only 1 line is entered into the text field, a Perforce job is created successfully * In Perforce, multiple lines can be manually entered into the same field * It doesn't matter whether the multi-line text field in JIRA uses Default Text or Wiki Style renderer h4. +Workaround+ Using HTML tag {{<br/>}} to indicate new lines works. For example, using this single line in the multi-line text field: {code}FirstLine<br/>SecondLine<br/>ThirdLine{code} * It appears as a single line, thus it works * In Perforce, the field is rendered correctly with separate lines

    Atlassian JIRA | 2 years ago | Andy Nguyen [Atlassian]
    com.perforce.api.CommitException
  3. 0

    h4. +Steps to reproduce+ # enable Perforce Job Integration in JIRA # create a multi-line text field in JIRA # create a Job Checkbox custom field (in JIRA) for Perforce # put these fields on Create Issue screen # follow [this|http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.jobspecs.html] to add a new field to Perforce jobs # edit Perforce Job Integration -> Map Custom Fields and map the multi-line text field (step 2) to the Perforce field (step 5) # create a new JIRA issue and tick Yes at the Job Checkbox field (step 3) to have it duplicated as a Perforce job # also enter several lines into the multi-line text field e.g.: {code} FirstLine SecondLine ThirdLine {code} # click Create h4. +Expected behavior+ The JIRA issue is duplicated as a Perforce job with the correct field mappings h4. +Actual behavior+ A Perforce job is not created because of this error in JIRA log: {code} 2015-03-12 21:58:29,401 http-bio-2768-exec-18 ERROR admin 1318x2636x1 jku0d9 192.168.1.100,0:0:0:0:0:0:0:1 /secure/QuickCreateIssue.jspa [com.perforce.api.Debug] P4 exited with an Error! 2015-03-12 21:58:29,402 http-bio-2768-exec-18 ERROR admin 1318x2636x1 jku0d9 192.168.1.100,0:0:0:0:0:0:0:1 /secure/QuickCreateIssue.jspa [jirafisheyeplugin.perforce.listener.JobUpdateListener] Could not commit job: Job: DEMO-17 User: admin Description: Test com.perforce.api.CommitException at com.perforce.api.Job.commit(Job.java:365) at com.atlassian.jirafisheyeplugin.perforce.listener.JobUpdateListener.createJob(JobUpdateListener.java:42) at com.atlassian.jirafisheyeplugin.perforce.listener.JobUpdateListener.workflowEvent(JobUpdateListener.java:30) ... Caused by: java.io.IOException: error: Error in job specification.error: Error detected at line 11.error: Syntax error in 'SecondLine'. at com.perforce.api.P4Process.closeProcess(P4Process.java:587) at com.perforce.api.Job.commit(Job.java:361) ... 226 more {code} h4. +Note+ * If only 1 line is entered into the text field, a Perforce job is created successfully * In Perforce, multiple lines can be manually entered into the same field * It doesn't matter whether the multi-line text field in JIRA uses Default Text or Wiki Style renderer h4. +Workaround+ Using HTML tag {{<br/>}} to indicate new lines works. For example, using this single line in the multi-line text field: {code}FirstLine<br/>SecondLine<br/>ThirdLine{code} * It appears as a single line, thus it works * In Perforce, the field is rendered correctly with separate lines

    Atlassian JIRA | 2 years ago | Andy Nguyen [Atlassian]
    com.perforce.api.CommitException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h4. +Steps to reproduce+ # enable Perforce Job Integration in JIRA # create a multi-line text field in JIRA # create a Job Checkbox custom field (in JIRA) for Perforce # put these fields on Create Issue screen # follow [this|http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.jobspecs.html] to add a new field to Perforce jobs # edit Perforce Job Integration -> Map Custom Fields and map the multi-line text field (step 2) to the Perforce field (step 5) # create a new JIRA issue and tick Yes at the Job Checkbox field (step 3) to have it duplicated as a Perforce job # also enter several lines into the multi-line text field e.g.: {code} FirstLine SecondLine ThirdLine {code} # click Create h4. +Expected behavior+ The JIRA issue is duplicated as a Perforce job with the correct field mappings h4. +Actual behavior+ A Perforce job is not created because of this error in JIRA log: {code} 2015-03-12 21:58:29,401 http-bio-2768-exec-18 ERROR admin 1318x2636x1 jku0d9 192.168.1.100,0:0:0:0:0:0:0:1 /secure/QuickCreateIssue.jspa [com.perforce.api.Debug] P4 exited with an Error! 2015-03-12 21:58:29,402 http-bio-2768-exec-18 ERROR admin 1318x2636x1 jku0d9 192.168.1.100,0:0:0:0:0:0:0:1 /secure/QuickCreateIssue.jspa [jirafisheyeplugin.perforce.listener.JobUpdateListener] Could not commit job: Job: DEMO-17 User: admin Description: Test com.perforce.api.CommitException at com.perforce.api.Job.commit(Job.java:365) at com.atlassian.jirafisheyeplugin.perforce.listener.JobUpdateListener.createJob(JobUpdateListener.java:42) at com.atlassian.jirafisheyeplugin.perforce.listener.JobUpdateListener.workflowEvent(JobUpdateListener.java:30) ... Caused by: java.io.IOException: error: Error in job specification.error: Error detected at line 11.error: Syntax error in 'SecondLine'. at com.perforce.api.P4Process.closeProcess(P4Process.java:587) at com.perforce.api.Job.commit(Job.java:361) ... 226 more {code} h4. +Note+ * If only 1 line is entered into the text field, a Perforce job is created successfully * In Perforce, multiple lines can be manually entered into the same field * It doesn't matter whether the multi-line text field in JIRA uses Default Text or Wiki Style renderer h4. +Workaround+ Using HTML tag {{<br/>}} to indicate new lines works. For example, using this single line in the multi-line text field: {code}FirstLine<br/>SecondLine<br/>ThirdLine{code} * It appears as a single line, thus it works * In Perforce, the field is rendered correctly with separate lines

    Atlassian JIRA | 2 years ago | Andy Nguyen [Atlassian]
    com.perforce.api.CommitException

    Root Cause Analysis

    1. com.perforce.api.CommitException

      No message provided

      at com.perforce.api.Job.commit()
    2. com.perforce.api
      Job.commit
      1. com.perforce.api.Job.commit(Job.java:365)
      1 frame
    3. com.atlassian.jirafisheyeplugin
      JobUpdateListener.workflowEvent
      1. com.atlassian.jirafisheyeplugin.perforce.listener.JobUpdateListener.createJob(JobUpdateListener.java:42)
      2. com.atlassian.jirafisheyeplugin.perforce.listener.JobUpdateListener.workflowEvent(JobUpdateListener.java:30)
      2 frames