+1 vote
99730Worker-1: Import databaseERRORorg.openlca.app.AppFailed to run Import database
org.zeroturnaround.zip.ZipException: java.util.zip.ZipException: error in opening zip file
     at org.zeroturnaround.zip.ZipExceptionUtil.rethrow(ZipExceptionUtil.java:11)
     at org.zeroturnaround.zip.ZipUtil.iterate(ZipUtil.java:384)
     at org.zeroturnaround.zip.ZipUtil.unpack(ZipUtil.java:772)
     at org.zeroturnaround.zip.ZipUtil.unpack(ZipUtil.java:755)
     at org.openlca.app.navigation.actions.db.DbImportAction.lambda$0(DbImportAction.java:71)
     at org.openlca.app.WrappedJob.run(WrappedJob.java:30)
     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
    Caused by: java.util.zip.ZipException: error in opening zip file
     at java.util.zip.ZipFile.open(Native Method)
     at java.util.zip.ZipFile.<init>(ZipFile.java:225)
     at java.util.zip.ZipFile.<init>(ZipFile.java:155)
     at java.util.zip.ZipFile.<init>(ZipFile.java:169)
     at org.zeroturnaround.zip.ZipUtil.iterate(ZipUtil.java:362)
     ... 5 more

It's a backup from other computer. It was opening earlier but I have to clean out everything and now trying to restore it and this error comes up.

Any leads would be appreciated.


in openLCA by (180 points)

2 Answers

0 votes
by (71.8k points)

Hm, the file could be corrupt?

I do not understand

It was opening earlier but I have to clean out everything

- are you saying you changed the zolca file?

by (180 points)
Thank you for your response.

It seems like file is corrupted, but I have not changed the extension type. It is still zolca file.
I don't understand how it can be corrupted.
0 votes
by (11.3k points)
edited by

A zolca file is a plain zip file. To check if it is corrupted you can try to open it as a zip file (e.g. using 7zip). You can also manually extract the zolca archive in the `~/openLCA-1.4-data/databases/<database name>` folder and add the corresponding entry in the  `~/openLCA-1.4-data/databases.json` file (just check how it is done for the other databases in that folder; but it is good idea to backup these files first; also, do this when openLCA is closed).

edit: I opened an issue for this: https://github.com/GreenDelta/olca-app/issues/106