ExcelExport

1
i'm getting this error on creating HSSFWorkbook() in exportExcel. i've changed security permission for write mxruntime.jar still 'm getting this fatal error. Uncaught fatal error from thread [MxRuntimeSystem-akka.actor.action-dispatcher-28] java.lang.ExceptionInInitializerError: null at xlsreport.report.export.ExportExcel.<init>(ExportExcel.java:44) at xlsreport.actions.GenerateExcelDoc.executeAction(GenerateExcelDoc.java:80) at xlsreport.actions.GenerateExcelDoc.executeAction(GenerateExcelDoc.java:1) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.doCall(SourceFile:291) Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "HSSFWorkbook.SheetInitialCapacity" "read")
asked
2 answers
4

You need to update the security.policy file to include the following line: (java.util.PropertyPermission "HSSFWorkbook.SheetInitialCapacity" "read")

You can find this file locally at the modeler install folder\modeler\runtemplates\deployment\data\

Hope this helps

answered
0

You could also try disabling "Emulate cloud security". Under Project, Settings, edit the active Configuration. Go to Server and check "No" for "Emulate cloud security".

answered