poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59806] CTBarChart org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException
Date Wed, 06 Jul 2016 10:30:43 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59806

--- Comment #2 from Javen O'Neal <onealj@apache.org> ---
Created attachment 34015
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34015&action=edit
simplified unit test

I cut your example down to the attached unit test.

The source of the problem is in getChartFromTitle. You're opening the
slideshow, creating an XSLFChart object, and closing the slideshow. Then you're
passing the XSLFChart object that belongs to the closed slideshow back to
updateBarChartTemplate.

Naturally, once you've closed a resource, any subsequent operations performed
on that resource are likely to fail.

Perhaps we could give a more informative error message here, like "could not
access package part output stream because the underlying document has been
closed.

-- 
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


Mime
View raw message