Console warning #2


  • Defect
  • Replied
Open
Assigned to _ForgeUser9395398
  • _ForgeUser10465472 created this issue Apr 22, 2013

    I can't say much so far, so I leave you this log:

    2013-04-23 13:45:08 [WARNING] [ReactionRewards] Task #17 for ReactionRewards v1.0 generated an exception
    java.lang.IllegalArgumentException: n must be positive
            at java.util.Random.nextInt(Unknown Source)
            at ro.raizen.src.reactionrewards.QuestionHandler.generateTriviaQuestion(QuestionHandler.java:109)
            at ro.raizen.src.reactionrewards.QuestionHandler.generateQuestion(QuestionHandler.java:46)
            at ro.raizen.src.reactionrewards.GeneratorTask.run(GeneratorTask.java:14)
            at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:53)
            at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
            at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:512)
            at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225)
            at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476)
            at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409)
            at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)

  • _ForgeUser10465472 added the tags New Defect Apr 22, 2013
  • _ForgeUser9395398 posted a comment Apr 22, 2013

    Do you have any questions in trivia.yml ?

  • _ForgeUser9395398 removed a tag New Apr 22, 2013
  • _ForgeUser9395398 added a tag Waiting Apr 22, 2013
  • _ForgeUser9395398 posted a comment Apr 22, 2013

    If you have questions in your trivia.yml, the problem might come from the syntax. You can use http://yaml-online-parser.appspot.com/ to check if it has any parsing issues. Technically that error should only appear when there are 0 questions in trivia.yml and in config.yml in questionTypes you have trivia, OR if trivia.yml doesn't have the correct yml syntax.

    Can you paste your trivia.yml on pastebin ?

  • _ForgeUser9395398 removed a tag Waiting Apr 22, 2013
  • _ForgeUser9395398 added a tag Replied Apr 22, 2013
  • _ForgeUser9395398 removed a tag Replied Apr 22, 2013
  • _ForgeUser9395398 added a tag Waiting Apr 22, 2013
  • _ForgeUser10465472 posted a comment Apr 23, 2013

    @raizenpk: Go

    I cleaned up the file, but the error still appears :c (I made this before submitting ticket)


    Edited Apr 23, 2013
  • _ForgeUser10465472 removed a tag Waiting Apr 23, 2013
  • _ForgeUser10465472 added a tag Replied Apr 23, 2013

To post a comment, please login or register a new account.