Avatar

Level 2

Hironmay, I appreciate your input, I know I didn't really provide enough info but I wanted to see if there actually was a problem of which you were aware.

The behavior was better this morning - but the error has returned (no changes to our code have been made).  So I suspect it is either a timing issue related to how elements of the swf load, or a bug in your service.

Here is some of the code we use to initialize the chat pod.

import com.adobe.rtc.sharedModel.descriptors.ChatMessageDescriptor;

import com.adobe.rtc.events.ChatEvent;

import com.adobe.rtc.sharedModel.SimpleChatModel;

 

[Bindable]

public var chatModel:SimpleChatModel;

private function init():void{

chatModel = new SimpleChatModel();

chatModel.sharedID = "myChat_SimpleChatModel";

sync();

chatModel.addEventListener(ChatEvent.HISTORY_CHANGE, onChatMsg);

this.addEventListener(KeyboardEvent.KEY_UP, onKeyStroke);

}

public function sync():void

{

chatModel.subscribe();

}

protected function submitChat(str:String):void

{

var cmd:ChatMessageDescriptor = new ChatMessageDescriptor();

cmd.msg =  str;

chatModel.sendMessage(cmd);

chat_mesg_input.text = "";

}

that code is in an mxml file that defines the chat pod.  the only other place in which we call sync() is reproduced with a small bit of context here:

if (_usersInRoom == "2" && !_synched) {

startPublication();

if (chatPod) {

chatPod.sync();

}

_synched = true;

}

this issue does not seem to be confined to any specific room(s) and we are using version 10.

Error: MessageManager.createNode : insufficient permissions to create node

at com.adobe.rtc.messaging.manager::MessageManager/http://www.adobe.com/2006/connect/cocomo/messaging/internal::createNode()[C:\work\branches\connect\1004\cocomoPlayer10\src\com\adobe\rtc\messaging\manager\MessageManager.as:253]

at com.adobe.rtc.sharedModel::CollectionNode/publishItem()[C:\work\branches\connect\1004\cocomoPlayer10\src\com\adobe\rtc\sharedModel\CollectionNode.as:615]

at com.adobe.rtc.sharedModel::SimpleChatModel/sendMessage()[C:\work\branches\connect\1004\cocomoPlayer10\src\com\adobe\rtc\sharedModel\SimpleChatModel.as:377]

at ChatComponent/submitChat()[/Users/mschwab/work/GoodChat/flex/src/ChatComponent.mxml:31]

at ChatComponent/onKeyStroke()[/Users/mschwab/work/GoodChat/flex/src/ChatComponent.mxml:55]