Bug 65418

Summary: CharToByteConverterClass not found!
Product: POI Reporter: seantyh118
Component: XSSFAssignee: POI Developers List <dev>
Status: RESOLVED INFORMATIONPROVIDED    
Severity: normal    
Priority: P2    
Version: 5.0.0-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description seantyh118 2021-07-01 10:18:53 UTC
I imported the latest Apache POI jar files as dependency in my code. I am using this to write xlsx files. This throws no errors, however, I am now importing a colleague's module as a dependency in IntelliJ which includes a dependency dom4j-1.5.jar. Upon running my code after the new import, I am getting the following error: https://stackoverflow.com/q/68190406/16034206 

The error has 2 stages in the linked stackoverflow post:
1: unable to find CharToByteConverterClass
2: not supported setting property http://xml.org/sax/properties/lexical-handler

it is also noted that I am using the EncryptionInfo and Encryptor in the method which calls:

        POIFSFileSystem fs = new POIFSFileSystem();
        EncryptionInfo info = new EncryptionInfo(EncryptionMode.standard);
        Encryptor enc = info.getEncryptor();
        enc.confirmPassword(password);

        XSSFWorkbook workbook = new XSSFWorkbook();
        XSSFSheet sheet = workbook.createSheet(sid);
        int rowCnt = 0;

        //write files here

        OutputStream encos = enc.getDataStream(fs);
        workbook.write(encos);
        workbook.close();
        encos.close(); //
Comment 1 PJ Fanning 2021-10-08 16:01:53 UTC
https://stackoverflow.com/q/68190406/16034206 was answered