簡體   English   中英

從WL6.3遷移后,IBM MobileFirst 7.1服務器連接在Android中失敗

[英]IBM MobileFirst 7.1 Server connection fails in Android after migrating from WL6.3

我有一個IBM Worklight 6.3項目,沒有任何問題。 我收到了Google的一張票,告訴我需要更新到最新版本,否則該應用程序將從PlayStore中刪除。

在Eclipse上對MobileFirst7.1進行相應的更新而不手動更改任何文件后,我試圖在我自己的本地服務器上運行該應用程序。 使用所有預覽工具甚至使用XCode iphone 6仿真器都可以正常工作。 但是,當我嘗試在真正的Android設備中運行應用程序時,它不會連接到服務器。

我已經:

  • 將服務器配置從localhost更改為我的計算機IP地址。
  • 更改了構建設置並將目標部署到我的計算機IP地址。
  • 將兩個設備連接到同一個無線網絡。
  • 安裝了所有可用的修訂包。
  • 正確連接到Android設備瀏覽器的服務器URL。

在監控網絡時,我還注意到應用程序沒有流量。 當直接從瀏覽器連接時,我可以看到發送到服務器的包,但在打開應用程序時沒有任何反應。

我調試了WL.Device.Network,一切看起來都很正常:

{"isNetworkConnected":"true","isAirplaneMode":"false","isRoaming":"false", "networkConnectionType":"WIFI",...}

但WL.Client.Connect返回此:

{"status":-1,"errorCode":null,"errorMsg":null}

我用於本地服務器的端口是默認的10080。

有誰知道發生了什么?

編輯:

我正在添加LogCat消息(錯誤和警告):

05-12 10:27:17.279:W / WLClient(23424):WLClient.java中的WLClient.createInstance:225 ::您應該傳遞一個可從Activity類分配的上下文。 WLClient實例可用於啟動活動。

05-12 10:27:19.142:W / cr_media(23424):需要BLUETOOTH權限

05-12 10:27:19.567:W / cr_AwContents(23424):onDetachedFromWindow在已經分離時調用。 忽略

05-12 10:27:20.136:E / libEGL(23424):validate_display:255錯誤3008(EGL_BAD_DISPLAY)

05-12 10:27:20.203:W / cr_BindingManager(23424):無法調用determinVisibility() - 從未看到pid的連接:23424

05-12 10:27:20.255:E / AndroidProtocolHandler(23424):無法打開資產URL:file:///android_asset/www/default/js/messages.js

05-12 10:27:21.243:W / ContextImpl(23424):無法確保目錄:/storage/sdcard1/Android/data/com.myApp/files

05-12 10:27:21.249:W / ContextImpl(23424):無法確保目錄:/storage/sdcard1/Android/data/com.myApp/cache

05-12 10:27:21.268:W / ContextImpl(23424):無法確保目錄:/storage/sdcard1/Android/data/com.myApp/files

05-12 10:27:21.276:W / ContextImpl(23424):無法確保目錄:/storage/sdcard1/Android/data/com.myApp/files

05-12 10:27:21.282:W / ContextImpl(23424):無法確保目錄:/storage/sdcard1/Android/data/com.myApp/cache

05-12 10:27:21.619:W / cr_BindingManager(23424):無法調用determinVisibility() - 從未看到pid的連接:23424

05-12 10:27:23.054:E / AndroidProtocolHandler(23424):無法打開資產URL:file:///android_asset/www/default/worklight/messages/es-CO/messages.json

05-12 10:27:23.186:E / AndroidProtocolHandler(23424):無法打開資產URL:file:///android_asset/www/default/images/favicon.png

05-12 10:27:23.332:W / ContextImpl(23424):無法確保目錄:/storage/sdcard1/Android/data/com.myApp/files

05-12 10:27:23.348:W / ContextImpl(23424):無法確保目錄:/storage/sdcard1/Android/data/com.myApp/files

