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

EC2 cloud configuration fails to load after restart

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • ec2-plugin
    • None

    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

            abayer Andrew Bayer created issue -
            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.

            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.
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Assignee kohsuke [ kohsuke ] abayer [ abayer ]
            abayer Andrew Bayer added a comment -

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

            abayer Andrew Bayer added a comment - Yup, that does the trick - fixing it and committing now.

            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

            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
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            abayer Andrew Bayer made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            evernat evernat made changes -
            Link This issue is duplicated by JENKINS-5738 [ JENKINS-5738 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 136877 ] JNJira + In-Review [ 204263 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: