dwoodall Posted February 17, 2021 Share Posted February 17, 2021 Currently, if we hit the rest endpoint for running a report (/rest_v2/reports/path_to_report?format=CSV&displayType=CSV&etc.) and for some reason the report cannot be compiled, the server will respond with a message such as this:"There was an error on the server. Try again or contact site administrators. (Error UID: 3d862a3a-c638-4806-aa4c-727d1d595613)"Now, consulting google, everyone refers people to the jasperserver log, which is located in our tomcat deploy path: /usr/share/tomcat/webapps/ROOT/WEB-INF/logs/jasperserver.logHowever, the only thing logged there is this:"2021-02-17T15:06:40,483 ERROR SecureExceptionHandlerImpl,pool-9-thread-2383:116 - There was an error on the server. Try again or contact site administrators. (Error UID: 3d862a3a-c638-4806-aa4c-727d1d595613)"Obviously not very helpful. Is the lack of detail a symptom of logging level on some specific class that handles these exceptions? We had been using JasperReports Server 6.3.0 for years and this log always contained detail indicating what the issue was, i.e. bad sql, connection issue, whatever. Now the logs contain none of that detail and you are essentially left to guess what might be wrong, which is a long and arduous troubleshooting process that sometimes just results in no solution if you are unable to guess the actual underlying issue.What can be done to get the details of these errors? Link to comment Share on other sites More sharing options...
danoldenkampgmail.com Posted February 17, 2021 Share Posted February 17, 2021 You can configure the log level through the web:http://localhost:8080/jasperserver/log_settings.htmlAlthough you will need to turn on REST logging.https://community.jaspersoft.com/wiki/enable-rest-api-logging-jasperreports-serverAre you able to connect to the REST API? Have you tried a different REST testing client to check if there is a client response? (Like vREST, Postman, or ReadyAPI) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now