jxl.Workbook book = Workbook.getWorkbook() 报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jxl.Workbook book = Workbook.getWorkbook() 报错相关的知识,希望对你有一定的参考价值。

private List parseData(HttpServletRequest request)
throws FileUploadException, IOException, BiffException
DiskFileUpload upload = new DiskFileUpload();
upload.setHeaderEncoding("UTF-8");
upload.setSizeThreshold(1024 * 4);
List items = upload.parseRequest(request);
Iterator it = items.iterator();
List retList = null;
while (it.hasNext())
FileItem item = (FileItem) it.next();
// 是否是文件及文件是否为空
if (item.isFormField() || "".equals(item.getName()))
continue;
InputStream is = item.getInputStream();
jxl.Workbook book = Workbook.getWorkbook(is);
jxl.Sheet sheet = book.getSheet(0);
执行代码 :jxl.Workbook book = Workbook.getWorkbook(is);
报错,java.lang.OutOfMemoryError: Java heap space ,求高手帮忙分析下,越详细越好,非常感谢!!!

参考技术A excle版本过高或者未关闭编辑软件

[Book]Reference Book

以上是关于jxl.Workbook book = Workbook.getWorkbook() 报错的主要内容,如果未能解决你的问题,请参考以下文章

SQlite数据库信息怎么转成excel文件?

期中测试

openpyxl 操作学习

openpyxl 操作学习

如何在线程对象中调用多态方法?

Mistral 工作流组件之一 概述