Problem/Bug Server either not showing up or instacrashing

Discussion in 'Bukkit Help' started by deathstryk, Dec 20, 2017.

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

    deathstryk

    So I wanted to get into mod-making, and I got this book: www.amazon.com/Absolute-Beginners-Guide-Minecraft-Programming-ebook/dp/B0161KTFH6

    It said you need a MC server to run mods, and to get Bukkit. So I did, and, after a few hiccups, everything seemed like it was running smoothly. Until I went to Minecraft (1.7.10) and the server wasn't there. It just wasn't listed. So I tried to use the IP address 127.0.0.1, and then it was showing up. It said "0/20", showing ther green bars, etc. So I ran it, and it crashed. I looked back at the server code, and it was saying stuff about Java errors. Here's the server code

    Code:
    [10:20:31 INFO]: Starting minecraft server version 1.7.10
    [10:20:31 INFO]: Loading properties
    [10:20:31 INFO]: Default game type: SURVIVAL
    [10:20:31 INFO]: Generating keypair
    [10:20:31 INFO]: Starting Minecraft server on *:25565
    [10:20:31 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks (MC: 1.7.10) (Implementing API version 1.7.10-R0.1-SNAPSHOT)
    [10:20:31 INFO]: Preparing level "world"
    [10:20:31 INFO]: Preparing start region for level 0 (Seed: 5191621417322878728)
    [10:20:32 INFO]: Preparing start region for level 1 (Seed: 5191621417322878728)
    [10:20:32 WARN]: Exception in thread "Thread-7"
    [10:20:32 WARN]: org.bukkit.craftbukkit.libs.com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 7
    [10:20:32 WARN]:        at org.bukkit.craftbukkit.libs.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:180)
    [10:20:32 WARN]:        at org.bukkit.craftbukkit.libs.com.google.gson.Gson.fromJson(Gson.java:755)
    [10:20:32 WARN]:        at org.bukkit.craftbukkit.libs.com.google.gson.Gson.fromJson(Gson.java:694)
    [10:20:32 WARN]:        at org.bukkit.craftbukkit.v1_7_R4.updater.BukkitDLUpdaterService.fetchArtifact(BukkitDLUpdaterService.java:53)
    [10:20:32 WARN]:        at org.bukkit.craftbukkit.v1_7_R4.updater.BukkitDLUpdaterService.getArtifact(BukkitDLUpdaterService.java:30)
    [10:20:32 WARN]:        at org.bukkit.craftbukkit.v1_7_R4.updater.AutoUpdater$1.run(AutoUpdater.java:77)
    [10:20:32 WARN]: Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 7
    [10:20:32 WARN]:        at org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader.expect(JsonReader.java:339)
    [10:20:32 WARN]:        at org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader.beginObject(JsonReader.java:322)
    [10:20:32 WARN]:        at org.bukkit.craftbukkit.libs.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:168)
    [10:20:32 WARN]:        ... 5 more
    [10:20:32 INFO]: Preparing start region for level 2 (Seed: 5191621417322878728)
    [10:20:32 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [10:20:32 INFO]: Done (1.406s)! For help, type "help" or "?"
    [10:22:47 INFO]: UUID of player deathstryk is 1ced3a1b-02aa-4d1f-8ec8-a82be462112d
    [10:22:47 INFO]: deathstryk[/127.0.0.1:55908] logged in with entity id 322 at ([world] 64.5, 70.0, 245.5)
    [10:22:48 INFO]: deathstryk lost connection: Internal Exception: java.io.IOException: An existing connection was forcibly closed by the remote host
    [10:22:48 INFO]: deathstryk left the game.
    [10:23:13 INFO]: UUID of player deathstryk is 1ced3a1b-02aa-4d1f-8ec8-a82be462112d
    [10:23:13 INFO]: deathstryk[/127.0.0.1:55952] logged in with entity id 511 at ([world] 64.5, 70.0, 245.5)
    [10:23:14 INFO]: deathstryk lost connection: Internal Exception: java.io.IOException: An existing connection was forcibly closed by the remote host
    [10:23:14 INFO]: deathstryk left the game.
    And here's the crash log:

    Code:
    10:23:05 launcher Preparing to launch minecraft client for 1.7.10
    10:23:05 launcher Checking installations.
    10:23:05 launcher Minecraft client 1.7.10 is ready to start.
    10:23:05 launcher Starting!
    10:23:05 launcher Using default game log configuration client-1.7.xml (outputs XML)
    10:23:06 bao Setting user: deathstryk
    10:23:06 bao (Session ID is token:e56816651c984048b06886954b523a89:1ced3a1b02aa4d1f8ec8a82be462112d)
    10:23:06 bao LWJGL Version: 2.9.1
    05:23:07 game If on Windows, make sure to provide all of the necessary dll's as specified in the twitchsdk README. Also, make sure to set the PATH environment variable to point to the directory containing the dll's. <log4j:Event logger="bao" timestamp="1513783387206" level="ERROR" thread="Client thread"> <log4j:Message><![CDATA[Couldn't initialize twitch stream]]></log4j:Message> </log4j:Event>
    05:23:07 monitor expected <
    10:23:07 brg Reloading ResourceManager: Default
    05:23:07 game Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. <log4j:Event logger="btj" timestamp="1513783387883" level="INFO" thread="Sound Library Loader"> <log4j:Message><![CDATA[Sound engine started]]></log4j:Message> </log4j:Event>
    05:23:07 monitor expected <
    10:23:09 bpz Created: 512x256 textures/blocks-atlas
    10:23:09 bpz Created: 256x256 textures/items-atlas
    10:23:12 bcx Connecting to 127.0.0.1, 25565
    10:23:13 bao Reported exception thrown! s: Ticking screen at bao.p(SourceFile:1353) at bao.ak(SourceFile:774) at bao.f(SourceFile:728) at net.minecraft.client.main.Main.main(SourceFile:148) Caused by: java.lang.IndexOutOfBoundsException at java.nio.Buffer.checkIndex(Buffer.java:540) at java.nio.DirectIntBufferU.get(DirectIntBufferU.java:253) at bma.a(SourceFile:271) at bma.a(SourceFile:220) at bao.a(SourceFile:1694) at bao.a(SourceFile:1652) at bjb.a(SourceFile:125) at hd.a(SourceFile:70) at hd.a(SourceFile:13) at ej.a(SourceFile:174) at bcx.e(SourceFile:78) at bao.p(SourceFile:1343) ... 3 more
     
  2. Online

    timtower Administrator Administrator Moderator

    @deathstryk Bukkit is plugins, server side modifications.
    The book is client side by the looks of it.
     
  3. Offline

    deathstryk

    What do you mean by this? And what does that have to do with my server crashing?
     
  4. Online

    timtower Administrator Administrator Moderator

    That you need to get straight what you are making: mods (client side with Forge) or plugins (server side with Bukkit)
    And I think that you just need to update the server to the latest version.
     
  5. Offline

    deathstryk

    I'm using NetBeans, not sure if that's client side or server side. Will the latest version of Bukkit work with 1.7.10?
     
  6. Online

    timtower Administrator Administrator Moderator

    @deathstryk NetBeans is the development interface, works with both, works for any version, works for any standalone program in multiple programming languages.
    No, why would you stay on 1.7.10?
     
  7. Offline

    deathstryk

    That's the version that the book is using, so I wanted to stick with that. Will it make that much of a difference if I go to 1.12.2?
     
  8. Online

    timtower Administrator Administrator Moderator

    For Bukkit: no.
    Forge: Yes

    But you still haven't told what you are gonna make.
    Are you gonna make mods of plugins?
     
  9. Offline

    deathstryk

    Mods
     
  10. Online

    timtower Administrator Administrator Moderator

    @deathstryk Then you need the Forge forums, not Bukkit
     
  11. Offline

    deathstryk

    OK let's ignore the mods part for now. I just need my server to work. What do I need to do? Update Bukkit to the latest version? If I do that, do I delete all my current stuff? Do you know what

    Code:
    [10:20:32 WARN]: Exception in thread "Thread-7"
    [10:20:32 WARN]: org.bukkit.craftbukkit.libs.com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 7
    [10:20:32 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:180)
    [10:20:32 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.Gson.fromJson(Gson.java:755)
    [10:20:32 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.Gson.fromJson(Gson.java:694)
    [10:20:32 WARN]: at org.bukkit.craftbukkit.v1_7_R4.updater.BukkitDLUpdaterService.fetchArtifact(BukkitDLUpdaterService.java:53)
    [10:20:32 WARN]: at org.bukkit.craftbukkit.v1_7_R4.updater.BukkitDLUpdaterService.getArtifact(BukkitDLUpdaterService.java:30)
    [10:20:32 WARN]: at org.bukkit.craftbukkit.v1_7_R4.updater.AutoUpdater$1.run(AutoUpdater.java:77)
    [10:20:32 WARN]: Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 7
    [10:20:32 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader.expect(JsonReader.java:339)
    [10:20:32 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader.beginObject(JsonReader.java:322)
    [10:20:32 WARN]: at org.bukkit.craftbukkit.libs.com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:168)
    [10:20:32 WARN]: ... 5 more
    
    means?
     
    Last edited by a moderator: Dec 20, 2017
  12. Online

    timtower Administrator Administrator Moderator

    @deathstryk Old version. Looks like an update checker that can't find the update site.
     
  13. Offline

    deathstryk

    Is there a way to get rid of the update checker or should I just update to latest version?
     
  14. Online

    timtower Administrator Administrator Moderator

    Just update, there is no reason to stay on 1.7.10, and if you stay there because of the book: Bukkit is useless with modded clients.
     
  15. Offline

    deathstryk

    What do I do with my old Bukkit stuff. Do I delete it? Does java -Xms1024M -Xmx1024M -jar bukkitserver.jar still start the server?
     
  16. Online

    timtower Administrator Administrator Moderator

    You delete it.
    Do you even need the server?
     
  17. Offline

    deathstryk

    Ok, let me directly quote from the book: "Developing mods requires access to a Minecraft server. The best way to do this when you're starting out as a mod programmer is to install and run a server on your own computer."
     
  18. Online

    timtower Administrator Administrator Moderator

    A Bukkit server will do you no good for that.
    Modded clients and Bukkit don't go well together.

    Client is good enough as it kinda contains it own server.
     
  19. Offline

    deathstryk

    OK, I'll try just not using the server, see if the client works. Thanks!
     
Thread Status:
Not open for further replies.

Share This Page