A strange error message

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

viny
Posts: 213
Joined: 04 May 2006, 09:18

A strange error message

Postby viny » 17 Mar 2008, 07:41

Hello I have postet a topic saturday but it is not on the forum today ??

I have a strange error message in my logs file of SFS 1.6 since Saturday :

Code: Select all

2008/03/14 09:18:26.015 - [ WARNING ] [id: 141] (SmartFoxServer.acceptNewConnections): Generic Exception in acceptNewConnections():java.nio.channels.ClosedSelectorException
2008/03/15 22:42:47.639 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): Malformed XML request, MSG: <msg t='xt'><body action='xtReq' r='1'><![CDATA[<dataObj><var n='name' t='s'>smsg</var><var n='cmd' t='s'>chargerListeNoireBloquant</var><obj t='o' o='param'><var n='bloque' t='s'>marina2217</var><var n='bloque_id' t='s'>12629</var><var n='bloque_id_crypte' t='s'>f792e228c8a504d11b8b39da99ef0b98</var></obj></dataObj>]]></body></m
 From: /89.80.148.158
2008/03/15 22:42:47.639 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): exception > Nested Exception
2008/03/15 23:19:13.413 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): Malformed XML request, MSG: <msg t='xt'><body action='xtReq' r='1'><![CDATA[<dataObj><var n='name' t='s'>smsg</var><var n='cmd' t='s'>chargerListeNoireBloquant</var><obj t='o' o='param'><var n='bloque' t='s'>marina2217</var><var n='bloque_id' t='s'>12629</var><var n='bloque_id_crypte' t='s'>f792e228c8a504d11b8b39da99ef0b98</var></obj></dataObj>]]></body></m
 From: /89.80.148.158
2008/03/15 23:19:13.413 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): exception > Nested Exception
2008/03/15 23:25:45.914 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): Malformed XML request, MSG: <msg t='sys'><body action='setBvars' r='-1'><vars><var n='nb'><![CDATA[3658]]></var></vars></body></m
 From: /89.80.148.158
2008/03/15 23:25:45.914 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): exception > Nested Exception
2008/03/15 23:25:45.915 - [ WARNING ] [id: 152] (SmartFoxServer.readIncomingMessages): Message exceed allowed max length! (0 bytes) from > /89.80.148.158
2008/03/15 23:25:45.915 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): Malformed XML request, MSG: <
 From: /89.80.148.158
2008/03/15 23:25:45.916 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): exception > Nested Exception
2008/03/15 23:29:42.209 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): Malformed XML request, MSG: <msg t='xt'><body action='xtReq' r='1'><![CDATA[<dataObj><var n='name' t='s'>smsg</var><var n='cmd' t='s'>chargerListeNoireBloque</var><obj t='o' o='param'><var n='bloquant' t='s'>marina2217</var><var n='bloquant_id' t='s'>12629</var><var n='bloquant_id_crypte' t='s'>f792e228c8a504d11b8b39da99ef0b98</var></obj></dataObj>]]></body></m<od
 From: /89.80.148.158
2008/03/15 23:29:42.210 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): exception > Closing tag does not match opening tag: `m' != `msg', SystemID='file:.', Line=1
2008/03/16 13:35:28.591 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): Malformed XML request, MSG: <msg t='xt'><body action='xtReq' r='1'><![CDATA[<dataObj><var n='name' t='s'>smsg</var><var n='cmd' t='s'>chargerListeNoireBloquant</var><obj t='o' o='param'><var n='bloque' t='s'>marina2217</var><var n='bloque_id' t='s'>12629</var><var n='bloque_id_crypte' t='s'>f792e228c8a504d11b8b39da99ef0b98</var></obj></dataObj>]]></body></m
 From: /89.80.148.158
2008/03/16 13:35:28.592 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): exception > Nested Exception
2008/03/16 13:35:43.534 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): Malformed XML request, MSG: <msg t='xt'><body action='xtReq' r='1'><![CDATA[<dataObj><var n='name' t='s'>smsg</var><var n='cmd' t='s'>deleteMsg</var><obj t='o' o='param'><var n='destinataire_id' t='s'>12629</var><var n='destinataire_id_crypte' t='s'>f792e228c8a504d11b8b39da99ef0b98</var></obj></dataObj>]]></body></mbo
 From: /89.80.148.158
2008/03/16 13:35:43.535 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): exception > Nested Exception


There was no problem before... Thanks for your help
User avatar
darnpunk
Posts: 229
Joined: 22 Jun 2007, 02:58
Location: SG

Postby darnpunk » 18 Mar 2008, 01:39

Hi,

I am also getting an error which is part of your log. Here it is:

2008/03/17 06:54:43.929 - [ WARNING ] [id: 12] (SmartFoxServer.dispatchEvent): exception > Closing tag does not match opening tag: `room' != `rooo', SystemID='file:.', Line=1

I have no clue why it's there. Is this anything to worry about?

Regards,
darnpunk
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Mar 2008, 08:48

