I need help fixing this error when i run the source.
Code:
Running server...
[Server]: Instinct Framework
[Server]: Loading cache...
[Server]: Loading Xteas and RegionBuilder...
[Server]: Loading clans
[Server]: Loaded 0 clans.
[Server]: Initializing packed and unpacked map areas...
[Server]: Loaded 15612 item prices.
Loaded 34 shops.
[Server]: Reading mapdata...
[Server]: Loaded mapdata.
[Server]: Loaded packet handlers.
[Server]: Loading item definitions.
[Server]: Loaded 22343 item definitions.
[Server]: Loading npc definitions.
[Server]: Loaded 328 npc definitions.
[Server]: Loading world list data.
[Server]: Setting up world.
[Server]: com.thoughtworks.xstream.converters.ConversionException: Cannot constr
uct max.model.NPC as it does not have a no-args constructor : Cannot construct m
ax.model.NPC as it does not have a no-args constructor
---- Debugging information ----
message : Cannot construct max.model.NPC as it does not have a no-ar
gs constructor
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAcces
sException
cause-message : Cannot construct max.model.NPC as it does not have a no-ar
gs constructor
class : java.util.ArrayList
required-type : max.model.NPC
path : /list/npc
line number : 2
-------------------------------
[Server]: Cannot construct max.model.NPC as it does not have a no-args construct
or : Cannot construct max.model.NPC as it does not have a no-args constructor
---- Debugging information ----
message : Cannot construct max.model.NPC as it does not have a no-ar
gs constructor
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAcces
sException
cause-message : Cannot construct max.model.NPC as it does not have a no-ar
gs constructor
class : java.util.ArrayList
required-type : max.model.NPC
path : /list/npc
line number : 2
-------------------------------
[Server]: com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshalle
r.java:88)
[Server]: com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Ab
stractReferenceUnmarshaller.java:55)
[Server]: com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnma
rshaller.java:75)
[Server]: com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnma
rshaller.java:59)
[Server]: com.thoughtworks.xstream.converters.collections.AbstractCollectionConv
erter.readItem(AbstractCollectionConverter.java:77)
[Server]: com.thoughtworks.xstream.converters.collections.CollectionConverter.po
pulateCollection(CollectionConverter.java:68)
[Server]: com.thoughtworks.xstream.converters.collections.CollectionConverter.un
marshal(CollectionConverter.java:61)
[Server]: com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshalle
r.java:81)
[Server]: com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Ab
stractReferenceUnmarshaller.java:55)
[Server]: com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnma
rshaller.java:75)
[Server]: com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnma
rshaller.java:59)
[Server]: com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.
java:142)
[Server]: com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsha
l(AbstractTreeMarshallingStrategy.java:33)
[Server]: com.thoughtworks.xstream.XStream.unmarshal(XStream.java:907)
[Server]: com.thoughtworks.xstream.XStream.unmarshal(XStream.java:893)
[Server]: com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
[Server]: max.model.World.setEngine(World.java:595)
[Server]: max.Server.<init>(Server.java:83)
[Server]: max.Main$1.run(Main.java:36)
[Server]: java.lang.Thread.run(Unknown Source)
Error: Main method not found in class max.Server, please define the main method
as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application
Press any key to continue . . .