poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54407] New: XmlValueDisconnectedException when merging slides from 2 slideshows
Date Fri, 11 Jan 2013 16:08:14 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54407

            Bug ID: 54407
           Summary: XmlValueDisconnectedException when merging slides from
                    2 slideshows
           Product: POI
           Version: 3.9
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSLF
          Assignee: dev@poi.apache.org
          Reporter: joro@liquidsoft.eu
    Classification: Unclassified

When I do the suggested code:

XSLFSlide srcSlide = slides[Integer.parseInt(args[2])];
XSLFSlideLayout src_sl = srcSlide.getSlideLayout();
XSLFSlideMaster src_sm = srcSlide.getSlideMaster();

XSLFSlide newSlide = ppto.createSlide(); 
XSLFSlideLayout new_sl = newSlide.getSlideLayout(); 
new_sl.importContent(src_sl); 

XSLFSlideMaster new_sm = newSlide.getSlideMaster();
new_sm.importContent(src_sm);

newSlide.importContent(srcSlide);

I get this exception:

Exception in thread "main"
org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
at
org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1213)
at
org.openxmlformats.schemas.drawingml.x2006.main.impl.CTShapePropertiesImpl.getLn(Unknown
Source)
at
org.apache.poi.xslf.usermodel.RenderableShape$5.fetch(RenderableShape.java:401)
at
org.apache.poi.xslf.usermodel.XSLFSimpleShape.fetchShapeProperty(XSLFSimpleShape.java:602)
at
org.apache.poi.xslf.usermodel.RenderableShape.getLinePaint(RenderableShape.java:417)
at
org.apache.poi.xslf.usermodel.XSLFSimpleShape.getLineColor(XSLFSimpleShape.java:288)
at
org.apache.poi.xslf.usermodel.XSLFSimpleShape.copy(XSLFSimpleShape.java:663)
at org.apache.poi.xslf.usermodel.XSLFTextShape.copy(XSLFTextShape.java:561)
at org.apache.poi.xslf.usermodel.XSLFSheet.importContent(XSLFSheet.java:310)
at org.apache.poi.xslf.usermodel.XSLFSlide.importContent(XSLFSlide.java:226)

If I run it only with slides from the first slideshow, it works fine. Although
if I try merging it with both PPTX files, it crashes with that exception.

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