/permissions convert Command Gives Errors #690


  • Defect
  • Replied
Open
  • _ForgeUser18450733 created this issue Aug 6, 2015

    Describe to us the issue that you're having:
    When you try doing /permissions convert, it says "An internal error occurred while attempting to perform this command"
    The fact that the Users file isn't converted is breaking other permissions.
    At first, I thought it was because some of the players that recently joined were already UUIDs, but when I went back and deleted their section in the Users file, then ran a /bp reload. It didn't actually fix the problem.

    Which steps will reproduce this problem?:
    1) Type /permissions convert

    Do you have an error log of what happened?

    06.08 09:56:18 [Server] INFO ... 14 more
    06.08 09:56:18 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at de.bananaco.bpermissions.imp.Permissions.onCommand(Permissions.java:510) ~[?:?]
    06.08 09:56:18 [Server] INFO at de.bananaco.permissions.ImportManager.importUuid(ImportManager.java:359) ~[?:?]
    06.08 09:56:18 [Server] INFO at de.bananaco.bpermissions.api.World.remove(World.java:194) ~[?:?]
    06.08 09:56:18 [Server] INFO Caused by: java.lang.NoSuchMethodError: java.util.Map.remove(Ljava/lang/Object;Ljava/lang/Object;)Z
    06.08 09:56:18 [Server] INFO at java.lang.Thread.run(Unknown Source) [?:1.7.0_72]
    06.08 09:56:18 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_72]
    06.08 09:56:18 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_72]
    06.08 09:56:18 [Server] INFO at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53) [Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26) [Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:950) [Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1115) [Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:646) ~[Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[Spigot18.jar:git-Spigot-c3c767f-33d5de3]
    06.08 09:56:18 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'permissions' in plugin bPermissions v2.10.9
    06.08 09:56:18 [Server] ERROR null

    Which version of bPermissions are you using?: (Please don't say "latest"!!!)
    v2.10.9m

    Which version of CraftBukkit?: (Please don't say "latest"!!!)
    1.8

    Which OS?
    Linux
    Any other information we may need (plugins, configs, etc):
    Because of the non-converted Users file, the entire permissions plugin is broken.

  • _ForgeUser18450733 added the tags New Defect Aug 6, 2015
  • _ForgeUser18450733 added an attachment users.yml Aug 6, 2015

    users.yml

  • jesster1234 posted a comment Aug 9, 2015

    I was unable to reproduce the error, and honestly I can't see a scenario where removing a user from a map wouldn't work, as that's a core part of java.

    However, I am able to provide you with a converted version of your users.yml - this is available at https://gist.github.com/rymate1234/a819cabf08437a70ef81

    If there are any issues with this converted version, please feel free to reply to this ticket :)

  • jesster1234 removed a tag New Aug 9, 2015
  • jesster1234 added a tag Waiting Aug 9, 2015
  • _ForgeUser18450733 posted a comment Aug 9, 2015

    @rymate1234: Go

    Permissions are still broken, which was the original issue I'm trying to fix. Players only have access to limited permissions, and I spoke with one of the bPermissions staff, and he said the Users file was probably causing it, as it wasn't converted.

  • _ForgeUser18450733 removed a tag Waiting Aug 9, 2015
  • _ForgeUser18450733 added a tag Replied Aug 9, 2015
  • jesster1234 posted a comment Aug 10, 2015

    @NovitiumCraft: Go

    Well, the users.yml I linked was your users.yml that I converted using the latest development version of bPermissions. If it still doesn't work, can you see whether wiping the users.yml and promoting users that need promoting will fix the issue?

    Sorry I can't be of much better help, the idea of /permissions convert was that it would be used as soon as you upgraded to any bPermissions version with UUID support, as there's no backwards compatibility with usernames in the users.yml. As such, all usernames are ignored, which is probably why no permissions are working.

  • _ForgeUser18450733 posted a comment Aug 13, 2015

    It's fixed now. I downgraded the version of bPermissions.


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