2015-11-02 41 views
0

我是Adobe Air的新手。我正在構建我的第一個應用程序。這不是一個Flash應用程序。這裏是我的application.xml文件:如何解決阻止圖像加載的Adobe Air SSL錯誤

<?xml version="1.0" encoding="UTF-8"?> 
<application xmlns="http://ns.adobe.com/air/application/3.7"> 
    <id>iViewDesktop</id> 
    <name>Patient Education</name> 
    <filename>Patient Education</filename> 
    <versionNumber>1.0.0</versionNumber> 
    <installFolder>patient-education</installFolder> 
    <initialWindow> 
     <title>Patient Education</title> 
     <content>redirect.html</content> 
     <description>This is an Adobe Air version of Patient Education</description> 
     <systemChrome>standard</systemChrome> 
     <transparent>false</transparent> 
     <visible>true</visible> 
     <resizable>true</resizable> 
     <renderMode>direct</renderMode> 
     <aspectRatio>landscape</aspectRatio> 
     <autoOrients>true</autoOrients> 
     <width>1024</width> 
     <height>768</height> 
    </initialWindow> 
    <icon> 
     <image16x16>icons/pe-16x16.png</image16x16> 
     <image32x32>icons/pe-32x32.png</image32x32> 
     <image48x48>icons/pe-48x48.png</image48x48> 
     <image128x128>icons/pe-48x48.png</image128x128> 
    </icon> 
</application> 

所有將redirect.html所做的就是將用戶重定向到我們的JavaScript的網站的一部分。重定向後,頁面出現並且缺少所有圖像。我也在終端中一遍又一遍地得到這個錯誤。

2015年11月2日09:30:34.375 ADL [90787:4976353] NSURLSession/NSURLConnection的HTTP加載失敗

(kCFStreamErrorDomainSSL,-9824)2015年11月2日09:30:34.414 adl [90787:4976353] CFNetwork SSLHandshake失敗(-9824)

我在本地主機環境中運行SSL,重定向到https。我在這個網站上發現了other posts的完全相同的錯誤,但我不確定如何在Adobe Air中應用他們的解決方案,因爲他們的解決方案是針對iOS的。有沒有人知道這個問題的任何特定於空氣的解決方案?

順便說一句,也有其他一些錯誤,在錯誤列表的頂部:

Nov 2 09:30:16 adl[90787] <Error>: The function ‘CGFontSetShouldUseMulticache’ is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance. 
2015-11-02 09:30:31.181 adl[90787:4976353] CFNetwork SSLHandshake failed (-9824) 
2015-11-02 09:30:31.222 adl[90787:4976353] CFNetwork SSLHandshake failed (-9802) 
2015-11-02 09:30:31.262 adl[90787:4976353] CFNetwork SSLHandshake failed (-9802) 
2015-11-02 09:30:31.262 adl[90787:4976353] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802) 
TypeError: Result of expression 'document.getElementById('nav-close-btn')' [null] is not an object. 
at https://spear.dev/javascript/global.js?t=20150924 : 1380 

我不知道這些錯誤的意思。我找不到Adobe文檔中列出的這些錯誤號。如果有人能指點我,那會很棒。請記住,這不是一個Flash應用程序。

我覺得這與加載頁面上的圖像有關,而這些圖像不會顯示。

回答

0

這可能會在稍後幫助別人。問題是應用程序中的域與SSL域不同。儘管這是一個HTTPS調用,但Adobe仍在抱怨。當我刪除這些電話時,該應用按預期工作,沒有錯誤。

相關問題