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
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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

    Help:basic RMI question

    Google Groups | 2 decades ago | Paolo De Lutiis
    java.lang.ClassCastException: serverPackage.ServerClass_Stub at clientPackage.myApplet.init(myApplet.java:line#) at sun.applet.AppletPanel.run(AppletPanel.java:273) at java.lang.Thread.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Shared hosting Bungeecord problems.

    GitHub | 3 years ago | Arksenu
    java.lang.ClassCastException: bka cannot be cast to fs All my servers are set to onlinemode: false Here is my config.yml groups: arksenu: - admin disabled_commands: - find player_limit: -1 stats: 347d1d62-6fb6-4869-bd43-7d0745de8e3c permissions: default: - bungeecord.command.server - bungeecord.command.list admin: - bungeecord.command.ip - bungeecord.command.alert - bungeecord.command.end - bungeecord.command.reload listeners: - max_players: 18 fallback_server: hub host: 0.0.0.0:35289 bind_local_address: true ping_passthrough: false tab_list: GLOBAL_PING default_server: hub forced_hosts: pvp.md-5.net: hub tab_size: 60 force_default_server: true motd: ’Network’ query_enabled: false query_port: 25565 timeout: 30000 connection_throttle: 4000 servers: hub: address: 108.170.8.146:35289 restricted: false motd: test UvGames: address: 66.85.165.170:26200 restricted: false motd: test UvPrison: address: 66.85.128.90:25928 restricted: false motd: test ip_forward: false online_mode: true And here is my console message -> UpstreamBridge has disconnected disconnected with: Exception Connecting:RuntimeException : Server is online mode! @ net.md_5.bungee.ServerConnector:188
  6. 0

    Shared hosting Bungeecord problems.

    GitHub | 3 years ago | Arksenu
    java.lang.ClassCastException: bka cannot be cast to fs All my servers are set to onlinemode: false Here is my config.yml groups: arksenu: - admin disabled_commands: - find player_limit: -1 stats: 347d1d62-6fb6-4869-bd43-7d0745de8e3c permissions: default: - bungeecord.command.server - bungeecord.command.list admin: - bungeecord.command.ip - bungeecord.command.alert - bungeecord.command.end - bungeecord.command.reload listeners: - max_players: 18 fallback_server: hub host: 0.0.0.0:35289 bind_local_address: true ping_passthrough: false tab_list: GLOBAL_PING default_server: hub forced_hosts: pvp.md-5.net: hub tab_size: 60 force_default_server: true motd: ’Network’ query_enabled: false query_port: 25565 timeout: 30000 connection_throttle: 4000 servers: hub: address: 108.170.8.146:35289 restricted: false motd: test UvGames: address: 66.85.165.170:26200 restricted: false motd: test UvPrison: address: 66.85.128.90:25928 restricted: false motd: test ip_forward: false online_mode: true And here is my console message -> UpstreamBridge has disconnected disconnected with: Exception Connecting:RuntimeException : Server is online mode! @ net.md_5.bungee.ServerConnector:188

    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