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

SubversionChangeLogSet$LogEntry cannot be cast to BazaarChangeSet

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: bazaar-plugin
    • Labels:
      None
    • Environment:
      Hudson Bazaar plugin 1.1 + maven + SVN
    • Similar Issues:

      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

          Hide
          heckenbergerpeter heckenbergerpeter added a comment -

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

          Show
          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

            • Assignee:
              kgeri kgeri
              Reporter:
              kgeri kgeri
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: