Jump to content
  • 0
jhelsel

Server Not Loading Player Info

Question

Hello RuneLocus im back once again , and i need help once again....ok first things first....i have alhassa-scape you all know by now...and hash helped me last time i had a problem so ima mention him hash and heres my problem:=======)I log into my game and i can play and use everything (its amazing) then once i log out...my server says file saved for that player and etc. and then i try to login again...and it says error loading your account please contact customer support...or something like that....i really need help...so once again [MENTION=17381]Hash[/MENTION] please help me

Share this post


Link to post
Share on other sites

23 answers to this question

Recommended Posts

  • 0
Have you changed something in player saving in Player.java?

Share this post


Link to post
Share on other sites
  • 0
Theres also other reasons i think idk listen to hash on this one :/ anyway maybe youve changed somthing in the method where your source loads your players coords or an item is nulling your players account?

Share this post


Link to post
Share on other sites
  • 0
[quote name='Zeta king']Theres also other reasons i think idk listen to hash on this one :/ anyway maybe youve changed somthing in the method where your source loads your players coords or an item is nulling your players account?[/QUOTE]

It has to do with XStream, which use Serialization. When you change something when the player saves, it won't be able to load it back after since something in the character file has changed and XStream is unable to load it.

To know what's the error, go in XStreamPlayerLoader.java, and just above:

[code]result.returnCode = 24;[/code]

add

[code]e.printStackTrace();[/code]

That should show you the problem in the server's cmd when you login with your player and that it tells you that it can't load player's profile.

Share this post


Link to post
Share on other sites
  • 0
[quote name='Zeta king']Theres also other reasons i think idk listen to hash on this one :/ anyway maybe youve changed somthing in the method where your source loads your players coords or an item is nulling your players account?[/QUOTE]
[MENTION=17381]Hash[/MENTION] this is exact copy+paste of run.bat [CODE][2012/07/10 17:00:21] [RebirthScape]: RebirthScape framework
[2012/07/10 17:00:21] [RebirthScape]: Loaded 15558item prices.
[2012/07/10 17:00:21] [RebirthScape]: Loading Server GUI...
[2012/07/10 17:00:23] [RebirthScape]: Reading mapdata...
[2012/07/10 17:00:23] [RebirthScape]: Loaded mapdata.
[2012/07/10 17:00:23] [RebirthScape]: Loaded packet handlers.
[2012/07/10 17:00:23] [RebirthScape]: Loading item definitions...
[2012/07/10 17:00:30] [RebirthScape]: Loaded 12375 item definitions.
[2012/07/10 17:00:30] [RebirthScape]: Loading npc definitions...
[2012/07/10 17:00:30] [RebirthScape]: Loaded RebirthScape 324 npc definitions.
[2012/07/10 17:00:30] [RebirthScape]: Loading world list data...
[2012/07/10 17:00:30] [RebirthScape]: Setting up RebirthScape world...
[2012/07/10 17:00:30] [RebirthScape]: Loading clans....
[2012/07/10 17:00:30] [RebirthScape]: Loaded 0 TkoScape clans.
[2012/07/10 17:00:33] [RebirthScape]: Loading alhassa-scape scripts...
[2012/07/10 17:00:33] [RebirthScape]: Parsed 7 scripts.
[2012/07/10 17:00:33] [RebirthScape]: Launching RebirthScape worker thread...
[2012/07/10 17:00:40] [RebirthScape]: RebirthScape is now online.
log4j:WARN No appenders could be found for logger (org.apache.mina.filter.execut
or.ExecutorFilter).
log4j:WARN Please initialize the log4j system properly.
com.thoughtworks.xstream.converters.ConversionException: Cannot construct com.rs
2hd.model.Player as it does not have a no-args constructor : Cannot construct co
m.rs2hd.model.Player as it does not have a no-args constructor
---- Debugging information ----
message : Cannot construct com.rs2hd.model.Player as it does not hav
e a no-args constructor
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAcces
sException
cause-message : Cannot construct com.rs2hd.model.Player as it does not hav
e a no-args constructor
class : com.rs2hd.model.Player
required-type : com.rs2hd.model.Player
path : /player
line number : 1
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:88)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A
bstractReferenceUnmarshaller.java:55)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:75)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:59)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller
.java:142)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh
al(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:907)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:893)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
at com.rs2hd.io.XStreamPlayerLoader.load(XStreamPlayerLoader.java:32)
at com.rs2hd.WorkerThread$1.run(WorkerThread.java:101)
at com.rs2hd.WorkerThread.run(WorkerThread.java:65)
at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException:
Cannot construct com.rs2hd.model.Player as it does not have a no-args construct
or
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProv
ider.newInstance(PureJavaReflectionProvider.java:71)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.instantiateNewInstance(AbstractReflectionConverter.java:279)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.unmarshal(AbstractReflectionConverter.java:149)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:81)
... 12 more
[/CODE]

