Error when starting SFS

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

Moderators: Lapo, Bax

Post Reply
GolceaVlad
Posts: 36
Joined: 23 Aug 2010, 17:55

Error when starting SFS

Post by GolceaVlad »

Hey guys
I am running SFS with a particularised database.

Config XML :
<DatabaseManager active="true">
<Driver>org.gjt.mm.mysql.Driver</Driver>
<ConnectionString>jdbc:mysql://127.0.0.1:3306/chatzone</ConnectionString>

The driver is in it's place :
jre/lib/ext/org/gjt/mm/mysql/Driver.java

The error I get is :
[url]http://img193.imageshack.us/i/errorwg.jpg/[/url]

Do you have any idea what might be causing this ?

OS : Windows 2003 server
version : SFS Pro
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

You should make sure that the test SQL in your config is valid and produces a recordset.
Lapo
--
gotoAndPlay()
...addicted to flash games
GolceaVlad
Posts: 36
Joined: 23 Aug 2010, 17:55

Post by GolceaVlad »

Well, the SQL statement is running well.
I am currently running the same thing on Win 7, same database, same config, same everything ( IP is for local ) , the only difference is that I recently installed Java on the Win 2003 server machine.
It's working in Win 7 perfectly, it won't start on 2003.

Any clues ?
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

The beginning of that error stack dump would be of interest to us.

Please paste the entire stack dump. You could copy the stackdump from {your sfs installation path}\Server\logs\wrapper_NNNNNNN.log
Smartfox's forum is my daily newspaper.
GolceaVlad
Posts: 36
Joined: 23 Aug 2010, 17:55

Post by GolceaVlad »

Hmmm
Are you certain that's the file ? it seems very odd to me...

http://pastebin.com/3bGDwDfP
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Sorry, you're right. It doesn't contain useful information of the crash.

Try this:
1. Right click in the command prompt
2. Select 'Mark'
3. Mark the entire stack dump of the crash
4. Press 'Enter' to copy the information into your clipboard
5. Paste it here with Code tags.
Smartfox's forum is my daily newspaper.
GolceaVlad
Posts: 36
Joined: 23 Aug 2010, 17:55

Post by GolceaVlad »

http://pastebin.com/YLisHfC4

Seems strange to me that it doesn't load the driver, the placement is good and the driver is loaded in Win 7 without problems.
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

You'll find that this problem is quite common. Using the search tool, I found: http://forums.smartfoxserver.com/viewtopic.php?t=9410. You may need to add a sql-connector jar file and add reference to it in your start.bat
Smartfox's forum is my daily newspaper.
GolceaVlad
Posts: 36
Joined: 23 Aug 2010, 17:55

Post by GolceaVlad »

It works now, thank you !
RockMan
Posts: 8
Joined: 09 Feb 2011, 01:49
Location: United States

Post by RockMan »

I have this same same error but idk how to fix it :/
Post Reply