`
kingsleylong
  • 浏览: 54948 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Flex异常 Channel.Connect.Failed error NetConnection.Call.BadVersion

    博客分类:
  • Flex
阅读更多

今天在给项目搭环境的时候碰到一个问题,我把Web应用成功到部署到Weblogic上之后,无法访问Flex页面,没有任何Error,也不能访问任何资源。经过仔细排查,发现是有一个新增的SecureAMFChannel没有被注释掉,故改成使用本地开发环境使用一个AMFChannel。但是问题还没有解决,因为在登录之后Flex报异常如下:

[ChannelFaultEvent
faultCode="Channel.Connect.Failed"
faultString="error"
faultDetail="NetConnection.Call.BadVersion: : url: 'http://localhost:7001/test/messagebroker/amf'"
channelId="testAmf"
type="channelFault"
bubbles=false
cancelable=false
eventPhase=2]:
 Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://localhost:7001/test/messagebroker/amf'

 

访问 http://localhost:7001/test/messagebroker/amf,得到系统权限限制的消息。于是检查权限控制,发现是账户权限不对,加上权限之后问题解决,顺利进入系统。

 

最后,经Google,得到一个关于BadVersion异常的解释。

BadVersion usually means there's junk in the response, this would be caused
by warnings or error messages being output into the same stream as the
response body. The literal meaning of this message is that the Flash AMF
parser could not understand what's been sent to it.
Check for any code that may cause errors or warnings on the server side. I
use Charles Proxy for watching the AMF communication - it is not a free
program, but it has an evaluation version, that doesn't expire, but keeps
annoying you with "buy me" sort of messages. Actually, I think it's worth
the money, but, that's up to you.

分享到:
评论

相关推荐

    flex与 java 通信常见错误

    flex与 java 通信常见错误: [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: ...

    NetConnection_和_NetStream_

    if (info.code == "NetConnection.Call.Failed") { trace("连接状态: "+info.code); trace("NetConnection.call方法调用服务器端的方法或命令失败"); } else if (info.code == "NetConnection.Connect....

    srs-1.0-r4 视频工具.zip

    Names of all PRIMARY response in NetConnection.connect and metadata. 2. CONTRIBUTORS: Submit patches, report bugs, add translations, help answer newbie questions, and generally make SRS that much ...

    RTMP协议中AMF的定义.pdf

    《RTMP协议中AMF的定义》,原名《TheAMF》英文版本。... This is the first AMF object sent by the Flash Player after the initial handshake and is a product of the Action Script call NetConnection.Connect( ).

    rtmp-client:RTMP客户端

    if (info.code === 'NetConnection.Connect.Success') { nc.call(foo, { 'onResult': console.log.bind(console), 'onStatus': console.error.bind(console), }, 'bar'); } }; nc.rpcName = async ...

    RTMP 规范中英文对照阅读版[带书签]

    NetConnection 命令 7.2.1.1. connect 命令 7.2.1.2. call 方法 7.2.1.3. createStream 命令 7.2.2. NetStream 命令 7.2.2.1. play 命令 7.2.2.2. play2 7.2.2.3. deleteStream 命令 7.2.2.4. receiveAudio...

    flash action script 经典字典教程大全,学flash必备

    connect LocalConnection.connect()、NetConnection.connect()、 XMLSocket.connect() condenseWhite TextField.condenseWhite 构造函数 Array 类、Boolean 类、Camera 类、Color 类、ContextMenu 类、...

    FMS实现视频时时聊天其实很简单

    nc.connect("rtmp://localhost/LiveStreams"); nc.addEventListener(NetStatusEvent.NET_STATUS,onNetStatusHandler); } 通过点击按扭连接(NetConnection)FMS服务器,然后向FMS发布(publish)视频流,达到视频...

    NetConnection 实现网络自动连接

    软件按照设定好的时间间隔扫描网络连接,如果发现断网(软件意义上的,如果说是物理断网,哈哈,那肯定是失败的啦)将实现自动连接。软件的使用方法非常简单:只需要设置一下文件夹里的Net.ini文件就可以。

    Flex和Fms3打造在线聊天室 源码和文档

    Flex和Fms3打造在线聊天室(利用NetConnection对象和SharedObject对象) 中文说明文档和代码, 简单明了好资料

    as3_air_sock.rar_flex_flex socket

    Socket通信程序 AIR端用SocketServer创建端口监听 其他端用Socket连接AIR端的ip+端口 中间可能涉及沙箱安全问题,请自行baidu搜索 GroupSpecifier NetConnection NetGroup 这三个类建立p2p的连接进行通信

    任意拖动的视频播放器

    var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); // buffer video ns.setBufferTime(5); ns.onStatus = function(obj) { if (obj.code == "NetStream....

    netconnectionsmart:标准 NetConnection actionscript 类的替代类。 这可以轻松地启用多个端口协议尝试以最佳功能连接进行解析

    标准 NetConnection actionscript 类的替代类。 这很容易使多个端口尝试在最佳功能端口和协议上解析。 用于通过 Shotgun 连接方法或增量连接方法尝试 NetConnection 来快速连接防火墙。 可能的协议尝试:rtmp、...

    服务器架构方案总结.doc

    FMS用RTMP协议(实时消息传送协议),通过NetConnection连接到FMS服务器,并实 时播放服务器的FLV文件,这种方式可以任意选择视频播放点(SEEK()),并不象HTTP方 式需要缓存完整个FLV文件到本地才可以任意选择播放...

    NetTest 网络测试(NetTest) v1.4 中文版

    网络测试(NetTest),是第三方测试基准平台工具,适用于电信较好是长沙电信的网速测试。为测试网络连通状况以及其它网络数据的小工具包。请立即下载放在您的PC桌面,以方便随时进

    flash 实现P2P实用代码

    flash 实现P2P实用代码 使用RTMFP协议 netGroup,netConnection

    故障排除提示:Azure网络中的故障排除命令和提示

    Powershell命令“ test-netconnection”:例如,test-netconnection 10.0.0.4-端口3389 PSPING:在下载对于Linux VM: tcpping:作为tcptraceroute软件包的一部分下载(sudo apt-get install tcptraceroute) ...

    Jupyter-Notebooks:Jupyter笔记本

    Jupyter笔记本Python Jupyter笔记本Test-Netconnection.ipynb 具有digtest和tping功能的PyNet类,以测试名称解析和tcp连接到远程计算机。调用PSRemoting.ipynb 在远程计算机上调用powershell-scriptblock的一些示例...

    actionscript 缓冲问题汇总

    actionscript 缓冲问题汇总 获取到该段视频已经下载了的时间长度 flv视频播放缓冲时的问题 flash播放器 seek一个未缓冲好的时间点会触发什么事件 ...请教NetConnection和NetStream各状态的详细解释

Global site tag (gtag.js) - Google Analytics