The room list is empty at login

Post here all your questions related with SmartFoxServer Java API

Moderators: Bax, Lapo, rjgtav

The room list is empty at login

Postby jorgepinho » 15 Jan 2010, 16:43

I found several posts regarding this issue... but this warn still shows up ...

I have a very simple app that just connects to the server, logs in and does nothing else.

All the listeners are registered... and everything is async.

However, everytime I call login...

- the onLogin is trigered...
- I get the warn
- the onRoomListUpdate is trigered

I just download the API labeled (New! Updated December 1st, 2009)

the server is PRO 1.6.6

The SmartFoxJChat example outputs the very same warn

My question is:

Is there anything else to do to prevent the warning ?

some configuration on the client or server ?

(I dont post the code cause its to big)

Thankx,

Jorge
jorgepinho
 
Posts: 2
Joined: 15 Jan 2010, 16:26

Postby Lapo » 17 Jan 2010, 17:29

Thanks for reporting. It is evident that the warning should not show up in that context, at least not in the chat example.
It should be expected to be fired when someone attempts to interact with the server before having joined a Room.

In any case the warning should be harmless and won't interfere with your application logic. We'll get it fixed as soon as possible
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
 
Posts: 16220
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby patso » 17 Jan 2010, 18:29

EDIT: Now I saw the waring.
patso
 
Posts: 380
Joined: 13 Nov 2006, 13:44
Location: Sofia, Bulgaria

Postby patso » 19 Jan 2010, 07:29

Found it - In the SysHandler.handleRoomList there is the follow line:
Code: Select all
Room oldRoom = sfs,getRoom(room.getId());


you can change it with
Code: Select all
Room oldRoom = roomList.get(room.getId());


this will make the warning disappear. Anyway the waring in your case(if you have obtained the roomlist corectly but it's says is empty) in just cosmetic - everything is working fine so you can just ignore it for now.
patso
 
Posts: 380
Joined: 13 Nov 2006, 13:44
Location: Sofia, Bulgaria

Postby shanti » 02 Aug 2011, 09:43

patso wrote:Found it - In the SysHandler.handleRoomList there is the follow line:
Code: Select all
Room oldRoom = sfs,getRoom(room.getId());


you can change it with
Code: Select all
Room oldRoom = roomList.get(room.getId());


this will make the warning disappear. Anyway the waring in your case(if you have obtained the roomlist corectly but it's says is empty) in just cosmetic - everything is working fine so you can just ignore it for now.


Hi,
is this issue fixed. we are still getting these warnings in the unity log. We are joining the room only after getting the RoomListUpdate. Even then getting
Below warning

****************************************************************

Warning:

The room list is empty!
The client API cannot function properly until the room list is populated.
Please consult the documentation for more infos.

****************************************************************
shanti
 
Posts: 45
Joined: 19 Jul 2011, 10:19


Return to Java2SE / Android Client API

Who is online

Users browsing this forum: No registered users and 1 guest