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/07/31 12:11:30 UTC

[Bug 62587] New: repeated call to XSLFSheet.removeShape leads to java.lang.IllegalArgumentException: partName

https://bz.apache.org/bugzilla/show_bug.cgi?id=62587

            Bug ID: 62587
           Summary: repeated call to XSLFSheet.removeShape leads to
                    java.lang.IllegalArgumentException: partName
           Product: POI
           Version: 3.17-FINAL
          Hardware: Macintosh
            Status: NEW
          Severity: major
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: florian.sc.schneider@bmw.de
  Target Milestone: ---

Created attachment 36060
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36060&action=edit
Stacktrace of reported error

I am having a Slide Show with 1 Slides, containing exactly one picture shape
pointing to one EMF embedded into the slide.

In code, I duplicate the slide n times, and then try to "replace" that picture
shape by creating a new picture shape with the same dimensions and removing the
old picture shape.

POI then crashes on the second call to 
org.apache.poi.xslf.usermodel.XSLFSheet.removePictureRelation(XSLFSheet.java:649)

See full stack trace attached.

-- 
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 62587] repeated call to XSLFSheet.removeShape leads to java.lang.IllegalArgumentException: partName

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62587

Andreas Beeker <ki...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Andreas Beeker <ki...@apache.org> ---
Fix via r1837839

-- 
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 62587] repeated call to XSLFSheet.removeShape leads to java.lang.IllegalArgumentException: partName

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62587

--- Comment #1 from Andreas Beeker <ki...@apache.org> ---
Created attachment 36087
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36087&action=edit
JUnit causing the problem / workaround

Find attached a short test case and a workaround

The error is based on missing relationships across slides

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