Towny Null Error

Discussion in 'Bukkit Help' started by chrisjahn, Sep 16, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    chrisjahn

    Greetings and Salutations.

    I've recently installed Towny on a server, and up until now, it was working perfectly. However, recently I've been getting getting a lot of 'null' errors when trying to input specific commands. So far, the commands /help towny and /town both yield this error. After a bit of research, I suspect that this has something to do with my economy plugin and Vault not hooking correctly, but in all honesty, I'm new to all of this and have no idea how to effectively resolve this issue. Any assistance you could provide would be greatly appreciated.

    Server Plugins:
    BiomeEdit
    Essentials (economy plugin)
    GlobalShop
    GroupManager (permissions plugin; not handling towny permissions)
    LWC
    Shop
    Towny (v.0.84.0.0)
    WorldEdit
    Dynmap
    McMMO

    Freshly generated startup log via console. (Reads from bottom to top)
    Code:
    16.09 16:31:02 [Multicraft] ~Decimus ran command Message of the Day
    16.09 16:31:02 [Disconnect] User chrisjahn has disconnected, reason: unknown
    16.09 16:31:02 [Connect] User ~Decimus, IP unknown
    16.09 16:28:27 [Server] INFO chrisjahn: /town
    16.09 16:28:25 [Multicraft] chrisjahn ran command Message of the Day
    16.09 16:28:25 [Connect] User chrisjahn, IP 67.204.45.142
    16.09 16:24:12 [Server] INFO Loading default resource pack
    16.09 16:24:10 [Server] WARNING Can't keep up! Did the system time change, or is the server overloaded?
    16.09 16:24:06 [Server] INFO at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
    16.09 16:24:06 [Server] INFO at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
    16.09 16:24:06 [Server] INFO at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
    16.09 16:24:06 [Server] INFO at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
    16.09 16:24:06 [Server] INFO at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:522)
    16.09 16:24:06 [Server] INFO at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
    16.09 16:24:06 [Server] INFO at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:53)
    16.09 16:24:06 [Server] INFO at com.palmergames.bukkit.towny.permissions.TownyPerms$1.run(Unknown Source)
    16.09 16:24:06 [Server] INFO at com.palmergames.bukkit.towny.permissions.TownyPerms.getTownRanks(Unknown Source)
    16.09 16:24:06 [Server] INFO java.lang.NullPointerException
    16.09 16:24:06 [Server] WARNING Task #14 for Towny v0.84.0.0 generated an exception
    16.09 16:24:06 [Server] INFO -******* TownyChat enabled *******-
    16.09 16:24:06 [Server] Startup Done (7.077s)! For help, type "help" or "?"
    16.09 16:24:06 [Server] INFO Server permissions file permissions.yml is empty, ignoring it
    16.09 16:24:06 [Server] INFO Enabling EssentialsAntiBuild v2.11.1
    16.09 16:24:06 [Server] INFO Enabling EssentialsChat v2.11.1
    16.09 16:24:05 [Server] INFO Vault dependancy found. Setting shops to use Vault economy.
    16.09 16:24:05 [Server] INFO Enabling Shop v1.4
    16.09 16:24:05 [Server] INFO Enabling EssentialsSpawn v2.11.1
    16.09 16:24:05 [Server] INFO Enabling EssentialsProtect v2.11.1
    16.09 16:24:05 [Server] INFO Enabling TownyChat v0.4
    16.09 16:24:05 [Server] INFO Enabled
    16.09 16:24:05 [Server] INFO Loaded 2 maps of world 'Main World_the_end'.
    16.09 16:24:05 [Server] INFO Loaded 2 maps of world 'Main World_nether'.
    16.09 16:24:05 [Server] INFO Loaded 10 pending tile renders for world 'Main World
    16.09 16:24:05 [Server] INFO Loaded 3 maps of world 'Main World'.
    16.09 16:24:05 [Server] INFO version 1.9-831 is enabled - core version 1.9-1790
    16.09 16:24:05 [Server] INFO Web server started on address 0.0.0.0:24500
    16.09 16:24:05 [Server] INFO Loaded 12 lightings.
    16.09 16:24:05 [Server] INFO Loaded 82 perspectives.
    16.09 16:24:05 [Server] INFO Loaded 21 shaders.
    16.09 16:24:04 [Server] INFO Web interface permissions only available for online users
    16.09 16:24:04 [Server] INFO Using Bukkit Permissions (superperms) for access control
    16.09 16:24:04 [Server] INFO Enabling dynmap v1.9-831
    16.09 16:24:03 [Server] INFO Permissions listed in as player-commands will be given to all users.
    16.09 16:24:03 [Server] INFO Essentials: Using config file enhanced permissions.
    16.09 16:24:03 [Server] INFO [Vault][Economy] Essentials Economy hooked.
    16.09 16:24:03 [Server] INFO Enabling Essentials v2.11.1
    16.09 16:24:03 [Server] INFO Enabling BiomeEdit v1.0.1
    16.09 16:24:03 [Server] INFO v0.6 - Enabled
    16.09 16:24:03 [Server] INFO Enabling Questioner v0.6
    16.09 16:24:03 [Server] INFO Configuration loaded.
    16.09 16:24:03 [Server] INFO Enabling GlobalShop v0.91
    16.09 16:24:03 [Server] INFO =============================================================
    16.09 16:24:03 [Server] INFO Version: 0.84.0.0 - Mod Enabled
    16.09 16:24:03 [Server] INFO =============================================================
    16.09 16:24:03 [Server] INFO Time until a New Day: 19 hours, 35 minutes, 57 seconds
    16.09 16:24:03 [Server] INFO Using: Vault v1.2.27-b349, Questioner v0.6
    16.09 16:24:02 [Server] INFO Database: [Load] flatfile [Save] flatfile
    16.09 16:24:02 [Server] INFO ====================      Towny      ========================
    16.09 16:24:02 [Server] INFO Enabling Towny v0.84.0.0
    16.09 16:24:01 [Server] INFO WEPIF: Using the Bukkit Permissions API.
    16.09 16:24:01 [Server] INFO Enabling WorldEdit v5.5.7
    16.09 16:24:01 [Server] INFO Preparing start region for level 2 (Seed: 4063975457504761071)
    16.09 16:24:01 [Server] INFO Preparing start region for level 1 (Seed: 4063975457504761071)
    16.09 16:24:00 [Server] INFO Preparing spawn area: 68%
    16.09 16:23:59 [Server] INFO Preparing start region for level 0 (Seed: 4063975457504761071)
    16.09 16:23:59 [Server] INFO Preparing level "Main World"
    16.09 16:23:58 [Server] INFO Enabling mcMMO v1.4.06-b2121
    16.09 16:23:58 [Server] INFO Connecting to SQLite
    16.09 16:23:58 [Server] INFO Enabling LWC v4.4.0 (b881) (July 11, 2013)
    16.09 16:23:58 [Server] INFO Enabled Version 1.2.27-b349
    16.09 16:23:58 [Server] INFO [Vault][Permission] SuperPermissions loaded as backup permission system.
    16.09 16:23:58 [Server] INFO [Vault][Economy] Essentials Economy found: Waiting
    16.09 16:23:58 [Server] INFO Enabling Vault v1.2.27-b349
    16.09 16:23:58 [Server] INFO Loading EssentialsAntiBuild v2.11.1
    16.09 16:23:58 [Server] INFO Loading EssentialsChat v2.11.1
    16.09 16:23:58 [Server] INFO Loading Shop v1.4
    16.09 16:23:58 [Server] INFO Loading EssentialsSpawn v2.11.1
    16.09 16:23:58 [Server] INFO Loading EssentialsProtect v2.11.1
    16.09 16:23:58 [Server] INFO Loading TownyChat v0.4
    16.09 16:23:58 [Server] INFO Loading dynmap v1.9-831
    16.09 16:23:58 [Server] INFO Loading Essentials v2.11.1
    16.09 16:23:58 [Server] INFO Loading BiomeEdit v1.0.1
    16.09 16:23:58 [Server] INFO Loading mcMMO v1.4.06-b2121
    16.09 16:23:58 [Server] INFO Loading LWC v4.4.0 (b881) (July 11, 2013)
    16.09 16:23:58 [Server] INFO Loading Questioner v0.6
    16.09 16:23:58 [Server] INFO Loading GlobalShop v0.91
    16.09 16:23:58 [Server] INFO Loading Vault v1.2.27-b349
    16.09 16:23:58 [Server] INFO Loading Towny v0.84.0.0
    16.09 16:23:58 [Server] INFO Loading WorldEdit v5.5.7
    16.09 16:23:57 [Server] INFO Entities enhanced[0] subclassed[0]
    16.09 16:23:57 [Server] INFO SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    16.09 16:23:57 [Server] INFO DataSourcePool [BiomeEdit] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    16.09 16:23:57 [Server] INFO Classpath search hits in jars[] pkgs[]  searchTime[5]
    16.09 16:23:57 [Server] WARNING No Entities found in ClassPath using ClassPathReader [com.avaje.ebeaninternal.server.util.DefaultClassPathReader@2bdd78] Classpath Searched[[file:/jar/Bukkit_RB.jar]]
    16.09 16:23:57 [Server] SEVERE ebean.properties not found
    16.09 16:23:56 [Server] INFO This server is running CraftBukkit version git-Bukkit-1.6.2-R1.0-b2879jnks (MC: 1.6.2) (Implementing API version 1.6.2-R1.0)
    16.09 16:23:55 [Server] INFO Starting Minecraft server on 198.24.162.98:26967
    16.09 16:23:55 [Server] INFO Generating keypair
    16.09 16:23:55 [Server] INFO Default game type: SURVIVAL
    16.09 16:23:55 [Server] INFO Loading properties
    16.09 16:23:55 [Server] INFO Starting minecraft server version 1.6.2
    16.09 16:23:54 [Multicraft] Loaded config for "Bukkit: Latest Recommended Build (1.6.2)"
    16.09 16:23:54 [Multicraft] Starting server!
    16.09 16:23:54 [Multicraft] Loading server properties
    16.09 16:23:54 [Multicraft] Received start command
    
    Please let me know if any more information is required, and I will be happy to provide what I can.
     
  2. Offline

    Necrodoom

    Looks like an error related to the config files of towny.. can you paste the towny config files using www.pastebin.com?

    (LlmDl)
     
  3. Offline

    chrisjahn

  4. Offline

    LlmDl

    chrisjahn Your config's regex section was broken. If you didn't edit it yourself then which ever way you're editing is usually to blame. Some people with this problem in the past found that it was caused by the webGUI they used (usually supplied by your host.)
     
  5. Offline

    chrisjahn

    LlmDl I've been editing the config file myself recently in order to meet my desired settings, of course. I don't believe my server hosting service has done anything to edit the Towny config files. I currently use the FTP File Access provided by my server provider, MCProHosting, in order to edit the config files. What would you suggest as being the best way to effectively resolve this issue?
     
  6. Offline

    LlmDl

    chrisjahn
    Delete the regex section of the towny config, towny will recreate them for you.
     
  7. Offline

    chrisjahn

    @LlmDl Deleted the lines I found in the config file that contained the word "regex", and Towny recreated them, but it didn't resolve the 'null' issue. Then tried deleting the entire config file and let Towny just recreate it. New config file yielded the same 'null' error. For the sake of testing, I have deleted the newly generated config file and replaced it with the prior one, which I did a backup of before deleting it. The config file currently in use does have the freshly generated regex section, which reads as:

    Code:
    filters_colour_chat:
      # This is the name given to any NPC assigned mayor.
      npc_prefix: NPC
      # Regex fields used in validating inputs.
      regex:
        name_filter_regex: '[ /]'
        name_check_regex: ^[a-zA-Z0-9._\[\]-]*$
        name_remove_regex: '[^a-zA-Z0-9._\[\]-]'
     
  8. Offline

    LlmDl

    Pastebin.com a full server startup please.
     
  9. Offline

    chrisjahn

  10. Offline

    LlmDl

  11. Offline

    chrisjahn

  12. Offline

    LlmDl

    You put in a tab after the towny.command.nation.add node in the nation helper rank.

    Don't use tabs in .yml files
     
  13. Offline

    chrisjahn

    @LlmDl
    Removed the tab in the .yml, and it fixed the /town command, so that now works properly. But the /help towny command still yields a bunch of null errors.

    Also, I'd just like to take the time to thank you greatly so far for the help you've provided. I doubt I could have resolved these issues without your assistance.
     
  14. Offline

    LlmDl

    There is no /help towny command. Use /towny ?
     
  15. Offline

    chrisjahn

    @LlmDl
    Guessing /help towny is just a broken command that you didn't remove from the code, then? I do know that typing it in the console says:

    Code:
    /towny: null
    /nation: null
    /plot: null
    /resident: null
    /town: null
    /townyadmin: null
    /townyworld: null
    Regardless, if it's an outdated command, then it's nothing to worry about. As far as I can tell, all other towny commands work properly. Again, thank you greatly for the help you've provided. I'll be sure to take extra caution with .yml files in the future, after seeing just how sensitive they can be.
     
  16. Offline

    LlmDl

    chrisjahn AFAIK the /help command is something bukkit added, it hooks into the plugin.yml, which towny has never used in that way.
     
Thread Status:
Not open for further replies.

Share This Page