Flex Profiler出现“套接字超时”错误。为什么?

时间:2008-09-22 15:15:32

标签: flex profiler

尝试在任何时候运行Flex Builder 3探查器时,我没有得到探查器对话框窗口,然后在几秒钟后我在控制台窗口中得到“Socket timeout”。任何想法为什么它无法连接?

我已经获得了Flash播放器的最新调试版本,并试图关闭我的防火墙 我是从本地驱动器在XP上运行它,即。不是通过localhost。

谢谢, 亚历

6 个答案:

答案 0 :(得分:2)

看起来浏览器(在我的情况下是Firefox)必须在启动探查器之前关闭。第1步。在liveocs中甚至说这个 - 希望我早些读过它。 :)

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

答案 1 :(得分:0)

浏览器选项卡,确保您按照自己的说法进行了最新的调试,同时确保端口正确,由于某种原因,端口有时会从默认的9999更改(1001或20957),请确保您的mm。 cfg有ProfilingFileOutputEnable = 1且bittorrent未启用。 HTH

答案 2 :(得分:0)

确保您的防火墙不会阻止端口9999,您也可以自定义端口号:打开首选项 - > Flex-> Profiler->连接。

答案 3 :(得分:0)

当我尝试运行我的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\3.2.0\modules\profiler3\as\ProfilerAgent.as:127]

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

我在windows vista上运行,
Flex构建器:3.2
Flash调试器:10,0,22,87

我为解决此问题所做的一切:

  • 将探查器的连接端口切换为9998(并返回)
  • 删除并重新安装Flash调试程序播放器。
  • 安装flex builder 3.2(而不是3.0)
  • 删除mm.cfg文件中的所有输入
  • 将输入添加到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调试器之前有一点点问题,所以分辨率是:

  1. 右键单击Flash播放器(调试器),
  2. 选择“调试器”,
  3. 选择“其他机器”
  4. 添加“127.0.0.1”
  5. 点击确定
  6. 然后,它解决了问题(但显然他用主机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
    

    相反(注意问题并解决问题

答案 4 :(得分:0)

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

感谢Ziv(格式错误的)答案。

答案 5 :(得分:0)

在尝试了所有其他建议后,Adobe论坛上的这篇文章吸引了我。 Adobe forum

当Flash调试播放器启动时,它会在%HOMEDRIVE %% HOMEPATH%中查找mm.cfg。在这台特定的计算机上,该路径不是我在C上的主目录:但是在映射到I:的文件服务器上。所以,一旦我用内容

创建I:\ mm.cfg
PreloadSwf=C:\Users\ehedstrom\Documents\FLEXBU~1\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=9999
一切都神奇地开始了!

相关问题