Bug 65418 - CharToByteConverterClass not found!
Summary: CharToByteConverterClass not found!
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 5.0.0-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-01 10:18 UTC by seantyh118
Modified: 2021-07-01 10:19 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(); //