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

Plugin not usable anymore with recent Jenkins Core (2.426)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None

      Hi,

      I think this plugin need a good refresh (even if it's only published to experimental).

      Would be nice to keep it in a minimal working state.

      Right now the plugin is raising class loading issues

      [Pipeline] // node
      [Pipeline] End of Pipeline
      java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: org/codehaus/jettison/mapped/Configuration [in thread "org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution [#1]"]
      	at com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver.<init>(JettisonMappedXmlDriver.java:77)
      	at com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver.<init>(JettisonMappedXmlDriver.java:63)
      	at com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver.<init>(JettisonMappedXmlDriver.java:55)
      	at io.jenkins.plugins.postgresql.XStreamHandler.<clinit>(XStreamHandler.java:41)
      Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: ec192dce-ddf2-4703-a901-3f9c02ff9ffc
      Caused: java.lang.NoClassDefFoundError: Could not initialize class io.jenkins.plugins.postgresql.XStreamHandler
      	at io.jenkins.plugins.postgresql.PostgreSQLFingerprintStorage.load(PostgreSQLFingerprintStorage.java:183)
      	at hudson.model.Fingerprint.load(Fingerprint.java:1350)
      	at hudson.model.FingerprintMap.load(FingerprintMap.java:92)
      	at hudson.model.FingerprintMap.load(FingerprintMap.java:47)
      	at hudson.util.KeyedDataStorage.get(KeyedDataStorage.java:161)
      	at hudson.model.FingerprintMap.get(FingerprintMap.java:82)
      	at hudson.model.FingerprintMap.get(FingerprintMap.java:47)
      	at hudson.util.KeyedDataStorage.getOrCreate(KeyedDataStorage.java:111)
      	at hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:68)
      	at org.jenkinsci.plugins.pipeline.maven.publishers.DependenciesFingerprintPublisher.process(DependenciesFingerprintPublisher.java:192)
      	at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:172)
      	at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution2$WithMavenStepExecutionCallBack.finished(WithMavenStepExecution2.java:1296)
      	at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution$TailCall.lambda$onSuccess$0(GeneralNonBlockingStepExecution.java:140)
      	at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      Finished: FAILURE
      

      Actual config is

        fingerprints:
          fingerprintCleanupDisabled: false
          storage:
            postgreSQL:
              credentialsId: "postgres"
              databaseName: "jenkins"
              host: "postgresql-jenkins"
      

      This was working with 2.424 and fingerprints were stored on the PG database

          [JENKINS-72142] Plugin not usable anymore with recent Jenkins Core (2.426)

          Valentin Delaye created issue -

          Probably just some conflict of the Jettison library when some plugin are installed

          Most likely to be replaced by an API plugin that provide Jettison

          https://github.com/jenkinsci/jersey2-api-plugin

           <dependency>
              <groupId>io.jenkins.plugins</groupId>
              <artifactId>jersey2-api</artifactId>
          </dependency>
          

          Found those thread

          https://github.com/jenkinsci/jersey2-api-plugin/pull/77
          https://github.com/jenkinsci/jenkins/pull/4903

          Valentin Delaye added a comment - Probably just some conflict of the Jettison library when some plugin are installed Most likely to be replaced by an API plugin that provide Jettison https://github.com/jenkinsci/jersey2-api-plugin  <dependency> <groupId>io.jenkins.plugins</groupId> <artifactId>jersey2-api</artifactId> </dependency> Found those thread https://github.com/jenkinsci/jersey2-api-plugin/pull/77 https://github.com/jenkinsci/jenkins/pull/4903
          Valentin Delaye made changes -
          Assignee Original: stellargo [ stellargo ] New: Valentin Delaye [ jonesbusy ]

          Fixed on latest versions

          Valentin Delaye added a comment - Fixed on latest versions
          Valentin Delaye made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            jonesbusy Valentin Delaye
            jonesbusy Valentin Delaye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: