java.lang.UnsupportedOperationException

Jenkins JIRA | Charles Austin | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I'm trying to do a simple scan with the Jenkins ClamAV plugin, but the build runs into the following crash every time: {code}FATAL: null java.lang.UnsupportedOperationException at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:95) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:59) at org.jenkinsci.plugins.clamav.ClamAvBuilder.perform(ClamAvBuilder.java:71) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:664) at hudson.model.Build$RunnerImpl.build(Build.java:177) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:430) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:146){code} The strange part about this is that the virus scan actually takes place, and even successfully produces a virus report of all the files in my workspace. However, none of the tasks listed after the clamav scan are performed due to the build failure. Out of curiosity, I tried setting the ClamAV host IP to blank and ran the job again. The virus scan didn't take place (obviously) but I received the exact same error message as above. Some information about my environment: -Jenkins was installed on the latest version (1.478) in Windows 7 Pro x64, from the packaged Windows installer (I also tried Jenkins 1.417, as that is the version specified at https://wiki.jenkins-ci.org/display/JENKINS/ClamAV+Plugin) -I'm starting Jenkins using Windows cmd.exe with "jenkins.exe start" and configuring via jenkins.xml (<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=9080 --ajp13Port=9009</arguments>) -My ClamAV installation is running on an Ubuntu VM -The only plugins I have installed other than ClamAV are the packaged defaults and Files Found Trigger Please let me know if any additional information is required.

    Jenkins JIRA | 5 years ago | Charles Austin
    java.lang.UnsupportedOperationException
  2. 0

    I'm trying to do a simple scan with the Jenkins ClamAV plugin, but the build runs into the following crash every time: {code}FATAL: null java.lang.UnsupportedOperationException at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:95) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:59) at org.jenkinsci.plugins.clamav.ClamAvBuilder.perform(ClamAvBuilder.java:71) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:664) at hudson.model.Build$RunnerImpl.build(Build.java:177) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:430) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:146){code} The strange part about this is that the virus scan actually takes place, and even successfully produces a virus report of all the files in my workspace. However, none of the tasks listed after the clamav scan are performed due to the build failure. Out of curiosity, I tried setting the ClamAV host IP to blank and ran the job again. The virus scan didn't take place (obviously) but I received the exact same error message as above. Some information about my environment: -Jenkins was installed on the latest version (1.478) in Windows 7 Pro x64, from the packaged Windows installer (I also tried Jenkins 1.417, as that is the version specified at https://wiki.jenkins-ci.org/display/JENKINS/ClamAV+Plugin) -I'm starting Jenkins using Windows cmd.exe with "jenkins.exe start" and configuring via jenkins.xml (<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=9080 --ajp13Port=9009</arguments>) -My ClamAV installation is running on an Ubuntu VM -The only plugins I have installed other than ClamAV are the packaged defaults and Files Found Trigger Please let me know if any additional information is required.

    Jenkins JIRA | 5 years ago | Charles Austin
    java.lang.UnsupportedOperationException
  3. 0

    Audit To Database Plugin - Jenkins - Jenkins Wiki

    jenkins-ci.org | 7 months ago
    java.lang.UnsupportedOperationException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      No message provided

      at hudson.tasks.BuildStepCompatibilityLayer.perform()
    2. Hudson
      BuildStepCompatibilityLayer.perform
      1. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:95)
      2. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:59)
      2 frames
    3. org.jenkinsci.plugins
      ClamAvBuilder.perform
      1. org.jenkinsci.plugins.clamav.ClamAvBuilder.perform(ClamAvBuilder.java:71)
      1 frame
    4. Hudson
      ResourceController.execute
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:664)
      3. hudson.model.Build$RunnerImpl.build(Build.java:177)
      4. hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      5. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:430)
      6. hudson.model.Run.run(Run.java:1376)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      8 frames