Thread: [Astera 2.0] Wild error...

Results 1 to 7 of 7
  1. #1 [Astera 2.0] Wild error... 
    Registered Member Equity's Avatar
    Join Date
    Aug 2013
    Posts
    388
    Thanks given
    57
    Thanks received
    15
    Rep Power
    15
    After following and converting everything to read the new definitions following this thread.
    http://www.rune-server.org/runescape...s-asteria.html

    I try to run my server and I get this wild error:
    Spoiler for Click for error:
    Aug 29, 2014 5:55:13 PM com.asteria.world.item.ItemDefinition loadItemDefinitions
    INFO: Loading item definitions...
    Aug 29, 2014 5:55:13 PM com.asteria.world.item.ItemDefinition loadItemDefinitions
    INFO: Loaded 20073 item definitions in 32ms.
    Aug 29, 2014 5:55:13 PM com.asteria.Main main
    SEVERE: An error occured while starting Asteria 2.0!
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected an int but was BEGIN_ARRAY at line 10 column 22
    at com.google.gson.internal.bind.ReflectiveTypeAdapte rFactory$Adapter.read(ReflectiveTypeAdapterFactory .java:176)
    at com.google.gson.internal.bind.TypeAdapterRuntimeTy peWrapper.read(TypeAdapterRuntimeTypeWrapper.java: 40)
    at com.google.gson.internal.bind.ArrayTypeAdapter.rea d(ArrayTypeAdapter.java:72)
    at com.google.gson.Gson.fromJson(Gson.java:803)
    at com.google.gson.Gson.fromJson(Gson.java:741)
    at com.asteria.world.item.ItemDefinition.loadItemDefi nitions(ItemDefinition.java:398)
    at com.asteria.Main.main(Main.java:58)
    Caused by: java.lang.IllegalStateException: Expected an int but was BEGIN_ARRAY at line 10 column 22
    at com.google.gson.stream.JsonReader.nextInt(JsonRead er.java:1173)
    at com.google.gson.internal.bind.TypeAdapters$7.read( TypeAdapters.java:239)
    at com.google.gson.internal.bind.TypeAdapters$7.read( TypeAdapters.java:231)
    at com.google.gson.internal.bind.ReflectiveTypeAdapte rFactory$1.read(ReflectiveTypeAdapterFactory.java: 93)
    at com.google.gson.internal.bind.ReflectiveTypeAdapte rFactory$Adapter.read(ReflectiveTypeAdapterFactory .java:172)
    ... 6 more

    [Java] Aug 29, 2014 5:55:13 PM com.asteria.world.item.ItemDefinition loadItemDefinition - Pastebin.com

    Here is the ItemDefinition.java file:
    [Java] package com.asteria.world.item; import java.io.FileNotFoundException; import - Pastebin.com



    If anybody is capable of assisting me, I would very much appreciate it.
    Thank you.
    Attached image
    Reply With Quote  
     

  2. #2  
    Android/Java/Meteor/Node
    Orbyt's Avatar
    Join Date
    Oct 2013
    Posts
    335
    Thanks given
    25
    Thanks received
    21
    Rep Power
    11
    Post the class and the full error.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Stephen OG's Avatar
    Join Date
    Aug 2014
    Posts
    173
    Thanks given
    114
    Thanks received
    56
    Rep Power
    182
    lol bro you pastebined the error, we need the class that you're deserializing with. The error is simply because you're not specifying the right information for deserialization.
    Reply With Quote  
     

  4. #4  
    Registered Member Equity's Avatar
    Join Date
    Aug 2013
    Posts
    388
    Thanks given
    57
    Thanks received
    15
    Rep Power
    15
    Quote Originally Posted by Charles View Post
    Post the class and the full error.
    Added the class required. Thanks.
    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Sep 2013
    Age
    39
    Posts
    23
    Thanks given
    4
    Thanks received
    0
    Rep Power
    11
    if you notice in some of your equations u have ItemDefinition.getItemDefinitions(then whatever following it)
    change ItemDefinition.getItemDefinitions == ItemDefinition.getItemDefinition
    that will cause an error I've had that give me errors in the past
    you can't get ItemDefinitions from a file Named ItemDefinition
    fix the class name or fix those lines if that doesn't fix it there must be sloppy coding in some of the other files double and triple check your classes b4 you close your project
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Dec 2012
    Posts
    444
    Thanks given
    39
    Thanks received
    57
    Rep Power
    0
    Get Eclipse, It will solve all these problems and in the process it will teach you how to do it yourself in the future!
    Reply With Quote  
     

  7. #7  
    Banned [Astera 2.0] Wild error... Market Banned


    Join Date
    Jan 2011
    Age
    26
    Posts
    3,112
    Thanks given
    1,198
    Thanks received
    1,479
    Rep Power
    0
    Quote Originally Posted by LitleFela View Post
    Get Eclipse, It will solve all these problems and in the process it will teach you how to do it yourself in the future!
    He uses eclipse... and eclipse can't provide suggestions for runtime errors anyway

    OP: I need line #10 of the json file you're trying to load
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Wild Error
    By highkey in forum Help
    Replies: 2
    Last Post: 07-26-2012, 12:28 AM
  2. Replies: 13
    Last Post: 02-10-2012, 12:32 AM
  3. 508/525 pvp cache wild error
    By codypkz508 in forum Help
    Replies: 4
    Last Post: 06-21-2010, 02:56 AM
  4. wild error?
    By str n00b in forum Help
    Replies: 2
    Last Post: 10-11-2009, 07:43 PM
  5. Error. Please reboot me :)
    By Inside Sin in forum Showcase
    Replies: 4
    Last Post: 05-13-2007, 03:39 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •