0
votes

using MobileFirst Platform CLI version 7.1.0.00.20151227-1730 I have suddenly the following error when trying to push an update I made to an adapter:

    Preparing for push...
Verifying Server Configuration...
Runtime 'localMFP' will be used to push the project into.
[Error: 
BUILD FAILED
/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:497: com.worklight.upgrader.UpgradeEngineException: java.lang.NullPointerException
    at com.worklight.upgrader.WLUpgradeEngine.<init>(WLUpgradeEngine.java:142)
    at com.worklight.upgrader.WLUpgradeEngine.<init>(WLUpgradeEngine.java:147)
    at com.worklight.upgrader.ant.UpgraderTask.execute(UpgraderTask.java:100)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.NullPointerException
    at java.text.MessageFormat.applyPattern(MessageFormat.java:436)
    at java.text.MessageFormat.<init>(MessageFormat.java:362)
    at java.text.MessageFormat.format(MessageFormat.java:840)
    at com.worklight.upgrader.WLUpgradeEngine.findProjectVersion(WLUpgradeEngine.java:602)
    at com.worklight.upgrader.WLUpgradeEngine.<init>(WLUpgradeEngine.java:133)
    ... 18 more

Total time: 3 seconds
]
Error: Sorry an error has occurred. Please check the stack above for details.

I have tried to cleanup the project, remove what was already deployed, revert my changes to what I had when I succeeded to deploy, re-install mfp cli, but I still have the issue.

Any hint on what I could do to get rid of the exception?

Thanks!

1
what is your worklight server version?Nazmul Hasan
I am doing a local push, so the version is same as CLI: 7.1.0.00.20151227-1730Etienne N

1 Answers

0
votes

The failure is coming from the upgrader code path, as if something is missing in the adapter files.

My suggestion is to create a new adapter and see that it gets deployed. Then, start adding back code. Maybe you will find the failing part.