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

           Summary: Sometimes writing twice to a .xlsx file throws
                    org.apache.xmlbeans.impl.values.XmlValueDisconnectedEx
                    ception
           Product: POI
           Version: 3.6
          Platform: Macintosh
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: XSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


I am trying to read and write to a .xlsx file from two separate Java methods.
The first write goes through fine, at the second write
(workbook.write(fileoutputstream) throws the error:
org.apache.xmlbeans.impl.values.XmlValueDisconnectedException

Stacktrace:

Exception in thread "main"
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(XmlComplexContentImpl.java:1073)
    at
org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTFontsImpl.setFontArray(Unknown
Source)
    at org.apache.poi.xssf.model.StylesTable.writeTo(StylesTable.java:319)
    at org.apache.poi.xssf.model.StylesTable.commit(StylesTable.java:377)
    at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:177)
    at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:181)
    at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:214)
    at
attendancerecorder.code.StudentRosterTest.checkOutStudent(StudentRosterTest.java:230)
    at
attendancerecorder.code.AttendanceRecorderView.main(AttendanceRecorderView.java:46)

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