com.tek42.perforce.PerforceException: Failed to retrieve changelist.

Jenkins JIRA | mcsherry | 8 years ago
  1. 0

    The Perforce plugin mishandles processing query for P4 changes during job execution. From the console log, it appears that if I have a P4 CL description pasted into a P4 CL, the parsing goes into the weeds and generates an error. File names changed to protect the innocent, but this is the stderr log: 875082651 [Executor #2 for master] WARN perforce - File Line: ... //depot/main/somefilepath/somefilename.java#7 integrate 875082651 [Executor #2 for master] INFO perforce - Executing: p4 describe -s 208013 875082714 [Executor #2 for master] WARN perforce - File Line: //depot/dev/somebranch/someotherfilepath/yet-another-filename#4 875082714 [Executor #2 for master] ERROR perforce - Exception: No enum const class com.tek42.perforce.model.Changelist$FileEntry$Action. com.tek42.perforce.PerforceException: Failed to retrieve changelist. at com.tek42.perforce.parse.ChangelistBuilder.build (ChangelistBuilder.java:146) at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:35) at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers (Changes.java:281) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:231) at hudson.model.AbstractProject.checkout(AbstractProject.java:573) at hudson.model.AbstractBuild$AbstractRunner.checkout (AbstractBuild.java:251) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:225) at hudson.model.Run.run(Run.java:756) at hudson.model.Build.run(Build.java:85) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:82) Caused by: java.lang.IllegalArgumentException: No enum const class com.tek42.perforce.model.Changelist$FileEntry$Action. at java.lang.Enum.valueOf(Enum.java:196) at com.tek42.perforce.model.Changelist$FileEntry$Action.valueOf (Changelist.java:61) at com.tek42.perforce.parse.ChangelistBuilder.build (ChangelistBuilder.java:136) ... 10 more The problem is that the CL associated with another change was cut-n-pasted into P4 changelist 208013. This included the complete CL description, with the "Affected Files:" section, where the //depot/dev/somebranch/... file was referenced. I confirmed this root cause by updated the offending CL to remove the embedded "Affected Files:" section and it moved happily ahead. The fix involves extracting only the TRUE 'Affected Files:' section from the CL, rather than the red herring. Please contact me if you need additional information. Regards, Mike

    Jenkins JIRA | 8 years ago | mcsherry
    com.tek42.perforce.PerforceException: Failed to retrieve changelist.
  2. 0

    The Perforce plugin mishandles processing query for P4 changes during job execution. From the console log, it appears that if I have a P4 CL description pasted into a P4 CL, the parsing goes into the weeds and generates an error. File names changed to protect the innocent, but this is the stderr log: 875082651 [Executor #2 for master] WARN perforce - File Line: ... //depot/main/somefilepath/somefilename.java#7 integrate 875082651 [Executor #2 for master] INFO perforce - Executing: p4 describe -s 208013 875082714 [Executor #2 for master] WARN perforce - File Line: //depot/dev/somebranch/someotherfilepath/yet-another-filename#4 875082714 [Executor #2 for master] ERROR perforce - Exception: No enum const class com.tek42.perforce.model.Changelist$FileEntry$Action. com.tek42.perforce.PerforceException: Failed to retrieve changelist. at com.tek42.perforce.parse.ChangelistBuilder.build (ChangelistBuilder.java:146) at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:35) at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers (Changes.java:281) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:231) at hudson.model.AbstractProject.checkout(AbstractProject.java:573) at hudson.model.AbstractBuild$AbstractRunner.checkout (AbstractBuild.java:251) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:225) at hudson.model.Run.run(Run.java:756) at hudson.model.Build.run(Build.java:85) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:82) Caused by: java.lang.IllegalArgumentException: No enum const class com.tek42.perforce.model.Changelist$FileEntry$Action. at java.lang.Enum.valueOf(Enum.java:196) at com.tek42.perforce.model.Changelist$FileEntry$Action.valueOf (Changelist.java:61) at com.tek42.perforce.parse.ChangelistBuilder.build (ChangelistBuilder.java:136) ... 10 more The problem is that the CL associated with another change was cut-n-pasted into P4 changelist 208013. This included the complete CL description, with the "Affected Files:" section, where the //depot/dev/somebranch/... file was referenced. I confirmed this root cause by updated the offending CL to remove the embedded "Affected Files:" section and it moved happily ahead. The fix involves extracting only the TRUE 'Affected Files:' section from the CL, rather than the red herring. Please contact me if you need additional information. Regards, Mike

    Jenkins JIRA | 8 years ago | mcsherry
    com.tek42.perforce.PerforceException: Failed to retrieve changelist.
  3. 0

    what does it mean?? I finished my project, but now It errors that ─▒ dont kow what to do

    Stack Overflow | 6 years ago | atasoyh
    java.lang.IllegalArgumentException: No enum const class com.android.ide.eclipse.adt.editors.layout.gscripts.IAttributeInfo$Format.─░NTEGER
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IllegalArgumentException, when a data type is present in the schema, but unavailable in code generation logic

    GitHub | 4 years ago | lukaseder
    java.lang.IllegalArgumentException: No enum const class org.jooq.util.oracle.OracleDataType.BINARY_INTEGER
  6. 0

    ACRA version 4.3.0 snapshot currently on master branch isn't 1.5 compatible

    GitHub | 5 years ago | jddcef
    java.lang.IllegalArgumentException: REPORT_SENDER is not a constant in the enum type class org.acra.ReportField

  1. davidvanlaatum 1 times, last 1 week ago
  2. MoYapro 3 times, last 2 weeks ago
  3. iridic 116 times, last 3 weeks ago
  4. maxxi 4 times, last 1 month ago
  5. kuldeep 4 times, last 3 months ago
11 more registered users
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    No enum const class com.tek42.perforce.model.Changelist$FileEntry$Action.

    at java.lang.Enum.valueOf()
  2. Java RT
    Enum.valueOf
    1. java.lang.Enum.valueOf(Enum.java:196)
    1 frame