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

EC2 cloud configuration fails to load after restart

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: ec2-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      When Hudson is restarted after configuring an EC2 cloud, the attached error shows up in Hudson's log, and the cloud configuration is no longer present. Also see http://hudson.361315.n4.nabble.com/Initialization-error-with-EC2-plugin-td2173614.html. I got this error when running via hpi:run on trunk (ec2 plugin 1.9-SNAPSHOT) but we're also seeing it with the released 1.8 on ci.hudson-labs.org.

        Attachments

          Issue Links

            Activity

            Hide
            mindless Alan Harder added a comment -

            Exception shows attempt to load an abstract class, so XSTREAM.alias() call at bottom of EC2Cloud.java is not taking effect. Probably this static block is not called before xstream starts loading.. some other plugins (locale, sauce_ondemand) add xstream aliases in Plugin class to ensure it is done before data loading.

            Show
            mindless Alan Harder added a comment - Exception shows attempt to load an abstract class, so XSTREAM.alias() call at bottom of EC2Cloud.java is not taking effect. Probably this static block is not called before xstream starts loading.. some other plugins (locale, sauce_ondemand) add xstream aliases in Plugin class to ensure it is done before data loading.
            Hide
            abayer Andrew Bayer added a comment -

            Yup, that does the trick - fixing it and committing now.

            Show
            abayer Andrew Bayer added a comment - Yup, that does the trick - fixing it and committing now.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : abayer
            Path:
            trunk/hudson/plugins/ec2/src/main/java/hudson/plugins/ec2/EC2Cloud.java
            trunk/hudson/plugins/ec2/src/main/java/hudson/plugins/ec2/PluginImpl.java
            http://jenkins-ci.org/commit/32093
            Log:
            [FIXED JENKINS-6782] Moved xstream alias mapping to new PluginImpl, so that it's in place before we try to load the data from the config file

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/plugins/ec2/src/main/java/hudson/plugins/ec2/EC2Cloud.java trunk/hudson/plugins/ec2/src/main/java/hudson/plugins/ec2/PluginImpl.java http://jenkins-ci.org/commit/32093 Log: [FIXED JENKINS-6782] Moved xstream alias mapping to new PluginImpl, so that it's in place before we try to load the data from the config file

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                abayer Andrew Bayer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: