java.lang.NullPointerException on Startup

Discussion in 'Bukkit Help' started by tomato500, Jul 16, 2013.

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

    tomato500

    Hey members of Bukkit!
    I'm having problems with my Bukkit server. It is running the 1.6.2 development build. When I go to start my server up, it crashes with this error.

    Code:
    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(
     
    Time: 7/16/13 2:53 PM
    Description: Exception in server tick loop
     
    java.lang.NullPointerException
        at org.bukkit.craftbukkit.v1_6_R2.CraftServer.getLogger(CraftServer.java:843)
        at org.bukkit.craftbukkit.v1_6_R2.help.HelpYamlReader.<init>(HelpYamlReader.java:43)
        at org.bukkit.craftbukkit.v1_6_R2.help.SimpleHelpMap.<init>(SimpleHelpMap.java:30)
        at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:142)
        at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
        at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11)
        at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106)
        at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391)
        at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
     
     
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
     
    -- System Details --
    Details:
        Minecraft Version: 1.6.2
        Operating System: Windows 7 (x86) version 6.1
        Java Version: 1.7.0_25, Oracle Corporation
        Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
        Memory: 10433264 bytes (9 MB) / 16252928 bytes (15 MB) up to 1046937600 bytes (998 MB)
        JVM Flags: 2 total; -Xincgc -Xmx1024M
        AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        Suspicious classes: $Proxy3[com.avaje.ebean.config.dbplatform.DatabasePlatform, SQLitePlatform], [net.minecraft.server.v1_6_R2.ICommandListener, IMojangStatistics, ICommandHandler, ...], [org.bukkit.BlockChangeDelegate, World, Server, ...], [org.bukkit.block.BlockState, BlockFace], [org.bukkit.command.CommandSender, RemoteConsoleCommandSender, CommandException, ...], [org.bukkit.command.defaults.VanillaCommand, SaveCommand, SaveOnCommand, ...], [org.bukkit.configuration.ConfigurationSection, Configuration, MemorySection, ...], [org.bukkit.configuration.file.FileConfiguration, YamlConfiguration, FileConfigurationOptions, ...], [org.bukkit.configuration.serialization.ConfigurationSerializable, ConfigurationSerialization, DelegateDeserialization, ...], [org.bukkit.conversations.Conversable], [org.bukkit.craftbukkit.Main], [org.bukkit.craftbukkit.libs.jline.TerminalFactory, Terminal, Flavor, ...], [org.bukkit.craftbukkit.libs.jline.console.ConsoleReader, CursorBuffer, ConsoleKeys, ...], [org.bukkit.craftbukkit.libs.jline.console.completer.CompletionHandler, CandidateListCompletionHandler], [org.bukkit.craftbukkit.libs.jline.console.history.History, MemoryHistory], [org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader, Configuration, Log], [org.bukkit.craftbukkit.v1_6_R2.LoggerOutputStream, CraftServer, CraftOfflinePlayer], [org.bukkit.craftbukkit.v1_6_R2.help.SimpleHelpMap, CommandAliasHelpTopic, HelpYamlReader], [org.bukkit.craftbukkit.v1_6_R2.inventory.CraftItemStack, CraftRecipe, CraftShapedRecipe, ...], [org.bukkit.craftbukkit.v1_6_R2.potion.CraftPotionEffectType], [org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler, CraftAsyncDebugger, CraftTask, ...], [org.bukkit.craftbukkit.v1_6_R2.util.ServerShutdownThread, Waitable, TerminalConsoleHandler, ...], [org.bukkit.entity.Entity, Damageable, LivingEntity, ...], [org.bukkit.event.Event, Cancellable], [org.bukkit.event.block.BlockEvent, BlockFadeEvent, BlockGrowEvent, ...], [org.bukkit.event.entity.EntityEvent, EntityInteractEvent, EntityDamageEvent, ...], [org.bukkit.event.hanging.HangingEvent, HangingPlaceEvent], [org.bukkit.event.inventory.InventoryMoveItemEvent], [org.bukkit.event.painting.PaintingEvent, PaintingPlaceEvent], [org.bukkit.event.player.PlayerEvent, PlayerFishEvent, PlayerJoinEvent, ...], [org.bukkit.event.server.ServerEvent, MapInitializeEvent, ServerCommandEvent, ...], [org.bukkit.event.world.WorldEvent, WorldInitEvent, WorldSaveEvent, ...], [org.bukkit.help.HelpMap, HelpTopic, IndexHelpTopic, ...], [org.bukkit.inventory.ItemStack, Inventory, Recipe, ...], [org.bukkit.inventory.meta.ItemMeta, Repairable, BookMeta, ...], [org.bukkit.map.MapView], [org.bukkit.material.MaterialData, Tree, Directional, ...], [org.bukkit.metadata.Metadatable], [org.bukkit.permissions.ServerOperator, Permissible], [org.bukkit.plugin.ServicesManager, PluginManager, SimpleServicesManager, ...], [org.bukkit.plugin.messaging.PluginMessageRecipient, Messenger], [org.bukkit.potion.PotionEffectType, PotionEffectTypeWrapper, PotionBrewer, ...], [org.bukkit.scheduler.BukkitScheduler, BukkitTask], [org.bukkit.scoreboard.ScoreboardManager, DisplaySlot], [org.bukkit.util.Vector, BlockVector, Java15Compat], [org.fusesource.hawtjni.runtime.Library], [org.fusesource.jansi.AnsiOutputStream, WindowsAnsiOutputStream, AnsiConsole, ...], [org.fusesource.jansi.internal.Kernel32, CONSOLE_SCREEN_BUFFER_INFO, COORD, ...], [org.yaml.snakeyaml.DumperOptions, ScalarStyle, FlowStyle, ...], [org.yaml.snakeyaml.composer.Composer, ComposerException], [org.yaml.snakeyaml.constructor.BaseConstructor, SafeConstructor, Constructor, ...], [org.yaml.snakeyaml.emitter.Emitable], [org.yaml.snakeyaml.error.YAMLException, MarkedYAMLException, Mark], [org.yaml.snakeyaml.events.Event, NodeEvent, ScalarEvent, ...], [org.yaml.snakeyaml.external.com.google.gdata.util.common.base.Escaper, UnicodeEscaper, PercentEscaper], [org.yaml.snakeyaml.introspector.PropertyUtils, BeanAccess], [org.yaml.snakeyaml.nodes.Node, CollectionNode, MappingNode, ...], [org.yaml.snakeyaml.parser.Parser, ParserImpl, ParserException, ...], [org.yaml.snakeyaml.reader.UnicodeReader, StreamReader, ReaderException], [org.yaml.snakeyaml.representer.BaseRepresenter, SafeRepresenter, Representer, ...], [org.yaml.snakeyaml.resolver.Resolver, ResolverTuple], [org.yaml.snakeyaml.scanner.Scanner, ScannerImpl, ScannerException, ...], [org.yaml.snakeyaml.tokens.Token, AliasToken, DocumentStartToken, ...], [org.yaml.snakeyaml.util.UriEncoder, ArrayStack]
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        CraftBukkit Information:
      Running:
      Failed to handle CraftCrashReport:
    java.lang.NullPointerException
        at org.bukkit.Bukkit.getName(Bukkit.java:72)
        at org.bukkit.craftbukkit.v1_6_R2.CraftCrashReport.call(CraftCrashReport.java:20)
        at net.minecraft.server.v1_6_R2.CrashReportSystemDetails.a(SourceFile:74)
        at net.minecraft.server.v1_6_R2.CrashReport.h(CrashReport.java:41)
        at net.minecraft.server.v1_6_R2.CrashReport.<init>(CrashReport.java:28)
        at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:436)
        at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
     
        Profiler Position: N/A (disabled)
        Is Modded: Definitely; Server brand changed to 'craftbukkit'
        Type: Dedicated Server (map_server.txt)
    Please help! I would like my server to be up ASAP.

    Thanks in advance!

    -tomato500
     
  2. Offline

    TheMonkey1415

    It crashes on
    Code:java
    1. at org.bukkit.craftbukkit.v1_6_R2.CraftServer.getLogger(CraftServer.java:843)
    so according to the GitHub file, it's a problem with saving the world. Maybe delete the world folder, and regenerate it again? This should fix your problem.
     
  3. Offline

    tomato500

    Hmm, I'll try that. But, the world we were on had SO MUCH progress. It would really annoy me if I had to delete it.

    Yup, I tried it. No luck there...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  4. Offline

    TheMonkey1415

    Hmm.. I guess your only option now, is to wait for the next developer build and hope it's fixed, or you can just redownload CraftBukkit.
     
  5. Offline

    tomato500

    Yeah, I tried that but I'm still getting the error. What could be the problem now?
     
  6. Offline

    Lolmewn

    Not sure if it'll help, but try disabling jline
     
  7. Offline

    tomato500

    I hope I don't sound too stupid, but how do I disable JLine?

    P.S. I'm on Windows 7 64-bit
     
  8. Offline

    Jade

    Add this, without the quotes, to the end of the .bat/.sh/.cmd "--nojline"
    eg.
    java -Xmx1024M -jar craftbukkit.jar -o true --nojline
     
  9. Offline

    tomato500

    Still getting the error? Hmm...

    Here's the new updated crash log:

    Code:
    ---- Minecraft Crash Report ----
    // I feel sad now :(
     
    Time: 7/20/13 9:32 PM
    Description: Exception in server tick loop
     
    java.lang.NullPointerException
        at org.bukkit.craftbukkit.v1_6_R2.CraftServer.getLogger(CraftServer.java:843)
        at org.bukkit.craftbukkit.v1_6_R2.help.HelpYamlReader.<init>(HelpYamlReader.java:43)
        at org.bukkit.craftbukkit.v1_6_R2.help.SimpleHelpMap.<init>(SimpleHelpMap.java:30)
        at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:142)
        at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
        at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11)
        at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106)
        at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391)
        at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
     
     
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
     
    -- System Details --
    Details:
        Minecraft Version: 1.6.2
        Operating System: Windows 7 (x86) version 6.1
        Java Version: 1.7.0_25, Oracle Corporation
        Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
        Memory: 10828024 bytes (10 MB) / 16252928 bytes (15 MB) up to 1046937600 bytes (998 MB)
        JVM Flags: 2 total; -Xincgc -Xmx1024M
        AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        Suspicious classes: $Proxy3[com.avaje.ebean.config.dbplatform.DatabasePlatform, SQLitePlatform], [net.minecraft.server.v1_6_R2.ICommandListener, IMojangStatistics, ICommandHandler, ...], [org.bukkit.BlockChangeDelegate, World, Server, ...], [org.bukkit.block.BlockState, BlockFace], [org.bukkit.command.CommandSender, RemoteConsoleCommandSender, CommandException, ...], [org.bukkit.command.defaults.VanillaCommand, SaveCommand, SaveOnCommand, ...], [org.bukkit.configuration.ConfigurationSection, Configuration, MemorySection, ...], [org.bukkit.configuration.file.FileConfiguration, YamlConfiguration, FileConfigurationOptions, ...], [org.bukkit.configuration.serialization.ConfigurationSerializable, ConfigurationSerialization, DelegateDeserialization, ...], [org.bukkit.conversations.Conversable], [org.bukkit.craftbukkit.Main], [org.bukkit.craftbukkit.libs.jline.Terminal, TerminalSupport, UnsupportedTerminal, ...], [org.bukkit.craftbukkit.libs.jline.console.ConsoleReader, CursorBuffer, ConsoleKeys, ...], [org.bukkit.craftbukkit.libs.jline.console.completer.CompletionHandler, CandidateListCompletionHandler], [org.bukkit.craftbukkit.libs.jline.console.history.History, MemoryHistory], [org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader, Configuration, Log], [org.bukkit.craftbukkit.v1_6_R2.LoggerOutputStream, CraftServer, CraftOfflinePlayer], [org.bukkit.craftbukkit.v1_6_R2.help.SimpleHelpMap, CommandAliasHelpTopic, HelpYamlReader], [org.bukkit.craftbukkit.v1_6_R2.inventory.CraftItemStack, CraftRecipe, CraftShapedRecipe, ...], [org.bukkit.craftbukkit.v1_6_R2.potion.CraftPotionEffectType], [org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler, CraftAsyncDebugger, CraftTask, ...], [org.bukkit.craftbukkit.v1_6_R2.util.ServerShutdownThread, Waitable, TerminalConsoleHandler, ...], [org.bukkit.entity.Entity, Damageable, LivingEntity, ...], [org.bukkit.event.Event, Cancellable], [org.bukkit.event.block.BlockEvent, BlockFadeEvent, BlockGrowEvent, ...], [org.bukkit.event.entity.EntityEvent, EntityInteractEvent, EntityDamageEvent, ...], [org.bukkit.event.hanging.HangingEvent, HangingPlaceEvent], [org.bukkit.event.inventory.InventoryMoveItemEvent], [org.bukkit.event.painting.PaintingEvent, PaintingPlaceEvent], [org.bukkit.event.player.PlayerEvent, PlayerFishEvent, PlayerJoinEvent, ...], [org.bukkit.event.server.ServerEvent, MapInitializeEvent, ServerCommandEvent, ...], [org.bukkit.event.world.WorldEvent, WorldInitEvent, WorldSaveEvent, ...], [org.bukkit.help.HelpMap, HelpTopic, IndexHelpTopic, ...], [org.bukkit.inventory.ItemStack, Inventory, Recipe, ...], [org.bukkit.inventory.meta.ItemMeta, Repairable, BookMeta, ...], [org.bukkit.map.MapView], [org.bukkit.material.MaterialData, Tree, Directional, ...], [org.bukkit.metadata.Metadatable], [org.bukkit.permissions.ServerOperator, Permissible], [org.bukkit.plugin.ServicesManager, PluginManager, SimpleServicesManager, ...], [org.bukkit.plugin.messaging.PluginMessageRecipient, Messenger], [org.bukkit.potion.PotionEffectType, PotionEffectTypeWrapper, PotionBrewer, ...], [org.bukkit.scheduler.BukkitScheduler, BukkitTask], [org.bukkit.scoreboard.ScoreboardManager, DisplaySlot], [org.bukkit.util.Vector, BlockVector, Java15Compat], [org.yaml.snakeyaml.DumperOptions, ScalarStyle, FlowStyle, ...], [org.yaml.snakeyaml.composer.Composer, ComposerException], [org.yaml.snakeyaml.constructor.BaseConstructor, SafeConstructor, Constructor, ...], [org.yaml.snakeyaml.emitter.Emitable], [org.yaml.snakeyaml.error.YAMLException, MarkedYAMLException, Mark], [org.yaml.snakeyaml.events.Event, NodeEvent, AliasEvent, ...], [org.yaml.snakeyaml.external.com.google.gdata.util.common.base.Escaper, UnicodeEscaper, PercentEscaper], [org.yaml.snakeyaml.introspector.PropertyUtils, BeanAccess], [org.yaml.snakeyaml.nodes.Node, CollectionNode, MappingNode, ...], [org.yaml.snakeyaml.parser.Parser, ParserImpl, ParserException, ...], [org.yaml.snakeyaml.reader.UnicodeReader, StreamReader, ReaderException], [org.yaml.snakeyaml.representer.BaseRepresenter, SafeRepresenter, Representer, ...], [org.yaml.snakeyaml.resolver.Resolver, ResolverTuple], [org.yaml.snakeyaml.scanner.Scanner, ScannerImpl, ScannerException, ...], [org.yaml.snakeyaml.tokens.Token, AliasToken, ScalarToken, ...], [org.yaml.snakeyaml.util.UriEncoder, ArrayStack]
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        CraftBukkit Information:
      Running:
      Failed to handle CraftCrashReport:
    java.lang.NullPointerException
        at org.bukkit.Bukkit.getName(Bukkit.java:72)
        at org.bukkit.craftbukkit.v1_6_R2.CraftCrashReport.call(CraftCrashReport.java:20)
        at net.minecraft.server.v1_6_R2.CrashReportSystemDetails.a(SourceFile:74)
        at net.minecraft.server.v1_6_R2.CrashReport.h(CrashReport.java:41)
        at net.minecraft.server.v1_6_R2.CrashReport.<init>(CrashReport.java:28)
        at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:436)
        at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
     
        Profiler Position: N/A (disabled)
        Is Modded: Definitely; Server brand changed to 'craftbukkit'
        Type: Dedicated Server (map_server.txt)
    I do feel sad now. :-(
     
  10. Offline

    Fata

    Im having the same problem but i cant even reload my server or restart it or anything like that
    So i guess i need help =/
     
  11. Offline

    tomato500


    Same with me :( It sucks, huh?
     
  12. Offline

    LemonTart9

    I have that same problem too. Here is my error

    Code:java
    1.  
    2.  
    3. 14:47:30 [SEVERE] java.lang.NullPointerException
    4. 14:47:30 [SEVERE] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.getLogger(CraftServer.java:843)
    5. 14:47:30 [SEVERE] at org.bukkit.craftbukkit.v1_6_R2.help.HelpYamlReader.<init>(HelpYamlReader.java:43)
    6. 14:47:30 [SEVERE] at org.bukkit.craftbukkit.v1_6_R2.help.SimpleHelpMap.<init>(SimpleHelpMap.java:30)
    7. 14:47:30 [SEVERE] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:142)
    8. 14:47:30 [SEVERE] at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
    9. 14:47:30 [SEVERE] at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11)
    10. 14:47:30 [SEVERE] at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106)
    11. 14:47:30 [SEVERE] at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391)
    12. 14:47:30 [SEVERE] at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
    13. 14:47:30 [SEVERE] Encountered an unexpected exception NullPointerException
    14. at org.bukkit.craftbukkit.v1_6_R2.CraftServer.getLogger(CraftServer.java:843)
    15. at org.bukkit.craftbukkit.v1_6_R2.help.HelpYamlReader.<init>(HelpYamlReader.java:43)
    16. at org.bukkit.craftbukkit.v1_6_R2.help.SimpleHelpMap.<init>(SimpleHelpMap.java:30)
    17. at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:142)
    18. at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
    19. at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11)
    20. at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106)
    21. at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391)
    22. at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
    23.  
    24.  


    Any help?
     
  13. Offline

    tomato500

    Sorry if I'm kinda pushy, but can anyone help please?
     
  14. Offline

    tomato500

    Anyone still here...?
     
  15. Offline

    tikiking1

    This happened to me too - Check your server.properties for damage.
    Mine (somehow) got wiped; deleting it fixed it for me.
     
  16. Offline

    Falcon0227

    I had this problem too. Surprisingly, when I renamed the folder in which my server was in to a shorter name, it worked. Not sure if this is true, but it worked for me :p
     
  17. Offline

    tomato500

    Alright guys, I figured this out.

    I deleted everything from the folder EXCEPT for the CraftBukkit.jar and the start.bat.

    Then I launched the server, and believe it or not, it worked!

    Thank you guys for all your tips, and I hope this helps everyone who is having this problem.

    (But whatever caused the problem is still a mystery)
     
  18. i have deleted usercache.json and its worked for me :)
     
Thread Status:
Not open for further replies.

Share This Page