Hi!
I've tried to use local LCCS server and tried to make application with LocalAuthenticator. For help, i've used example "LocalConnection" from SDK example apps. This example contains comment:
The application does not need a room url, store any data, or requires a password.
I've tried to do the same with Flex SDK 4.1:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:rtc="http://ns.adobe.com/rtc"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="100%" height="100%">
<fx:Declarations>
<rtc:LocalAuthenticator id="auth" userName="User"/>
</fx:Declarations>
<rtc:ConnectSessionContainer authenticator="{this.auth}" width="100%" height="100%">
</rtc:ConnectSessionContainer>
</s:Application>
but got this error, every launch:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.adobe.rtc.util::URLParser$/parseURL()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/util/URLParser.as:96]
at com.adobe.rtc.session.managers::SessionManagerLocalConnection/http://www.adobe.com/2006/connect/cocomo/session/internal::login()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/session/managers/SessionManagerLocalConnection.as:155]
at com.adobe.rtc.session::ConnectSession/login()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/session/ConnectSession.as:489]
at com.adobe.rtc.session::ConnectSessionContainer/commitProperties()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1010/cocomoPlayer10.1/src/com/adobe/rtc/session/ConnectSessionContainer.as:399]
at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933]
at mx.managers::LayoutManager/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:572]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:700]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]
This error was fixed when i've added roomURL with full HTTP address to ConnectSessionContainer:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:rtc="http://ns.adobe.com/rtc"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="100%" height="100%">
<fx:Declarations>
<rtc:LocalAuthenticator id="auth" userName="User"/>
</fx:Declarations>
<rtc:ConnectSessionContainer authenticator="{this.auth}" roomURL="http://localhost:8888/myaccount/myroom" width="100%" height="100%">
</rtc:ConnectSessionContainer>
</s:Application>
So, here are outdated example or bug in SDK or something else?
Solved! Go to Solution.
Views
Replies
Total Likes
The most recent update of LocalConnectionServer added support for multiple rooms. So, yes, at this point ConnectSessionContainer needs to include a roomURL. For example, roomURL="http://localhost/account/AnyArbitraryRoom".
Good catch!
Nikola
Views
Replies
Total Likes
Sorry, outdated example. We'll fix it with the next versin of the SDK. Thanks!
Hi There,
Yup, we're aware of this one, and have already fixed the sample app in our
local builds. It should be fixed with the next SDK drop. Thanks for taking
the time to bring it to our attention.
nigel
The most recent update of LocalConnectionServer added support for multiple rooms. So, yes, at this point ConnectSessionContainer needs to include a roomURL. For example, roomURL="http://localhost/account/AnyArbitraryRoom".
Good catch!
Nikola
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies