java.lang.IllegalArgumentException: n <= 0: 0

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

Solutions on the web

via Stack Overflow by user6491664
, 1 year ago
via Google Groups by Steven, 2 years ago
via JIRA by Nidhi Mehta, 1 year ago
n must be positive
via JIRA by Nidhi Mehta, 1 year ago
n must be positive
java.lang.IllegalArgumentException: n <= 0: 0
at java.util.Random.nextInt(
at org.osmdroid.tileprovider.tilesource.OnlineTileSourceBase.getBaseUrl(
at org.osmdroid.tileprovider.tilesource.XYTileSource.getTileURLString(
at org.osmdroid.tileprovider.modules.MapTileDownloader$TileLoader.loadTile(
at org.osmdroid.tileprovider.modules.MapTileModuleProviderBase$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

Users with the same issue

60 times, 3 months ago
3 times, 7 months ago
31 times, 1 year ago
12 times, 1 year ago
Once, 1 year ago

Write tip

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