2012-06-26 5 views
0
실패

LOG :ApplicationUpdaterUI 맥

Runtime Installer begin with version 3.3.0.3650 on Mac OS 10.7.4 x86 
Commandline is: -updatecheck 
Installed runtime (3.3.0.3650) located at /Library/Frameworks/Adobe AIR.framework 
Performing pingback request 
Failure during pingback request: [ErrorEvent type="error" bubbles=false cancelable=falsr eventPhase=2 text="Unhandled exception Error: Error #3001" errorID=3001] 
Runtime Installer end with exit code 0 

그것은 Windows에서 잘 작동하지만, Mac 용 실패합니다.

파기 나는 오류 코드 # 3001이 파일/디렉토리 사용 권한 문제와 관련이 있음을 알았습니다.

Checked/Users/internetslave/Library/Application Support/Adobe 권한이 괜찮은 것 같습니다. source.

선택/라이브러리/프레임 워크/Adobe AIR.framework도 좋습니다.

둘 다 drwxr-xr-x가 있습니다.

UPDATE : 권한이 문제가 아니며 동일한 시스템의 다른 응용 프로그램을 성공적으로 업데이트했습니다.

var appUpdater; 

function checkForUpdates() { 
    appUpdater = new air.ApplicationUpdaterUI(); 
    appUpdater.configurationFile = new air.File("app:/update/update-config.xml"); 
    appUpdater.addEventListener(air.ErrorEvent.ERROR, onCheckForUpdatesError); 
    appUpdater.initialize(); 

    setTimeout(function() { 
     appUpdater.checkNow(); 
    }, 500); 
} 

function onCheckForUpdatesError(event) { 
    alert(event.toString()); 
} 

캔트가 여기에 업데이트 구성 및 설명자 파일을 게시하는 것처럼 보입니다.

답변

0

같은 문제가 발생할 수 있습니다.

문제는 ApplicationUpdaterUI가 checkNow 메서드가 호출 될 때 초기화가 완료되지 않았기 때문입니다.

그래서 하나는 onClick 이벤트 높은 값에서는 setTimeout 번째 파라미터를 변경하거나 배치이 부분

appUpdater = new air.ApplicationUpdaterUI(); 
appUpdater.configurationFile = new air.File("app:/update/update-config.xml"); 
appUpdater.addEventListener(air.ErrorEvent.ERROR, onCheckForUpdatesError); 
appUpdater.initialize(); 

를 페이지 onLoad 이벤트 핸들러 및 버튼에 checkNow 방법을 첨부

function checkUpdates() { 
    appUpdater.checkNow(); 
} 

<input type="button" onclick="checkUpdates()" /> 

감사!