Ibm mobilefirst 在mobile first android模拟器中运行应用程序时出错

Ibm mobilefirst 在mobile first android模拟器中运行应用程序时出错,ibm-mobilefirst,mobilefirst-adapters,mobilefirst-server,Ibm Mobilefirst,Mobilefirst Adapters,Mobilefirst Server,遇到了一个奇怪的问题,我的应用程序在预览servlet中运行,但当我试图在Android emulator中运行时,出现了奇怪的错误并最终超时 10-12 10:13:59.860: W/PluginManager(885): THREAD WARNING: exec() call to WLAuthorizationManagerPlugin.getClientInstanceIdHeader blocked the main thread for 7546ms. Plugin should

遇到了一个奇怪的问题,我的应用程序在预览servlet中运行,但当我试图在Android emulator中运行时,出现了奇怪的错误并最终超时

10-12 10:13:59.860: W/PluginManager(885): THREAD WARNING: exec() call to WLAuthorizationManagerPlugin.getClientInstanceIdHeader blocked the main thread for 7546ms. Plugin should use CordovaInterface.getThreadPool().
    10-12 10:14:00.080: D/wl.request(885): WLRequestSender.run in WLRequestSender.java:40 :: Sending request http://10.0.0.9:10080/DoradoBankProject/authorization/v1/clients/instance
    10-12 10:14:00.330: I/Choreographer(885): Skipped 53 frames!  The application may be doing too much work on its main thread.
    10-12 10:14:00.650: I/Choreographer(885): Skipped 34 frames!  The application may be doing too much work on its main thread.
    10-12 10:14:00.970: I/Choreographer(885): Skipped 34 frames!  The application may be doing too much work on its main thread.
    10-12 10:14:01.290: I/Choreographer(885): Skipped 33 frames!  The application may be doing too much work on its main thread.
    10-12 10:14:04.000: E/NONE(885): Request timeout for [/apps/services/api/DoradoBankProject/android/query]
请注意,我在这个模块中没有使用任何身份验证。这就是我的adapter.xml的样子

<procedure name="getAccounts"  securityTest="wl_unprotected"/>
<procedure name="getTransactions" securityTest="wl_unprotected"/>

我不确定是什么导致了这种情况或任何调试方式。

通常在为应用程序指定不正确的主机名时发生。通过桌面浏览器在控制台中预览应用程序时,它具有开发服务器分配的IP,但是在设备中运行时,必须确保使用正确的IP或主机名。如果使用localhost,这将是一个问题


我从日志中看到使用了10.0.0.9,您能确认这是服务器的IP吗?我建议找到您的公共IP地址,并将其用作wlclient.properties中的主机值。

在生成的本机项目中打开您的wlclient.properties文件,并将主机值从10.0.0.9更改为服务器的公共IP端口。看看是否有任何变化。我的第一反应是这是某种防火墙问题-请求超时意味着仿真器正试图联系嵌入在MobileFIrst Platform Studio中的MobileFIrst平台服务器,并且没有得到任何响应。这有时可能是因为防火墙规则正在丢弃流量。您在哪个平台上运行emulator和MobileFirst platform Studio?@Amit,等待您的回复。