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

SubversionChangeLogSet$LogEntry cannot be cast to BazaarChangeSet

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • bazaar-plugin
    • None
    • Hudson Bazaar plugin 1.1 + maven + SVN

    Description

      When using both the Bazaar (1.0+) and SVN plugins on hudson, some of our maven builds that update from SVN fail with the following error:

      FATAL: hudson.scm.SubversionChangeLogSet$LogEntry cannot be cast to hudson.plugins.bazaar.BazaarChangeSet
      java.lang.ClassCastException: hudson.scm.SubversionChangeLogSet$LogEntry cannot be cast to hudson.plugins.bazaar.BazaarChangeSet
      at hudson.plugins.bazaar.BazaarTagAction$BazaarTagListener.onChangeLogParsed(BazaarTagAction.java:160)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:488)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:412)
      at hudson.model.Run.run(Run.java:1362)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:401)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)

      Only every second build fails - that's probably because the SVN update succeeds, so for every other build it doesn't need update.

      From the stack trace I assume something nasty (a singleton?) has happened when the BazaarTagAction was registered (these jobs have nothing to do with Bazaar!)

      Attachments

        Activity

          There is an unchecked cast in the given line (BazaarTagAction.java:160), and seems like a very simple fix.

          heckenbergerpeter heckenbergerpeter added a comment - There is an unchecked cast in the given line (BazaarTagAction.java:160), and seems like a very simple fix.

          People

            kgeri kgeri
            kgeri kgeri
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: