Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Discovery Home page shows "java.lang.NullPointerException" error and page doesn't load, if CMDB tables in sys_db_object don't actually exist - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Discovery Home page shows "java.lang.NullPointerException" error and page doesn't load, if CMDB tables in sys_db_object don't actually exist
KB0815427

Discovery Home page shows "java.lang.NullPointerException" error and page doesn't load, if CMDB tables in sys_db_object don't actually exist


2422 Views Last updated : Apr 19, 2024 public Copy Permalink
KB Summary by Now Assist

Description

When loading the Discovery Home page, "java.lang.NullPointerException" error shows and page doesn't load. This is caused by tables existing in the CMDB according to the records in the sys_db_object table, that don't actually exist in the database.

This has been seen by multiple customers due to these 5 tables of the 3rd party UPM·X application being missing, although this Discovery Homepage problem could be caused by any missing table in the CMDB:
x_inpgh_upmx_process_category
x_inpgh_upmx_process_task
x_inpgh_upmx_social_media
x_inpgh_upmx_value_stream
x_inpgh_upmx_website

Error in the logs as below 

2020-02-12 01:03:29 (362) Default-thread-10 9B71DDABDB3604101F6C7ABE3B961989 txid=9af0b56bdb7a SEVERE *** ERROR *** JavaScript evaluation error on:
(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
var manager = new DiscoveryResultManager();
var stats = manager.getHomepageStats();
response.setStatus(200);
response.setContentType('application/json');
response.setBody(stats);
})(request, response);
Root cause of JavaScriptException: java.lang.NullPointerException
java.lang.NullPointerException

The exception in the app node logs will include this line, which is the from the DiscoveryResultManager script include trying to query the missing table:

at org.mozilla.javascript.gen.sys_script_include_3fd4f6d2c3473200e412bea192d3ae6a_script_28701._c_anonymous_9(sys_script_include.3fd4f6d2c3473200e412bea192d3ae6a.script:145)

Steps to Reproduce

  1. Install Discovery plugin, and have CMDB tables in sys_db_object that don't actually exist. (This situation may be possible to create by installing the UPM-X Store application.)
  2. Navigate to Discovery - Home
    https://<instancename>.service-now.com/$discovery_result_homepage.do
  3. Observe the red ribbon on the top with " java.lang.NullPointerException" message

Workaround

This problem is currently under review. You can contact ServiceNow Technical Support or subscribe to this Known Error article by clicking the Subscribe button at the top right of this form to be notified when more information will become available.

The problem can be avoided by resolving the Table problem.


Related Problem: PRB1386203

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.