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.
A record producer item is causing a java.lang.NullPointerException in 'Recent & Popular Items' widget in french language - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • A record producer item is causing a java.lang.NullPointerException in 'Recent & Popular Items' widget in french language
KB1167702

A record producer item is causing a java.lang.NullPointerException in 'Recent & Popular Items' widget in french language


639 Views Last updated : Dec 5, 2022 public Copy Permalink
KB Summary by Now Assist

Summary

When opening the service portal home page, an exception is thrown when the language is set the French:

java.lang.NullPointerException
ErreurScript source code logged to console
ErreurFailing widget: 'Recent & Popular Items' (4fc1dd5387500300e0ef0cf888cb0baa)

 

JavaScript evaluation error logs on:

var catalogItemJS = new sn_sc.CatItem('3d40c20fdbfd77c02ced9ec4db9619bc');
gs.print(catalogItemJS.isVisibleServicePortal());
var catItemDetails = catalogItemJS.getItemSummary(true);
gs.print(catItemDetails.visible_standalone);

catalogItemJS = new sn_sc.CatItem('81c887819f203100d8f8700c267fcfb5');
gs.print(catalogItemJS.isVisibleServicePortal());
catItemDetails = catalogItemJS.getItemSummary(true);
gs.print(catItemDetails.visible_standalone);
Root cause of JavaScriptException: java.lang.NullPointerException
: java.lang.NullPointerException: com.glide.catalog.cache.impl.DefaultTranslationProvider.getFieldTranslationsFromSysTranslated(DefaultTranslationProvider.java:243)
com.glide.catalog.cache.impl.DefaultTranslationProvider.access$300(DefaultTranslationProvider.java:34)
com.glide.catalog.cache.impl.DefaultTranslationProvider$FieldTranslationProvider.getTranslations(DefaultTranslationProvider.java:436)
com.glide.catalog.cache.impl.DefaultTranslations.getFieldTranslation(DefaultTranslations.java:100)
com.glide.catalog.cache.impl.ServiceCatalogI18NCacheableItemAdapter.resolveFieldValue(ServiceCatalogI18NCacheableItemAdapter.java:88)
com.glideapp.servicecatalog.Catalog.getTitle(Catalog.java:483)
com.glideapp.servicecatalog.scoped.api.CatalogItemJS.jsFunction_getItemSummary(CatalogItemJS.java:315)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:670)
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:614)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2609)
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1518)
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:830)
org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:152)
com.glide.caller.gen.null_null_script.call(Unknown Source)
com.glide.script.ScriptCaller.call(ScriptCaller.java:18)
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:151)
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:563)
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3459)
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:164)
com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:354)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:177)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:111)
com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:322)
com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:226)
com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:213)
com.glide.processors.ScriptProcessor.evaluateScript0(ScriptProcessor.java:390)
com.glide.processors.ScriptProcessor.lambda$evaluateScriptWithRecordingOption$0(ScriptProcessor.java:379)
com.glide.rollback.recording.RollbackRecorder.execute(RollbackRecorder.java:67)
com.glide.processors.ScriptProcessor.evaluateScriptWithRecordingOption(ScriptProcessor.java:379)
com.glide.processors.ScriptProcessor.evaluateScript(ScriptProcessor.java:359)
com.glide.processors.ScriptProcessor.runScript(ScriptProcessor.java:258)
com.glide.processors.ScriptProcessor.process(ScriptProcessor.java:216)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:612)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:274)
com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:184)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:172)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:46)
com.glide.sys.Transaction.run(Transaction.java:2488)
com.glide.ui.HTTPTransaction.run(HTTPTransaction.java:27)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base/java.lang.Thread.run(Thread.java:834)

The error message when user tries to access the Service Portal is

 

Instructions

  1. Navigate to Maintain Items and search for 'Request Knowledge Base'.
  2. Click on the Accessibility section, in the cagalog field it shows Service catalog, 742ce428d7211100f2d224837e61036d as in the below image.



  3. Check to see whether we have any record with the below URL
  4. instance.service-now.com/sc_catalog.do?amp;sysparm_stack=sys_metadata_list.do%3fsysparm_query%3dactive%3dtrue&sys_id=742ce428d7211100f2d224837e61036d
  5. If it is not available then request the customer to Import the attached XML, after importing Navigate to Maintain Items and search for 'Request Knowledge Base'.



  6. Now when the user tried to access the Service portal the error message will not be displayed.

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.