Menu

#14 Confusing error message: "Archive file can't be opened with none of the registered codecs"

15.09-2.01beta
closed-fixed
nobody
None
5
2020-01-07
2013-04-29
Trejkaz
No

This error message is confusing me. If it can't be opened using no codecs, maybe it will work if you try using some codecs.

Discussion

  • Boris Brodski

    Boris Brodski - 2013-04-29

    This message means, that the archive can't be opened. The file you try to open could be either broken or not an archive at all.

    If you pass "null" for ArchiveFormat, 7-Zip-JBinding tries all the available archive formats. If non of they can recognize the input as an archive, the exception

    Archive file can't be opened with none of the registered codecs
    

    get thrown.

    So, what do you mean exactly by issuing the ticket?
    Do you want to improve the error message?
    Or do you want to add missing archive formats?

     
  • Trejkaz

    Trejkaz - 2013-04-29

    Replacing "none" with "any" would be good. :)

     
  • Boris Brodski

    Boris Brodski - 2016-02-26
    • status: open --> accepted
    • Group: 4.65-1.06rc-extr-only --> 15.09
     
  • Boris Brodski

    Boris Brodski - 2016-02-26

    Fixed for 2.01

     
  • Boris Brodski

    Boris Brodski - 2016-02-26
    • status: accepted --> closed-fixed
     
  • Lavanya

    Lavanya - 2018-07-30

    Hi,
    I faced below exception in extracting 7zip file which is encrypted with password.

    Exceptionnet.sf.sevenzipjbinding.SevenZipException: Archive file can't be opened with none of the registered codecs

    I have used sevenzipjbinding 9.20-2.00beta version. Please provide me the solution.
    Thanks in Advance

     
  • Boris Brodski

    Boris Brodski - 2018-07-30

    Hello Lavanya,

    couple of questions:

    1. Are you sure, that the password is correct?
    2. Are you able to open the archive with the corresponding version of 7-zip 9.20?

    You may try one of the newer alpha releases found here: https://sourceforge.net/projects/sevenzipjbind/files/OldFiles/

    Cheers,
    Boris

     
  • Lavanya

    Lavanya - 2018-07-31

    Hi Boris,
    Thanks for your quick response

    Yes, the password is correct
    i could able to open the same file with the version of 7-zip 9.20

    Now, i have tried the newer alpha releases as you mentioned. Still i am getting the same exception

     
  • Boris Brodski

    Boris Brodski - 2018-08-06

    Ok, in this case I have to see your java code.

    It would be even better, if you can provide me with a small snippet of your code together with the archive, that I can run and see the error coming.

     
  • BullyWiiPlaza

    BullyWiiPlaza - 2020-01-06

    I still have 1 - 2 users which run into this bug. The password is correct. Any chance of an updated maven dependency to become available? I'm currently using the following one from 2015:
    https://mvnrepository.com/artifact/net.sf.sevenzipjbinding/sevenzipjbinding

    Thank you.

     

    Last edit: BullyWiiPlaza 2020-01-06
    • Boris Brodski

      Boris Brodski - 2020-01-07

      Hello,

      Yes, I plan to release a new version soon. But I don't think it will help you.

      You may try the extensively tested fresh build here: https://sourceforge.net/projects/sevenzipjbind/files/OldFiles/JDownloader-16.02-2.01beta-try2/

      If it works well, just use this version or wait for an official release.
      If it don't solve your issue, please, post a reproducable example (your java-code + archive).

      Please note, that I can only provide functionality, that is present in 7-Zip. If the corresponding version of 7-Zip (e.g. 16.02) have the same issue, you will have to create a ticket for the 7-Zip itself.

      Cheers,
      Boris Brodski

       

Log in to post a comment.

Auth0 Logo