SmartFoxServer 2X v2.1.0 patch released!

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

SmartFoxServer 2X v2.1.0 patch released!

Postby Bax » 04 May 2012, 09:36

We just released the new version (2.1.0) of SmartFoxServer 2X. It is distributed as a patch available on the updates page of the website, here.
Please visit the page to read the release notes.
Paolo Bax
The SmartFoxServer Team
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: SmartFoxServer 2X v2.1.0 patch released!

Postby Bax » 04 May 2012, 15:55

If you downloaded the patch before May 4th 2012 at 17.50 GMT+2, you should please get and install it again.
In fact we found an easy solution to an issue causing a malfunctioning in the Dashboard (formerly Runtime Statistics) module of the Admin Tool for those developers using JRE 1.7. Instead of providing a separate patch, we decided to update the just released patch for simplicity.
We are sorry if you already downloaded and installed it.
Paolo Bax
The SmartFoxServer Team
hackshaven
Posts: 2
Joined: 04 May 2012, 17:42

Re: SmartFoxServer 2X v2.1.0 patch released!

Postby hackshaven » 04 May 2012, 17:46

I seem to be encountering an error after applying the patch and entering the admin tool:

Code: Select all

Exception: com.smartfoxserver.v2.exceptions.SFSRuntimeException
Message: Request handler not found: 'runtimeStats.getData'. Make sure the handler is registered in your extension using addRequestHandler()
Description: Error while handling client request in extension: { Ext: Admin, Type: JAVA, Lev: ZONE, { Zone: --=={{{ AdminZone }}}==-- }, {} }
Extension Cmd: runtimeStats.getData
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.extensions.SFSExtension.handleClientRequest(SFSExtension.java:181)
com.smartfoxserver.v2.controllers.ExtensionController.processRequest(ExtensionController.java:137)
com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)


I just download the patch, am I doing something else wrong?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: SmartFoxServer 2X v2.1.0 patch released!

Postby rjgtav » 04 May 2012, 18:01

Hello. It looks like you're using an older version of the AdminTool. Please clear your browser's cache and try again
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.
hackshaven
Posts: 2
Joined: 04 May 2012, 17:42

Re: SmartFoxServer 2X v2.1.0 patch released!

Postby hackshaven » 04 May 2012, 18:07

That seems to have fixed it.
Pure genius. :)
karfau
Posts: 25
Joined: 02 Sep 2011, 17:28

Re: SmartFoxServer 2X v2.1.0 patch released!

Postby karfau » 14 May 2012, 11:46

Is there any update for the AS3-API (the swc is from february)?

After installing the patch to our server no clietn is able to connect to the server.
and when debugging the server, it seems like the custom login is not even reached.

This is what the server tells in his log:

Code: Select all

13:28:35,613 INFO  [main] v2.SmartFoxServer     - SmartFoxServer 2X (2.1.0) READY!
13:29:26,187 INFO  [SocketReader] core.SocketAcceptor     - Session created: { Id: 1, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52808 } on Server port: 9933 <---> 52808
13:29:26,191 INFO  [SocketReader] text.TextIoHandler     - data post-header: 78
13:29:55,625 INFO  [SocketReader] sessions.DefaultSessionManager     - Session removed: { Id: 1, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52808 }
13:29:55,626 INFO  [Scheduler1-thread-1] sessions.DefaultSessionManager     - Session removed: { Id: 1, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52808 }
13:29:55,626 INFO  [SocketReader] core.SocketReader     - Socket closed: java.nio.channels.SocketChannel[closed]
13:31:06,177 INFO  [SocketReader] core.SocketAcceptor     - Session created: { Id: 2, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52821 } on Server port: 9933 <---> 52821
13:31:06,291 INFO  [SocketReader] text.TextIoHandler     - data post-header: 56
13:31:24,192 INFO  [SocketReader] sessions.DefaultSessionManager     - Session removed: { Id: 2, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52821 }
13:31:24,192 INFO  [SocketReader] core.SocketReader     - Socket closed: java.nio.channels.SocketChannel[closed]
13:38:00,532 INFO  [SocketReader] core.SocketAcceptor     - Session created: { Id: 3, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52869 } on Server port: 9933 <---> 52869
13:38:00,578 INFO  [SocketReader] text.TextIoHandler     - data post-header: 56
13:38:09,590 INFO  [SocketReader] sessions.DefaultSessionManager     - Session removed: { Id: 3, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52869 }
13:38:09,590 INFO  [SocketReader] core.SocketReader     - Socket closed: java.nio.channels.SocketChannel[closed]


The clients that are trying to connect to it (java and as3) are running locally and don't get a response when calling the connect method.
any idea?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: SmartFoxServer 2X v2.1.0 patch released!

Postby rjgtav » 14 May 2012, 23:27

Hi.
Well, the latest AS3 API works fine here (the one from february). It seems you're having some problems on the server.
Did the server boot correctly? Are there any errors on the logs, any problems?
Also please don't forget to always close the database connection after using it (use a try/catch/finally statement).
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.
karfau
Posts: 25
Joined: 02 Sep 2011, 17:28

Re: SmartFoxServer 2X v2.1.0 patch released!

Postby karfau » 15 May 2012, 08:37

Yes, everything is starting correctly, all event and requesthandlers are attached correctly.
No errors in the log
The database(/-connection) is not the problem, as it doesn't get touched. (If the EventHandler registered for the CustomLogin would get triggered, the connection to the DB would be established, but it doesn't.)

Everything works fine when using the unpatched version.
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFoxServer 2X v2.1.0 patch released!

Postby Lapo » 15 May 2012, 10:52

Does the AdminTool work for you?
Because if it does it just uses the same AS3 API that you do.
Lapo
--
gotoAndPlay()
...addicted to flash games
karfau
Posts: 25
Joined: 02 Sep 2011, 17:28

Re: SmartFoxServer 2X v2.1.0 patch released!

Postby karfau » 16 May 2012, 12:20

Sorry that I forgot to mention it:
The admintool is not able to connect.
It says
[13:56:05 | WARNING] A disconnection occurred due to unknown reason; please reconnect
[13:55:24 | INFO] Welcome to SmartFoxServer 2X Admin Tool v1.2.0

when pressing connect again it doesn't respond even afrter waiting some minutes.

Any idea how do diagnose this further?
how could the serverlogging get more detailed?
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFoxServer 2X v2.1.0 patch released!

Postby Lapo » 16 May 2012, 12:44

Yes, please restart the server. Then try to connect with a couple of the examples we provide and the admin tool even if they fail to connect and finally send us the server side logs, or post them here if they are not too long.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 61 guests