Notifications

58 views

Description

Symptoms

If you start to see a lot of NullPointerExcepetions in the System Log, looking like the following:

java.lang.NullPointerException: org.mozilla.javascript.JavaScriptException: java.lang.NullPointerException: org.mozilla.javascript.Context.makeJavaScriptException(Context.java:1935)
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1921)
org.mozilla.javascript.MemberBox.invoke(MemberBox.java:143)
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:292)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2585)
org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
org.mozilla.javascript.gen.sys_script_270373260a0a0b020024aa74055d1fbf_script_647._c_markComplete_1(sys_script.270373260a0a0b020024aa74055d1fbf.script:28)
org.mozilla.javascript.gen.sys_script_270373260a0a0b020024aa74055d1fbf_script_647.call(sys_script.270373260a0a0b020024aa74055d1fbf.script)
org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2650)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)

Release

All releases.

Cause

This is most likely caused by the removal of ECC Queue table from the Table Rotation configuration.

To confirm this is the issue, navigate to System Definition >> Table Rotations.
Check if the ecc_queue table record is present. If it's not, then this is most likely the issue.

The reason behind this is that the Business Rule script calls, Out of the box, for the sys_table_name, to get the most current rotated table name.

	if (state == 'processing') {
		// get the real rotated table name: mutli-update does not take care of table rotation
		var sys_table_name = gr.getValue('sys_table_name');

If we remove the table from the Rotation configuration, the script can't figure it out the name of it, and therefore, will throw NullPointerExcepetions to the log.

Resolution

To solve those NullPointerExcepetions (NPE) errors, you should include back the ecc_queue to the Table Rotation configuration.
Search in Docs for "Apply table rotation" to capture the steps needed for your release and make sure it looks like an Out of the box configuration.

Article Information

Last Updated:2019-08-02 20:44:04
Published:2019-07-26