Share this post


Link to post
Share on other sites
  • 0
[quote name='Zeta king']Theres also other reasons i think idk listen to hash on this one :/ anyway maybe youve changed somthing in the method where your source loads your players coords or an item is nulling your players account?[/QUOTE]
[MENTION=17381]Hash[/MENTION] this is exact copy+paste of run.bat [CODE][2012/07/10 17:00:21] [RebirthScape]: RebirthScape framework
[2012/07/10 17:00:21] [RebirthScape]: Loaded 15558item prices.
[2012/07/10 17:00:21] [RebirthScape]: Loading Server GUI...
[2012/07/10 17:00:23] [RebirthScape]: Reading mapdata...
[2012/07/10 17:00:23] [RebirthScape]: Loaded mapdata.
[2012/07/10 17:00:23] [RebirthScape]: Loaded packet handlers.
[2012/07/10 17:00:23] [RebirthScape]: Loading item definitions...
[2012/07/10 17:00:30] [RebirthScape]: Loaded 12375 item definitions.
[2012/07/10 17:00:30] [RebirthScape]: Loading npc definitions...
[2012/07/10 17:00:30] [RebirthScape]: Loaded RebirthScape 324 npc definitions.
[2012/07/10 17:00:30] [RebirthScape]: Loading world list data...
[2012/07/10 17:00:30] [RebirthScape]: Setting up RebirthScape world...
[2012/07/10 17:00:30] [RebirthScape]: Loading clans....
[2012/07/10 17:00:30] [RebirthScape]: Loaded 0 TkoScape clans.
[2012/07/10 17:00:33] [RebirthScape]: Loading alhassa-scape scripts...
[2012/07/10 17:00:33] [RebirthScape]: Parsed 7 scripts.
[2012/07/10 17:00:33] [RebirthScape]: Launching RebirthScape worker thread...
[2012/07/10 17:00:40] [RebirthScape]: RebirthScape is now online.
log4j:WARN No appenders could be found for logger (org.apache.mina.filter.execut
or.ExecutorFilter).
log4j:WARN Please initialize the log4j system properly.
com.thoughtworks.xstream.converters.ConversionException: Cannot construct com.rs
2hd.model.Player as it does not have a no-args constructor : Cannot construct co
m.rs2hd.model.Player as it does not have a no-args constructor
---- Debugging information ----
message : Cannot construct com.rs2hd.model.Player as it does not hav
e a no-args constructor
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAcces
sException
cause-message : Cannot construct com.rs2hd.model.Player as it does not hav
e a no-args constructor
class : com.rs2hd.model.Player
required-type : com.rs2hd.model.Player
path : /player
line number : 1
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:88)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A
bstractReferenceUnmarshaller.java:55)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:75)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:59)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller
.java:142)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh
al(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:907)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:893)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
at com.rs2hd.io.XStreamPlayerLoader.load(XStreamPlayerLoader.java:32)
at com.rs2hd.WorkerThread$1.run(WorkerThread.java:101)
at com.rs2hd.WorkerThread.run(WorkerThread.java:65)
at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException:
Cannot construct com.rs2hd.model.Player as it does not have a no-args construct
or
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProv
ider.newInstance(PureJavaReflectionProvider.java:71)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.instantiateNewInstance(AbstractReflectionConverter.java:279)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.unmarshal(AbstractReflectionConverter.java:149)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:81)
... 12 more
[/CODE]

Share this post


Link to post
Share on other sites
  • 0
