我正在尝试使用MobileFirst 7.0在真实设备中测试我的应用程序。它在模拟器和Web浏览器中运行良好。
在调用http adapter:
时从设备运行时会生成此错误06-17 18:42:29.358: D/CordovaActivity(7679): Resuming the App
06-17 18:42:29.398: D/WLClient(7679): WLClient$ActivityListener.onActivityStarted in WLClient.java:1434 :: on activity started com.Delivery.Delivery
06-17 18:42:29.408: D/WLClient(7679): WLClient$ActivityListener.onActivityResumed in WLClient.java:1423 :: on activity resumed com.Delivery.Delivery . activity count = 1
06-17 18:42:33.698: W/PluginManager(7679): THREAD WARNING: exec() call to NativeBusyIndicator.show blocked the main thread for 178ms. Plugin should use CordovaInterface.getThreadPool().
06-17 18:42:33.818: D/NONE(7679): establishSSLClientAuth
06-17 18:42:33.858: W/PluginManager(7679): THREAD WARNING: exec() call to UserAuth.init blocked the main thread for 18ms. Plugin should use CordovaInterface.getThreadPool().
06-17 18:42:33.998: W/PluginManager(7679): THREAD WARNING: exec() call to UserAuth.isCertificateExists blocked the main thread for 83ms. Plugin should use CordovaInterface.getThreadPool().
06-17 18:42:34.028: D/NONE(7679): establishSSLClientAuth isCertificateExists: false
06-17 18:42:34.048: D/NONE(7679): Request [/apps/services/api/Delivery/android/query]
06-17 18:42:34.708: W/PluginManager(7679): THREAD WARNING: exec() call to WLAuthorizationManagerPlugin.getClientInstanceIdHeader blocked the main thread for 625ms. Plugin should use CordovaInterface.getThreadPool().
06-17 18:42:34.748: D/wl.request(7679): WLRequestSender.run in WLRequestSender.java:40 :: Sending request http://192.168.43.73:10080/Delivery/authorization/v1/clients/instance
06-17 18:42:45.228: D/wl.certManager(7679): WLCertManager.clearKeystore in WLCertManager.java:258 :: Key store cleared.
06-17 18:42:45.358: W/PluginManager(7679): THREAD WARNING: exec() call to WLAuthorizationManagerPlugin.deleteAllAuthData blocked the main thread for 110ms. Plugin should use CordovaInterface.getThreadPool().
06-17 18:42:45.368: D/wl.certManager(7679): WLCertManager.clearKeystore in WLCertManager.java:258 :: Key store cleared.
06-17 18:42:45.638: W/PluginManager(7679): THREAD WARNING: exec() call to WLAuthorizationManagerPlugin.getClientInstanceIdHeader blocked the main thread for 271ms. Plugin should use CordovaInterface.getThreadPool().
06-17 18:42:45.638: D/wl.request(7679): WLRequestSender.run in WLRequestSender.java:40 :: Sending request http://192.168.43.73:10080/Delivery/authorization/v1/clients/instance
06-17 18:42:55.838: D/wl.certManager(7679): WLCertManager.clearKeystore in WLCertManager.java:258 :: Key store cleared.
06-17 18:42:55.868: D/NONE(7679): Client registration failed with error: {"status":500,"responseHeaders":{},"responseText":"","invocationContext":null}
06-17 18:42:55.878: E/NONE(7679): [/apps/services/api/Delivery/android/query] failure. state: 500, response: undefined
试图从here做出解决方案,但没有运气。
尝试从MobileFirst控制台删除我的设备,从设备删除应用程序并再次运行Android项目,但现在我的设备无法显示在控制台中。
有什么建议可能出错吗?
注意:
我将手机连接到笔记本电脑以获得互联网连接,并将MF服务器的IP设置为我的笔记本电脑IP
答案 0 :(得分:0)
好的,根据帖子here,我真的不能使用网络共享。当我使用wifi时,它按预期工作。
我不确定为什么会发生这种情况,因为我的手机可以ping通并远程登录MobileFirst服务器的IP和端口,但应用程序无法正常工作。