https://issues.apache.org/bugzilla/show_bug.cgi?id=51585
Bug #: 51585
Summary: WorkbookFactory.create() hangs when creating a
workbook
Product: POI
Version: 3.8-dev
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 27331
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27331
Example xlsx file to reproduce the hang
For a particular xlsx file, the WorkbookFactory.create() call hangs. I have
waited an hour and the call still did not return. Please see the code below and
attached xlsx file. I am not sure where the hang comes from or why it is so
slow.
package org.apache.poi.ss.examples;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.*;
import java.io.FileInputStream;
import java.io.IOException;
public class TestWorkbookFactoryCreate {
public static void main(String[] args) throws IOException, Exception {
FileInputStream fileIn = null;
try
{
fileIn = new FileInputStream("C:/workspace/TestHang.xlsx");
Workbook wb = WorkbookFactory.create(fileIn);
System.out.println("Workbook created");
} finally {
if (fileIn != null)
fileIn.close();
}
}
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]