Search code examples
excelspring-bootjunitapache-poijava-11

Apache POI issue in jenkins with open JDK11. Able to build and run the code in local but it is failing in Jenkins


SXSSFWorkbook sxssfWorkbook = new SXSSFWorkbook(100); It'snot creating work book in Jenkins server with open jdk 11 there is no exception thrown. I think it's a silent exception in jenkins. But It is working in local IDE.

Updated the POI version to 4.0.1


Solution

  • Faced the same issue while upgrading java to java 11.

    Used the below class and removed the autoSize() invocations.

    Workbook wb = new XSSFWorkbook();
    

    Working as expected now.