CanaryModTeam / CanaryLib

The CanaryMod API Library
http://canarymod.net
28 stars 22 forks source link

GroupMod rename causes Concurrent Modification Exception #95

Closed darkdiplomat closed 9 years ago

darkdiplomat commented 9 years ago

It also fails to do anything

[CanaryMod] [WARN]: Group testers was not updated, it does not exist!
[CanaryMod] [DEBUG]: Loading permissions for visitors. World: none
[CanaryMod] [DEBUG]: Loading permissions for players. World: none
[CanaryMod] [DEBUG]: Loading permissions for mods. World: none
[CanaryMod] [DEBUG]: Loading permissions for admins. World: none
[CanaryMod] [ERROR]: Could not execute command...
java.util.ConcurrentModificationException
    at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859) ~[?:1.7.0_75]
    at java.util.ArrayList$Itr.next(ArrayList.java:831) ~[?:1.7.0_75]
    at net.canarymod.user.UserAndGroupsProvider.renameGroup(UserAndGroupsProvider.java:123) ~[CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
    at net.canarymod.commandsys.commands.groupmod.GroupRename.execute(GroupRename.java:26) ~[CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
    at net.canarymod.commandsys.CommandList.groupRename(CommandList.java:629) ~[CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75]
    at net.canarymod.commandsys.CommandManager$1.execute(CommandManager.java:322) [CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
    at net.canarymod.commandsys.CanaryCommand.parseCommand(CanaryCommand.java:103) [CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
    at net.canarymod.commandsys.CommandManager.parseCommand(CommandManager.java:201) [CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
    at net.canarymod.api.CanaryServer.consoleCommand(CanaryServer.java:172) [CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
    at net.minecraft.server.dedicated.DedicatedServer$2.run(DedicatedServer.java:140) [CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]

Original report contained in CanaryModTeam/CanaryMod#190