You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by raminder sodhi <rj...@gmail.com> on 2016/04/12 12:09:34 UTC

Debugging failing tests

Hi,
I am trying to build storm on other java virtual machines like IBM java and
notice that the some of the storm-core tests fail.
I did a verbose mvn test run on one of the tests and I see the below, any
pointer on how to proceed would be helpful


   1. [ERROR] Failed to execute goal
   com.theoryinpractise:clojure-maven-plugin:1.7.1:test (test-clojure) on
   project storm-core: Clojure failed. -> [Help 1]
   2. org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
   execute goal com.theoryinpractise:clojure-maven-plugin:1.7.1:test
   (test-clojure) on project storm-core: Clojure failed.
   3.         at
   org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
   4.         at
   org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
   5.         at
   org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
   6.         at
   org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
   7.         at
   org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
   8.         at
   org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
   9.         at
   org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
   10.         at
   org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
   11.         at
   org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
   12.         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
   13.         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
   14.         at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
   15.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
   Method)
   16.         at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
   17.         at
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
   18.         at java.lang.reflect.Method.invoke(Method.java:507)
   19.         at
   org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
   20.         at
   org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
   21.         at
   org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
   22.         at
   org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
   23. Caused by: org.apache.maven.plugin.MojoExecutionException: Clojure
   failed.
   24.         at
   com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:464)
   25.         at
   com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:366)
   26.         at
   com.theoryinpractise.clojure.ClojureRunTestWithJUnitMojo.execute(ClojureRunTestWithJUnitMojo.java:138)
   27.         at
   org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
   28.         at
   org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
   29.


-- 
Raminder Jeet

Re: Debugging failing tests

Posted by Bobby Evans <ev...@yahoo-inc.com.INVALID>.
The issue is that the clojure test plugin does not give a lot of details.  line 1 just indicates that when if ran the clojure tests that they exited with a non 0 exit code. This could be all kinds of things, and you should probably look in storm-core/target/test-reports to see which if any of them failed, or if any of the tests called halt-process and shutdown the test JVM early.
 - Bobby 

    On Tuesday, April 12, 2016 5:14 AM, raminder sodhi <rj...@gmail.com> wrote:
 

 Hi,
I am trying to build storm on other java virtual machines like IBM java and
notice that the some of the storm-core tests fail.
I did a verbose mvn test run on one of the tests and I see the below, any
pointer on how to proceed would be helpful


  1. [ERROR] Failed to execute goal
  com.theoryinpractise:clojure-maven-plugin:1.7.1:test (test-clojure) on
  project storm-core: Clojure failed. -> [Help 1]
  2. org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
  execute goal com.theoryinpractise:clojure-maven-plugin:1.7.1:test
  (test-clojure) on project storm-core: Clojure failed.
  3.        at
  org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
  4.        at
  org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  5.        at
  org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
  6.        at
  org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
  7.        at
  org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
  8.        at
  org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
  9.        at
  org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
  10.        at
  org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
  11.        at
  org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
  12.        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
  13.        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
  14.        at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
  15.        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
  Method)
  16.        at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
  17.        at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
  18.        at java.lang.reflect.Method.invoke(Method.java:507)
  19.        at
  org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
  20.        at
  org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
  21.        at
  org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
  22.        at
  org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  23. Caused by: org.apache.maven.plugin.MojoExecutionException: Clojure
  failed.
  24.        at
  com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:464)
  25.        at
  com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:366)
  26.        at
  com.theoryinpractise.clojure.ClojureRunTestWithJUnitMojo.execute(ClojureRunTestWithJUnitMojo.java:138)
  27.        at
  org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
  28.        at
  org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
  29.


-- 
Raminder Jeet