Jump to content
  • 0
What is RS

Fixing run error and debugging info

Question

[quote]
[2012/07/22 23:13:36] [TkoScape]: TkoScape framework
[2012/07/22 23:13:38] [TkoScape]: Loaded 15558item prices.
[2012/07/22 23:13:40] [TkoScape]: Loading Server GUI...
[2012/07/22 23:13:43] [TkoScape]: Reading mapdata...
[2012/07/22 23:13:43] [TkoScape]: Loaded mapdata.
[2012/07/22 23:13:46] [TkoScape]: Loaded packet handlers.
[2012/07/22 23:13:46] [TkoScape]: Loading item definitions...
[2012/07/22 23:13:57] [TkoScape]: Loaded 12298 item definitions.
[2012/07/22 23:13:57] [TkoScape]: Loading npc definitions...
[2012/07/22 23:13:57] [TkoScape]: Loaded TkoScape 305 npc definitions.
[2012/07/22 23:13:57] [TkoScape]: Loading world list data...
[2012/07/22 23:13:57] [TkoScape]: Setting up TkoScape world...
[2012/07/22 23:13:58] [TkoScape]: Loading clans....
[2012/07/22 23:13:58] [TkoScape]: Loaded 0 TkoScape clans.
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.converters.Conversion
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.ObjectAcces
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/07/22 23:13:58] [TkoScape]: 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.ObjectAcces
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/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convert(TreeUnmarshaller.java:88)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.core.AbstractReferenc
eUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convertAnother(TreeUnmarshaller.java:75)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convertAnother(TreeUnmarshaller.java:59)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.converters.collection
s.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:77)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.converters.collection
s.CollectionConverter.populateCollection(CollectionConverter.java:68)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.converters.collection
s.CollectionConverter.unmarshal(CollectionConverter.java:61)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convert(TreeUnmarshaller.java:81)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.core.AbstractReferenc
eUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convertAnother(TreeUnmarshaller.java:75)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convertAnother(TreeUnmarshaller.java:59)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.core.TreeUnmarshaller
.start(TreeUnmarshaller.java:142)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.core.AbstractTreeMars
hallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.XStream.unmarshal(XSt
ream.java:907)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.XStream.unmarshal(XSt
ream.java:893)
[2012/07/22 23:13:58] [TkoScape]: com.thoughtworks.xstream.XStream.fromXML(XStre
am.java:845)
[2012/07/22 23:13:58] [TkoScape]: com.rs2hd.model.World.setEngine(World.java:394
)
[2012/07/22 23:13:58] [TkoScape]: com.rs2hd.Server.<init>(Server.java:73)
[2012/07/22 23:13:58] [TkoScape]: com.rs2hd.Main$1.run(Main.java:36)
[2012/07/22 23:13:58] [TkoScape]: java.lang.Thread.run(Unknown Source)
Terminate batch job (Y/N)? n
Press any key to continue . . .
[/quote]

Can anyone determine how to fix this? reply or skype, gr.top.thril

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
[quote name='What is RS']Can anyone determine how to fix this? reply or skype, gr.top.thril[/QUOTE]

Try doing what Hash said: go to NPC.java and add this [code]public NPC() { }[/code]

Compile with JDK7 and Run the server with JRE7.

Share this post


Link to post
Share on other sites
  • 0
I've tried doing that, but it doesn't work.

Share this post


Link to post
Share on other sites
  • 0
[quote name='What is RS']I've tried doing that, but it doesn't work.[/QUOTE]

Have you added it under:

[code]public class NPC {[/code]

?

Share this post


Link to post
Share on other sites
  • 0
alot of people get this error
when you have compiled the server with JDK 7

[code] [2012/03/27 00:02:49] [Fantasyscape]: Cannot construct com.rs2hd.model.NPC as it
does not have a no-args constructor : Cannot construct com.rs2hd.model.NPC as i
t does 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.ObjectAcces
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 : 3[/code]

to fix this you have to go to the file that it says which is com.rs2hd.model.NPC <-- Location code "src\com\rs2hd\model"

and above this
[code] public Item dropId(int id, int amt) {
return new Item(id, amt);
}[/code]

add the following.

[code]public NPC() {
} [/code]

after you recompile and try and run you should get another error in Location and some other files

so do the same but change this [code]public NPC() {
} [/code]

into

[code]public Location() {
} [/code]
and do this for the rest of the files you seem to get this error for.

Share this post


Link to post
Share on other sites

×