05-12 10:27:23.359:W / ContextImpl(23424):無法確保目錄:/storage/sdcard1/Android/data/com.myApp/cache

05-12 10:27:23.454:W / PluginManager(23424):THREAD WARNING:exec()調用Globalization.getLocaleName阻塞主線程28ms。 插件應該使用CordovaInterface.getThreadPool()。

05-12 10:27:23.729:W / PluginManager(23424):THREAD WARNING:exec()調用DeviceAuth.getDeviceUUID阻塞主線程207ms。 插件應該使用CordovaInterface.getThreadPool()。

05-12 10:27:23.832:W / Settings(23424):設置airplane_mode_on已從android.provider.Settings.System移至android.provider.Settings.Global,返回只讀值。

05-12 10:27:24.260:W / cr_BindingManager(23424):無法調用determinVisibility() - 從未看到pid的連接:23424

05-12 10:27:24.293:W / cr_BindingManager(23424):無法調用determinVisibility() - 從未看到pid的連接:23424

05-12 10:27:24.298:W / cr_BindingManager(23424):無法調用determinVisibility() - 從未看到pid的連接:23424

05-12 10:27:24.306:E / AndroidProtocolHandler(23424):無法打開資產URL:file:///android_asset/www/default/images/favicon.png

05-12 10:27:24.306:E / AndroidProtocolHandler(23424):無法打開資產URL:file:///android_asset/www/default/images/favicon.png

05-12 10:27:24.308:E / AndroidProtocolHandler(23424):無法打開資產URL:file:///android_asset/www/default/images/favicon.png

05-12 10:27:24.446:W / Settings(23424):設置airplane_mode_on已從android.provider.Settings.System移至android.provider.Settings.Global,返回只讀值。

05-12 10:27:24.769:W / PluginManager(23424):THREAD WARNING:對LoggerPlugin.log的exec()調用阻塞主線程為68ms。 插件應該使用CordovaInterface.getThreadPool()。

05-12 10:27:24.800:W / NONE(23424):請注意,如果您的應用程序針對Android 3.0(API級別11)或更高級別,則WL.OptionsMenu可能無效,具體取決於設備。

05-12 10:27:24.859:W / PluginManager(23424):THREAD WARNING:exec()調用LoggerPlugin.log阻塞主線程33ms。 插件應該使用CordovaInterface.getThreadPool()。

05-12 10:27:24.890:W / PluginManager(23424):THREAD WARNING:對LoggerPlugin.log的exec()調用阻塞了主線程19ms。 插件應該使用CordovaInterface.getThreadPool()。

05-12 10:27:25.308:W / PluginManager(23424):THREAD WARNING:exec()調用NetworkDetector.getNetworkInfo阻塞主線程45ms。 插件應該使用CordovaInterface.getThreadPool()。

05-12 10:27:25.343:W / Settings(23424):設置airplane_mode_on已從android.provider.Settings.System移至android.provider.Settings.Global,返回只讀值。

05-12 10:27:25.894:E / NONE(23424):[/ apps / services / api / myApp / android / init]失敗。 state:-1,響應:undefined

05-12 10:27:25.908:E / NONE(23424):[/ apps / services / api / myApp / android / query]失敗。 state:-1,響應:undefined

05-12 10:27:25.921:E / NONE(23424):[/ apps / services / api / myApp / android / query]失敗。 state:-1,響應:undefined

我有一個IBM Worklight 6.3項目,沒有任何問題。 我收到了Google的一張票,告訴我需要更新到最新版本,否則該應用程序將從PlayStore中刪除。

您無需升級到MFP 7.1即可解決Google發送的警告。

如果您還沒有配備從6.3到7.1的大規模更改,只需轉到IBM Fix Central並下載最新的6.3 iFix,它修復了所有已知和當前的Google警告。 將您的應用重新構建並重新發布到Google App Store。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM