如何将 Android Studio 本机应用程序移动到不同的 MobileFirst 服务器?
How to move Android Studio native app to different MobileFirst server?
我使用 MFP CLI 7.1 和本机 Android Studio 应用程序。
我已经使用 CLI 启动了本地开发服务器 (127.0.0.1)。我已成功将应用程序连接到此服务器。
我正在尝试将应用程序重新部署到远程 Tst MFP 服务器 (192.168.1.117)。该服务器也是从 CLI 启动的。
我已经 运行 从应用程序 Android Studio 项目中推送了 mfp。它成功完成。我可以在 Tst 服务器操作控制台中看到本机 API 应用程序并且 wlclient.properties 有新的 I.P。和 运行时间申请。
我在 WLClient.connect 操作的 logcat 中遇到以下错误:
D/wl.request: WLRequestSender.run in WLRequestSender.java:40 :: Sending request http://192.168.1.117:10080/tstMFP/apps/services/api/com_example_timurmarkunin_mfpstart/Androidnative/init
D/com.worklight.nativeandroid.common.WLUtils: WLUtils.convertStringToJSON in WLUtils.java:437 :: Input string does not contain brackets, or input string is invalid. The string is: Error 500: FWLSE0304E: Unhandled exception caught: null [project tstMFP]
D/wl.failResponse: WLFailResponse.parseErrorFromResponse in WLFailResponse.java:100 :: Additional error information is not available for the current response and response text is: Error 500: FWLSE0304E: Unhandled exception caught: null [project tstMFP]
有什么想法吗?
提前致谢。
为了让应用程序连接到不同的 MobileFirst Server,您需要:
mfp server add
- 并提供远程服务器的协议、ip/host、端口、admin username/password 和 adminservices 上下文根(通常是默认的)
- mfp push given-new-server-name-from-step-1
这将确保在步骤 2 中将 wlapp 推送到远程服务器时,它还会更新本机项目中的 wlclient.properties,以使用远程服务器的 IP 地址。
我自己已经尝试使用 MobileFirst Platform Foundation 7.1 中现有的 InvokingAdapterProcedures 项目。
我使用 MFP CLI 7.1 和本机 Android Studio 应用程序。 我已经使用 CLI 启动了本地开发服务器 (127.0.0.1)。我已成功将应用程序连接到此服务器。
我正在尝试将应用程序重新部署到远程 Tst MFP 服务器 (192.168.1.117)。该服务器也是从 CLI 启动的。
我已经 运行 从应用程序 Android Studio 项目中推送了 mfp。它成功完成。我可以在 Tst 服务器操作控制台中看到本机 API 应用程序并且 wlclient.properties 有新的 I.P。和 运行时间申请。
我在 WLClient.connect 操作的 logcat 中遇到以下错误:
D/wl.request: WLRequestSender.run in WLRequestSender.java:40 :: Sending request http://192.168.1.117:10080/tstMFP/apps/services/api/com_example_timurmarkunin_mfpstart/Androidnative/init
D/com.worklight.nativeandroid.common.WLUtils: WLUtils.convertStringToJSON in WLUtils.java:437 :: Input string does not contain brackets, or input string is invalid. The string is: Error 500: FWLSE0304E: Unhandled exception caught: null [project tstMFP]
D/wl.failResponse: WLFailResponse.parseErrorFromResponse in WLFailResponse.java:100 :: Additional error information is not available for the current response and response text is: Error 500: FWLSE0304E: Unhandled exception caught: null [project tstMFP]
有什么想法吗?
提前致谢。
为了让应用程序连接到不同的 MobileFirst Server,您需要:
mfp server add
- 并提供远程服务器的协议、ip/host、端口、admin username/password 和 adminservices 上下文根(通常是默认的)- mfp push given-new-server-name-from-step-1
这将确保在步骤 2 中将 wlapp 推送到远程服务器时,它还会更新本机项目中的 wlclient.properties,以使用远程服务器的 IP 地址。
我自己已经尝试使用 MobileFirst Platform Foundation 7.1 中现有的 InvokingAdapterProcedures 项目。