PEXPlugins/PermissionsEx — Issue #302: Permissions accessibility breaking
Author: NINJ4
Created: 2012-03-09 05:09:33+00:00
State: open

While I've been having a very hard time pinning down an actual cause for, this it seems to be occurring whenever plugins are reloaded. Restarting the server undoes any issues, but it's an enormous hassle. This seems to affect MANY plugins independently, and when the issue starts, it even affects vanilla commands.

Plugins known to be affected:
openinv
Essentials
potentially LogBlock

Pluginlist for the server in question:
```
>pl
23:51:06 [INFO] Plugins: Minequery, PlgLogCmd, WorldEdit, dhmcDeath, ExternalChat, AutoGamemode, FactionsSS, PluginReloader, PermissionsEx, LogBlock, ServerSave, FigAdmin, WorldGuard, BorderGuard, QuickSign, SimplyVanish, RoyalMessages, PluginList, DisguiseCraft, Announcer, pvparena, Honeypot, McftChat, OpenInv, TelePlusPlus, NoCheat, PlayerFreeze, Essentials, EssentialsSpawn, EssentialsChat
```
The debug function tested with a known working permission when the intermitent error hasn't taken hold isn't very helpful:
```
2012-03-08 23:59:57 [INFO] Lizard4231 tried to use command /openinv natnater
2012-03-08 23:59:57 [INFO] User Lizard4231 checked for "openinv", no permission found
```
It does this process of checking for permissions and finding none, even when those permissions were working fine only earlier this evening, without any changes having been made to the server.

Here is a copy of the representative error when it causes an exception:
```
>say test
2012-03-08 23:07:58 [SEVERE] java.lang.RuntimeException: Permissions manager is not accessable. Is the PermissionsEx plugin enabled?
2012-03-08 23:07:58 [SEVERE]	at ru.tehkode.permissions.bukkit.PermissionsEx.getPermissionManager(PermissionsEx.java:150)
2012-03-08 23:07:58 [SEVERE]	at ru.tehkode.permissions.bukkit.PermissionsEx.getUser(PermissionsEx.java:157)
2012-03-08 23:07:58 [SEVERE]	at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.performCheck(PermissiblePEX.java:123)
2012-03-08 23:07:58 [SEVERE]	at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.checkPermission(PermissiblePEX.java:109)
2012-03-08 23:07:58 [SEVERE]	at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.hasPermission(PermissiblePEX.java:101)
2012-03-08 23:07:58 [SEVERE]	at org.bukkit.craftbukkit.entity.CraftHumanEntity.hasPermission(CraftHumanEntity.java:99)
2012-03-08 23:07:58 [SEVERE]	at org.bukkit.craftbukkit.CraftServer.broadcast(CraftServer.java:950)
2012-03-08 23:07:58 [SEVERE]	at org.bukkit.craftbukkit.CraftServer.broadcastMessage(CraftServer.java:322)
2012-03-08 23:07:58 [SEVERE]	at org.bukkit.Bukkit.broadcastMessage(Bukkit.java:114)
2012-03-08 23:07:58 [SEVERE]	at org.bukkit.command.defaults.SayCommand.execute(SayCommand.java:37)
2012-03-08 23:07:58 [SEVERE]	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
2012-03-08 23:07:58 [SEVERE]	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:461)
2012-03-08 23:07:58 [SEVERE]	at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:457)
2012-03-08 23:07:58 [SEVERE]	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:599)
2012-03-08 23:07:58 [SEVERE]	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:568)
2012-03-08 23:07:58 [SEVERE]	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
2012-03-08 23:07:58 [SEVERE]	at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
2012-03-08 23:07:58 [WARNING] Unexpected exception while parsing console command
org.bukkit.command.CommandException: Unhandled exception executing 'say test' in org.bukkit.command.defaults.SayCommand@47d62270
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:170)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:461)
at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:457)
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:599)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:568)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
Caused by: java.lang.RuntimeException: Permissions manager is not accessable. Is the PermissionsEx plugin enabled?
at ru.tehkode.permissions.bukkit.PermissionsEx.getPermissionManager(PermissionsEx.java:150)
at ru.tehkode.permissions.bukkit.PermissionsEx.getUser(PermissionsEx.java:157)
at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.isPermissionSet(PermissiblePEX.java:199)
at org.bukkit.permissions.PermissibleBase.hasPermission(PermissibleBase.java:71)
at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.checkPermission(PermissiblePEX.java:112)
at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.hasPermission(PermissiblePEX.java:101)
at org.bukkit.craftbukkit.entity.CraftHumanEntity.hasPermission(CraftHumanEntity.java:99)
at org.bukkit.craftbukkit.CraftServer.broadcast(CraftServer.java:950)
at org.bukkit.craftbukkit.CraftServer.broadcastMessage(CraftServer.java:322)
at org.bukkit.Bukkit.broadcastMessage(Bukkit.java:114)
at org.bukkit.command.defaults.SayCommand.execute(SayCommand.java:37)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
... 6 more
```

Bukkit Version #2037, Minecraft 1.2.3
PEX Version 1.19

Hope you can help with this, thanks.