I am working on a java application that reads a file template.ods, and fills it in with an array of Objects using JopenDocument. Based on the JopenDocument documentation, I should get the TableModel from the Sheet, and then use the method setValueAt(value, rowIndex, columnIndex) to modify it, but once I do that, an IndexOutofBoundsException is triggered, Here is my method: