java.lang.UnsupportedOperationException

Jenkins JIRA | bigsassy | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I'm hoping this is something dumb on my end and not a bug. When trying to use the dbChart plugin I always get a failure, with the UnsupportedOperationException getting thrown. System Specs: -------------- Ubuntu 10.04 Hudson 1.360 MySQL 5.1.41 Java 1.6 To recreate: ------------- * Install the plugin * Create a database called dbcharts in MySQL * Create a new JDBC Connection in the Hudson configuration. Test connection to validate settings. * Create a new freestyle project * Leave all project settings in their default state. * Add an entry under Database charts, using the default settings * Save the settings for the new project * Run the build I ran this on a fresh Ubuntu install and still received the same error. Perhaps the plugin needs updating to work with the latest version of Hudson? Here's the output in the Hudson logs below: ---------------------------------------------------------------------------------- May 31, 2010 10:13:17 PM hudson.plugins.dbcharts.DbChartPublisher getDescriptor INFO: DbChartPublisher.getDescriptor() called May 31, 2010 10:13:17 PM hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps WARNING: Publisher hudson.plugins.dbcharts.DbChartPublisher aborted due to exception java.lang.UnsupportedOperationException at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:97) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:61) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1264) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:124) May 31, 2010 10:13:17 PM hudson.plugins.dbcharts.DbChartPublisher getDescriptor INFO: DbChartPublisher.getDescriptor() called May 31, 2010 10:13:17 PM hudson.model.Run run INFO: test #2 main build action completed: SUCCESS May 31, 2010 10:13:17 PM hudson.plugins.dbcharts.DbChartPublisher getDescriptor INFO: DbChartPublisher.getDescriptor() called

    Jenkins JIRA | 7 years ago | bigsassy
    java.lang.UnsupportedOperationException
  2. 0

    I'm hoping this is something dumb on my end and not a bug. When trying to use the dbChart plugin I always get a failure, with the UnsupportedOperationException getting thrown. System Specs: -------------- Ubuntu 10.04 Hudson 1.360 MySQL 5.1.41 Java 1.6 To recreate: ------------- * Install the plugin * Create a database called dbcharts in MySQL * Create a new JDBC Connection in the Hudson configuration. Test connection to validate settings. * Create a new freestyle project * Leave all project settings in their default state. * Add an entry under Database charts, using the default settings * Save the settings for the new project * Run the build I ran this on a fresh Ubuntu install and still received the same error. Perhaps the plugin needs updating to work with the latest version of Hudson? Here's the output in the Hudson logs below: ---------------------------------------------------------------------------------- May 31, 2010 10:13:17 PM hudson.plugins.dbcharts.DbChartPublisher getDescriptor INFO: DbChartPublisher.getDescriptor() called May 31, 2010 10:13:17 PM hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps WARNING: Publisher hudson.plugins.dbcharts.DbChartPublisher aborted due to exception java.lang.UnsupportedOperationException at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:97) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:61) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1264) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:124) May 31, 2010 10:13:17 PM hudson.plugins.dbcharts.DbChartPublisher getDescriptor INFO: DbChartPublisher.getDescriptor() called May 31, 2010 10:13:17 PM hudson.model.Run run INFO: test #2 main build action completed: SUCCESS May 31, 2010 10:13:17 PM hudson.plugins.dbcharts.DbChartPublisher getDescriptor INFO: DbChartPublisher.getDescriptor() called

    Jenkins JIRA | 7 years ago | bigsassy
    java.lang.UnsupportedOperationException

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      No message provided

      at hudson.tasks.BuildStepCompatibilityLayer.perform()
    2. Hudson
      Executor.run
      1. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:97)
      2. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:61)
      3. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      4. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      5. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
      6. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
      7. hudson.model.Build$RunnerImpl.post2(Build.java:158)
      8. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      9. hudson.model.Run.run(Run.java:1264)
      10. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      11. hudson.model.ResourceController.execute(ResourceController.java:88)
      12. hudson.model.Executor.run(Executor.java:124)
      12 frames