Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

NullPointerException occurs and the servers do not start

SA-58424

Summary

The following Dynamic System Settings (DSS) are set to false, and restarted.

indexing/distributed/enabled 
indexing/distributed/index_enabled 
indexing/distributed/search_enabled 

Post restart, NullPointerException occurs and the servers do not start.


Error Messages



[STANDARD] [ ] [ ] ( etier.impl.EngineStartup) ERROR - PegaRULES initialization failed. Server: SERVER_NAME
com.pega.pegarules.pub.context.InitializationFailedError: PRNodeImpl init failed
at com.pega.pegarules.session.internal.mgmt.PREnvironment.getThreadAndInitialize(PREnvironment.java:397)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.getThreadAndInitialize(PRSessionProviderImpl.java:2005)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineStartup.initEngine(EngineStartup.java:666)
Caused by:
com.pega.pegarules.pub.PRRuntimeException: Method Invocation exception
at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1279)
... 51 more
Caused by:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
... 54 more
Caused by:
java.lang.NullPointerException
at com.pega.pegarules.session.internal.async.startup.SearchInitializationTask.runTask(SearchInitializationTask.java:43)
at com.pega.pegarules.session.internal.async.startup.StartupTaskUtil.runTask(StartupTaskUtil.java:68)
at com.pega.pegarules.session.internal.mgmt.PREnvironment.finishInit(PREnvironment.java:537)



Steps to Reproduce



Unknown


Root Cause



In Pega 7.2, modifying the DSS settings to False resulted in Null Pointer exception during Search initialization and the elastic server did not start.


Resolution



Perform the following local-change:

1. Delete the affected DSS entries from the pr_data_admin database table.

Below is an example query:


DELETE FROM prpc_data.pr_data_admin WHERE pypurpose='indexing/distributed/index_enabled';

Add the following settings in prconfig.xml.

<env name="indexing/distributed/enabled" value="true" />
<env name="indexing/distributed/index_enabled" value="true​" />
<env name=" indexing/distributed/search_enabled" value="true​" />


2. Perform a restart.

Alternatively, update to Pega 7.2.1

Published July 23, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us