Page 1 of 1

MissingExtensionException occurs sometimes, where...

Posted: 12 May 2010, 02:55
by Vishwas
It happens unpredictably... ie. sometimes. Where should i start finding the problem ?

2010/05/11 21:26:56.665 - [ WARNING ] [id: 288] (ExtensionHandler.processEvent): it.gotoandplay.smartfoxserver.exceptions.MissingExtensionException: Unrecognized extension name: [ t ]! Zone: territoryWarZone, Room: 6176

thnx.

Posted: 12 May 2010, 15:59
by Lapo
It's been reported several times with Extensions at Room Level, although it's not reproducible. We think that this problem could happen when Rooms are created dynamically and an Extension is attached "on the fly".

If an extension request arrives to the Room Extension before it is initialized it could cause this error.

Do you create the dynamic Room from client or server?

Posted: 13 May 2010, 09:53
by Vishwas
Lapo wrote:It's been reported several times with Extensions at Room Level, although it's not reproducible. We think that this problem could happen when Rooms are created dynamically and an Extension is attached "on the fly".

If an extension request arrives to the Room Extension before it is initialized it could cause this error.

Do you create the dynamic Room from client or server?


yeah, game rooms are dynamic in our case.

But , what you mean by extension request ? How is it requested before extension is intialized ? Through sendXtMessage ?

Posted: 13 May 2010, 12:11
by Lapo
Yes, correct.

Posted: 28 Sep 2010, 04:24
by mistermind
Humm I actually have this happening to my server (the most popular warning from the server actually) by creating a room and attaching the xtClass to it from the server itself:

Code: Select all

var roomObj = new Object();
roomObj.name = roomName;
roomObj.isGame = true;
roomObj.maxU = 2;
roomObj.xtName = "gameStats";
roomObj.xtClass = "gameStats.as";
var gameRoom = _server.createRoom(roomObj, user, true, false);


Is there a better way to attach an extension other then this?

Posted: 29 Sep 2010, 12:55
by Lapo
No, that's the only way.
I suspect there's something else going on, but we would require more data to understand it.