0

mobilefirst 6.3 CLI を mobilefirst 7.0 CLI にアップグレードする際の既知の問題はありますか?

自動アップグレードは、以前は 6.3.0 で問題なく動作していた ubuntu 14.0.x で次のエラーで失敗します。

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

CLI を使用したアップグレードの問題は APAR PI37526 に基づいて調査されていますが、PMR を開いて追跡することができます。

このエラーは、android\native フォルダーに project.properties ファイルがない場合にも発生する可能性があります。このファイルが MFP プロジェクトの android\native フォルダーに存在するかどうかを確認します。

こちらの手順を使用するか、Google ADT のコマンドライン ツールを使用して、このファイルを再生成できます。

回避策として、6.3 プロジェクトを MobileFirst Studio v7.0にインポートできます。Studio を使用している場合、質問に記載されているアップグレード エラーが発生せず、ProGuard ファイルがアップグレードされたプロジェクトに追加されていることを少なくとも確認できます。

于 2015-03-22T08:45:47.303 に答える