Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57756

Unable to save config: No enum constant hudson.plugins.ec2.ConnectionStrategy.Private IP

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ec2-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.164.3
      ec2-plugin 1.43
    • Similar Issues:

      Description

      Hi,

      After upgrading to 1.43, I was unable to save the main configuration page.  When I tried to save, I got this stack trace:

      java.lang.IllegalArgumentException: No enum constant hudson.plugins.ec2.ConnectionStrategy.Private IP
      	at java.lang.Enum.valueOf(Enum.java:238)
      	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:733)
      	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
      	at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:778)
      Caused: java.lang.IllegalArgumentException: Failed to convert the connectionStrategy parameter of the constructor public hudson.plugins.ec2.SlaveTemplate(java.lang.String,java.lang.String,hudson.plugins.ec2.SpotConfiguration,java.lang.String,java.lang.String,com.amazonaws.services.ec2.model.InstanceType,boolean,java.lang.String,hudson.model.Node$Mode,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,hudson.plugins.ec2.AMITypeData,java.lang.String,boolean,java.lang.String,java.util.List,java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,java.lang.String,boolean,java.lang.String,boolean,boolean,boolean,hudson.plugins.ec2.ConnectionStrategy,int)
      	at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:780)
      	at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
      	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
      Caused: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.ec2.SlaveTemplate
      

      I had to revert to 1.42 in order to be able to save the main configuration page.

        Attachments

          Activity

          Hide
          thoulen FABRIZIO MANFREDI added a comment -

          That should be fixed in the 1.44, can you confirm ? 

          Show
          thoulen FABRIZIO MANFREDI added a comment - That should be fixed in the 1.44, can you confirm ? 

            People

            • Assignee:
              thoulen FABRIZIO MANFREDI
              Reporter:
              davegoodine dave goodine
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: