Android Question Zip/Unzip Library error ?

Arnaud

Active Member
Licensed User
Longtime User
Hello,

I have published an APP with Zip/Unzip library without problem since 2 year.
All worked fine, but since Android Nougat 7.1.1, I have an user who has a problem with APP.

He has this message:
"java.lang.illegalargumentexception MALFORMED[1]"

I have no problem with the other Android versions.
Do you think the problem is related to Android Nougat 7.1.1 with the Unzip library?

Unfortunately, I have no system with Android 7.1.1 for test my APP.

Thank you for you help.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It failed on the first run with this error:

PackageAdded: package:b4a.TrackManager
bg.zip
br.zip
ch.zip
de.zip
code_divers_decompression_de_la_database (java line: 81)
java.lang.IllegalArgumentException: MALFORMED[1]
at java.util.zip.ZipCoder.toString(ZipCoder.java:65)
at java.util.zip.ZipFile.getZipEntry(ZipFile.java:548)
at java.util.zip.ZipFile.-wrap2(ZipFile.java)
at java.util.zip.ZipFile$1.nextElement(ZipFile.java:530)
at java.util.zip.ZipFile$1.nextElement(ZipFile.java:508)
at com.AB.ABZipUnzip.ABZipUnzip.ABListZip(ABZipUnzip.java:181)
at b4a.TrackManager.code_divers._decompression_de_la_database(code_divers.java:81)
at b4a.TrackManager.main._activity_create(main.java:410)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.TrackManager.main.afterFirstLayout(main.java:102)
at b4a.TrackManager.main.access$000(main.java:17)
at b4a.TrackManager.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
java.lang.IllegalArgumentException: MALFORMED[1]


I'm not sure what caused this error, however I recommend you to switch to the Archiver library. It works properly on Android 7.
 
Upvote 0

Arnaud

Active Member
Licensed User
Longtime User
Ok thank you very much Erel, my client has the same error.
I check the file de.zip but I think I have a idea.

I change too my library with Archiver library.
Can I send you my new APP after for you can test please?
 
Upvote 0

Arnaud

Active Member
Licensed User
Longtime User
Thank you.
I think I have found the error.
In the file "de.zip", I have a file "NÜRBERGRING.track"
The character "Ü" seems to be the problem. I have change it in classic character "U".

I have switched too to the Archiver library.

I send you the new APK by mail.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Arnaud

Active Member
Licensed User
Longtime User
@DonManfred, yes, sorry it is Nürburgring and no Nürbergring.

Thank you for your help Erel, I send my APP , then I will publish a new version on Google Play.
 
Upvote 0

MMORETTI964

Member
Licensed User
Longtime User
For anyone who needs unzipping filenames with special characters (made from Windows / Winrar-Winzip...)
SOLVED: Use ArchiverPlus (from ProBundle by Informatix) it handles correctly all special chars in filename while unzipping files (zipped with Windows).
 
Upvote 0
Top