This chapter describes common errors and explains how to handle them with the JasperReports IO Javascript API.
Error Properties
The properties structure for Generic Errors is defined as follows:
Common Errors
The following table lists common errors, their messages, and causes.
Error | Message - Description |
Page or app not responding | {no_message} - If your page or web application has stopped working without notification or errors, check that the server providing JasperReports IO JavaScript API is accessible and returning scripts. |
unexpected.error | An unexpected error has occurred - In most of cases this is either a JavaScript exception or an HTTP 500 (Internal Server Error) response from server. |
schema.validation.error | JSON schema validation failed: {error_message} - Validation against schema has failed. Check the validationError property in object for more details. |
unsupported. configuration.error | {unspecified_message} - This error happens only when isolateDom = true and defaultJiveUi.enabled = true. These properties are mutually exclusive. |
container.not.found.error | Container was not found in DOM - The specified container was not found in the DOM:error. |
report.execution.failed | Report execution failed - The report failed to run on the server. |
report.execution.cancelled | Report execution was canceled - Report execution was canceled. |
report.export.failed | Report export failed - The report failed to export on the server. |
licence.not.found | JRIO missing appropriate license- The server's license was not found. |
licence.expired | JRIO missing appropriate license - The server's license has expired. |
resource.not.found | Resource not found in Repository - Either the resource doesn't exist in the repository or the user doesn't have permissions to read it. |
export.pages.out.range | Requested pages {0} out of range - The user requested pages that don't exist in the current export. |
Catching Report Errors
To catch and handle errors when running reports, define the contents of the err function as shown in the following sample:
Recommended Comments
There are no comments to display.