我正在尝试使用MobileFirst 7.0在真实设备中测试我的应用程序。它可以在模拟器和Web浏览器中完美运行。
从设备运行时,调用http适配器时会生成此错误:
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
试图从这里做解决方案,但没有运气。
试图从MobileFirst控制台删除我的设备,从该设备删除应用程序,然后再次运行Android项目,但是现在我的设备无法出现在控制台中。
有什么建议可能是错的吗?
注意事项:
我将手机绑定到笔记本电脑以获取互联网连接,并将MF服务器的IP设置为笔记本电脑IP
好的,根据这里的帖子,我真的不能使用网络共享。当我使用wifi时,它可以按预期工作。
我不确定为什么会发生这种情况,因为通过我的手机可以ping和telnet MobileFirst服务器的IP和端口,但该应用程序无法正常工作。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句