Method AccountManager.getRoomInfo throwing Exception

Avatar

Avatar

Oliver_Fdez

Avatar

Oliver_Fdez

Oliver_Fdez

10-08-2011

Hello,

I'm trying to use the method getRoomInfo from AccountManager class of the Java server API, in order to obtain the usage information of a room. My problem is that this method is always throwing the following Error: com.adobe.rtc.util.RTCError: not-active.

Here is my code:

accountManager.keepalive(LCCS_USER, LCCS_PASSWORD);

accountManager.getSession(lccsRoom.getRoomName());

   

RoomInfo roomInfo = accountManager.getRoomInfo(lccsRoom.getRoomName());

I'm sure that the Room exists, is active (I checked the Room console), users can enter, and lccsRoom.getRoomName() has the correct name.

My question is: am I missing something? Is there anything I'm doing wrong? Should I wait some time since the room is created until I can call the method getRoomInfo? Should the room have some usage before I can call the method?

Thank you very much for your help!

View Entire Topic

Avatar

Avatar

nzezelj

Avatar

nzezelj

nzezelj

11-08-2011

Great news Oliver,

I am glad you can now move forward.  One could argue that the upper-case letters should not matter, but as you said, it is better to play it safe with all lower-cased room name.

Thanks again for using LCCS!

Nikola