Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导出异常: workbook.parse()中初始化BOFRecord时内部发生数组下标越界 #1

Open
MephistoLynn opened this issue Jul 24, 2019 · 1 comment

Comments

@MephistoLynn
Copy link

MephistoLynn commented Jul 24, 2019

@DmrfCoder
W/System.err: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
W/System.err: at jxl.read.biff.BOFRecord.(BOFRecord.java:81)
at jxl.read.biff.WorkbookParser.parse(WorkbookParser.java:548)

BOFRecord(Record t) {
    super(t);
    byte[] data = this.getRecord().getData();
    this.version = IntegerHelper.getInt(data[0], data[1]);  /**在此处data数组发生异常,其为空数组**/
    this.substreamType = IntegerHelper.getInt(data[2], data[3]);
} 
@MephistoLynn
Copy link
Author

MephistoLynn commented Jul 24, 2019

问题已得到解决

该异常只发生在,你写入到同目录,同文件名时才发生。多次写入需要手动进行处理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant