SOLVED - An error has occurred. Please contact your system administrator. (6632)

NOTE: I have solved this problem since posting this question. Thanks anyway.
I am having trouble running this one particular report in JasperReports Server. Others I have tried run perfectly, but with this report I get the error below. Here are some things I have already tried to fix this:
1 - Removing comments from the SQL code.
2 - Changing Validator.ValidSQL=(?is)^\\s*(select|call)\\s+[^;]+;?\\s*$ to Validator.ValidSQL=(?is)^\\s*(select|call|with)\\s+[^;]+;?\\s*$ (my SQL code begins with "WITH") in WEB-INF/classes/esapi/
I am not sure what else to try or even what is going wrong exactly. Any help you can offer is appreciated.
2017-05-18 12:19:06,017 ERROR AsyncJasperPrintAccessor,pool-4-thread-21:321 - Error during report execution
com.jaspersoft.jasperserver.api.JSSecurityException: An error has occurred. Please contact your system administrator. (6632)
at com.jaspersoft.jasperserver.api.engine.jasperreports.util.JRTimezoneJdbcQueryExecuter.createDatasource(
at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(
at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(
at net.sf.jasperreports.engine.fill.BaseReportFiller.setParameters(
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(
at net.sf.jasperreports.engine.fill.BaseFillHandle$
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(
at net.sf.jasperreports.engine.fill.BaseFillHandle.startFill(
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$ Source)
at Source)
jbreault's picture
Joined: May 8 2017 - 7:44am
Last seen: 6 years 1 month ago

If you've solved it, you should probably post your solution ;)

ravenheart - 6 years 1 month ago

Right, sorry about that. After changing, I just had to restart the server.

jbreault - 6 years 1 month ago

Could you explain what did you modify into ?

a.raffaeli - 5 years 11 months ago
show 2 more...

Hi guys, can anyone help with the steps to resolve this issue? 

tumelomapila - 5 years 4 months ago

you have to edit this file:


There you'll find a line like this:


You can put a hash '#' as very first character to mark this old line as comment. Than you have to insert the new line:


Save & exit, then restart JasperServer

sockit - 4 years 11 months ago

3 Answers:

can also be caused by calling a stored proc with exec or call in mysql and not having the language set to plsql

although the plsql is confusing as its usually associated with oracle pl/sql ,so poor choice jaspersoft.

but this option is applicable to ms sql server also, but jaspersoft docs and interface as usual are  not so hot on precision of language or even concepts.

hope this help someone else before there are no more jasper soft users left.



jasperjones999's picture
Joined: Oct 5 2017 - 1:07am
Last seen: 5 years 2 months ago

I was having this same error connecting back to an IBM i mid-range server using IBM DB2.  Using Studio, language type SQL worked. But when it was running from the jasper server, it would not execute and gave the above error until I changed the language type to PLSQL, which I never would have thought of had it not been for finding this post. Many thanks for posting a solution!!!

jsutherland_1's picture
Joined: May 31 2017 - 3:21pm
Last seen: 1 year 2 weeks ago

The above solution also helped resolve a similar problem I was experiencing as I include a 'with' statement in the SQL. Thanks so much!!

david.onyon_1's picture
Joined: Mar 30 2020 - 10:10am
Last seen: 1 year 2 months ago