Hello all,

It appears that something slipped through right before the 0.9.9 release that 
breaks MX RemoteObjects/Consumers.

I've attempted rolling through and reverting various recent commits to try to 
narrow down the problem, but have yet to be able to find one related.

To provide context, I've been building on the 0.9.9-SHAPSHOT up to and in the 
middle of the latest release. Sometime around when the release came out, this 
method, from MessageAgent.as (MX), now fails:

    public function channelFaultHandler(event:ChannelFaultEvent):void
    {
        if (Log.isWarn())
            _log.warn("'{0}' {1} channel faulted with {2} {3}", id, _agentType, 
event.faultCode, event.faultDetail);

        if (!event.channel.connected) <--<--<--<--<-- HERE <--<--<--<--<--
        {
            setConnected(false);
            // If we have remoteCredentials we need to send them on reconnect.
            if (_remoteCredentials != null)
            {
                _sendRemoteCredentials = true;
            }
        }
        dispatchEvent(event);
    }

If reverting my project to run off the 0.9.8 release, everything runs as 
expected. If I were to revert the compiler/framework to sometime before the 
release, everything worked as expected as well.

Exception has occurred: TypeError: Cannot read properties of undefined (reading 
'connected')
  at mx.rpc.AsyncRequest.mx.messaging.MessageAgent.channelFaultHandler 
(http://localhost/mx/messaging/MessageAgent.js:464:22)
    at mx.rpc.AsyncRequest.mx.messaging.AbstractProducer.channelFaultHandler 
(http://localhost/mx/messaging/AbstractProducer.js:158:65)
    at 
mx.messaging.ChannelSet.org.apache.royale.events.EventDispatcher.fireListeners 
(http://localhost/org/apache/royale/events/EventDispatcher.js:102:23)
    at Function.goog.events.EventTarget.dispatchEventInternal_ 
(http://localhost/library/closure/goog/events/eventtarget.js:381:26)
    at 
mx.messaging.ChannelSet.org.apache.royale.events.EventDispatcher.dispatchEvent 
(http://localhost/org/apache/royale/events/EventDispatcher.js7:77:37)
    at mx.messaging.ChannelSet.channelFaultHandler 
(http://localhost/mx/messaging/ChannelSet.js:618:10)
    at 
mx.messaging.channels.AMFChannel.org.apache.royale.events.EventDispatcher.fireListeners
 (http://localhost/org/apache/royale/events/EventDispatcher.js:102:23)
    at Function.goog.events.EventTarget.dispatchEventInternal_ 
(http://localhost/library/closure/goog/events/eventtarget.js:381:26)
    at 
mx.messaging.channels.AMFChannel.org.apache.royale.events.EventDispatcher.dispatchEvent
 (http://localhost/org/apache/royale/events/EventDispatcher.js77:37)
    at 
mx.messaging.channels.PollingChannel.PollCommandMessageResponder.statusHandler 
(http://localhost/mx/messaging/channels/PollingChannel.js:824:18)


If there is anything I can provide to further assist, please let me know.

Thank you.

Brian

Reply via email to