java.lang.IllegalArgumentException: n must be positive

JIRA | Nidhi Mehta | 2 years ago
  1. 0

    On master H2O Build git hash ed7ec99e3f1ebb4c92ac21ea4016369a9f5b85d6 Start h2o from command line- java -Xmx10g -ea -jar h2o.jar -experimental -name no Create frame in Flow- createFrame {"dest":"frm","rows":100,"cols":"100","seed":7595850248774472000,"randomize":true,"value":0,"real_range":"1","categorical_fraction":"0","factors":"0","integer_fraction":"0.2","binary_fraction":"0","binary_ones_fraction":"0.","integer_range":"938313677636","missing_fraction":"0.04","response_factors":2,"has_response":false} hangs at 40% with no error msg (Screenshot attached) in terminal get- 06-02 13:04:59.638 192.168.1.13:54321 7154 # Session INFO: Method: POST , URI: /3/CreateFrame, route: /3/CreateFrame, parms: {binary_ones_fraction=0., binary_fraction=0, randomize=true, missing_fraction=0.04, integer_fraction=0.2, real_range=1, has_response=false, seed=7595850248774472000, response_factors=2, factors=0, cols=100, integer_range=938313677636, value=0, dest=frm, categorical_fraction=0, rows=100} onExCompletion for water.fvec.FrameCreator$FrameRandomizer@298eae83 java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Random.java:300) at water.fvec.FrameCreator$FrameRandomizer.map(FrameCreator.java:176) at water.MRTask.compute2(MRTask.java:443) at water.H2O$H2OCountedCompleter.compute(H2O.java:666) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) barrier onExCompletion for water.fvec.FrameCreator@5b86447e

    JIRA | 2 years ago | Nidhi Mehta
    java.lang.IllegalArgumentException: n must be positive
  2. 0

    On master H2O Build git hash ed7ec99e3f1ebb4c92ac21ea4016369a9f5b85d6 Start h2o from command line- java -Xmx10g -ea -jar h2o.jar -experimental -name no Create frame in Flow- createFrame {"dest":"frm","rows":100,"cols":"100","seed":7595850248774472000,"randomize":true,"value":0,"real_range":"1","categorical_fraction":"0","factors":"0","integer_fraction":"0.2","binary_fraction":"0","binary_ones_fraction":"0.","integer_range":"938313677636","missing_fraction":"0.04","response_factors":2,"has_response":false} hangs at 40% with no error msg (Screenshot attached) in terminal get- 06-02 13:04:59.638 192.168.1.13:54321 7154 # Session INFO: Method: POST , URI: /3/CreateFrame, route: /3/CreateFrame, parms: {binary_ones_fraction=0., binary_fraction=0, randomize=true, missing_fraction=0.04, integer_fraction=0.2, real_range=1, has_response=false, seed=7595850248774472000, response_factors=2, factors=0, cols=100, integer_range=938313677636, value=0, dest=frm, categorical_fraction=0, rows=100} onExCompletion for water.fvec.FrameCreator$FrameRandomizer@298eae83 java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Random.java:300) at water.fvec.FrameCreator$FrameRandomizer.map(FrameCreator.java:176) at water.MRTask.compute2(MRTask.java:443) at water.H2O$H2OCountedCompleter.compute(H2O.java:666) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) barrier onExCompletion for water.fvec.FrameCreator@5b86447e

    JIRA | 2 years ago | Nidhi Mehta
    java.lang.IllegalArgumentException: n must be positive
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Possible misuse of Random.nextInt() --

    GitHub | 2 years ago | sibomots
    java.lang.IllegalArgumentException: n must be positive

  1. gehel 12 times, last 1 month ago
  2. sriharshakiran 1 times, last 7 months ago
3 unregistered visitors
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.IllegalArgumentException

    n must be positive

    at java.util.Random.nextInt()
  2. Java RT
    Random.nextInt
    1. java.util.Random.nextInt(Random.java:300)
    1 frame
  3. water.fvec
    FrameCreator$FrameRandomizer.map
    1. water.fvec.FrameCreator$FrameRandomizer.map(FrameCreator.java:176)
    1 frame
  4. water
    H2O$H2OCountedCompleter.compute
    1. water.MRTask.compute2(MRTask.java:443)
    2. water.H2O$H2OCountedCompleter.compute(H2O.java:666)
    2 frames
  5. jsr166y
    ForkJoinWorkerThread.run
    1. jsr166y.CountedCompleter.exec(CountedCompleter.java:429)
    2. jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
    3. jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974)
    4. jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
    5. jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
    5 frames