org.apache.maven.InternalErrorException: Internal error: java.lang.ClassCastException: [Lorg.codehaus.plexus.configuration.PlexusConfiguration; cannot be cast to [Lorg.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;

Jenkins JIRA | raresp | 6 years ago
  1. 0

    Using Olamy's work on integration with maven3 and the cobertura-plugin I get the following exception: org.apache.maven.InternalErrorException: Internal error: java.lang.ClassCastException: [Lorg.codehaus.plexus.configuration.PlexusConfiguration; cannot be cast to [Lorg.codehaus.plexus.configuration.xml.XmlPlexusConfiguration; at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:148) at hudson.maven.Maven3Builder.call(Maven3Builder.java:119) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassCastException: [Lorg.codehaus.plexus.configuration.PlexusConfiguration; cannot be cast to [Lorg.codehaus.plexus.configuration.xml.XmlPlexusConfiguration; at hudson.plugins.cobertura.MavenCoberturaPublisher.preExecute(MavenCoberturaPublisher.java:50) at hudson.maven.Maven3Builder$MavenExecutionListener.reccordMojoStarted(Maven3Builder.java:463) at hudson.maven.Maven3Builder$MavenExecutionListener.forkStarted(Maven3Builder.java:593) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:88) at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:314) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:185) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) ... 24 more Looks like a ClassLoader issue.

    Jenkins JIRA | 6 years ago | raresp
    org.apache.maven.InternalErrorException: Internal error: java.lang.ClassCastException: [Lorg.codehaus.plexus.configuration.PlexusConfiguration; cannot be cast to [Lorg.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;
  2. 0

    Using Olamy's work on integration with maven3 and the cobertura-plugin I get the following exception: org.apache.maven.InternalErrorException: Internal error: java.lang.ClassCastException: [Lorg.codehaus.plexus.configuration.PlexusConfiguration; cannot be cast to [Lorg.codehaus.plexus.configuration.xml.XmlPlexusConfiguration; at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:148) at hudson.maven.Maven3Builder.call(Maven3Builder.java:119) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassCastException: [Lorg.codehaus.plexus.configuration.PlexusConfiguration; cannot be cast to [Lorg.codehaus.plexus.configuration.xml.XmlPlexusConfiguration; at hudson.plugins.cobertura.MavenCoberturaPublisher.preExecute(MavenCoberturaPublisher.java:50) at hudson.maven.Maven3Builder$MavenExecutionListener.reccordMojoStarted(Maven3Builder.java:463) at hudson.maven.Maven3Builder$MavenExecutionListener.forkStarted(Maven3Builder.java:593) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:88) at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:314) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:185) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) ... 24 more Looks like a ClassLoader issue.

    Jenkins JIRA | 6 years ago | raresp
    org.apache.maven.InternalErrorException: Internal error: java.lang.ClassCastException: [Lorg.codehaus.plexus.configuration.PlexusConfiguration; cannot be cast to [Lorg.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;
  3. 0

    Memcached Java客户端2.6.1发布 - 编程语言 - ITeye资讯

    iteye.com | 1 year ago
    java.lang.ClassCastException: cannot be cast to
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    cannot be cast to javax.servlet.Filter

    Oracle Community | 6 years ago | YE
    java.lang.ClassCastException: cannot be cast to javax.servlet.Filter
  6. 0

    ClassCastException at org.eclipse.zest.core.viewers.internal.GraphModelEntityFactory.doBuildGraph(GraphModelEntityFactory.java:87)

    Eclipse Bugzilla | 7 years ago | phil_fj12
    java.lang.ClassCastException: [...] cannot be cast to org.eclipse.zest.core.viewers.IGraphEntityContentProvider

    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

      [Lorg.codehaus.plexus.configuration.PlexusConfiguration; cannot be cast to [Lorg.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;

      at hudson.plugins.cobertura.MavenCoberturaPublisher.preExecute()
    2. hudson.plugins.cobertura
      MavenCoberturaPublisher.preExecute
      1. hudson.plugins.cobertura.MavenCoberturaPublisher.preExecute(MavenCoberturaPublisher.java:50)
      1 frame
    3. Hudson Maven Embedder
      Maven3Builder$MavenExecutionListener.forkStarted
      1. hudson.maven.Maven3Builder$MavenExecutionListener.reccordMojoStarted(Maven3Builder.java:463)
      2. hudson.maven.Maven3Builder$MavenExecutionListener.forkStarted(Maven3Builder.java:593)
      2 frames
    4. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:88)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:314)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:185)
      4. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
      5. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
      6. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      7. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      8. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      9. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      10. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
      11. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
      11 frames
    5. M3 Interceptor
      Maven3Launcher.main
      1. org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:78)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. Plexus
      Launcher.launch
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      2 frames
    8. M3 Agent
      Maven3Main.launch
      1. org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:148)
      1 frame
    9. Hudson Maven Embedder
      Maven3Builder.call
      1. hudson.maven.Maven3Builder.call(Maven3Builder.java:119)
      2. hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
      2 frames
    10. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.UserRequest.perform(UserRequest.java:114)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:270)
      3 frames
    11. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      6. java.lang.Thread.run(Thread.java:662)
      6 frames