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 2013/05/09 23:52:40 UTC

[Bug 49940] Sometimes writing twice to a .xlsx file throws org.apache.xmlbeans.impl.values.XmlValueDisconnectedException

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

--- Comment #12 from j.aden54@gmail.com ---
Not sure about my analysis, but I got that error when I tried to duplicate a
Row. I did createRow(rowIndex+1). By that, I meant "insert a Row at index
rowIndex+1". After that I had to clone the value of each cell from the Row at
rowIndex to the Row at rowIndex+1. However I already had a Row at rowIndex+1
(before the createRow), and I think that the previous cells on this Row get
lost and don't point on anything anymore.

If I am correct, then it would not be a problem in the XMLBeans library. How
does the Apache Poi library handle the creation of a Row (or a Cell) if this
Row/Cell already exists ? Does it overwrite it ? If yes, the previous Row/Cell
object becomes indeed obsolete (which is freaking problematic, since each
createRow/createCell can make great damage)

Again, that's just a guess, and I have to dig a little further in my code ...

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