org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test (default) on project nexus-migration-plugin-test-harness: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null

Sonatype JIRA | Peter Lynch | 5 years ago
  1. 0

    We run the migration plugin ITs in a separate grid job now as a nexus-oss downstream dependency. It is currently broken. It is also specifying profile names that don't apply to it. https://builds.sonatype.org/job/nexus-migration-plugin-its/8/jdk=java-6x,label=linux/console {noformat} ------------------------------------------------------- T E S T S ------------------------------------------------------- ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4:41.885s [INFO] Finished at: Tue Aug 16 19:20:57 CDT 2011 [INFO] Final Memory: 51M/272M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "cargo" could not be activated because it does not exist. [WARNING] The requested profile "modules" could not be activated because it does not exist. [INFO] c.s.m.m.e.h.MavenExecutionResultHandler - Build failed with exception(s) [INFO] c.s.m.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test (default) on project nexus-migration-plugin-test-harness: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null [DEBUG] Closing connection to remote [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test (default) on project nexus-migration-plugin-test-harness: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null: org.sonatype.nexus.integrationtests.report.ProgressListener cannot be cast to org.junit.runner.notification.RunListener -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test (default) on project nexus-migration-plugin-test-harness: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 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:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:134) at org.apache.maven.surefire.booter.SurefireReflector.instantiateProvider(SurefireReflector.java:243) at org.apache.maven.surefire.booter.ProviderFactory.createProvider(ProviderFactory.java:81) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.getSuitesIterator(ForkStarter.java:227) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkPerTestSet(ForkStarter.java:121) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:102) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:199) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:176) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:134) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:97) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:130) ... 30 more Caused by: java.lang.ClassCastException: org.sonatype.nexus.integrationtests.report.ProgressListener cannot be cast to org.junit.runner.notification.RunListener at org.apache.maven.surefire.common.junit4.JUnit4RunListenerFactory.createCustomListeners(JUnit4RunListenerFactory.java:43) at org.apache.maven.surefire.junit4.JUnit4Provider.<init>(JUnit4Provider.java:71) ... 35 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [DEBUG] Waiting for process to finish [DEBUG] Result: 1 [locks-and-latches] Releasing all the locks [locks-and-latches] All the locks released Recording test results [INFO] Recording Maven artifact fingerprints. [INFO] Recorded Maven artifact fingerprints: 1357 files of 1357 build artifacts for 1 Maven builders. [INFO] Deleting old Maven artifacts from #6 [INFO] Archiving Maven artifacts. [INFO] Archived Maven artifacts: 4. Sending e-mails to: builds@lists.sonatype.com IRC notifier plugin: Sending notification to: #ci Finished: FAILURE {noformat}

    Sonatype JIRA | 5 years ago | Peter Lynch
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test (default) on project nexus-migration-plugin-test-harness: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null
  2. 0

    We run the migration plugin ITs in a separate grid job now as a nexus-oss downstream dependency. It is currently broken. It is also specifying profile names that don't apply to it. https://builds.sonatype.org/job/nexus-migration-plugin-its/8/jdk=java-6x,label=linux/console {noformat} ------------------------------------------------------- T E S T S ------------------------------------------------------- ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4:41.885s [INFO] Finished at: Tue Aug 16 19:20:57 CDT 2011 [INFO] Final Memory: 51M/272M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "cargo" could not be activated because it does not exist. [WARNING] The requested profile "modules" could not be activated because it does not exist. [INFO] c.s.m.m.e.h.MavenExecutionResultHandler - Build failed with exception(s) [INFO] c.s.m.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test (default) on project nexus-migration-plugin-test-harness: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null [DEBUG] Closing connection to remote [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test (default) on project nexus-migration-plugin-test-harness: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null: org.sonatype.nexus.integrationtests.report.ProgressListener cannot be cast to org.junit.runner.notification.RunListener -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test (default) on project nexus-migration-plugin-test-harness: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 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:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:134) at org.apache.maven.surefire.booter.SurefireReflector.instantiateProvider(SurefireReflector.java:243) at org.apache.maven.surefire.booter.ProviderFactory.createProvider(ProviderFactory.java:81) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.getSuitesIterator(ForkStarter.java:227) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkPerTestSet(ForkStarter.java:121) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:102) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:199) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:176) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:134) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:97) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:130) ... 30 more Caused by: java.lang.ClassCastException: org.sonatype.nexus.integrationtests.report.ProgressListener cannot be cast to org.junit.runner.notification.RunListener at org.apache.maven.surefire.common.junit4.JUnit4RunListenerFactory.createCustomListeners(JUnit4RunListenerFactory.java:43) at org.apache.maven.surefire.junit4.JUnit4Provider.<init>(JUnit4Provider.java:71) ... 35 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [DEBUG] Waiting for process to finish [DEBUG] Result: 1 [locks-and-latches] Releasing all the locks [locks-and-latches] All the locks released Recording test results [INFO] Recording Maven artifact fingerprints. [INFO] Recorded Maven artifact fingerprints: 1357 files of 1357 build artifacts for 1 Maven builders. [INFO] Deleting old Maven artifacts from #6 [INFO] Archiving Maven artifacts. [INFO] Archived Maven artifacts: 4. Sending e-mails to: builds@lists.sonatype.com IRC notifier plugin: Sending notification to: #ci Finished: FAILURE {noformat}

    Sonatype JIRA | 5 years ago | Peter Lynch
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test (default) on project nexus-migration-plugin-test-harness: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.9:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null
  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

    oracle.com | 8 months ago
    java.lang.ClassCastException: cannot be cast to javax.servlet.Filter
  6. 0

    How to authenticate Azure Mobile Services in Android Service

    Stack Overflow | 2 years ago | Neil
    java.lang.ClassCastException: *** cannot be cast to android.app.Activity

    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

      org.sonatype.nexus.integrationtests.report.ProgressListener cannot be cast to org.junit.runner.notification.RunListener

      at org.apache.maven.surefire.common.junit4.JUnit4RunListenerFactory.createCustomListeners()
    2. JUnit4 Provider
      JUnit4Provider.<init>
      1. org.apache.maven.surefire.common.junit4.JUnit4RunListenerFactory.createCustomListeners(JUnit4RunListenerFactory.java:43)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.<init>(JUnit4Provider.java:71)
      2 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames
    4. SureFire
      ProviderFactory.createProvider
      1. org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:130)
      2. org.apache.maven.surefire.booter.SurefireReflector.instantiateProvider(SurefireReflector.java:243)
      3. org.apache.maven.surefire.booter.ProviderFactory.createProvider(ProviderFactory.java:81)
      3 frames
    5. Maven Surefire Common
      AbstractSurefireMojo.execute
      1. org.apache.maven.plugin.surefire.booterclient.ForkStarter.getSuitesIterator(ForkStarter.java:227)
      2. org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkPerTestSet(ForkStarter.java:121)
      3. org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:102)
      4. org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:199)
      5. org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:176)
      6. org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:134)
      7. org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:97)
      7 frames
    6. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      1 frame
    7. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      6. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
      9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      9 frames
    8. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      3 frames
    9. 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
    10. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      4 frames