Java.io.IOException:Invalid header signature; Read 0XE011BDBFEFBDBFEF, expected 0xe11ab1a1e011cfd0

Source: Internet
Author: User

According to the online explanation, this indicates that the POI read Excel (97-2003) When the header file is damaged, the normal way: can open the words, save a bit can, really do not directly create a content of the same

I environment: Eclipse deployment to tomcat,eclipse under the source code is correct, as long as the release to Tomcat is the file corruption, previously good

Reason: Using Maven, and in order to configure profile, using Resource,resource he would pass the file under its configured path and replace it with the value of the variable defined by the POM.

Excel does not have the problem of substitution variables, but should be checked, it is expected to open the process of problems, specifically did not delve into, the internet said so.

Scenario: Set the Excel directory or Excel file to not let him check, the configuration of the Pom, as follows:

This will exclude the path of Excel, or a later comment can also

Java.io.IOException:Invalid header signature; Read 0XE011BDBFEFBDBFEF, expected 0xe11ab1a1e011cfd0

Related Article

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.