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

Plugin not usable anymore with recent Jenkins Core (2.426)

XMLWordPrintable

    • 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

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

              Created:
              Updated:
              Resolved: