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 ,求高手帮忙分析下,越详细越好,非常感谢!!!
[Book]Reference Book
提取码:2022
Reference Book
Java
- Head First Java(第二版)_中文版
- Think in Java(第四版)_中文版
- 实用JAVA教程:基于BLUEJ的对象优先方法(第3版)_翁恺
- Java并发编程实战
- Java并发编程的艺术
- Java核心技术卷I - 基础知识第 10 版
- 深入理解Java虚拟机JVM高级特性与最佳实践第3版(周志朋)
C / C++
Programming Specification
以上是关于jxl.Workbook book = Workbook.getWorkbook() 报错的主要内容,如果未能解决你的问题,请参考以下文章