The first exception:
2008/03/14 09:18:26.015 - [ WARNING ] [id: 141] (SmartFoxServer.acceptNewConnections): Generic Exception in acceptNewConnections():java.nio.channels.ClosedSelectorException

is a network error. It can occur for many reasons and there is not much to worry about unless you get dozens of them every hour.
It doesn't seem to be the case as the next error was logged 1 day and 13 hours later and it's not the same error.

The next error:
2008/03/15 22:42:47.639 - [ WARNING ] [id: 152] (SmartFoxServer.dispatchEvent): Malformed XML request, MSG:

indicates that the client has sent bad XML data and so it will be discarded.
The error seems to be coming from the same user, so there's probably some problem on the user end.
Lapo
--
gotoAndPlay()
...addicted to flash games
viny
Posts: 213
Joined: 04 May 2006, 09:18

Postby viny » 18 Mar 2008, 20:03

Hi when you say

there's probably some problem on the user end


The xml data are the xml data of SFS not of the flash file. The flash client don't send xml format it uses the xml protocol of SFS..

I don't undertsand... for me this error is an error of SFS. The proto is XML and it's not flash client which send a bad format....

My flash client call a function which use xml proto but my flash client doesn't build the xml file it's SFS.

Thanks
viny
Posts: 213
Joined: 04 May 2006, 09:18

Postby viny » 19 Mar 2008, 20:42

I Put in this topic all error message of SFS

Today is :

Code: Select all

2008/03/19 15:14:59.943 - [ WARNING ] [id: 157] (ExtensionHandler.processEvent): Extension Call has invalid RoomID. User = edite52 - /41.202.72.128


Thanks
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 20 Mar 2008, 07:07

viny wrote:Hi when you say

The xml data are the xml data of SFS not of the flash file. The flash client don't send xml format it uses the xml protocol of SFS..

I don't undertsand... for me this error is an error of SFS. The proto is XML and it's not flash client which send a bad format....

My flash client call a function which use xml proto but my flash client doesn't build the xml file it's SFS.
Thanks

The server is complaining about the fact that the XML coming from the client is not properly formatted.
So the problem is on the client side. Why this XML is not properly formatted it's difficult to say. Maybe the client is doing an hacking/cracking attempt. Maybe he has network problem.
2008/03/19 15:14:59.943 - [ WARNING ] [id: 157] (ExtensionHandler.processEvent): Extension Call has invalid RoomID. User = edite52 - /41.202.72.128


A call to an extension does not provide a valid room id.
Probably the user failed to join a room, but the code continued its flow and tried to call an extension. Hence the error.
Lapo

--

gotoAndPlay()

...addicted to flash games
viny
Posts: 213
Joined: 04 May 2006, 09:18

Postby viny » 20 Mar 2008, 07:24

Thanks lapo,

I have a limbo room only...

With all these errors there are many problems on the network of my web hosting :-)

Thanks
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 20 Mar 2008, 07:35

Actually they don't seem to be so many...
Have you ever checked a web server log file? It's filled with infos and errors...
Unless you get dozens of the same errors per hour you shouldn't worry too much. Of course keeping an eye on them is good to find out possible problems in your application.
Lapo

--

gotoAndPlay()

...addicted to flash games
viny
Posts: 213
Joined: 04 May 2006, 09:18

Postby viny » 20 Mar 2008, 07:41

Ok I keep an eye !

Thanks !
melojoy
Posts: 35
Joined: 02 Oct 2006, 21:27
Location: Italy

me too

Postby melojoy » 25 Mar 2008, 07:51

viny wrote:

Code: Select all

2008/03/19 15:14:59.943 - [ WARNING ] [id: 157] (ExtensionHandler.processEvent): Extension Call has invalid RoomID. User = edite52 - /41.202.72.128



Hi Lapo,

Code: Select all

2008/03/22 00:12:44.844 - [ WARNING ] [id: 24] (ExtensionHandler.processEvent): Extension Call has invalid RoomID. User = tipas1 - /127.0.0.1


I have found five times this error in the last two days, and everytime from the same user (bluebox user?)

Thanks
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 25 Mar 2008, 08:10

These errors are usually fired when a user is sending an extension request but he's not joined a room yet.
To avoid these problems you should make sure that you properly handle the joinRoomError event so that if something goes wrong while joining your code does not allow extension requests to be sent.
Lapo

--

gotoAndPlay()

...addicted to flash games
melojoy
Posts: 35
Joined: 02 Oct 2006, 21:27
Location: Italy

Postby melojoy » 25 Mar 2008, 08:56

Ok, thanks!
delany
Posts: 27
Joined: 10 Dec 2007, 00:32

Postby delany » 28 Mar 2008, 00:18

I'm also getting:

2008/03/27 02:02:52.617 - [ WARNING ] [id: 20] (SmartFoxServer.acceptNewConnections): Generic Exception in acceptNewConnections():java.nio.channels.ClosedSelectorException

Not a lot of them, but regularly. Could you give a few more details of the sort of thing that might cause this error?

Thanks,

Alex
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 28 Mar 2008, 13:53

Usually this indicates a socket error on the client side, during the very initial phase of the connection.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 48 guests