Thread: Runserver.bat won't load properly.

Results 1 to 4 of 4
  1. #1 Runserver.bat won't load properly. 
    Registered Member
    Join Date
    Mar 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hey guys, I've been trying to make a server for a while now with the RuneSlay source, but every time I try to start it up I get this:

    Exception: Cannot construct com.rs2hd.model.NPC as it does not have a no-args co
    nstructor : Cannot construct com.rs2hd.model.NPC as it does not have a no-args c
    onstructor
    ---- Debugging information ----
    message : Cannot construct com.rs2hd.model.NPC as it does not have a
    no-args constructor
    cause-exception : com.thoughtworks.xstream.converters.reflection.Obj ectAcces
    sException
    cause-message : Cannot construct com.rs2hd.model.NPC as it does not have a
    no-args constructor
    class : java.util.ArrayList
    required-type : com.rs2hd.model.NPC
    path : /list/npc
    line number : 2
    -------------------------------
    [2012/06/26 15:15:50] [RuneSlay]: Cannot construct com.rs2hd.model.NPC as it doe
    s not have a no-args constructor : Cannot construct com.rs2hd.model.NPC as it do
    es not have a no-args constructor
    ---- Debugging information ----
    message : Cannot construct com.rs2hd.model.NPC as it does not have a
    no-args constructor
    cause-exception : com.thoughtworks.xstream.converters.reflection.Obj ectAcces
    sException
    cause-message : Cannot construct com.rs2hd.model.NPC as it does not have a
    no-args constructor
    class : java.util.ArrayList
    required-type : com.rs2hd.model.NPC
    path : /list/npc
    line number : 2
    -------------------------------
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.core.TreeUnmarshaller
    .convert(TreeUnmarshaller.java:88)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.core.AbstractReferenc
    eUnmarshaller.convert(AbstractReferenceUnmarshalle r.java:55)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.core.TreeUnmarshaller
    .convertAnother(TreeUnmarshaller.java:75)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.core.TreeUnmarshaller
    .convertAnother(TreeUnmarshaller.java:59)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.converters.collection
    s.AbstractCollectionConverter.readItem(AbstractCol lectionConverter.java:77)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.converters.collection
    s.CollectionConverter.populateCollection(Collectio nConverter.java:68)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.converters.collection
    s.CollectionConverter.unmarshal(CollectionConverte r.java:61)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.core.TreeUnmarshaller
    .convert(TreeUnmarshaller.java:81)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.core.AbstractReferenc
    eUnmarshaller.convert(AbstractReferenceUnmarshalle r.java:55)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.core.TreeUnmarshaller
    .convertAnother(TreeUnmarshaller.java:75)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.core.TreeUnmarshaller
    .convertAnother(TreeUnmarshaller.java:59)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.core.TreeUnmarshaller
    .start(TreeUnmarshaller.java:142)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.core.AbstractTreeMars
    hallingStrategy.unmarshal(AbstractTreeMarshallingS trategy.java:33)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.XStream.unmarshal(XSt
    ream.java:907)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.XStream.unmarshal(XSt
    ream.java:893)
    [2012/06/26 15:15:50] [RuneSlay]: com.thoughtworks.xstream.XStream.fromXML(XStre
    am.java:845)
    [2012/06/26 15:15:50] [RuneSlay]: com.rs2hd.model.World.setEngine(World.java:386
    )
    [2012/06/26 15:15:50] [RuneSlay]: com.rs2hd.GameEngine.<init>(GameEngine.java:16
    5)
    [2012/06/26 15:15:50] [RuneSlay]: com.rs2hd.Server.<init>(Server.java:80)
    [2012/06/26 15:15:50] [RuneSlay]: com.rs2hd.Main$1.run(Main.java:35)
    [2012/06/26 15:15:50] [RuneSlay]: java.lang.Thread.run(Unknown Source)




    Help please!
    Reply With Quote  
     

  2. #2  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Cannot construct com.rs2hd.model.NPC as it do
    es not have a no-args constructor
    Code:
    public NPC() {
    
    }
    Make sure you're using the latest version of xStream by the way.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Stuart View Post
    Code:
    public NPC() {
    
    }
    Make sure you're using the latest version of xStream by the way.
    Where should I place the code? I've tried putting it in multiple places but it still won't work. Also how do I update xStream?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Mar 2014
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Please some one help, I need to get back to work on my first project
    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. Models won't load properly?
    By wreckless in forum Help
    Replies: 4
    Last Post: 07-26-2009, 06:23 PM
  2. 508 Client won't load
    By Mikey` in forum Help
    Replies: 3
    Last Post: 07-24-2009, 06:25 PM
  3. Sprites won't load,rep+ help
    By Benes in forum Help
    Replies: 11
    Last Post: 03-23-2009, 12:21 AM
  4. RuneFusion Runserver.bat and other problems
    By Shemhamforash in forum Help
    Replies: 9
    Last Post: 01-29-2009, 10:07 PM
  5. Changing what it says in runserver.bat
    By Gign919191 in forum Tutorials
    Replies: 4
    Last Post: 03-02-2008, 12:18 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
  •