0

将 mobilefirst 6.3 CLI 升级到 mobilefirst 7.0 CLI 是否存在任何已知问题?

自动升级在 ubuntu 14.0.x 中失败并出现以下错误,之前它在 6.3.0 中运行良好。

运行 mfp build -dd 时出错

mobilefirst-cli verb cli process.argv=["/opt/ibm/MobileFirst-CLI/IBMnode/bin/node","/opt/ibm/MobileFirst-CLI/mobilefirst-cli/bin/mobilefirst-cli.js","build","-dd"]
mobilefirst-cli verb cli opts={"ddebug":true,"argv":{"remain":["build"],"cooked":["build","--ddebug"],"original":["build","-dd"]}}
mobilefirst-cli verb cli mobilefirst@7.0.0.00.20150312-0738
mobilefirst-cli verb cli node@v0.10.30
mobilefirst-cli verb ant variables -Dbasedir=/home/ubuntu/xxxxxxxxx
mobilefirst-cli verb ant variables -Dworklight.jars.dir=/opt/ibm/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib
mobilefirst-cli verb ant variables -Dworklight.ant.tools.dir=/opt/ibm/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/ant-tools
mobilefirst-cli verb ant variables -Dworklight.hostname=x.x.x.x
mobilefirst-cli verb ant variables -file=/opt/ibm/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml
mobilefirst-cli verb ant task upgrade
Buildfile: /opt/ibm/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml

upgrade:
[project-upgrader] FINE: DEBUG_PERFORM_UPGRADE
[project-upgrader] INFO: FWLST1022I: Starting to migrate the xxxxxx project from version 6.3.0.00.20150106-1717 to version 7.0.0.00.20150312-0731.

[project-upgrader] path found:6.3.0.0--->7.0.0.0
[project-upgrader] FINE: DEBUG_FOUND_PATH
[project-upgrader] ERROR: Unexpected error during upgrade: java.lang.NullPointerException
[project-upgrader]  at com.worklight.upgrader.upgraders.android.AppAndroidProGuardConfUpgrader.upgrade(AppAndroidProGuardConfUpgrader.java:57)
[project-upgrader]  at com.worklight.upgrader.WLUpgradeEngine.executeUpgrader(WLUpgradeEngine.java:368)
[project-upgrader]  at com.worklight.upgrader.WLUpgradeEngine.performUpgrade(WLUpgradeEngine.java:301)
[project-upgrader]  at com.worklight.upgrader.WLUpgradeEngine.upgradeProject(WLUpgradeEngine.java:188)
[project-upgrader]  at com.worklight.upgrader.ant.UpgraderTask.execute(UpgraderTask.java:100)
[project-upgrader]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[project-upgrader]  at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[project-upgrader]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[project-upgrader]  at java.lang.reflect.Method.invoke(Method.java:606)
[project-upgrader]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[project-upgrader]  at org.apache.tools.ant.Task.perform(Task.java:348)
[project-upgrader]  at org.apache.tools.ant.Target.execute(Target.java:392)
[project-upgrader]  at org.apache.tools.ant.Target.performTasks(Target.java:413)
[project-upgrader]  at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[project-upgrader]  at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[project-upgrader]  at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[project-upgrader]  at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[project-upgrader]  at org.apache.tools.ant.Main.runBuild(Main.java:811)
[project-upgrader]  at org.apache.tools.ant.Main.startAnt(Main.java:217)
[project-upgrader]  at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[project-upgrader]  at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
4

1 回答 1

1

虽然正在根据 APAR PI37526 调查使用 CLI 的升级问题,但您可以打开 PMR 来跟踪它。

如果 android\native 文件夹缺少 project.properties 文件,也可能会发生该错误。验证此文件是否存在于您的 MFP 项目的 android\native 文件夹中。

您可以使用此处的说明或通过 Google ADT 的命令行工具重新生成此文件。

作为一种解决方法,您可以将 6.3 项目导入 MobileFirst Studio v7.0;我至少可以确认,在使用 Studio 时,问题中提到的升级错误不会发生,并且 ProGuard 文件正在添加到升级后的项目中。

于 2015-03-22T08:45:47.303 回答