Bug 65418 - CharToByteConverterClass not found!
Summary: CharToByteConverterClass not found!
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
Depends on:
Reported: 2021-07-01 10:18 UTC by seantyh118
Modified: 2021-10-08 16:01 UTC (History)
0 users


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();

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

        //write files here

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