Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Problems running my first LCCS test

Avatar

Former Community Member

Environment:

Windows XP, Flash Builder 4.0

Flex SDK 4.1

LCCS SDK Version 1.1 (the one including p2p support)

Flash Player 10.1.53.64

I first had problems compiling, fixed by adding afsc.swc and playerglobal.swc  in the Build Paths.

Here is the sample I try building:

<mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
    xmlns:rtc="AfcsNameSpace">
   
    <rtc:ConnectSession id="session"/>
    <mx:Panel width="70%" verticalCenter="0" horizontalCenter="0" paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10">
        <mx:Text id="display" text="The last message sent will display here" width="100%" fontSize="24" fontWeight="bold"/>
        <mx:TextInput id="input" width="100%" fontSize="18"/>
    </mx:Panel>
</mx:Application>

When running it , I get a white screen.

If I remove xmlns:rtc and rtc:ConnectSession , as in the code below, I am able to view the interface, but obviously it's not actually working.

<mx:Application
     xmlns:mx="http://www.adobe.com/2006/mxml"
     layout="absolute"
   >
    <mx:Panel width="70%" verticalCenter="0" horizontalCenter="0" paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10">
         <mx:Text id="display" text="The last message sent will display here" width="100%" fontSize="24" fontWeight="bold"/>
         <mx:TextInput id="input" width="100%" fontSize="18"/>
     </mx:Panel>
</mx:Application>

This happens for any application in the examples directory or various articles about LCCS.

What am I doing wrong?

Thank you

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

You are not using Authenticator as well as adding authenticator to connectsession. See the examples in sampleApps and run from there.

Btw, If you just want to have Panel and other flex components, you don't need to add anything to LCCS. And if you need LCCS, please look at the sampleApps folder e.g. CustomRoster, DefaultPods and so on. You will find how connectsessioncontainer and authenticators are used.

Thanks

Hironmay Basu

View solution in original post

3 Replies

Avatar

Correct answer by
Former Community Member

You are not using Authenticator as well as adding authenticator to connectsession. See the examples in sampleApps and run from there.

Btw, If you just want to have Panel and other flex components, you don't need to add anything to LCCS. And if you need LCCS, please look at the sampleApps folder e.g. CustomRoster, DefaultPods and so on. You will find how connectsessioncontainer and authenticators are used.

Thanks

Hironmay Basu

Avatar

Former Community Member

Hi There,

It doesn't seem as though you're following the samples we provide quite

closely enough. You need to create an authenticator (AdobeHSAuthenticator,

usually), assign it a username and password (typically your developer

credentials while you're developing), and then assign the authenticator to

the connectsession. Since you're using connectSession rather than

connectSessionContainer, you're also going to need to call

connectSession.login() to kick off the process.

Hope that helps - for more details, see the sample apps, and have a look

at the first videotutorial in the SDK Navigator Application ("Your First

LCCS Application").

nigel

Avatar

Former Community Member

Thanks for the answers, got me back on the right track.

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----