java.lang.IllegalArgumentException: n must be positive

Apache's JIRA Issue Tracker | Brahma Reddy Battula | 5 years ago
  1. 0

    call dirAllocator.getLocalPathForWrite ( "/InvalidPath", conf ); Here it will not thrown any exception but earlier version it used throw.

    Apache's JIRA Issue Tracker | 5 years ago | Brahma Reddy Battula
    java.lang.IllegalArgumentException: n must be positive
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Possible misuse of Random.nextInt() --

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

    Server Crash Bug

    GitHub | 3 years ago | ph1x3r
    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. Hadoop
    TestLocalDirAllocator.testShouldNotthrowNPE
    1. org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.confChanged(LocalDirAllocator.java:308)
    2. org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.getLocalPathForWrite(LocalDirAllocator.java:347)
    3. org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:150)
    4. org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:131)
    5. org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:115)
    6. org.apache.hadoop.fs.TestLocalDirAllocator.testShouldNotthrowNPE(TestLocalDirAllocator.java:320)
    6 frames