japex
  1. japex
  2. JAPEX-14

Wrong error reported when tests fail from multiple threads

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      14

      Description

      When a broken Driver is written and run from a single thread the correct error
      is reported and the test run fails. This is good. When you run the same test
      from two threads, you get a very misleading NumberFormatException.

      Probably, the real exceptions should be displayed somewhere.

      Driver:

      class BrokenDriver extends JapexDriverBase {
      public void run(TestCase testcase)

      { throw new RuntimeException(); }

      }

      Error: (ant output) 1 thread

      japex:
      [java] Reading configuration file
      [java] BrokenDriver using 1 thread(s) on 1 cpu(s)
      [java] Exception in thread "main" java.lang.RuntimeException:
      [java] at BrokenDriver.run(LegacyTibrv.java:35)
      [java] at com.sun.japex.JapexDriverBase.warmup(JapexDriverBase.java:345)
      [java] at com.sun.japex.JapexDriverBase.warmup(JapexDriverBase.java:152)
      [java] at com.sun.japex.JapexDriverBase.call(JapexDriverBase.java:270)
      [java] at com.sun.japex.Engine.forEachTestCase(Engine.java:395)
      [java] at com.sun.japex.Engine.forEachRun(Engine.java:285)
      [java] at com.sun.japex.Engine.forEachDriver(Engine.java:221)
      [java] at com.sun.japex.Engine.start(Engine.java:146)
      [java] at com.sun.japex.Japex.run(Japex.java:150)
      [java] at com.sun.japex.Japex.main(Japex.java:123)
      [java] Run 1: 1bx1,

      Error: (ant output) 2 threads

      japex:
      [java] Reading configuration file
      [java] BrokenDriver using 2 thread(s) on 1 cpu(s)
      bx1,NaN,4096bx1,NaN,8192bx1,NaN,16384bx1,NaN,1bx10,NaN,2bx10,NaN,4bx10,NaN,8bx10,NaN,16bx10,NaN,32bx10,NaN,64bx10,NaN,128bx10,NaN,256bx10,NaN,512bx10,NaN,1024bx10,NaN,4096bx10,NaN,8192bx10,NaN,16384bx10,NaN,aritmean,NaN,geommean,NaN,harmmean,NaN
      [java] Exception in thread "main" java.lang.NullPointerException
      [java] at
      sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:991)
      [java] at java.lang.Double.parseDouble(Double.java:510)
      [java] at com.sun.japex.ParamsImpl.getDoubleParam(ParamsImpl.java:269)
      [java] at com.sun.japex.DriverImpl.computeMeans(DriverImpl.java:144)
      [java] at
      com.sun.japex.DriverImpl.getAggregateTestCases(DriverImpl.java:278)
      [java] at com.sun.japex.DriverImpl.serialize(DriverImpl.java:326)
      [java] at com.sun.japex.TestSuiteImpl.serialize(TestSuiteImpl.java:537)
      [java] at com.sun.japex.Japex.run(Japex.java:165)
      [java] at com.sun.japex.Japex.main(Japex.java:123)

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            japex-issues
            Reporter:
            crahen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: