MissingExtensionException

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

Moderators: Lapo, Bax

Post Reply
kaspi
Posts: 16
Joined: 28 Feb 2009, 01:42

MissingExtensionException

Post by kaspi »

Hello,
I've just finished developping a game based on smartFox, my developpement was done on iMac with smartFox Server Pro 1.6.6 with the 1.6.8 patch.

I have only two zones and two exensions (Zone extension).

Everything works fine, but when I put all this on the server (Debian 5 64bits). Only one zone works fine, the other zone gives this error :
[ WARNING ] > it.gotoandplay.smartfoxserver.exceptions.MissingExtensionException: Unrecognized extension name: [ zone2Ext ]! Zone: zone1, Room: 14.

The mac os and Debian have the same swf, the same java code and the same configuration.

Please help
kaspi
Posts: 16
Joined: 28 Feb 2009, 01:42

Post by kaspi »

I discover that this problem happened when I start the server using "./sfs start" command ! when i started It using "./start.sh" command I didn't have this problem !!

How can I do to resolve It, I need to start the server using ./sfs start of course !
kaspi
Posts: 16
Joined: 28 Feb 2009, 01:42

Post by kaspi »

This is the second time I post a question with no response !!
I don't know what is the criteria you follow to answer !

I have a real problem, I must have this works on the production machine to buy the licence !

Regards ...
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Yea, that happens when none of us know the answer (Lapo is an exception)..

I would only suggest you double-checking things, starting with your config.xml file (make sure the config.xml matches to the one you got on Mac) - and the required (and updated) zone extensions are included.
Smartfox's forum is my daily newspaper.
kaspi
Posts: 16
Joined: 28 Feb 2009, 01:42

Post by kaspi »

I checked all the .jar and all the config.
The problem happened only when I use "./sfs start" command.
And I guess the "./sfs start" command and the "./start.sh" one use the same config File, so If It works for "./start.sh" command It may mean that the config.xml file is OK?

To start from the "./sfs start" command I follow the documentation. I remove the jre folder, and I change the wrapper.conf file, In this config file, I changed the java entry to JRE 64bit installed in the Debian OS. And I replaced all the tree files as mentionned on this URL http://smartfoxserver.com/docs/index.ht ... lation.htm
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

And I guess the "./sfs start" command and the "./start.sh" one use the same config File, so If It works for "./start.sh" command It may mean that the config.xml file is OK?
They are not the same.
The proper way to start the server under Linux/Unix is to use the ./sfs script.
Also there is no good reason that they create problems such as the one you have described unless you have modified them, in which case we cannot predict what could be wrong.

The error that you have reported:
[ WARNING ] > it.gotoandplay.smartfoxserver.exceptions.MissingExtensionException: Unrecognized extension name: [ zone2Ext ]! Zone: zone1, Room: 14.
tells that there isn't an extension called zone2Ext in the Zone called zone1
Check your logs and make sure that no errors is generated when the server starts. If an extension cannot be loaded it will spit out a warning.

Also double check your configuration file and make sure that names are matching (must be case sensitive)

Finally you can also check if an Extension exists for a certain Zone by connecting to the server via the Admin Tool and check via the Zone Browser If you are not familiar with it check the docs:
http://www.smartfoxserver.com/docs/docP ... anager.htm
Lapo
--
gotoAndPlay()
...addicted to flash games
kaspi
Posts: 16
Joined: 28 Feb 2009, 01:42

Post by kaspi »

I've just reinstalled the server. But I have exactly the same error.
When I start the server using the start.sh command, everything is fine, but when I started It using "./sfs start" command, the server take only the last extension activated !!!!

I checked the log file. The two extensions was been created withoud problem. But when the flash wanted to connect to the first one, the error descibed happened.

I run the AdminTool and I found that the two zones are activated with their extensions. when I reload the 1st extension, !! the 1st one worked but not the second one !!

Conclusion : Only the last extension activated is working, not the other one !! And this happens only when using the .sfs command !!!
Post Reply