1

错误:WLNativeXHRPlugin$NativeXHRPostListener.onException

03-06 12:35:07.406: D/NONE(10503): Transfer failed, errors = {"invocationContext":null,"errorCode":"REQUEST_TIMEOUT","errorMsg":"Request timed out for http://192.168.85.1:10080/RestServiceCommunication/apps/services/api/RestServerCommunivation/android/query. Make sure the host address is available to the application (especially relevant for Android and iPhone apps)."}
03-06 12:35:07.526: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(10503): WLNativeXHRPlugin$NativeXHRPostListener.onException in WLNativeXHRPlugin.java:137 :: onException
03-06 12:35:07.526: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(10503): org.apache.http.conn.ConnectTimeoutException: Connect to /192.168.85.1:10080 timed out
03-06 12:35:07.526: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(10503):     at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121)
03-06 12:35:07.526: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(10503):     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
03-06 12:35:07.526: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(10503):     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)

该设备是android 4.3、4.4.2、5.02

4

1 回答 1

0

根据错误日志,您确定后端可用吗?

  • 它在预览中工作吗?
  • 您确定设备能够连接到 MobileFirst Server?
  • 确保服务器暴露在公共互联网上
  • 增加程序超时(在适配器 XML 中的应用程序代码和适配器程序上)
于 2015-03-07T07:12:36.097 回答