Hybrid FW: Encountering error whilst running the script
Hybrid FW: Encountering error whilst running the script
M
Posted on 21/12/2016
Hi,
I had created the framework based on video tutorials, but then I added the UTIL files for sending email, zipping and build.xml. I also changed the path of the jars into my project. I had downloaded the latest POI jar and it started "setCellValue is deprecated" error for the below code in Xls_Reader file, i downgraded back to older version. ################### if(cell.getCellType()==Cell.CELL_TYPE_STRING) return cell.getStringCellValue(); else if(cell.getCellType()==Cell.CELL_TYPE_NUMERIC || cell.getCellType()==Cell.CELL_TYPE_FORMULA ){ ###################
But now i am encountering the below error, please help
Error DOMSource cannot be processed: check that saxon8-dom.jar is on the classpath Error DOMSource cannot be processed: check that saxon8-dom.jar is on the classpath Error DOMSource cannot be processed: check that saxon8-dom.jar is on the classpath org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save: an error occurs while saving the package : The part /docProps/core.xml fail to be saved in the stream with marshaller org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@459e9125 at org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:502) at org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1467) at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:217) at com.automation.xls.read.Xls_Reader.addColumn(Xls_Reader.java:370) at com.automation.test.DriverScript.createXLSReport(DriverScript.java:215) at com.automation.test.DriverScript.start(DriverScript.java:144) at com.automation.test.DriverScript.main(DriverScript.java:76) Caused by: org.apache.poi.openxml4j.exceptions.OpenXML4JException: The part /docProps/core.xml fail to be saved in the stream with marshaller org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@459e9125 at org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:482) ... 6 more java.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at java.util.zip.ZipInputStream.read(ZipInputStream.java:194) at org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream.read(ZipSecureFile.java:214) at java.io.FilterInputStream.read(FilterInputStream.java:107) at org.apache.poi.openxml4j.util.ZipInputStreamZipEntrySource$FakeZipEntry.<init>(ZipInputStreamZipEntrySource.java:130) at org.apache.poi.openxml4j.util.ZipInputStreamZipEntrySource.<init>(ZipInputStreamZipEntrySource.java:57) at org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:93) at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:278) at org.apache.poi.util.PackageHelper.open(PackageHelper.java:37) at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:274) at com.automation.xls.read.Xls_Reader.setCellData(Xls_Reader.java:182) at com.automation.test.DriverScript.createXLSReport(DriverScript.java:233) at com.automation.test.DriverScript.start(DriverScript.java:144) at com.automation.test.DriverScript.main(DriverScript.java:76)
M
Replied on 21/12/2016
try this solution. http://stackoverflow.com/questions/15290444/running-testng-test-case-from-ant-giving-domsource-cannot-be-proccesed