Server crashed at math.random()

Discussion in 'Plugin Development' started by paxi, Jul 26, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    paxi

    Hello everybody,

    i have a small problem with my plugin.
    At this part of code which is under this text my server crashed always....
    Why?
    The error is under the code...

    Code:
      private int getAttribut(boolean isArmor) { //line 730 is here
              int attribut = this.giveRandom(13);
              while(!isArmor&&(attribut!=3||attribut<9)){
                attribut= this.giveRandom(13);  
              }
              while(isArmor&&(attribut==3||attribut>9)){
                    attribut= this.giveRandom(13);  
                  }
              return attribut;
             }
         private int giveRandom(int scale){
             return (int) (Math.random() * scale + 1);
         }
    Der Fehler der nach dem Servercrash kommt ist folgender:
    Code:
    [12:28:48 ERROR]: The server has stopped responding!
    [12:28:48 ERROR]: Please report this to http://www.spigotmc.org/
    [12:28:48 ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
    [12:28:48 ERROR]: Spigot version: git-Spigot-1360 (MC: 1.7.5)
    [12:28:48 ERROR]: ------------------------------
    [12:28:48 ERROR]: Server thread dump (Look for plugins here before reporting to Spigot!):
    [12:28:48 ERROR]: ------------------------------
    [12:28:48 ERROR]: Current Thread: Server thread
    [12:28:48 ERROR]:       PID: 13 | Suspended: false | Native: false | State: RUNNABLE
    [12:28:48 ERROR]:       Stack:
    [12:28:48 ERROR]:               java.util.Random.next(Random.java:189)
    [12:28:48 ERROR]:               java.util.Random.nextDouble(Random.java:444)
    [12:28:48 ERROR]:               java.lang.Math.random(Math.java:716)
    [12:28:48 ERROR]:               com.faldoria.rpg.item.ItemCalculator.giveRandom(ItemCalculator.java:748)
    [12:28:48 ERROR]:               com.faldoria.rpg.item.ItemCalculator.getAttribut(ItemCalculator.java:733)
    [12:28:48 ERROR]:               com.faldoria.rpg.item.ItemCalculator.getAttribute(ItemCalculator.java:722)
    [12:28:48 ERROR]:               com.faldoria.rpg.item.ItemCalculator.giveItemAttributes(ItemCalculator.java:196)
    [12:28:48 ERROR]:               com.faldoria.rpg.item.ItemCalculator.giveDrop(ItemCalculator.java:752)
    [12:28:48 ERROR]:               com.faldoria.rpg.listener.RPGListener.onKillEntity(RPGListener.java:165)
    [12:28:48 ERROR]:               sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [12:28:48 ERROR]:               sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [12:28:48 ERROR]:               sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [12:28:48 ERROR]:               java.lang.reflect.Method.invoke(Method.java:601)
    [12:28:48 ERROR]:               org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292)
    [12:28:48 ERROR]:               org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [12:28:48 ERROR]:               org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
    [12:28:48 ERROR]:               org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
    [12:28:48 ERROR]:               org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    [12:28:48 ERROR]:               org.bukkit.craftbukkit.v1_7_R2.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:349)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.EntityChicken.dropDeathLoot(EntityChicken.java:106)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.EntityLiving.die(EntityLiving.java:791)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.EntityLiving.damageEntity(EntityLiving.java:739)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.EntityAnimal.damageEntity(SourceFile:145)
    [12:28:48 ERROR]:               org.bukkit.craftbukkit.v1_7_R2.entity.CraftLivingEntity.damage(CraftLivingEntity.java:203)
    [12:28:48 ERROR]:               org.bukkit.craftbukkit.v1_7_R2.entity.CraftLivingEntity.damage(CraftLivingEntity.java:188)
    [12:28:48 ERROR]:               com.faldoria.rpg.skills.skills.DanceOfDagger.use(DanceOfDagger.java:40)
    [12:28:48 ERROR]:               com.faldoria.rpg.skills.types.ActiveSkill.handleU(ActiveSkill.java:131)
    [12:28:48 ERROR]:               com.faldoria.rpg.player.PlayerObject.handleSlotUse(PlayerObject.java:123)
    [12:28:48 ERROR]:               com.faldoria.rpg.listener.RPGListener.onPlayerInteractEvent(RPGListener.java:54)
    [12:28:48 ERROR]:               sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    [12:28:48 ERROR]:               sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [12:28:48 ERROR]:               java.lang.reflect.Method.invoke(Method.java:601)
    [12:28:48 ERROR]:               org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292)
    [12:28:48 ERROR]:               org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [12:28:48 ERROR]:               org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
    [12:28:48 ERROR]:               org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
    [12:28:48 ERROR]:               org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    [12:28:48 ERROR]:               org.bukkit.craftbukkit.v1_7_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:212)
    [12:28:48 ERROR]:               org.bukkit.craftbukkit.v1_7_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:182)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:617)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.PacketPlayInBlockPlace.a(SourceFile:60)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.PacketPlayInBlockPlace.handle(SourceFile:9)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:148)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.ServerConnection.c(ServerConnection.java:77)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:703)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:273)
    [12:28:48 ERROR]:               net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:566)
    [12:28:48 ERROR]:       Stack:
    [12:28:48 ERROR]:               java.lang.Object.wait(Native Method)
    [12:28:48 ERROR]:               java.lang.Object.wait(Object.java:503)
    [12:28:48 ERROR]:               java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
    [12:28:48 ERROR]: ------------------------------
    [12:28:48 INFO]: Startup script './start.sh' does not exist! Stopping server.
    It's the line with my random...
    Did i use the Math.random wrong?
    Why crashes the server?
    It's only with my plugin...

    grüße
     
  2. Offline

    RainoBoy97

    Spigot is not supported here, sorry.
     
  3. Offline

    paxi

    But the error has no connection to Spigot i think! Ithink its maybe something with java?!
    The Problem is that he crashes at the Math.Random() or the same when i try:
    Code:java
    1. Random rnd = new Random(); //line 767
    2. return rnd.nextInt(scale+1);


    It crashes at the Random.next(Random.java:189).

    Sometimes early sometimes after 15minutes.....
    Has anyone an idea? :/

    The complete error:
    Code:
    [16:21:12] [Server thread/INFO]: [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Server thread dump (Look for plugins here before reporting to Spigot!):
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Server thread
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 14 | Suspended: false | Native: false | State: RUNNABLE
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.Random.next(Random.java:189)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.Random.nextInt(Random.java:307)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        com.faldoria.rpg.item.ItemCalculator.giveRandom(ItemCalculator.java:768)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        com.faldoria.rpg.item.ItemCalculator.getAttribut(ItemCalculator.java:736)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        com.faldoria.rpg.item.ItemCalculator.getAttribute(ItemCalculator.java:726)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        com.faldoria.rpg.item.ItemCalculator.giveItemAttributes(ItemCalculator.java:197)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        com.faldoria.rpg.item.ItemCalculator.giveDrop(ItemCalculator.java:773)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        com.faldoria.rpg.listener.RPGListener.onKillEntity(RPGListener.java:165)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.reflect.Method.invoke(Method.java:601)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.craftbukkit.v1_7_R2.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:349)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntitySkeleton.dropDeathLoot(EntitySkeleton.java:172)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntityLiving.die(EntityLiving.java:791)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntitySkeleton.die(EntitySkeleton.java:123)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntityLiving.damageEntity(EntityLiving.java:739)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntityMonster.damageEntity(EntityMonster.java:47)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntityHuman.attack(EntityHuman.java:923)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:1144)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.PacketPlayInUseEntity.a(SourceFile:55)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.PacketPlayInUseEntity.handle(SourceFile:10)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:148)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.ServerConnection.c(ServerConnection.java:77)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:703)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:273)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:566)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:472)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Entire Thread Dump:
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Async Chat Thread - #0
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 41 | Suspended: false | Native: false | State: TIMED_WAITING
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.misc.Unsafe.park(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:942)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.run(Thread.java:722)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Netty IO #2
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 24 | Suspended: false | Native: false | State: BLOCKED
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.Collections$SynchronizedCollection.add(Collections.java:1636)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.ServerConnectionChannel.initChannel(ServerConnectionChannel.java:33)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:70)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.DefaultChannelHandlerContext.invokeChannelRegistered(DefaultChannelHandlerContext.java:162)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.DefaultChannelHandlerContext.fireChannelRegistered(DefaultChannelHandlerContext.java:148)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:730)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:441)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:373)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:417)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.run(Thread.java:722)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: File IO Thread
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 33 | Suspended: false | Native: false | State: TIMED_WAITING
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.sleep(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.FileIOThread.b(SourceFile:44)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.FileIOThread.run(SourceFile:23)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.run(Thread.java:722)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Chunk I/O Executor Thread-1
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 32 | Suspended: false | Native: false | State: WAITING
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.misc.Unsafe.park(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.run(Thread.java:722)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Netty IO #1
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 23 | Suspended: false | Native: true | State: RUNNABLE
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Thread is waiting on monitor(s):
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:228)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:81)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:591)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:301)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.run(Thread.java:722)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Netty IO #0
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 22 | Suspended: false | Native: false | State: BLOCKED
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.Collections$SynchronizedCollection.add(Collections.java:1636)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.ServerConnectionChannel.initChannel(ServerConnectionChannel.java:33)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:70)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.DefaultChannelHandlerContext.invokeChannelRegistered(DefaultChannelHandlerContext.java:162)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.DefaultChannelHandlerContext.fireChannelRegistered(DefaultChannelHandlerContext.java:148)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:730)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:441)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:411)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:60)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:48)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventLoopGroup.java:64)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.bootstrap.ServerBootstrap$ServerBootstrapAcceptor.channelRead(ServerBootstrap.java:249)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:90)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:480)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:447)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:341)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.run(Thread.java:722)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Spigot Metrics Thread
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 21 | Suspended: false | Native: false | State: TIMED_WAITING
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Object.wait(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.TimerThread.mainLoop(Timer.java:552)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.TimerThread.run(Timer.java:505)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Spigot Watchdog Thread
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 20 | Suspended: false | Native: false | State: RUNNABLE
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.management.ThreadImpl.dumpThreads0(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:446)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.spigotmc.WatchdogThread.run(WatchdogThread.java:69)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Thread-5
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 18 | Suspended: false | Native: false | State: RUNNABLE
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.currentThread(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.locks.ReentrantLock$Sync.isHeldExclusively(ReentrantLock.java:168)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.signal(AbstractQueuedSynchronizer.java:1940)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:447)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.util.com.mojang.util.QueueLogAppender.getNextLogEvent(QueueLogAppender.java:73)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.craftbukkit.v1_7_R2.util.TerminalConsoleWriterThread.run(TerminalConsoleWriterThread.java:25)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.run(Thread.java:722)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Server console handler
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 17 | Suspended: false | Native: true | State: RUNNABLE
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Thread is waiting on monitor(s):
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        Locked on:java.io.BufferedInputStream.read(BufferedInputStream.java:254)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        Locked on:org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:267)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        Locked on:org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:204)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.io.FileInputStream.readBytes(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.io.FileInputStream.read(FileInputStream.java:242)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.io.BufferedInputStream.read(BufferedInputStream.java:254)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.io.FilterInputStream.read(FilterInputStream.java:83)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.craftbukkit.libs.jline.console.ConsoleReader$1.read(ConsoleReader.java:167)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:267)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:204)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:995)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:1167)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.ThreadCommandReader.run(ThreadCommandReader.java:32)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: DestroyJavaVM
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 16 | Suspended: false | Native: false | State: RUNNABLE
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Server thread
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 14 | Suspended: false | Native: false | State: RUNNABLE
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Thread is waiting on monitor(s):
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        Locked on:org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        Locked on:net.minecraft.server.v1_7_R2.ServerConnection.c(ServerConnection.java:77)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        com.faldoria.rpg.item.ItemCalculator.getAttribute(ItemCalculator.java:725)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        com.faldoria.rpg.item.ItemCalculator.giveItemAttributes(ItemCalculator.java:197)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        com.faldoria.rpg.item.ItemCalculator.giveDrop(ItemCalculator.java:773)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        com.faldoria.rpg.listener.RPGListener.onKillEntity(RPGListener.java:165)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.reflect.Method.invoke(Method.java:601)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        org.bukkit.craftbukkit.v1_7_R2.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:349)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntitySkeleton.dropDeathLoot(EntitySkeleton.java:172)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntityLiving.die(EntityLiving.java:791)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntitySkeleton.die(EntitySkeleton.java:123)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntityLiving.damageEntity(EntityLiving.java:739)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntityMonster.damageEntity(EntityMonster.java:47)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.EntityHuman.attack(EntityHuman.java:923)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:1144)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.PacketPlayInUseEntity.a(SourceFile:55)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.PacketPlayInUseEntity.handle(SourceFile:10)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:148)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.ServerConnection.c(ServerConnection.java:77)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:703)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:273)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:566)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:472)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Server Infinisleeper
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 15 | Suspended: false | Native: false | State: TIMED_WAITING
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.sleep(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        net.minecraft.server.v1_7_R2.ThreadSleepForever.run(SourceFile:62)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: process reaper
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 11 | Suspended: false | Native: false | State: TIMED_WAITING
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        sun.misc.Unsafe.park(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:942)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Thread.run(Thread.java:722)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Snooper Timer
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 10 | Suspended: false | Native: false | State: TIMED_WAITING
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Object.wait(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.TimerThread.mainLoop(Timer.java:552)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.util.TimerThread.run(Timer.java:505)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Signal Dispatcher
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 4 | Suspended: false | Native: false | State: RUNNABLE
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Finalizer
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 3 | Suspended: false | Native: false | State: WAITING
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Object.wait(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:177)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/ERROR]: Current Thread: Reference Handler
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    PID: 2 | Suspended: false | Native: false | State: WAITING
    [16:24:42] [Spigot Watchdog Thread/ERROR]:    Stack:
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Object.wait(Native Method)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.Object.wait(Object.java:503)
    [16:24:42] [Spigot Watchdog Thread/ERROR]:        java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
    [16:24:42] [Spigot Watchdog Thread/ERROR]: ------------------------------
    [16:24:42] [Spigot Watchdog Thread/INFO]: Attempting to restart with ./spigot.sh
    
     
  4. Offline

    mazentheamazin

    paxi
    You're clearly not using unsupported software, please seek help elsewhere.
     
  5. Offline

    Code0

    Turn to the people on the spigot forums. Only bukkit is supported here.

    Mod, please close.
     
    Saladoc likes this.
  6. Offline

    fireblast709

    paxi debug what giveRandom(scale) returns. One possibility is that it returns the same number regardless of the random due to casting
     
  7. Offline

    Iroh

    Locked.
    Seek help where you acquired your server mod.
     
Thread Status:
Not open for further replies.

Share This Page