- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2016 09:08 AM
I have been seen this message intermittently in the logs, but it doesn't seem to be connected to any particular action I take. I'm debugging a custom script for Change and can share details if that would help.
Has anyone seen this or do you know what it means?
More of the stack trace:
java.lang.NullPointerException Caused by error in Schedule Item: 'Workflow Nudger' at line 1==> 1: new SNC.WorkflowScriptAPI().nudge();com.glideapp.workflow.queue.command.ActiveContext.terminateWorkflowContext(ActiveContext.java:230) com.glideapp.workflow.queue.command.CommandManager$CommandQueue.clean(CommandManager.java:298) com.glideapp.workflow.queue.command.CommandManager$CommandQueue.release(CommandManager.java:338) com.glideapp.workflow.queue.command.CommandManager.queue(CommandManager.java:193) com.glideapp.workflow.WorkflowScriptAPI.jsFunction_nudge(WorkflowScriptAPI.java:362) sun.reflect.GeneratedMethodAccessor945.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:597) org.mozilla.javascript.FunctionObject.call(FunctionObject.java:504) org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1227) org.mozilla.javascript.gen.c1670.call(sys_trigger.6877c23137231100f5bf1f23dfbe5df5:1) org.mozilla.javascript.gen.c1670.exec(sys_trigger.6877c23137231100f5bf1f23dfbe5df5) com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:233) com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:105) com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:72) com.glide.script.Evaluator.evaluatePossiblePrefixedString(Evaluator.java:192) com.glide.job.RunScriptJob.evaluateScript(RunScriptJob.java:158) com.glide.job.RunScriptJob.execute(RunScriptJob.java:84) com.glide.schedule.JobExecutor.execute(JobExecutor.java:79) com.glide.schedule.GlideScheduleWorker.executeJob(GlideScheduleWorker.java:177) com.glide.schedule.GlideScheduleWorker.process(GlideScheduleWorker.java:124) com.glide.schedule.GlideScheduleWorker.run(GlideScheduleWorker.java:56) |
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2016 09:28 AM
Tamara,
- When you clone the instance the "wf_command" table being cloned but "wf_context" isn't cloned by default.
So, when the "Workflow Nudger" runs, it will throw a NullPointerException in the logs, because a command is queued for a workflow that does not exist.
You can resolve the issue by following below steps:
- Please delete all the records in https://<<instance_name>>.service-now.com/wf_command_list.do?sysparm_query=contextISNOTEMPTY%5Econtext.nameISEMPTY
Once these records are deleted you won't get those errors.
- To avoid this in future occurrences, on your source instance, Add wf_command table to the list of exclude tables for clones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2016 09:28 AM
Tamara,
- When you clone the instance the "wf_command" table being cloned but "wf_context" isn't cloned by default.
So, when the "Workflow Nudger" runs, it will throw a NullPointerException in the logs, because a command is queued for a workflow that does not exist.
You can resolve the issue by following below steps:
- Please delete all the records in https://<<instance_name>>.service-now.com/wf_command_list.do?sysparm_query=contextISNOTEMPTY%5Econtext.nameISEMPTY
Once these records are deleted you won't get those errors.
- To avoid this in future occurrences, on your source instance, Add wf_command table to the list of exclude tables for clones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2016 11:09 AM
Thanks for the reply! I looked at the query you suggested but found no records. Both tables are in the System Clone exclude tables as well. Do you know if there could be any other factors causing the error?
Thanks again,
Tamara