Question
NetConnection.Call.BadVersion amfsecure timeout??
Hi.<br /><br />We are using a secure channel like this:<br /><br /> <channels><br /> <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel"><br /> <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/><br /> <properties><br /> <add-no-cache-headers>false</add-no-cache-headers><br /> </properties><br /> </channel-definition><br /> </channels><br /><br />And we expose a remote service like this:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><service id="remoting-service" class="flex.messaging.services.RemotingService"><br /> <adapters><br /> <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/><br /> </adapters><br /> <br /> <default-channels><br /> <channel ref="my-secure-amf"/><br /> </default-channels><br /><br /> <destination id="WebFlow"><br /> <properties><br /> <source>xxxxxxxxxxx.flex.FlexAdapter</source><br /> </properties><br /> </destination><br /></service><br /><br />Then, we create a RemoteObject like this:<br /><br />flowController = new RemoteObject("WebFlow");<br /><br />var channelSet: ChannelSet = new ChannelSet();<br />var channel: Channel = new AMFChannel("my-secure-amf", "https://localhost:443/example/messagebroker/amfsecure");<br /> <br />channelSet.addChannel(channel);<br />flowController.channelSet = channelSet;<br /><br />flowController.showBusyCursor = true;<br /><br />flowController.launch.addEventListener('result', onLaunch);<br /><br />It works well, but if we wait one minute (idle), when we try to invoke the method launch again it appears the following error:<br /><br />[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://localhost:443/example/messagebroker/amfsecure'"]<br /> at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()<br /> at mx.rpc::Responder/fault()<br /> at mx.rpc::AsyncRequest/fault()<br /> at mx.messaging::ChannelSet/faultPendingSends()<br /> at mx.messaging::ChannelSet/channelFaultHandler()<br /> at flash.events::EventDispatcher/dispatchEventFunction()<br /> at flash.events::EventDispatcher/dispatchEvent()<br /> at mx.messaging::Channel/connectFailed()<br /> at mx.messaging.channels::PollingChannel/connectFailed()<br /> at mx.messaging.channels::AMFChannel/statusHandler()<br /><br />Is there any one minute idle timeout?<br /><br />We have tried:<br /><br /> <flex-client><br /> <timeout-minutes>0</timeout-minutes><br /> </flex-client><br /><br />But it doesn't fix the problem.<br /><br />Any help would be appreciated.<br /><br />Thanks a lot.
