Код: Выделить всё
ArrayList rows = downloadReportUCService2.downloadReport(reportOptionsBean);
ESAPI.httpUtilities().setHeader(res, "Content-disposition", "filename=" + downloadReportUCService2.getReportFileName(reportOptionsBean));
Код: Выделить всё
java.lang.reflect.InvocationTargetException HTTPUtilities class (org.owasp.esapi.reference.DefaultHTTPUtilities) CTOR threw exception.
Код: Выделить всё
Attempting to load ESAPI.properties via file I/O.
Attempting to load ESAPI.properties as resource file via file I/O.
Not found in 'org.owasp.esapi.resources' directory or file not readable: C:\profilename\software\apache-tomcat-9.0.68-windows-x64\apache-tomcat-9.0.68\bin\ESAPI.properties
Not found in SystemResource Directory/resourceDirectory: .esapi\ESAPI.properties
Not found in 'user.home' (C:\Users\profilename) directory: C:\Users\profilename\esapi\ESAPI.properties
Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException
Attempting to load ESAPI.properties via the classpath.
SUCCESSFULLY LOADED ESAPI.properties via the CLASSPATH from 'esapi/' using current thread context class loader!
Attempting to load validation.properties via file I/O.
Attempting to load validation.properties as resource file via file I/O.
Not found in 'org.owasp.esapi.resources' directory or file not readable: C:\profilename\software\apache-tomcat-9.0.68-windows-x64\apache-tomcat-9.0.68\bin\validation.properties
Not found in SystemResource Directory/resourceDirectory: .esapi\validation.properties
Not found in 'user.home' (C:\Users\profilename) directory: C:\Users\profilename\esapi\validation.properties
Loading validation.properties via file I/O failed.
Attempting to load validation.properties via the classpath.
SUCCESSFULLY LOADED validation.properties via the CLASSPATH from '/ (root)' using current thread context class loader!
Я могу поделиться дополнительными фрагментами кода, просто не хотел тонуть пост с излишним количеством деталей, если по какой-то причине я упускаю что-то простое.
Подробнее здесь: https://stackoverflow.com/questions/787 ... -setheader