Startup
Eelviny opened this issue · 10 comments
This occurs when starting build 431.
[18:47:50 INFO]: [CommunityBridge] Enabling CommunityBridge v2.3.1.431
[18:47:50 INFO]: [CommunityBridge] Detected locale: en
[18:47:50 WARN]: [CommunityBridge] The achievements.yml file is empty.
[18:47:50 INFO]: [CommunityBridge] Log level : all
[18:47:50 INFO]: [CommunityBridge] Plugin metrics enabled : true
[18:47:50 INFO]: [CommunityBridge] Use achievements : false
[18:47:50 INFO]: [CommunityBridge] Permissions system : Vault
[18:47:50 INFO]: [CommunityBridge] Economy enabled : false
[18:47:50 INFO]: [CommunityBridge] Autosync : false
[18:47:50 INFO]: [CommunityBridge] Synchronize during join event : true
[18:47:50 INFO]: [CommunityBridge] Synchronize during quit event : true
[18:47:50 INFO]: [CommunityBridge] Application url : http://jgame.co/register
[18:47:50 INFO]: [CommunityBridge] Date Format : yyyy-MM-dd hh:mm:ss a
[18:47:50 INFO]: [CommunityBridge] Database binding address : localhost
[18:47:50 INFO]: [CommunityBridge] Database hostname : localhost
[18:47:50 INFO]: [CommunityBridge] Database port : 3306
[18:47:50 INFO]: [CommunityBridge] Database name : xenforo
[18:47:50 INFO]: [CommunityBridge] Database username : game
[18:47:50 INFO]: [CommunityBridge] Linking auto reminder : false
[18:47:50 INFO]: [CommunityBridge] Linking notify registered : false
[18:47:50 INFO]: [CommunityBridge] Linking notify unregistered : true
[18:47:50 INFO]: [CommunityBridge] Linking kick unregistered : false
[18:47:50 INFO]: [CommunityBridge] Linking unregistered group :
[18:47:50 INFO]: [CommunityBridge] Linking registered group : member
[18:47:50 INFO]: [CommunityBridge] Linking notify player of group : true
[18:47:50 INFO]: [CommunityBridge] Linking reg former unregistered only : true
[18:47:50 INFO]: [CommunityBridge] Linking uses key-value pair : true
[18:47:50 INFO]: [CommunityBridge] Linking table name : xf_user_field_value
[18:47:50 INFO]: [CommunityBridge] Linking user ID column : user_id
[18:47:50 INFO]: [CommunityBridge] Linking key-value pair key name : minecraft
[18:47:50 INFO]: [CommunityBridge] Linking key-value pair key column : field_id
[18:47:50 INFO]: [CommunityBridge] Linking key-value pair value column : field_value
[18:47:50 INFO]: [CommunityBridge] Avatars config enabled : false
[18:47:50 INFO]: [CommunityBridge] Post count config enabled : false
[18:47:50 INFO]: [CommunityBridge] Post count user ID column : null
[18:47:50 INFO]: [CommunityBridge] Post count post count column : null
[18:47:50 INFO]: [CommunityBridge] Require avatars : false
[18:47:50 INFO]: [CommunityBridge] Require minimum posts : false
[18:47:50 INFO]: [CommunityBridge] Tracking statistics : false
[18:47:50 INFO]: [CommunityBridge] Primary group table : xf_user
[18:47:50 INFO]: [CommunityBridge] Primary group user id column : user_id
[18:47:50 INFO]: [CommunityBridge] Primary group group id column : user_group_id
[18:47:50 INFO]: [CommunityBridge] Primary group uses key : false
[18:47:50 INFO]: [CommunityBridge] Secondary group table : xf_user
[18:47:50 INFO]: [CommunityBridge] Secondary group user id column : user_id
[18:47:50 INFO]: [CommunityBridge] Secondary group group id column : secondary_group_ids
[18:47:50 INFO]: [CommunityBridge] Secondary group storage method : single
[18:47:50 INFO]: [CommunityBridge] Secondary group id delimiter : ,
[18:47:50 INFO]: [CommunityBridge] Simple synchronization enabled : true
[18:47:50 INFO]: [CommunityBridge] Simple synchronization direction : web-application
[18:47:50 INFO]: [CommunityBridge] Simple synchronization firstdirection: web-application
[18:47:50 INFO]: [CommunityBridge] Simple synchronization notification : false
[18:47:50 INFO]: [CommunityBridge] Simple synchronization P-groups : []
[18:47:50 INFO]: [CommunityBridge] Ban synchronization enabled : true
[18:47:50 INFO]: [CommunityBridge] Ban synchronization direction : web-application
[18:47:50 INFO]: [CommunityBridge] Ban synchronization method : group
[18:47:50 INFO]: [CommunityBridge] Ban synchronization table name : xf_user_ban
[18:47:50 INFO]: [CommunityBridge] Ban synchronization user ID column : user_id
[18:47:50 INFO]: [CommunityBridge] Ban synchronization group : banned
[18:47:50 INFO]: [CommunityBridge] Ban synchronization group type : secondary
[18:47:50 INFO]: [CommunityBridge] SHOW TABLES LIKE 'xf_user_field_value'
[18:47:50 INFO]: [CommunityBridge] SHOW COLUMNS FROM `xf_user_field_value` LIKE 'user_id'
[18:47:50 INFO]: [CommunityBridge] SHOW COLUMNS FROM `xf_user_field_value` LIKE 'field_id'
[18:47:50 INFO]: [CommunityBridge] SELECT COUNT(*) FROM `xf_user_field_value` WHERE `field_id` = 'minecraft'
[18:47:50 INFO]: [CommunityBridge] SHOW COLUMNS FROM `xf_user_field_value` LIKE 'field_value'
[18:47:50 INFO]: [CommunityBridge] SHOW TABLES LIKE 'xf_user'
[18:47:50 INFO]: [CommunityBridge] SHOW COLUMNS FROM `xf_user` LIKE 'user_id'
[18:47:50 INFO]: [CommunityBridge] SHOW COLUMNS FROM `xf_user` LIKE 'user_group_id'
[18:47:50 INFO]: [CommunityBridge] SHOW TABLES LIKE 'xf_user'
[18:47:50 INFO]: [CommunityBridge] SHOW COLUMNS FROM `xf_user` LIKE 'user_id'
[18:47:50 INFO]: [CommunityBridge] SHOW COLUMNS FROM `xf_user` LIKE 'secondary_group_ids'
[18:47:50 INFO]: [CommunityBridge] SELECT `user_id` FROM `xf_user_field_value` WHERE `user_id` = '1'
[18:47:50 ERROR]: Error occurred while enabling CommunityBridge v2.3.1.431 (Is it up to date?)
java.lang.NullPointerException
at org.communitybridge.main.Configuration.analyze(Configuration.java:517) ~[?:?]
at org.communitybridge.main.CommunityBridge.enableSQL(CommunityBridge.java:336) ~[?:?]
at org.communitybridge.main.CommunityBridge.activate(CommunityBridge.java:89) ~[?:?]
at org.communitybridge.main.CommunityBridge.onEnable(CommunityBridge.java:68) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) ~[spigot.jar:git-Spigot-1450]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [spigot.jar:git-Spigot-1450]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-1450]
at com.rylinaux.plugman.util.PluginUtil.load(PluginUtil.java:273) [PlugMan.jar:?]
at com.rylinaux.plugman.util.PluginUtil.load(PluginUtil.java:226) [PlugMan.jar:?]
at com.rylinaux.plugman.util.PluginUtil.reload(PluginUtil.java:287) [PlugMan.jar:?]
at com.rylinaux.plugman.command.ReloadCommand.execute(ReloadCommand.java:122) [PlugMan.jar:?]
at com.rylinaux.plugman.PlugManCommands.onCommand(PlugManCommands.java:100) [PlugMan.jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spigot.jar:git-Spigot-1450]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [spigot.jar:git-Spigot-1450]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:722) [spigot.jar:git-Spigot-1450]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:709) [spigot.jar:git-Spigot-1450]
at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:319) [spigot.jar:git-Spigot-1450]
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:284) [spigot.jar:git-Spigot-1450]
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:576) [spigot.jar:git-Spigot-1450]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:482) [spigot.jar:git-Spigot-1450]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1450]
This is using my own config setup, and when I create a default one, it starts fine. However, something tells me it shouldn't give a full NPE. It should at least give some info on where I went wrong, although I don't think I did something wrong...
It is possible that this setting is missing:
groups-treated-as-primary: ['guest', 'member', 'premium']
which should be in the simple-synchronization section. What version of MC?
...and if that section is missing, this release will fix the issue:
http://dev.bukkit.org/bukkit-plugins/communitybridge-fm/files/31-community-bridge-v2-3-2-build-437/
I did indeed miss out the groups-treated-as-primary
but that doesn't seem to be the cause of the error. I also removed the bind-address
section entirely.
[11:46:33 ERROR]: Error occurred while enabling CommunityBridge v2.3.2.437 (Is it up to date?)
java.lang.NullPointerException
at org.communitybridge.main.Configuration.analyze(Configuration.java:511) ~[?:?]
at org.communitybridge.main.CommunityBridge.enableSQL(CommunityBridge.java:336) ~[?:?]
at org.communitybridge.main.CommunityBridge.activate(CommunityBridge.java:89) ~[?:?]
at org.communitybridge.main.CommunityBridge.onEnable(CommunityBridge.java:68) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) ~[spigot.jar:git-Spigot-1464]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [spigot.jar:git-Spigot-1464]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-1464]
at com.rylinaux.plugman.util.PluginUtil.load(PluginUtil.java:273) [PlugMan.jar:?]
at com.rylinaux.plugman.util.PluginUtil.load(PluginUtil.java:226) [PlugMan.jar:?]
at com.rylinaux.plugman.util.PluginUtil.reload(PluginUtil.java:287) [PlugMan.jar:?]
at com.rylinaux.plugman.command.ReloadCommand.execute(ReloadCommand.java:122) [PlugMan.jar:?]
at com.rylinaux.plugman.PlugManCommands.onCommand(PlugManCommands.java:100) [PlugMan.jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spigot.jar:git-Spigot-1464]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [spigot.jar:git-Spigot-1464]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:728) [spigot.jar:git-Spigot-1464]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:715) [spigot.jar:git-Spigot-1464]
at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:319) [spigot.jar:git-Spigot-1464]
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:284) [spigot.jar:git-Spigot-1464]
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:576) [spigot.jar:git-Spigot-1464]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:482) [spigot.jar:git-Spigot-1464]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1464]
Ticket #172 seems to have to the same sort of conclusion, and as such there are two tickets on the same thing... best if one of them is closed imo.
@iain-davis: Here is my configuration. The password is just 'communitybridge'.
http://newpaste.md-5.net/ppjx52xfk/cjxdhq
Same password.
I led myself astray before. Turns out the permissionHandler wasn't getting set before analyze configuration started. The bug crept in when I added an additional check to analyze.
This one should fix the issue:
https://github.com/iain-davis/CommunityBridge-Files/blob/master/CommunityBridge.jar
Confirmed fixed. Now for issue #147 and this plugin should be working for me again ;)
It is true, #172 appears to be the same issue. If you could, attach your configuration file (without the database name/username/password, I'll fill in my own). I'm really not seeing what path it is going down to generate the error, I'll need to run a server with your config to see if I can track it down.
@iain-davis: The crash has been fixed for me as well! Now… would having the UUID column present be all that is needed? Or should it still be reading usernames?
@Eelviny: What are you doing on your installation?