Strange Error Message (Player teleport ?)

Discussion in 'Plugin Development' started by Terradominik, Aug 12, 2012.

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


    Hey, in my plugin i teleport up to 30 players at once, sometimes, the following error occures:

    2012-08-12 12:40:28 [SEVERE] java.util.ConcurrentModificationException
    2012-08-12 12:40:28 [SEVERE]    at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
    2012-08-12 12:40:28 [SEVERE]    at java.util.ArrayList$ Source)
    2012-08-12 12:40:28 [SEVERE]    at net.minecraft.server.WorldServer.getTileEntities(
    2012-08-12 12:40:28 [SEVERE]    at net.minecraft.server.EntityPlayer.h_(
    2012-08-12 12:40:28 [SEVERE]    at net.minecraft.server.World.entityJoinedWorld(
    2012-08-12 12:40:28 [SEVERE]    at net.minecraft.server.WorldServer.entityJoinedWorld(
    2012-08-12 12:40:28 [SEVERE]    at net.minecraft.server.World.playerJoinedWorld(
    2012-08-12 12:40:28 [SEVERE]    at net.minecraft.server.World.tickEntities(
    2012-08-12 12:40:28 [SEVERE]    at net.minecraft.server.MinecraftServer.q(
    2012-08-12 12:40:28 [SEVERE]    at net.minecraft.server.DedicatedServer.q(
    2012-08-12 12:40:28 [SEVERE]    at net.minecraft.server.MinecraftServer.p(
    2012-08-12 12:40:28 [SEVERE]    at
    2012-08-12 12:40:28 [SEVERE]    at
    2012-08-12 12:40:28 [SEVERE] Encountered an unexpected exception ConcurrentModificationException
        at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
        at java.util.ArrayList$ Source)
        at net.minecraft.server.WorldServer.getTileEntities(
        at net.minecraft.server.EntityPlayer.h_(
        at net.minecraft.server.World.entityJoinedWorld(
        at net.minecraft.server.WorldServer.entityJoinedWorld(
        at net.minecraft.server.World.playerJoinedWorld(
        at net.minecraft.server.World.tickEntities(
        at net.minecraft.server.MinecraftServer.q(
        at net.minecraft.server.DedicatedServer.q(
        at net.minecraft.server.MinecraftServer.p(
    I implemented a AsyncTask to port the players every 10 Tticks, because i think its because of the teleportaion, wich worked a while with ~10 players, but with 20 players the server still crashes (sometimes).

    Does Anyone have an idea to fix this ?

    (sry for my bad english)
    - Terra
  2. Offline


    use a sync task
    Terradominik likes this.
  3. Offline


    He was probably using a synch task at frst and then went over to ASync task to try and fix the issue.
Thread Status:
Not open for further replies.

Share This Page