Administrator

Hybrid App Import Reports Error

Problem

An attempt to import a hybrid app using Management Cockpit reports the following error:
2014 03 21 16:57:54#0-700#ERROR#com.sap.mobile.platform.server.lcmservices.webapps.admin.service.impl.AppServiceImpl##anonymous#http-bio-8084-exec-7###Failed to import 'UI5Demo': Uploaded archive does not contain any entries. com.sap.mobile.platform.server.admin.api.kapsel.AppServiceException: Uploaded archive does not contain any entries.
   at com.sap.mobile.platform.server.lcmservices.webapps.admin.service.impl.AppServiceImpl.create(AppServiceImpl.java:410)
   at com.sap.mobile.platform.server.lcmservices.webapps.admin.service.impl.AppServiceImpl.importApplication(AppServiceImpl.java:1195)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...

Workaround

The export process only exports the current version of the selected hybrid app. It will not export any versions that are in the "new" state. If you export an application with no current version, the export process will result in an empty content file. Attempting to import this file results in the error message.
  1. In Management Cockpit, select Applications.
  2. Select the existing hybrid app. The application tabs appear.
  3. Select App Specific Settings.
  4. If you have not done so, upload and deploy the hybrid app.
  5. Save your changes, and close the dialog.
  6. Select Start of the navigation path Applications Next navigation step Applications End of the navigation path, select the hybrid app, and click Export. The application should export successfully, and you should be able to import it without error.