Java. lang. IllegalArgumentException: MALFORMED, malformed

Source: Internet
Author: User

Java. lang. IllegalArgumentException: MALFORMED, malformed
Error details:

SLF4J: Failed to load class "org. slf4j. impl. StaticLoggerBinder ".

SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java. lang. IllegalArgumentException: MALFORMED
At java.util.zip. ZipCoder. toString (ZipCoder. java: 58)
At java.util.zip. ZipFile. getZipEntry (ZIP file. java: 529)
At java.util.zip. ZipFile. access $900 (ZipFile. java: 56)
At java.util.zip. ZipFile $1. nextElement (ZIP file. java: 511)
At java.util.zip. ZipFile $1. nextElement (ZIP file. java: 481)
At org.zeroturnaround.zip. ZipUtil. iterate (ZipUtil. java: 366)
At org.zeroturnaround.zip. ZipUtil. unpack (maid. java: 772)
At org.zeroturnaround.zip. ZipUtil. unpack (maid. java: 755)

At com. webthk. map. utils. ImageCutUtil. main (ImageCutUtil. java: 29)


Solution:

Replace the original decompression plug-in with the decompression method based on org. apache. ant.

In addition, extract rar can be solved with java-unrar-0.3.jar (refer to the http://blog.csdn.net/zheng2008hua/article/details/6998345)

(Reference http://www.blogjava.net/icewee/archive/2012/05/26/379267.html)

Cause:

There are two possibilities: Change "\" to "\" for java Path Problems.

This is because there is a problem with format conversion in java.util.zip, and there is a character encoding problem in the jdk zip. In windows, the default encoding for compression is GBK. (You can modify the jdk to solve this problem. The technology is too difficult and you have not tested it)



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.