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 2015/03/27 18:51:09 UTC
[Bug 57770] New: cloneSheet(...) takes forever
https://bz.apache.org/bugzilla/show_bug.cgi?id=57770
Bug ID: 57770
Summary: cloneSheet(...) takes forever
Product: POI
Version: 3.12-dev
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: dev@poi.apache.org
Reporter: mshlayen@smart-solution.com
Created attachment 32617
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32617&action=edit
Java code
The method cloneSheet(...) of the class XSSFWorkbook takes forever...
--
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 57770] cloneSheet(...) takes forever
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57770
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Nick Burch <ap...@gagravarr.org> ---
Your attached code will never work. Your problem is you keep cloning a sheet
onto the end of a workbook, then keep looping until you have seen all sheets
which you neever will as you keep adding new ones
Additionally, you cannot clone a sheet onto another workbook, which is what I
think you're trying to do.
--
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 57770] cloneSheet(...) takes forever
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57770
Michael <ms...@smart-solution.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |FIXED
--- Comment #5 from Michael <ms...@smart-solution.com> ---
Is any convenient way to copy a sheet from one workbook to another? Or I have
to do it manually, row-by-row, ...?
--
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 57770] cloneSheet(...) takes forever
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57770
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
--- Comment #6 from Nick Burch <ap...@gagravarr.org> ---
Please ask use questions on the user list -
http://poi.apache.org/mailinglists.html
--
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 57770] cloneSheet(...) takes forever
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57770
--- Comment #2 from Michael <ms...@smart-solution.com> ---
Created attachment 32626
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32626&action=edit
Test Excel 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
[Bug 57770] cloneSheet(...) takes forever
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57770
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
OS| |All
--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Is this for all sheets, or just certain ones? And if it's just certain ones,
what kinds of things on the sheet make it slow?
Additionally, can you try using a profiler to see where the time is going?
--
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 57770] cloneSheet(...) takes forever
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57770
Michael <ms...@smart-solution.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #3 from Michael <ms...@smart-solution.com> ---
I attached the file I was trying to copy. It has just one small sheet with
different styling.
When I run my program (trying to copy sheet from one workbook to another), I
shut down java process after about 20 minutes of visible inactivity. Few
minutes later I had to cold restart my computer because the entire RAM (16Gb)
was in use and computer was just "frosen".
Hope this will help.
--
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