1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

Solved Syntax error

Discussion in 'Support' started by hamzaxx, Sep 21, 2013.

  1. hamzaxx

    hamzaxx Member

    here is the error:
    Code (text):
    [LilyPad] build 78 of AllInOne
    Exception in thread "main" com.google.gson.JsonSyntaxException: com.google.gson.
    stream.MalformedJsonException: Unterminated object at line 60 column 6
            at com.google.gson.Gson.fromJson(Gson.java:809)
            at com.google.gson.Gson.fromJson(Gson.java:734)
            at lilypad.server.common.config.FileConfigGson.load(FileConfigGson.java:
    34)
            at lilypad.server.standalone.allinone.AllInOne.main(AllInOne.java:33)
    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at
    line 60 column 6
            at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1310)
            at com.google.gson.stream.JsonReader.nextInObject(JsonReader.java:722)
            at com.google.gson.stream.JsonReader.peek(JsonReader.java:382)
            at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:349)
            at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.re
    ad(ReflectiveTypeAdapterFactory.java:166)
            at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(Type
    AdapterRuntimeTypeWrapper.java:40)
            at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.
    java:72)
            at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Ref
    lectiveTypeAdapterFactory.java:93)
            at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.re
    ad(ReflectiveTypeAdapterFactory.java:172)
            at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Ref
    lectiveTypeAdapterFactory.java:93)
            at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.re
    ad(ReflectiveTypeAdapterFactory.java:172)
            at com.google.gson.Gson.fromJson(Gson.java:795)
            ... 3 more
    My config file:
    Code (text):
    {
      "proxy": {
        "bind": {
          "address": "199.241.138.167",
          "port": 25565
        },
        "outbound": {
          "address": "199.241.138.167"
        },
        "servers": [
          {
            "domain": "*",
            "server": "hub"
          }
        ],
        "motd": "A Minecraft Server",
        "playerMaximum": 1,
        "authenticate": true,
        "throttle": 2500,
        "tabEnabled": true,
        "localeFull": "You seem to be already logged in",
        "localeOffline": "The requested server is currently offline. Try again later!",
        "localeLoggedIn": "You have logged in from another location",
        "localeLostConn": "Lost connection... Please try to reconnect",
        "localeShutdown": "The server is being restarted. Please try to reconnect"
      },
      "queryTcp": {
        "bind": {
          "address": "199.241.138.167",
          "port": 5555
        }
      },
      "queryUdp": {
        "bind": {
          "address": "199.241.138.167",
          "port": 25565
        }
      },
      "connect": {
        "bind": {
          "address": "0.0.0.0",
          "port": 5091
        },
        "logins": [
          {
            "username": "hub",
            "password": "******"
          },              
          {                
            "username": "dvz",
            "password": "*****"
          },        
          {        
            "username": "minigames",
            "password": "*******"
          },        
          {          
            "username": "usevent",
            "password": "******"    
        ]
      }
    }
    Last edited: Sep 21, 2013
  2. hamzaxx

    hamzaxx Member

    Any help would be appreciated!
  3. hamzaxx

    hamzaxx Member

    Sorry for the trouble i fixed it myself please lock the thread.
  4. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Missing a bracket :p Sorry I couldn't be of assistance in time.
  5. boboman13

    boboman13 Member Contributor

    Don't want to be a party pooper and add unhelpful stuff to a topic, but I went ahead and added this to my Support FAQ thread, since it seems more of a general error. :)
  6. hamzaxx

    hamzaxx Member

    Its ok :p

Share This Page