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

今天在给项目搭环境的时候碰到一个问题,我把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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值