java.io.IOException: Expecting class hudson.model.FreeStyleProject but got class hudson.maven.MavenModuleSet instead

Jenkins JIRA | Oliver Gondža | 2 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

    It seems that when a job is recreated on source instance with different type, it is not possible to push updates. {noformat}hudson.plugins.build_publisher.ServerFailureException: .../config.xml responded with status 500 at hudson.plugins.build_publisher.HTTPBuildTransmitter.followRedirects(HTTPBuildTransmitter.java:193) at hudson.plugins.build_publisher.HTTPBuildTransmitter.executeMethod(HTTPBuildTransmitter.java:158) at hudson.plugins.build_publisher.PublisherThread.executeMethod(PublisherThread.java:306) at hudson.plugins.build_publisher.PublisherThread.submitConfig(PublisherThread.java:273) at hudson.plugins.build_publisher.PublisherThread.createOrSynchronize(PublisherThread.java:266) at hudson.plugins.build_publisher.PublisherThread.synchronizeProjectSettings(PublisherThread.java:220) at hudson.plugins.build_publisher.PublisherThread.run(PublisherThread.java:113) Caused by: hudson.plugins.build_publisher.ServerFailureException: .../config.xml responded with status 500 at hudson.plugins.build_publisher.HTTPBuildTransmitter.followRedirects(HTTPBuildTransmitter.java:191) {noformat} This is what public reports: {noformat} java.io.IOException: Expecting class hudson.model.FreeStyleProject but got class hudson.maven.MavenModuleSet instead at hudson.model.AbstractItem.updateByXml(AbstractItem.java:644) at hudson.model.AbstractItem.doConfigDotXml(AbstractItem.java:601) {noformat}

    Jenkins JIRA | 2 years ago | Oliver Gondža
    java.io.IOException: Expecting class hudson.model.FreeStyleProject but got class hudson.maven.MavenModuleSet instead
  2. 0

    It seems that when a job is recreated on source instance with different type, it is not possible to push updates. {noformat}hudson.plugins.build_publisher.ServerFailureException: .../config.xml responded with status 500 at hudson.plugins.build_publisher.HTTPBuildTransmitter.followRedirects(HTTPBuildTransmitter.java:193) at hudson.plugins.build_publisher.HTTPBuildTransmitter.executeMethod(HTTPBuildTransmitter.java:158) at hudson.plugins.build_publisher.PublisherThread.executeMethod(PublisherThread.java:306) at hudson.plugins.build_publisher.PublisherThread.submitConfig(PublisherThread.java:273) at hudson.plugins.build_publisher.PublisherThread.createOrSynchronize(PublisherThread.java:266) at hudson.plugins.build_publisher.PublisherThread.synchronizeProjectSettings(PublisherThread.java:220) at hudson.plugins.build_publisher.PublisherThread.run(PublisherThread.java:113) Caused by: hudson.plugins.build_publisher.ServerFailureException: .../config.xml responded with status 500 at hudson.plugins.build_publisher.HTTPBuildTransmitter.followRedirects(HTTPBuildTransmitter.java:191) {noformat} This is what public reports: {noformat} java.io.IOException: Expecting class hudson.model.FreeStyleProject but got class hudson.maven.MavenModuleSet instead at hudson.model.AbstractItem.updateByXml(AbstractItem.java:644) at hudson.model.AbstractItem.doConfigDotXml(AbstractItem.java:601) {noformat}

    Jenkins JIRA | 2 years ago | Oliver Gondža
    java.io.IOException: Expecting class hudson.model.FreeStyleProject but got class hudson.maven.MavenModuleSet instead
  3. 0

    Jenkins users - REST API update job boken?

    nabble.com | 2 years ago
    java.io.IOException: Failed to persist config.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins [Jenkins]

    theforeman.org | 2 years ago
    java.io.IOException: Failed to persist config.xml

    Root Cause Analysis

    1. java.io.IOException

      Expecting class hudson.model.FreeStyleProject but got class hudson.maven.MavenModuleSet instead

      at hudson.model.AbstractItem.updateByXml()
    2. Hudson
      AbstractItem.doConfigDotXml
      1. hudson.model.AbstractItem.updateByXml(AbstractItem.java:644)
      2. hudson.model.AbstractItem.doConfigDotXml(AbstractItem.java:601)
      2 frames