You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2018/11/21 19:59:00 UTC
[Bug 62937] New: Can't Load Workbook on Windows
https://bz.apache.org/bugzilla/show_bug.cgi?id=62937
Bug ID: 62937
Summary: Can't Load Workbook on Windows
Product: POI
Version: 4.0.0-FINAL
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: POI Overall
Assignee: dev@poi.apache.org
Reporter: skyler@alamon.com
Target Milestone: ---
I'm trying to deliver a jar using POI 4.0 to a coworker who's running on
Windows 10. I can load an excel file without any errors. However, on Windows
10, I get the following error:
-----
java.io.IOException: java.lang.NoSuchMethodException:
org.apache.poi.xssf.usermodel.XSSFWorkbookFactory.createWorkbook(sun.awt.shell.Win32ShellFolder2,
boolean)
-----
The error occurs when I use the following line:
-----
workbook = WorkbookFactory.create(file,null,true);
-----
Any ideas on how to get the workbook to load in Windows 10?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 62937] Can't Load Workbook on Windows
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62937
TobyPeepsMagoo <sk...@alamon.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from TobyPeepsMagoo <sk...@alamon.com> ---
Fixed the issue by instantiating an XSSFWorkbook instead of using the
WorkbookFactory
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 62937] Can't Load Workbook on Windows
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62937
Andreas Beeker <ki...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
--- Comment #2 from Andreas Beeker <ki...@apache.org> ---
Actually your imports are wrong ... instead of
"sun.awt.shell.Win32ShellFolder2" you would have needed to import
"java.io.File".
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org