When I launch at the same time two threads, for filling of ods of 
documents, in the second thread in attempt of opening of the document, we 
receive Exception:

java.lang.IllegalStateException: table-row duplicate family
at org.jopendocument.dom.Style.register(Style.java:117)
at org.jopendocument.dom.Style.registerAllVersions(Style.java:109)
at org.jopendocument.dom.spreadsheet.RowStyle.registerDesc(RowStyle.java:41)
at org.jopendocument.dom.Style.loadDescs(Style.java:77)
at org.jopendocument.dom.Style.getStyleDesc(Style.java:246)
at org.jopendocument.dom.Style.getStyleDesc(Style.java:238)
at org.jopendocument.dom.StyledNode.getStyleDesc(StyledNode.java:32)
at 
org.jopendocument.dom.ImmutableDocStyledNode.<init>(ImmutableDocStyledNode.java:47)
at 
org.jopendocument.dom.spreadsheet.TableCalcNode.<init>(TableCalcNode.java:37)
at org.jopendocument.dom.spreadsheet.Table.<init>(Table.java:89)
at org.jopendocument.dom.spreadsheet.Sheet.<init>(Sheet.java:28)
at 
org.jopendocument.dom.spreadsheet.SpreadSheet.getSheet(SpreadSheet.java:308)
at 
org.jopendocument.dom.spreadsheet.SpreadSheet.getSheet(SpreadSheet.java:276)
at JODCalcDocument.openDocument(JODCalcDocument.java:33)

Code:
public void openDocument(String docURL, String sPath) throws IOException {
        sRuntimePath = sPath;

        File file = new File(docURL);
        Spreadsheet = SpreadSheet.createFromFile(file).getSheet(0);
}

The library can work multithread?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"jOpenDocument" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jopendocument+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to