Invalid Session Error

Avatar

Avatar

barisyesilcicek

Avatar

barisyesilcicek

barisyesilcicek

18-09-2011

Hello,

Using PHP, I'm creating a token with the following code:

$acc = new RTCAccount("https://collaboration.adobelivecycle.com/user");

$acc->login("username", "passwd");

$sess = $acc->getSession("myfirstroom");

$token = $sess->getAuthenticationToken("secret", "John", "john", 100);

Then I pass $token to my application and use it to authenticate. This was all working but all of a sudden it stopped working, instead started to give the following error:

09:10:30 GMT+0300    requestInfo null?guk=ZzpudWxsOg==&mode=xml&x=0.2071044179610908

#THROWING ERROR# requestInfo catch statement

INVALID_INSTANCE: Invalid Instance

          at com.adobe.rtc.session.managers::SessionManagerBase/receiveError()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\managers\SessionManagerBase.as:330]

          at com.adobe.rtc.session.managers::SessionManagerFMS/receiveError()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\managers\SessionManagerFMS.as:325]

          at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/receiveError()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\managers\SessionManagerAdobeHostedServices.as:280]

          at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/onMeetingError()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\managers\SessionManagerAdobeHostedServices.as:116]

          at flash.events::EventDispatcher/dispatchEventFunction()

          at flash.events::EventDispatcher/dispatchEvent()

          at com.adobe.rtc.session.sessionClasses::MeetingInfoService/requestInfo()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\sessionClasses\MeetingInfoService.as:157]

          at com.adobe.rtc.session.sessionClasses::MeetingInfoService/requestRoomInfo()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\sessionClasses\MeetingInfoService.as:119]

          at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/getMeetingInfo()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\managers\SessionManagerAdobeHostedServices.as:92]

          at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/onAuthenticationSuccess()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\managers\SessionManagerAdobeHostedServices.as:135]

          at flash.events::EventDispatcher/dispatchEventFunction()

          at flash.events::EventDispatcher/dispatchEvent()

          at com.adobe.rtc.authentication::AbstractAuthenticator/onLoginSuccess()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\authentication\AbstractAuthenticator.as:188]

          at com.adobe.rtc.authentication::AdobeHSAuthenticator/doLogin()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\authentication\AdobeHSAuthenticator.as:209]

          at com.adobe.rtc.authentication::AbstractAuthenticator/login()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\authentication\AbstractAuthenticator.as:155]

          at com.adobe.rtc.session.sessionClasses::MeetingInfoService/fixAuthParams()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\sessionClasses\MeetingInfoService.as:101]

          at com.adobe.rtc.session.sessionClasses::MeetingInfoService/requestInfo()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\sessionClasses\MeetingInfoService.as:130]

          at com.adobe.rtc.session.sessionClasses::MeetingInfoService/requestRoomInfo()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\sessionClasses\MeetingInfoService.as:119]

          at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/getMeetingInfo()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\managers\SessionManagerAdobeHostedServices.as:92]

          at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/http://www.adobe.com/2006/connect/cocomo/session/internal::login()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\managers\SessionManagerAdobeHostedServices.as:152]

          at com.adobe.rtc.session::ConnectSession/login()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\ConnectSession.as:502]

          at com.adobe.rtc.session::ConnectSessionContainer/commitProperties()[E:\flashfarm\branches\connect\1108\SDKApp\payload\libs\player10.3\src\com\adobe\rtc\session\ConnectSessionContainer.as:410]

          at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:8209]

          at mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]

          at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:783]

          at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

Any ideas?

View Entire Topic

Avatar

Avatar

nzezelj

Avatar

nzezelj

nzezelj

19-09-2011

Hi,

Yes, autoLogin=false is a must for token authentication.  Glad to be of help.

Invalid instance is yet another "not so helpful" error message.  I will look into it and see if we can fix it for next release.

Thanks,

Nikola