Cannot construct com.rs2hd.model.NPC as it do
es not have a no-args constructorMake sure you're using the latest version of xStream by the way.Code:public NPC() { }
|
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!
Cannot construct com.rs2hd.model.NPC as it do
es not have a no-args constructorMake sure you're using the latest version of xStream by the way.Code:public NPC() { }
Please some one help, I need to get back to work on my first project
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |