Compilation error in excel exporter.

0
Hello Team,   I am using following modules.  MxModelReflection - V 8.0.2 Encryption - V 10.0.2 Excel Importer - V 10.7.2 Excel Exporter - V 7.5.1   Studio Pro - 9.24.26   Getting following compilation error   C:\Users\z0050kbk\Mendix\Sinema RC Support-Development branch\javasource\excelimporter\reader\readers\ExcelXLSXDataReader.java:51: error: getNameIndex(String) in XSSFWorkbook cannot implement getNameIndex(String) in Workbook        try (XSSFWorkbook workbook = new XSSFWorkbook(excelFile) {                                                                 ^  attempting to assign weaker access privileges; was publicNote: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: Some input files use unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.1 error FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':compile'.> Compilation failed; see the compiler error output for details. * Try:> Run with --scan to get full insights. BUILD FAILED in 12s   Please guide me on this issue.
asked
4 answers
1

Hi Sidheshwari,

It is indeed jars issue , either of duplicate or old version jars, Many modules share the same jars,so we should be careful on handling this.

A lengthy process but something that works for me always, i create a brancline and empty the userlib folder and import each modules once again run it locally and deploy on cloud and test SSO,Deeplink,Excel Import,export and email because these modules occupy pretty much all the jars.

If it works i merge my branch to main branch.

Hope it helps!

answered
0

Hi Arun,

 

Now I am getting following error for GenerateExcelDoc java action

 

Error: An error occurred while executing an action of SinemaRC.ReportView.actionButton1: Expected response body to be JSON. Instead received: ""    at http://localhost:8080/mxclientsystem/mxui/mxui.js?638648521439226557:66:267637    at be (http://localhost:8080/mxclientsystem/mxui/mxui.js?638648521439226557:26:6830)    at r (http://localhost:8080/mxclientsystem/mxui/mxui.js?638648521439226557:26:6731)    at E (http://localhost:8080/mxclientsystem/mxui/mxui.js?638648521439226557:66:5050)

answered
0

Hi Sidheshwari,

 

Refer the below similar communication,

https://community.mendix.com/link/space/community/questions/132622

 

Hope it helps!

Thanks & Regards,

Manikandan K

answered
0

This sort of error usually occurs when you upgrade a module but haven't cleaned the userlib folder. This can leave older versions of required .jar files in place that don't match.

 

To solve this, go into your userlib and look for files with the same name, but different versions. Delete the older versions of duplicates leaving only the one with the highest version number.

 

I hope this helps. Good luck!

answered