https://bz.apache.org/bugzilla/show_bug.cgi?id=59733
Bug ID: 59733 Summary: shiftRows() causes org.apache.xmlbeans.impl.values.XmlValueDisconnectedEx ception Product: POI Version: unspecified Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P2 Component: XSSF Assignee: dev@poi.apache.org Reporter: dattu...@gmail.com Problem can be reproduced by following these steps. 1] Shift Row2 to Row0 2] Now try shifting Row3 to Row0 you get org.apache.xmlbeans.impl.values.XmlValueDisconnectedException Here is piece of code to reproduce issue. This issue happens with 3.15-beta as well. Workbook workbook = new XSSFWorkbook(); Sheet sheet = workbook.createSheet("mySheet"); Row row = workbook.getSheet("mySheet").createRow(0); row.createCell(0).setCellValue(1.0); row.createCell(1).setCellValue(2.0); // row = workbook.getSheet("mySheet").createRow(1); row.createCell(0).setCellValue(3.0); row.createCell(1).setCellValue(4.0); row = workbook.getSheet("mySheet").createRow(2); row.createCell(0).setCellValue(5.0); row.createCell(1).setCellValue(6.0); row = workbook.getSheet("mySheet").createRow(3); row.createCell(0).setCellValue(7.0); row.createCell(1).setCellValue(8.0); row = workbook.getSheet("mySheet").createRow(4); row.createCell(0).setCellValue(9.0); row.createCell(1).setCellValue(10.0); sheet.shiftRows(2, 2, -2); sheet.shiftRows(3, 3, -3); -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org