API ReferenceGeneric Error{
"title": "Generic Errors",
"description": "A JSON Schema describing Visualize Generic Errors",
"$schema": "",
"type": "object",
"properties": {
"errorCode": {
"type": "string"
},
"message": {
"type": "string"
},
"parameters":{
"type": "array"
}
},
"required": ["errorCode", "message"]
}
Common errors | [toc] |
unexpected.error
Message | An unexpected error has occurred |
Description | Some unexpected error happened. In most of cases this is JavaScript exception or 500 HTTP response from server. |
schema.validation.error
Message | JSON schema validation failed: {VALIDATION_ERROR_MESSAGE} |
Description | Validation against schema was failed. Check validationError property in object for more details. |
unsupported.configuration.error
Message | {SPECIFIC_MESSAGE_DEPENDING_ON_ERROR} |
Description | Something is wrong with provided configuration. For now is error happens only when isolateDom = true and defaultJiveUi.enabled = true. |
authentication.error
Message | Authentication error |
Description | Credentials are not valid or session expired. |
container.not.found.error
Message | Container was not found in DOM |
Description | Specified container was not found in DOM. |
report.execution.failed
Message | Report execution failed |
Description | Report execution failed. |
report.execution.cancelled
Message | Report execution was cancelled |
Description | Report execution was cancelled. |
report.export.failed
Message | Report export failed |
Description | Report export failed. |
licence.not.found
Message | JRS haven't appropriate licence |
Description | License wasn't provided for JasperReports Server |
licence.expired
Message | JRS license expired |
Description | License expired |
resource.not.found
Message | Resource not found in Repository |
Description | Resource not present in Repository or user haven't permissions to read it |
export.pages.out.range
Message | Requested pages {0} out of range |
Description | User requested for pages which are not exist for current export |
input.controls.validation.error
Message | some message from server |
Description | Wrong input control params were sent |
Workflows
Initialization and authentication
If your app stopped to work without any notification then check that server which provides visualize.js is accessible and return scripts
visualize({
auth : { name: "superuser", password: "superuser"}
}, function(){
/// your app logic
}, function(err){
// handle all initialization and auth errors
})
Handle bi components errors
same for input controls
visualize({
auth : { name: "superuser", password: "superuser"}
}, function(v){
var report = v.report({
error: function(err){
//invoked once report is initialized and runned
}
});
report
.run()
.fail(function(err){
//handle errors here
});
)
Recommended Comments
There are no comments to display.