Flex事件探查器给出"套接字超时"错误。为什么?

时间:2020-03-06 14:32:39  来源:igfitidea点击:

尝试在任何一个上运行Flex Builder 3分析器时,我没有获得分析器对话框窗口,然后几秒钟后,控制台窗口中出现了"套接字超时"。有什么想法为什么它无法连接?

我拥有Flash Player的最新调试版本,并尝试关闭防火墙。
我正在本地驱动器的XP上运行它,即。不通过本地主机。

谢谢,
亚历克斯

解决方案

浏览器选项卡,请确保我们像说的那样具有最新的调试,还请确保端口正确,由于某些原因,端口有时会从默认9999更改(1001或者20957),请确保mm.cfg具有ProfilingFileOutputEnable = 1并且该bittorrent没有打开。
hth

似乎必须在启动分析器之前关闭浏览器(在我的情况下为Firefox)。步骤1.在livedocs中甚至说了这一点-希望我早些时候读过。 :)

http://livedocs.adobe.com/flex/3/html/help.html?content=profiler_3.html

确保防火墙没有阻止端口9999,我们也可以自定义端口号:打开"首选项"->" Flex"->" Profiler"->"连接"。

当我尝试运行Flex Profiler时,出现以下错误消息:
在Flash应用程序中,出现以下异常:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation:
    file:///C|%2Fwork%2Flabsense%2Fbranches%2Frel%5F1%5F2%5F5%5FEA%2Fsources%2Fui%2F.metadata%2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost&port=9999
    cannot load data from localhost:9999.
    at ProfilerAgent()[C:\SVN\branches.2.0\modules\profiler3\as\ProfilerAgent.as:127]

在flex Profiler控制台中(在Eclipse中),我得到了:套接字超时。

我在Windows Vista上运行,
弹性生成器:3.2
Flash调试器:10,0,22,87

我为解决此问题所做的事情:

  • 将探查器的连接端口切换到9998(然后再切换回)
  • 删除并重新安装Flash调试器播放器。
  • 安装Flex Builder 3.2(而不是3.0)
  • 删除mm.cfg文件中的所有输入
  • 将enter添加到mm.cfg:
PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=9999

或者

PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=9998

或者

PreloadSwf=C:/work/labsense/Sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=9999

或者带空格:

PreloadSwf=C: \ work \ labsense \ Sources \ ui \ .metadata \ .plugins \ com.adobe.flash.profiler \ ProfilerAgent.swf?host=localhost&port=9999

或者

C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?

或者添加全部或者部分回车:

TraceOutputFileName=C:\Users\zivo\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt
ErrorReportingEnable=1
MaxWarnings=0
TraceOutputFileEnable=1
ProfilingFileOutputEnable=1
  • 打开和关闭Vista防火墙
  • 在Vista防火墙中为端口9999添加例外
  • 尝试单独运行探查器SWF

结果相同。
最后一件事:
由于我之前遇到的问题与Flash调试器有点相似,因此解决方案是:

  • 右键点击Flash Player(调试器),
  • 选择调试器,
  • 选择其他机器
  • 添加127.0.0.1
  • 点击确定

然后,它解决了这个问题(但显然他使用主机127.0.0.1而不是localhost连接到调试器(相同)
我现在将以下条目添加到mm.cfg文件中:

PreloadSwf=C:/work/labsense/branches/rel_1_2_5_EA/sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=127.0.0.1&port=9999

然后,保存后,我运行分析器及其工作!!

所有这些的原因是:
某些程序将文件C:\ Windows \ System32 \ drivers \ etc \ hosts更改为:

# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

::1             localhost
127.0.0.1       iDBO # LMS GENERATED LINE

这意味着localhost不会导致127.0.0.1 !!!
修复很容易:

# ::1             localhost
# 127.0.0.1       iDBO # LMS GENERATED LINE
127.0.0.1       localhost

相反(请注明问题并解决问题

检查/ etc / hosts(C:\ Windows \ System32 \ drivers \ etc \ hosts),看它是否包含一行:
127.0.0.1本地主机
在我的情况下,它以某种方式更改为:: 1 localhost,这就是为什么它停止工作的原因。

感谢Ziv提供的(格式不正确)答案。