2015-10-06 67 views
0

我使用MFP CLI 7.1和原生Android Studio应用程序。 我已经使用CLI启动了本地开发服务器(127.0.0.1)。我已成功通过应用程序连接到此服务器。如何将Android Studio原生应用程序移至不同的MobileFirst服务器?

我正尝试将应用程序重新部署到远程Tst MFP服务器(192.168.1.117)。该服务器也是从CLI启动的。

我已经从应用程序Android Studio项目运行mfp推送。它成功完成。我可以在Tst服务器操作控制台中看到本机API应用程序,并且wlclient.properties有新的I.P.和运行应用程序。

我收到以下错误的logcat为WLClient.connect操作:

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] 

任何想法?

在此先感谢。

+0

在你的问题描述中,你在“移动服务器”吗?你不解释你实际做了什么。日志中显示的IP地址是您期望看到的(远程服务器的)IP地址?提供messages.log文件。编辑问题并提供完整的复制步骤。 –

+0

重现错误的简单方法:使用CLI:1.创建新的MFP项目2.启动服务器3.将Android Studio应用程序推送到此服务器4.停止服务器5.创建新的MFP项目6.启动新项目的服务器7将Android Studio应用程序推送到新服务器(步骤6)8.尝试从Android Studio应用程序连接到新服务器 – TMarkunin

回答

1

为了有一个应用程序连接到不同的MobileFirst服务器,您需要:

  1. mfp server add - 并提供远程服务器的协议,IP /主机,端口,管理员用户名/密码,adminservices上下文根(通常默认的)
  2. MFP推给定新 - 服务器 - 名称 - 从步1

这将确保在步骤2中推wlapp到远程服务器时,它也将更新na中的wlclient.properties tive项目,以使用远程服务器的IP地址。

我已经使用MobileFirst Platform Foundation 7.1中的现有InvokingAdapterProcedures项目自己尝试了这一点。

+0

谢谢Idan!它帮助 – TMarkunin

+0

很高兴它帮助。如果您可以请标记为已回答。 –

相关问题