Solved NullPointerException

Discussion in 'Bukkit Help' started by Herdo, Nov 5, 2012.

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

    Herdo

    Hello, I'm trying to create a server for my girlfriend and I to play on. I created one about two months ago and ran into this exact problem. I thought all I did was reinstall Java, but apparently that was not it because I just reinstalled Jre7 and I still get this error.

    Here is my run.bat:


    java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
    PAUSE



    And here is the error that the console is giving me:


    java.lang.NullPointerException
    at java.io.Reader.<init>(Unknown Source)
    at java.io.InputStreamReader.<init>(Unknown Source)
    at net.minecraft.server.AchievementMap.<init>(SourceFile:15)
    at net.minecraft.server.AchievementMap.<clinit>(SourceFile:9)
    at net.minecraft.server.Statistic.g(SourceFile:37)
    at net.minecraft.server.CounterStatistic.g(SourceFile:15)
    at net.minecraft.server.StatisticList.<clinit>(SourceFile:27)
    at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:601)
    at org.bukkit.craftbukkit.Main.main(Main.java:152)
    java.lang.ExceptionInInitializerError
    at net.minecraft.server.LocaleI18n.<clinit>(SourceFile:4)
    at net.minecraft.server.Item.s(SourceFile:459)
    at net.minecraft.server.StatisticList.a(SourceFile:138)
    at net.minecraft.server.StatisticList.c(SourceFile:85)
    at net.minecraft.server.Item.<clinit>(SourceFile:263)
    at net.minecraft.server.Block.<clinit>(Block.java:639)
    at net.minecraft.server.StatisticList.a(SourceFile:121)
    at net.minecraft.server.StatisticList.<clinit>(SourceFile:55)
    at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:601)
    at org.bukkit.craftbukkit.Main.main(Main.java:152)
    Caused by: java.lang.NullPointerException
    at java.io.Reader.<init>(Unknown Source)
    at java.io.InputStreamReader.<init>(Unknown Source)
    at net.minecraft.server.LocaleLanguage.e(SourceFile:30)
    at net.minecraft.server.LocaleLanguage.<init>(SourceFile:17)
    at net.minecraft.server.LocaleLanguage.<clinit>(SourceFile:8)
    ... 10 more
    Press any key to continue . . .


    EDIT: Oh and by the way, this is a fresh server that has never been created. All I have in my server folder is the craftbukkit jar file labeled "craftbukkit" and the run.bat file.
     
  2. Offline

    TheBeast808

    Do you have any plugins at all?
     
  3. Offline

    Herdo

    Nope, no plugins at all. At least not in this folder. I do on other servers but they are old and in their own separate folders.

    EDIT:

    Also, I had several old versions of Java that I just removed, thinking that might of been causing a conflict, but it's still not working.
    Java SE Runtime Environment 7u9 X64 is what I currently have installed.

    I went into the registry and completely removed everything Java, then reinstalled the 64 bit version of JRE7.

    SOLVED: Apparently exclamation marks (or any odd characters) anywhere in the pathway will cause this error.

    The server folder on my desktop was named "NEW Minecraft Server!"

    Changed to "NEW Minecraft Server", and it works great, haha. Hopefully this may help someone else.

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

    leobizaz


    THANK. YOU. SO. MUCH. THAT WAS SUCH A STUPID ERROR AND I HAVE SPENT A LOT OF TIME TO FIGURE IT OUT >_>
     
Thread Status:
Not open for further replies.

Share This Page