java.lang.RuntimeException: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers

Jenkins JIRA | Norbert Weiß | 1 year ago
  1. 0

    FATAL: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers java.lang.RuntimeException: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.isPassIdentifiedDownstream(BuildUniqueIdentifierHelper.java:95) at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:39) at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:406) at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:139) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132) ... 9 more

    Jenkins JIRA | 1 year ago | Norbert Weiß
    java.lang.RuntimeException: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers
  2. 0

    FATAL: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers java.lang.RuntimeException: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.isPassIdentifiedDownstream(BuildUniqueIdentifierHelper.java:95) at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:39) at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:406) at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:139) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132) ... 9 more

    Jenkins JIRA | 1 year ago | Norbert Weiß
    java.lang.RuntimeException: java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers
  3. 0

    Is Maven version 1.1 compatible with Jenkins 1.532 ?

    Google Groups | 2 years ago | inderpree...@gmail.com
    java.lang.RuntimeException: Unable to determine Maven version
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {quote} Started by user anonymous Building remotely on thesafari in workspace c:\jenkins\workspace\testngfirst Updating svn+ssh://192.168.1.71/home/manav/svn-repos/com.startpractice At revision 34 no change for svn+ssh://192.168.1.71/home/manav/svn-repos/com.startpractice since the previous build ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.RuntimeException: java.lang.IllegalArgumentException: artifactoryServer cannot be null at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:864) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:568) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.lang.IllegalArgumentException: artifactoryServer cannot be null at org.jfrog.hudson.util.PublisherContext$Builder.build(PublisherContext.java:158) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.createPublisherContext(MavenExtractorEnvironment.java:188) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136) ... 9 more project=hudson.maven.MavenModuleSet@6452222[testngfirst] project.getModules()=[hudson.maven.MavenModule@4e4326db[testngfirst/DoTest:com.startpractice][testngfirst/DoTest:com.startpractice][relativePath:]] project.getRootModule()=hudson.maven.MavenModule@4e4326db[testngfirst/DoTest:com.startpractice][testngfirst/DoTest:com.startpractice][relativePath:] FATAL: java.lang.IllegalArgumentException: artifactoryServer cannot be null java.lang.RuntimeException: java.lang.IllegalArgumentException: artifactoryServer cannot be null at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:864) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:568) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.lang.IllegalArgumentException: artifactoryServer cannot be null at org.jfrog.hudson.util.PublisherContext$Builder.build(PublisherContext.java:158) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.createPublisherContext(MavenExtractorEnvironment.java:188) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136) ... 9 more {quote} Follow the tutorial on youtube: Empower Jenkins with Artifactory I did this to deploy the job over to my xp slave ======> {quote} JNLP agent connected from /192.168.1.67 <===[JENKINS REMOTING CAPACITY]===>^@^@^@Slave.jar version: 2.16 This is a Windows slave Copied maven-agent.jar Copied maven3-agent.jar Copied maven3-interceptor.jar Copied maven-interceptor.jar Copied maven2.1-interceptor.jar Copied plexus-classworld.jar Copied classworlds.jar Slave successfully connected and online {quote}

    Jenkins JIRA | 4 years ago | manav brar
    java.lang.RuntimeException: java.lang.IllegalArgumentException: artifactoryServer cannot be null

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      hudson.maven.MavenModule cannot be cast to hudson.model.BuildableItemWithBuildWrappers

      at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.isPassIdentifiedDownstream()
    2. org.jfrog.hudson
      MavenExtractorEnvironment.buildEnvVars
      1. org.jfrog.hudson.util.BuildUniqueIdentifierHelper.isPassIdentifiedDownstream(BuildUniqueIdentifierHelper.java:95)
      2. org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:39)
      3. org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:406)
      4. org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:139)
      5. org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)
      5 frames
    3. Hudson
      AbstractBuild.getEnvironment
      1. hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)
      1 frame
    4. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun
      1. hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
      2. hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166)
      3. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)
      3 frames
    5. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      2. hudson.model.Run.execute(Run.java:1741)
      2 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:408)
      2 frames