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 2016/08/24 07:19:26 UTC
[Bug 60036] New: SXSSFSheet.autoSizeColumn is throwing
IllegalStateException
https://bz.apache.org/bugzilla/show_bug.cgi?id=60036
Bug ID: 60036
Summary: SXSSFSheet.autoSizeColumn is throwing
IllegalStateException
Product: POI
Version: 3.14-FINAL
Hardware: PC
Status: NEW
Severity: blocker
Priority: P2
Component: SXSSF
Assignee: dev@poi.apache.org
Reporter: rmishra@ptc.com
Hi,
I am using POI-3.14 for creating xlsm file. while calling sheet.autoSizeColumn
I am getting below exception. It used to work with earlier version. This issue
has blocked our one of the critical functionality. Can you please look into it
or it is already fixed in later release Please let us know.
Exception
-----------
Caused by: java.lang.IllegalStateException: Could not auto-size column. Make
sure the column was tracked prior to auto-sizing the column.
at
org.apache.poi.xssf.streaming.SXSSFSheet.autoSizeColumn(SXSSFSheet.java:1560)
at
org.apache.poi.xssf.streaming.SXSSFSheet.autoSizeColumn(SXSSFSheet.java:1514)
--
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 60036] SXSSFSheet.autoSizeColumn is throwing
IllegalStateException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60036
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
OS| |All
--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
The exception tells you what you need to do to avoid it - what happens when you
do what it indicates?
--
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 60036] SXSSFSheet.autoSizeColumn is throwing
IllegalStateException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60036
--- Comment #2 from Ranjay Mishra <rm...@ptc.com> ---
Thanks for you quick response!
What does it mean by "tracked prior to auto-sizing the column"?
Do we need to call any API on sheet prior to calling sheet.autoSizeColumn ?
--
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 60036] SXSSFSheet.autoSizeColumn is throwing
IllegalStateException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60036
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #3 from Nick Burch <ap...@gagravarr.org> ---
The explanation and fix is explained in the SXSSF javadocs for the method
you're using:
https://poi.apache.org/apidocs/org/apache/poi/xssf/streaming/SXSSFSheet.html#autoSizeColumn(int)
--
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