t3hk0d3/PermissionsEx — Issue #101: NPE on server shutdown
Author: Fsmv
Created: 2011-10-22 04:23:42+00:00
State: open

## Stack trace
```java
[INFO] Stopping server
[INFO] [PermissionsEx] v1.15 disabled successfully.
[SEVERE] Error occurred (in the plugin loader) while disabling Permissions v2.7.7 (Is it up to date?): null
java.lang.NullPointerException
at java.lang.Class.isAssignableFrom(Native Method)
at org.bukkit.plugin.java.JavaPluginLoader.removeClass(JavaPluginLoader.java:245)
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:992)
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289)
at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:166)
at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
[INFO] [Modifyworld] Modifyworld disabled!
[SEVERE] Error occurred (in the plugin loader) while disabling Modifyworld v1.15 (Is it up to date?): null
java.lang.NullPointerException
at java.lang.Class.isAssignableFrom(Native Method)
at org.bukkit.plugin.java.JavaPluginLoader.removeClass(JavaPluginLoader.java:245)
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:992)
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289)
at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:166)
at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
[INFO] [ChatManager] ChatManager disabled!
[SEVERE] Error occurred (in the plugin loader) while disabling ChatManager v1.15 (Is it up to date?): null
java.lang.NullPointerException
at java.lang.Class.isAssignableFrom(Native Method)
at org.bukkit.plugin.java.JavaPluginLoader.removeClass(JavaPluginLoader.java:245)
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:992)
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289)
at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:166)
at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
```

## PermissionsEx/permissions.yml
```yaml
groups:
Admin:
prefix: '&2@'
default: false
inheritance:
- Moderator
permissions:
- '*'
options:
rank: '0'
Moderator:
prefix: '&1^'
inheritance:
- Member
permissions:
options:
rank: '800'
Member:
default: false
prefix: '&f~'
inheritance:
- Guest
permissions:
- chatmanager.chat.color
options:
rank: '900'
Guest:
default: true
prefix: '&e-'
permissions:
- modifyworld.*
options:
rank: '1000'
users:
me:
group: Admin
```

## PermissionsEx/config.yml
```yaml
permissions:
backends:
file:
file: permissions.yml
backend: file
superperms:
disable-unmatched: false
enable: true
debug: false
createUserRecords: false
allowOps: false
debug: false
basedir: plugins/PermissionsEx

```

## ChatManager/config.yml
```yaml
chat-range: 100.0
display-name-format: '%prefix%player%suffix'
global-message-format: '&7%H:%i:%2 &e<%prefix%player%suffix&e>&8[%world] &f%message'
enable: true
message-format: '&7%H:%i:%2 &e<%prefix%player%suffix&e>&8[%world] &f%message'
ranged-mode: false
```

## ModifyWorld/config.yml
```yaml
informPlayers: true
enable: true
itemRestrictions: false
messages:
prohibitedItem: You have prohibited item "%s".
whitelistMessage: You are not allowed to join this server. Goodbye!
permissionDenied: Sorry, you don't have enough permissions
whitelist: You are not allowed to join this server. Goodbye!
whitelist: false
drop-restricted-item: false

```

## md5sums
```
b6676de40d1de7828d216a71eac539ad PermissionsEx.jar
d973e9343196a3c044641d143c8e1a65 Permissions.jar
126323437bfaf4413e24afb00d5b2377 ChatManager.jar
985640d908148332faa21f15ea0a8604 Modifyworld.jar
```

## Enabled Plugins
* PermissionsEx
* PermissionsEx.jar
* Permissions.jar
* ModifyWorld.jar
* ChatManager.jar

All the other one that I use have been moved into a sub-folder of plugins; they are not loaded.

Hopefully the provided information was appropriate and sufficient. I'd be happy to provide more if it would help to solve this problem. My guess is this turns out to be a configuration error.