java.util.InputMismatchException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Dear Team, I have come across an error when trying to generate grinder reports using Hudson- grinder plug-in. I have created a new job, selected grinder option and entered the path of the out log file generated by grinder. When I have run the build, the build failed and the following error was displayed in the console output. Console Output Started by user anonymous FATAL: null java.util.InputMismatchException at java.util.Scanner.throwFor(Scanner.java:840) at java.util.Scanner.next(Scanner.java:1461) at java.util.Scanner.nextDouble(Scanner.java:2387) at hudson.plugins.grinder.ResultReader.readTest(ResultReader.java:76) at hudson.plugins.grinder.ResultReader.parse(ResultReader.java:50) at hudson.plugins.grinder.ResultReader.<init>(ResultReader.java:36) at hudson.plugins.grinder.GrinderBuildAction.<init>(GrinderBuildAction.java:39) at hudson.plugins.grinder.GrinderPublisher.perform(GrinderPublisher.java:43) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345) at hudson.model.Run.run(Run.java:919) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) Below is the out log file for which I have tried generating a grinder report in Hudson but it failed. 3/13/09 3:40:41 PM (process vcc-pcs-test05-0): The Grinder version 3.0.1 3/13/09 3:40:41 PM (process vcc-pcs-test05-0): Sun Microsystems Inc. Java HotSpot(TM) Client VM 10.0-b19 on Windows XP x86 5.1 3/13/09 3:40:41 PM (process vcc-pcs-test05-0): time zone is IST (+0530) 3/13/09 3:40:46 PM (process vcc-pcs-test05-0): executing "statistics.py" using Jython 2.2.1 3/13/09 3:40:47 PM (process vcc-pcs-test05-0): registered plug-in net.grinder.plugin.http.HTTPPlugin 3/13/09 3:40:47 PM (process vcc-pcs-test05-0): starting threads 3/13/09 3:40:47 PM (thread 0): sleeping for 476 ms 3/13/09 3:40:47 PM (thread 0): about to do 1 run 3/13/09 3:40:47 PM (process vcc-pcs-test05-0): start time is 1236939047772 ms since Epoch 3/13/09 3:40:47 PM (thread 0 run 0 test 1): http://ontime.satyam.com/Default.aspx -> 302 Found, 130 bytes [Redirect, ensure the next URL is /Relogin.aspx] 3/13/09 3:40:47 PM (thread 0 run 0 test 1): The last test took 161 milliseconds 3/13/09 3:40:47 PM (thread 0 run 0 test 1): http://ontime.satyam.com/Default.aspx -> 302 Found, 130 bytes [Redirect, ensure the next URL is /Relogin.aspx] 3/13/09 3:40:47 PM (thread 0 run 0 test 2): http://ontime.satyam.com/Default.aspx -> 302 Found, 130 bytes [Redirect, ensure the next URL is /Relogin.aspx] 3/13/09 3:40:48 PM (thread 0 run 0 test 2): http://ontime.satyam.com/Styles/style.css -> 200 OK, 13971 bytes 3/13/09 3:40:48 PM (thread 0 run 0 test 2): GET foo.css returned a 13971 byte body 3/13/09 3:40:48 PM (thread 0 run 0 test 2): Page has taken 337 ms so far 3/13/09 3:40:48 PM (thread 0 run 0 test 2): http://ontime.satyam.com/images/1pix.gif -> 200 OK, 43 bytes 3/13/09 3:40:48 PM (thread 0 test 2): finished 1 run 3/13/09 3:40:48 PM (process vcc-pcs-test05-0): Final statistics for this process: Tests Errors Mean Test Test Time Mean Response Response Mean time to Mean time to Mean time to Time (ms) Standard response bytes per errors resolve host establish first byte Deviation length second connection (ms) Test 1 2 0 112.50 48.50 130.00 ? 0 8.50 48.50 112.50 "Basic request" Test 2 3 0 139.00 94.98 4714.67 ? 0 0.00 0.00 64.33 "Request resource" (Test 3 0 1 ? 0.00 ? ? 0 ? ? ?) "Page" Totals 5 0 128.40 80.76 2880.80 ? 0 3.40 19.40 83.60 (0) (1) Tests resulting in error only contribute to the Errors column. Statistics for individual tests can be found in the data file, including (possibly incomplete) statistics for erroneous tests. Composite tests are marked with () and not included in the totals. 3/13/09 3:40:48 PM (process vcc-pcs-test05-0): finished Please kindly tell us as to how to overcome the above error with which we are stuck up for the past 2-3 months. Please provide us with the solution so that we can generate grinder reports using Hudson effectively. Thanks and Regards Pratima Jagadish
    via by pratima123,
  • Dear Team, I have come across an error when trying to generate grinder reports using Hudson- grinder plug-in. I have created a new job, selected grinder option and entered the path of the out log file generated by grinder. When I have run the build, the build failed and the following error was displayed in the console output. Console Output Started by user anonymous FATAL: null java.util.InputMismatchException at java.util.Scanner.throwFor(Scanner.java:840) at java.util.Scanner.next(Scanner.java:1461) at java.util.Scanner.nextDouble(Scanner.java:2387) at hudson.plugins.grinder.ResultReader.readTest(ResultReader.java:76) at hudson.plugins.grinder.ResultReader.parse(ResultReader.java:50) at hudson.plugins.grinder.ResultReader.<init>(ResultReader.java:36) at hudson.plugins.grinder.GrinderBuildAction.<init>(GrinderBuildAction.java:39) at hudson.plugins.grinder.GrinderPublisher.perform(GrinderPublisher.java:43) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345) at hudson.model.Run.run(Run.java:919) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) Below is the out log file for which I have tried generating a grinder report in Hudson but it failed. 3/13/09 3:40:41 PM (process vcc-pcs-test05-0): The Grinder version 3.0.1 3/13/09 3:40:41 PM (process vcc-pcs-test05-0): Sun Microsystems Inc. Java HotSpot(TM) Client VM 10.0-b19 on Windows XP x86 5.1 3/13/09 3:40:41 PM (process vcc-pcs-test05-0): time zone is IST (+0530) 3/13/09 3:40:46 PM (process vcc-pcs-test05-0): executing "statistics.py" using Jython 2.2.1 3/13/09 3:40:47 PM (process vcc-pcs-test05-0): registered plug-in net.grinder.plugin.http.HTTPPlugin 3/13/09 3:40:47 PM (process vcc-pcs-test05-0): starting threads 3/13/09 3:40:47 PM (thread 0): sleeping for 476 ms 3/13/09 3:40:47 PM (thread 0): about to do 1 run 3/13/09 3:40:47 PM (process vcc-pcs-test05-0): start time is 1236939047772 ms since Epoch 3/13/09 3:40:47 PM (thread 0 run 0 test 1): http://ontime.satyam.com/Default.aspx -> 302 Found, 130 bytes [Redirect, ensure the next URL is /Relogin.aspx] 3/13/09 3:40:47 PM (thread 0 run 0 test 1): The last test took 161 milliseconds 3/13/09 3:40:47 PM (thread 0 run 0 test 1): http://ontime.satyam.com/Default.aspx -> 302 Found, 130 bytes [Redirect, ensure the next URL is /Relogin.aspx] 3/13/09 3:40:47 PM (thread 0 run 0 test 2): http://ontime.satyam.com/Default.aspx -> 302 Found, 130 bytes [Redirect, ensure the next URL is /Relogin.aspx] 3/13/09 3:40:48 PM (thread 0 run 0 test 2): http://ontime.satyam.com/Styles/style.css -> 200 OK, 13971 bytes 3/13/09 3:40:48 PM (thread 0 run 0 test 2): GET foo.css returned a 13971 byte body 3/13/09 3:40:48 PM (thread 0 run 0 test 2): Page has taken 337 ms so far 3/13/09 3:40:48 PM (thread 0 run 0 test 2): http://ontime.satyam.com/images/1pix.gif -> 200 OK, 43 bytes 3/13/09 3:40:48 PM (thread 0 test 2): finished 1 run 3/13/09 3:40:48 PM (process vcc-pcs-test05-0): Final statistics for this process: Tests Errors Mean Test Test Time Mean Response Response Mean time to Mean time to Mean time to Time (ms) Standard response bytes per errors resolve host establish first byte Deviation length second connection (ms) Test 1 2 0 112.50 48.50 130.00 ? 0 8.50 48.50 112.50 "Basic request" Test 2 3 0 139.00 94.98 4714.67 ? 0 0.00 0.00 64.33 "Request resource" (Test 3 0 1 ? 0.00 ? ? 0 ? ? ?) "Page" Totals 5 0 128.40 80.76 2880.80 ? 0 3.40 19.40 83.60 (0) (1) Tests resulting in error only contribute to the Errors column. Statistics for individual tests can be found in the data file, including (possibly incomplete) statistics for erroneous tests. Composite tests are marked with () and not included in the totals. 3/13/09 3:40:48 PM (process vcc-pcs-test05-0): finished Please kindly tell us as to how to overcome the above error with which we are stuck up for the past 2-3 months. Please provide us with the solution so that we can generate grinder reports using Hudson effectively. Thanks and Regards Pratima Jagadish
    via by pratima123,
    • java.util.InputMismatchException at java.util.Scanner.throwFor(Scanner.java:840) at java.util.Scanner.next(Scanner.java:1461) at java.util.Scanner.nextDouble(Scanner.java:2387) at hudson.plugins.grinder.ResultReader.readTest(ResultReader.java:76) at hudson.plugins.grinder.ResultReader.parse(ResultReader.java:50) at hudson.plugins.grinder.ResultReader.<init>(ResultReader.java:36)

    Users with the same issue

    Unknown visitor1 times, last one,
    David
    2 times, last one,
    balintn
    4 times, last one,
    Plato2000
    1 times, last one,
    Unknown visitor1 times, last one,
    3 more bugmates