xml update vars error

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

User avatar
yuvallahav
Posts: 247
Joined: 07 Oct 2008, 13:03
Location: Rome, Italy
Contact:

xml update vars error

Postby yuvallahav » 30 Oct 2012, 11:27

Hello.
I've started seeing this error message in my server log, and since it's an internal xml created by the server and not the user or extension, I thought it would be interesting to know whats it about and what I can do about it:

Code: Select all

2012/10/30 12:01:05.007 - [ WARNING ] [id: 11] (SmartFoxServer.dispatchEvent): Malformed XML request, MSG: <msg t='sys'><body action='setUvars' r='12'><varars><var n='avatar' t='n'><![CDATA[1]]></var></vs></body></msg>
 From: /82.119.192.62
2012/10/30 12:01:05.008 - [ WARNING ] [id: 11] (SmartFoxServer.dispatchEvent): exception > Closing tag does not match opening tag: `vs' != `varars', SystemID='file:.', Line=1


Thanks.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: xml update vars error

Postby rjgtav » 30 Oct 2012, 23:50

Hi,

That's an interesting bug... Can you replicate that error at will? What server version are you running?
It seems the client is sending some wrong xml data to the server... Does it happen only with the same user? Maybe he's trying to use an hacked client...
Will forward this to Lapo
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: xml update vars error

Postby Lapo » 05 Nov 2012, 08:33

What do you mean by "internally created"?
2012/10/30 12:01:05.007 - [ WARNING ] [id: 11] (SmartFoxServer.dispatchEvent): Malformed XML request, MSG: <msg t='sys'><body action='setUvars' r='12'><varars><var n='avatar' t='n'><![CDATA[1]]></var></vs></body></msg>

The XML is certainly malformed, there's a <varars> tags mixed in there which makes no sense.
Can you explain how this XML is produced?
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
yuvallahav
Posts: 247
Joined: 07 Oct 2008, 13:03
Location: Rome, Italy
Contact:

Re: xml update vars error

Postby yuvallahav » 05 Nov 2012, 09:00

When I say internally created, I mean the flash API creates it, and not my client side code, I don't sent out this xml manually from my code, it's pretty obvious it's a set user variable function being called from the client side to the server, but for some unexplained reason, something mucks it up.
I can reproduce this, as this happens randomly, and with different variables, not just the one shown in this example I posted.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: xml update vars error

Postby Lapo » 05 Nov 2012, 09:39

The only time I saw something like this was when we were running tests with a software firewall running on the computer. If I recall correctly it was ZoneAlarm and after scratching my head for quite a long time I discovered that the firewall was messing up the packets.
It wasn't enough to just turn it off, evidently the low-level packet filtering service was still causing problems, we had to uninstall it from the system to get rid of the problem.

In our case we were running a pretty intense test with lots of packets being sent and received very fast. In a more "normal" scenario the problem wouldn't show up.
If you run a personal firewall, try disabling it. A part from this I don't know what else could cause such a problem.

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
yuvallahav
Posts: 247
Joined: 07 Oct 2008, 13:03
Location: Rome, Italy
Contact:

Re: xml update vars error

Postby yuvallahav » 05 Nov 2012, 09:42

Like all my problems, this happens only on the production server, never locally, so I guess some users using some firewalls will have to find a way to live without some variables... :)
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: xml update vars error

Postby Lapo » 05 Nov 2012, 10:57

What is important is the rate at which this happens. If it is < 2-3% than it's just "natural", users can have all sorts of configurations and problems on their local machines so you never know.
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
yuvallahav
Posts: 247
Joined: 07 Oct 2008, 13:03
Location: Rome, Italy
Contact:

Re: xml update vars error

Postby yuvallahav » 05 Nov 2012, 11:03

I'll try and see if I can think about how to maybe get a statistic on how many of these errors I have, but I'm not sure it's more then 1%, they don't dominate the log, but they do stand out since I've never seen these before I posted my first message.

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 53 guests