java.lang.IllegalArgumentException: n must be positive

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Mojang JIRA by [Bot] Hopper, 1 year ago
n must be positive
via planetminecraft.com by Unknown author, 11 months ago
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Unknown Source)
at undefined.ahb.a(SourceFile:61)
at undefined.apl.a(SourceFile:432)
at undefined.mi.a(SourceFile:160)
at undefined.aoj.a(SourceFile:781)
at undefined.mi.c(SourceFile:95)
at undefined.mh.(SourceFile:31)
at undefined.mg.a(SourceFile:212)
at undefined.mg.a(SourceFile:249)
at undefined.ld.a(SourceFile:155)
at undefined.ld.c(SourceFile:206)
at undefined.ld.a(SourceFile:100)
at undefined.nd.c(SourceFile:87)
at undefined.nd.a(SourceFile:52)
at undefined.ef.a(SourceFile:166)

Users with the same issue

31 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
60 times, 2 months ago
12 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.