The room list is empty at login

Post here all your questions related with SmartFoxServer Java API

Moderators: Lapo, Bax

Post Reply
jorgepinho
Posts: 2
Joined: 15 Jan 2010, 16:26

The room list is empty at login

Post by jorgepinho »

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
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

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
patso
Posts: 380
Joined: 13 Nov 2006, 13:44
Location: Sofia, Bulgaria

Post by patso »

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

Post by patso »

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.
shanti
Posts: 45
Joined: 19 Jul 2011, 10:19

Post by shanti »

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.

****************************************************************
Post Reply