如何解决阻止图像加载的Adobe Air SSL错误
问题描述:
我是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应用程序。
我觉得这与加载页面上的图像有关,而这些图像不会显示。
答
这可能会在稍后帮助别人。问题是应用程序中的域与SSL域不同。尽管这是一个HTTPS调用,但Adobe仍在抱怨。当我删除这些电话时,该应用按预期工作,没有错误。