https://issues.apache.org/bugzilla/show_bug.cgi?id=46662

           Summary: Writing a workbook twice throws
                    XmlValueDisconnectedException
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=23224)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23224)
Repro file for the issue

Read a xlsx file. Write the same workbook to two different file. Closing
FileOutputStream after second write throws XmlValueDisconnectedException.

org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
        at
org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1213)
        at
org.apache.xmlbeans.impl.values.XmlObjectBase.newCursor(XmlObjectBase.java:243)
        at
org.apache.xmlbeans.impl.values.XmlComplexContentImpl.arraySetterHelper(XmlComplexConten
tImpl.java:1073)
        at
org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTFontsImpl.setFontArray(Unknow
n Source)
        at org.apache.poi.xssf.model.StylesTable.writeTo(StylesTable.java:323)
        at org.apache.poi.xssf.model.StylesTable.commit(StylesTable.java:381)
        at
org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:171)
        at
org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:173)
        at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:199)
        at com.mytest.xssftest.crxlsfile(xssftest.java:39)
        at com.mytest.xssftest.main(xssftest.java:24)

Tested from latest svn trunk.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to