Created attachment 34253 [details] Data Driven Testing Executing a program in Eclipse is displaying an exception on the console: "Exception in thread "main" org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception" Refer to the attached .java file.
Can you provide a stack trace to know where the exception is coming from? You might need to run this in debug mode with breakpoints to figure out which line is causing the error. My guess is that it's breaking at wb.write(fos), since you never closed your file input stream and in Windows opening a file gets an exclusive lock until the resource is closed. Some suggestions: * Open with a File instead of a FileInputStream * Write to a different file than you read (and back up the original file in case you accidentally mangle it)
No update on the requested information for some time, therefore I am closing this as INVALID for now, please reopen with more information if this is still a problem for you.