Apache flex Flex profiler给出了;套接字超时“;错误。为什么?

Apache flex Flex profiler给出了;套接字超时“;错误。为什么?,apache-flex,profiler,Apache Flex,Profiler,当尝试在任何主机上运行Flex Builder 3探查器时,我没有获得探查器对话框窗口,几秒钟后,我在控制台窗口中获得“套接字超时”。知道为什么它不能连接吗 我有最新调试版本的Flash player,并已尝试关闭防火墙。 我在XP上从本地驱动器运行它,即不是通过本地主机 谢谢, Alex浏览器选项卡,确保您有您所说的最新调试,还确保端口正确,由于某些原因,端口有时会从默认的9999更改(1001或20957),确保您的mm.cfg具有ProfilingFileOutputEnable=1,并且

当尝试在任何主机上运行Flex Builder 3探查器时,我没有获得探查器对话框窗口,几秒钟后,我在控制台窗口中获得“套接字超时”。知道为什么它不能连接吗

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

谢谢,
Alex

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

在启动探查器之前,浏览器(在我的例子中是Firefox)似乎必须关闭。第一步。在livedocs中,我甚至说了这句话——但愿我能早点读到。:)


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

当我尝试运行Flex探查器时,我收到了以下错误消息:
在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 builder: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=9999
    

    或添加全部或部分输入:

    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调试器时遇到过类似的expreins问题,所以当时的解决方案是:

  • 右键单击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(格式不好)的回答。

    在尝试了这里的所有其他建议后,Adobe论坛上的这篇帖子吸引了我。

    当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
    
    一切都神奇地开始工作了

    # 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
    
    # ::1             localhost
    # 127.0.0.1       iDBO # LMS GENERATED LINE
    127.0.0.1       localhost
    
    PreloadSwf=C:\Users\ehedstrom\Documents\FLEXBU~1\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=9999