java.lang.IllegalArgumentException: n must be positive

GitHub | MattHeard | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    /read IllegalArgumentException

    GitHub | 3 years ago | MattHeard
    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
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. com.deuteriumlabs.dendrite
    ReadView.setPageId
    1. com.deuteriumlabs.dendrite.model.StoryPage.getRandomVersion(StoryPage.java:254)
    2. com.deuteriumlabs.dendrite.view.ReadView.getSpecificPageId(ReadView.java:147)
    3. com.deuteriumlabs.dendrite.view.ReadView.setPageId(ReadView.java:239)
    3 frames
  4. org.apache.jsp
    read_jsp._jspService
    1. org.apache.jsp.read_jsp._jspService(read_jsp.java:78)
    1 frame
  5. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    1 frame
  6. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  7. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    2 frames
  8. Google AppEngine
    ParseBlobUploadFilter.doFilter
    1. com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)
    1 frame
  9. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  10. com.google.apphosting
    SaveSessionFilter.doFilter
    1. com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
    1 frame
  11. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  12. Google AppEngine
    JdbcMySqlConnectionCleanupFilter.doFilter
    1. com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:60)
    1 frame
  13. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    1 frame
  14. Google AppEngine
    TransactionCleanupFilter.doFilter
    1. com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    1 frame
  15. Jetty Server
    WebAppContext.handle
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    6 frames
  16. com.google.apphosting
    AppVersionHandlerMap.handle
    1. com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:254)
    1 frame
  17. Jetty Server
    HttpConnection$RequestHandler.headerComplete
    1. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    2. org.mortbay.jetty.Server.handle(Server.java:326)
    3. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    4. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    4 frames
  18. com.google.apphosting
    RpcRequestParser.parseAvailable
    1. com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
    1 frame
  19. Jetty Server
    HttpConnection.handle
    1. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    1 frame
  20. com.google.apphosting
    JettyServletEngineAdapter.serviceRequest
    1. com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:146)
    1 frame
  21. appengine-managed-runtime
    JavaRuntime$RequestRunnable.run
    1. com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:446)
    1 frame
  22. Google tracing
    TraceContext$TraceContextRunnable.run
    1. com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:438)
    2. com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:445)
    3. com.google.tracing.CurrentContext.runInContext(CurrentContext.java:220)
    4. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:309)
    5. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:301)
    6. com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:442)
    6 frames
  23. appengine-managed-runtime
    ThreadGroupPool$PoolEntry.run
    1. com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251)
    1 frame
  24. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:724)
    1 frame