Unhandled Exception #1


  • Other
  • Accepted
Open
Assigned to _ForgeUser7463849
  • _ForgeUser9391582 created this issue Dec 10, 2013

    What is the issue? When I run the command /srn on my server I get the following error:

    org.bukkit.command.CommandException: Unhandled exception executing command 'srn' in plugin SimpleRandomNumber v2.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192) ~[craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) ~[craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:930) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:812) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:651) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:541) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:453) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    Caused by: java.lang.NullPointerException
    at org.bukkit.ChatColor.translateAlternateColorCodes(ChatColor.java:203) ~[craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    at com.gmail.jameshealey1994.simplerandomnumber.SimpleRandomNumber.broadcastResult(SimpleRandomNumber.java:252) ~[?:?]
    at com.gmail.jameshealey1994.simplerandomnumber.SimpleRandomNumber.rollDice(SimpleRandomNumber.java:122) ~[?:?]
    at com.gmail.jameshealey1994.simplerandomnumber.SimpleRandomNumber.onCommand(SimpleRandomNumber.java:88) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit-1.7.2-R0.1-20131209.222809-30.jar:git-Bukkit-1.6.4-R2.0-37-g4857595-b2951jnks]
    ... 13 more

  • _ForgeUser9391582 added the tags New Other Dec 10, 2013
  • _ForgeUser7463849 posted a comment Dec 10, 2013

    Are you using 1.7? If so, please wait for a beta build before reporting bugs.

    If not, I'll take a look :)

  • _ForgeUser9391582 posted a comment Dec 10, 2013

    @AS1LV3RN1NJA: Go

    I am using 1.7, and I normally wouldn't place a ticket, but the curious part is that I can get it to work perfectly on my PC test server running 1.7, but not on my nfoservers.com server. I copy over the files exactly, and I get "An internal error has occurred while attempting to perform this command". I even have permissions set up on GroupManager.

    Perhaps it's just something with nfoservers. I'm kind of new to all of this, so if you could provide any insight I'd appreciate it. If you think it best I still wait for the beta build, I understand that as well.

  • _ForgeUser7463849 posted a comment Dec 10, 2013

    @Sever47: Go

    It seems like you had an invalid broadcast message in your configuration file.

    I've added a quick fix that just uses the default message if the one specified in the config is missing or invalid.

    I'll PM you the quick fix, but I'll pass on pushing to BukkitDev until I've implemented a better localisation solution.

    Please note the file I PM you a link to hasn't been formally approved by the BukkitDev guys.

    Hope this helps :)

  • _ForgeUser7463849 removed a tag New Dec 10, 2013
  • _ForgeUser7463849 added a tag Started Dec 10, 2013
  • _ForgeUser7463849 removed a tag Started Feb 16, 2014
  • _ForgeUser7463849 added a tag Accepted Feb 16, 2014

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