2008-09-22 40 views
3

當試圖運行Flex Builder 3分析器時,我沒有得到分析器對話框窗口,然後幾秒鐘後,在控制檯窗口中顯示「Socket timeout」。任何想法,爲什麼它不能連接?Flex分析器給出「套接字超時」錯誤。爲什麼?

我有最新的Flash播放器調試版本,並試圖關閉我的防火牆。
我正在XP上運行它從本地驅動器,即。不通過本地主機。

謝謝, 亞歷克斯

回答

0

瀏覽器選項卡,請確保您有最新的調試,你說你,也請確保該端口是正確的,由於某種原因,端口有時的變化(1001或20957)默認爲9999,請確保您的mm.cfg具有ProfilingFileOutputEnable = 1且該位電子器未打開。 hth

0

請確保您的防火牆沒有阻止端口9999,您可以自定義的端口號太:打開首選項 - > Flex-> Profiler->連接。

0

當我嘗試運行我的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] 

而在柔性探查控制檯(在日蝕)我有:套接字超時。

我在Windows Vista上運行,
的Flex Builder:3.2
Flash調試:

  • 開關:我已經做了解決此問題的10,0,22,87

    事探查器的連接端口設置爲9998(和後端)

  • 刪除並重新安裝Flash調試器播放器。
  • 安裝的Flex Builder 3.2(而不是3.0)
  • 刪除在mm.cfg文件中
  • 所有進入添加進入到毫米。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調試之前類似expreins問題點點,分辨率則是:

  1. 右鍵點擊flash播放器(Debugger),
  2. 選擇「調試」 ,
  3. 選擇「其他機器」
  4. 添加「127.0.0.1」
  5. 單擊確定

然後,它解決了這個問題(但顯然他連接到與上位127.0.0.1而不是本地主機(這是相同的)
我現在添加到修改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 \等\主機到:

# 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 

這意味着本地主機不導致127.0.0.1!
定影很簡單:

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

相反(注問題和解決問題

0

檢查/ etc/hosts文件(C:\ WINDOWS \ SYSTEM32 \ DRIVERS \ ETC \主機),看看它是否包含一行: 127.0.0.1本地主機 對我來說,它在某種程度上改變爲:: 1個本地主機,這就是爲什麼它停止工作

感謝謝夫爲(格式不正確)的答案。

0

這裏嘗試所有其他建議後,這個職位上Adobe的論壇避讓我。 Adobe forum

當Flash調試播放器的推出,它查找mm.cfg中的%HOMEDRIVE %% HOMEPATH%。在這個特定的計算機上,該路徑不是我C上的主目錄:但在映射到I:的文件服務器上。所以一旦我創建了I:\ mm.cfg與內容

PreloadSwf=C:\Users\ehedstrom\Documents\FLEXBU~1\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=9999 

一切都神奇地開始工作!