Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

ConnectSession injection

Avatar

Level 2

Hello guys. In my application i want to Inject the ConnectSession and make a login after my external auth is loaded. I'm having troubles to make the login. I'll paste here my code to you. The first one is the one in the Beans:

<rtc:ConnectSession id="connectSession" roomURL="room url">

     <rtc:authenticator>

          <rtc:AdobeHSAuthenticator id="auth" />

     </rtc:authenticator>

</rtc:ConnectSession>

And the other one is in the action script class:

[Inject]

[Bindable]

public var connectSession:ConnectSession;

connectSession.authenticator.authenticationKey = participantLogged.lccsToken;

connectSession.login();

The error i'm getting is the following:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

at com.adobe.rtc.sharedManagers::UserManager/onSynchronizationChange()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/sharedManagers/UserManager.as:1006]

Do you have any suggestions?

Regards.

3 Replies

Avatar

Level 2

And sometimes the following is throwed:

19:01:12 GMT-0200    checkManagerSync:[object UserManager]

TOOMANYATTEMPTS: undefined

at com.adobe.rtc.session.managers::SessionManagerBase/receiveError()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/session/managers/SessionManagerBase.as:355]

at com.adobe.rtc.session.managers::SessionManagerFMS/receiveError()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/session/managers/SessionManagerFMS.as:323]

at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/receiveError()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/session/managers/SessionManagerAdobeHostedServices.as:284]

at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/getFMSXML()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/session/managers/SessionManagerAdobeHostedServices.as:185]

at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/onTicket()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/session/managers/SessionManagerAdobeHostedServices.as:119]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at com.adobe.rtc.session.sessionClasses::SingleUseTicketService/onComplete()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/session/sessionClasses/SingleUseTicketService.as:125]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at flash.net::URLLoader/onComplete()

Avatar

Former Community Member

Hi,

Looking at your code, it is hard to figure out what could be throwing

exception in UserManager.

Btw, have you set up the room before entering into it as an user with a

non-host permission level. Otherwise, you will get exceptions as you

won't be able to create the nodes without host permission level.

Secondly, to debug, you can link your flex builder to the source code,

since I presume from your logs you r using 10.1 and we dont provide 10.1

source, so you can link to player 10 source. For this debug , 10 and

10.1 wont make difference. Once you like to the 10 source , run the app

and see whats failing or which variable is throwing exception.

We can then take from there.

Thanks

Hironmay Basu

Avatar

Level 2

Hi Hironmay thank you again for the answer. Well, i was getting a

TOOMANYATTEMPTS info in my log, and using the LCCS developer page i was

seeing a "null" login, which looked weird to me. Reviewing our application

code i saw that there was a login() in another place, without any

credential, that's way it was throwing the error. Removing it i was able to

make the authentication based on the token that my external auth returns. I

was thinking that the ConnectSession was making the login() automatically,

just like the ConnectSessionContainer, but the trouble was what i described.

So thank you very much for your time, i'm enjoying Adobe support on the

LCCS.

Best regards.

2010/12/22 Hironmay <forums@adobe.com>

Hi,

>

Looking at your code, it is hard to figure out what could be throwing

exception in UserManager.

Btw, have you set up the room before entering into it as an user with a

non-host permission level. Otherwise, you will get exceptions as you

won't be able to create the nodes without host permission level.

>

Secondly, to debug, you can link your flex builder to the source code,

since I presume from your logs you r using 10.1 and we dont provide 10.1

source, so you can link to player 10 source. For this debug , 10 and

10.1 wont make difference. Once you like to the 10 source , run the app

and see whats failing or which variable is throwing exception.

We can then take from there.

>

Thanks

Hironmay Basu

>