[quote name='jhelsel'][MENTION=17381]Hash[/MENTION] this is exact copy+paste of run.bat [CODE][2012/07/10 17:00:21] [RebirthScape]: RebirthScape framework
[2012/07/10 17:00:21] [RebirthScape]: Loaded 15558item prices.
[2012/07/10 17:00:21] [RebirthScape]: Loading Server GUI...
[2012/07/10 17:00:23] [RebirthScape]: Reading mapdata...
[2012/07/10 17:00:23] [RebirthScape]: Loaded mapdata.
[2012/07/10 17:00:23] [RebirthScape]: Loaded packet handlers.
[2012/07/10 17:00:23] [RebirthScape]: Loading item definitions...
[2012/07/10 17:00:30] [RebirthScape]: Loaded 12375 item definitions.
[2012/07/10 17:00:30] [RebirthScape]: Loading npc definitions...
[2012/07/10 17:00:30] [RebirthScape]: Loaded RebirthScape 324 npc definitions.
[2012/07/10 17:00:30] [RebirthScape]: Loading world list data...
[2012/07/10 17:00:30] [RebirthScape]: Setting up RebirthScape world...
[2012/07/10 17:00:30] [RebirthScape]: Loading clans....
[2012/07/10 17:00:30] [RebirthScape]: Loaded 0 TkoScape clans.
[2012/07/10 17:00:33] [RebirthScape]: Loading alhassa-scape scripts...
[2012/07/10 17:00:33] [RebirthScape]: Parsed 7 scripts.
[2012/07/10 17:00:33] [RebirthScape]: Launching RebirthScape worker thread...
[2012/07/10 17:00:40] [RebirthScape]: RebirthScape is now online.
log4j:WARN No appenders could be found for logger (org.apache.mina.filter.execut
or.ExecutorFilter).
log4j:WARN Please initialize the log4j system properly.
com.thoughtworks.xstream.converters.ConversionException: Cannot construct com.rs
2hd.model.Player as it does not have a no-args constructor : Cannot construct co
m.rs2hd.model.Player as it does not have a no-args constructor
---- Debugging information ----
message : Cannot construct com.rs2hd.model.Player as it does not hav
e a no-args constructor
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAcces
sException
cause-message : Cannot construct com.rs2hd.model.Player as it does not hav
e a no-args constructor
class : com.rs2hd.model.Player
required-type : com.rs2hd.model.Player
path : /player
line number : 1
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:88)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A
bstractReferenceUnmarshaller.java:55)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:75)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:59)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller
.java:142)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh
al(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:907)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:893)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
at com.rs2hd.io.XStreamPlayerLoader.load(XStreamPlayerLoader.java:32)
at com.rs2hd.WorkerThread$1.run(WorkerThread.java:101)
at com.rs2hd.WorkerThread.run(WorkerThread.java:65)
at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException:
Cannot construct com.rs2hd.model.Player as it does not have a no-args construct
or
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProv
ider.newInstance(PureJavaReflectionProvider.java:71)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.instantiateNewInstance(AbstractReflectionConverter.java:279)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.unmarshal(AbstractReflectionConverter.java:149)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:81)
... 12 more
[/CODE][/QUOTE]

In Player.java, add this:

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

Share this post


Link to post
Share on other sites
  • 0
[quote name='Hash']In Player.java, add this:
blah blah blah[/Quote]
[MENTION=17381]Hash[/MENTION] Im doing that now...do i remove that thing from the XStreamPlayerLoader.java file??? that you told me to add a few posts up

Share this post


Link to post
Share on other sites
  • 0
[quote name='jhelsel'][MENTION=17381]Hash[/MENTION] Im doing that now...do i remove that thing from the XStreamPlayerLoader.java file??? that you told me to add a few posts up[/QUOTE]

Keep it, so if another player has his character file corrupted, you'll see what's the problem.

Share this post


Link to post
Share on other sites
  • 0
[quote name='Hash']Keep it, so if another player has his character file corrupted, you'll see what's the problem.[/QUOTE]
[MENTION=17381]Hash[/MENTION] ive seen what you're doing now....so everytime i get an error i scroll up to this 1 part heres an example
src.com.rs2hd.model.NpcDialogue
then i go2 NpcDialpgue and in the class i would add
public NpcDialogue() { }
im getting these errors everytime so now i just go2 the spot and i add that...and i get a new one :P if i get to spot that bugs me again...ill PM you or something ok?

Share this post


Link to post
Share on other sites
  • 0
[quote name='jhelsel'][MENTION=17381]Hash[/MENTION] ive seen what you're doing now....so everytime i get an error i scroll up to this 1 part heres an example
src.com.rs2hd.model.NpcDialogue
then i go2 NpcDialpgue and in the class i would add
public NpcDialogue() { }
im getting these errors everytime so now i just go2 the spot and i add that...and i get a new one :P if i get to spot that bugs me again...ill PM you or something ok?[/QUOTE]

Exactly, proud you now understand it ;) It should do it for a few classes, but once they're all done, you'll be able to run your server smoothly.

Share this post


Link to post
Share on other sites

×