Error log showing "null: no thrown error" when loading certain Dashboard(s)
In some cases, the localhost logs may show: "SEVERE *** ERROR *** ClassUtil - class not found: null"
The reason for the error could be that there were records on sys_grid_canvas_pane table which had either no Portal Widgets associated or had a sys_id for which there was no corresponding sys_portal record (invalid references). Following URL gives you a list of all such records:
This would typically happen when the dashboard is developed on one instance and then moved to another instance in a way which does not completely moves the configuration.
The documentation for moving dashboards via update set has below warnings.
This procedure does not move the content of the dashboard (such as reports, PA widgets, content blocks, and other widgets) to the update set. You can add dashboard content to the update set using default platform functionality.
Note: Make sure that dashboard content is in either in the same update set as the dashboard record or is already present in the target instance. Errors result if the moved dashboard points to content that does not exist on the target instance.
(Required) On the target instance, make sure that all the tabs of the dashboard have associated portal pages.
Here is the documentation link.
Following steps can be taken to avoid these errors in the system logs:
- Ensure that all the objects used in the dashboard (such as reports, PA widgets, content blocks, and other widgets) are brought over to the target instance.
- If some error still show up after bringing across all the configurations and the dashboard itself is not having any issues except for the errors appearing in the logs, deleting all the sys_grid_canvas_pane records having invalid references returned by the following URL should get rid of the errors in the logs.
- Take an XML backup of the records before deleting them so that you can revert in case of any issues.
- Please test the solution on a recently cloned instance before applying any solution on the production instance.