1 Reply Latest reply on Jun 18, 2019 12:36 PM by mrchadhall

    v5.1 Plugin Item Submit Error

    mrchadhall Lurker

      We installed the v5.1 plugin but we get the following errors whenever we try to submit a requested item from the portal in ServiceNow:

       

      java.lang.NullPointerException

      Script source code logged to console

      Failing widget: 'Ticket Conversations' (85357f52cb30020000f8d856634c9c24) called from: 'activities_form' (5c3e28c1dbbf57003c667bedbf9619d3)

       

      These errors appear at the top of the portal item screen. While its not obvious the item is saved to the user's cart instead of being submitted. Unless they stumble onto their cart somewhere else they never know where its at.

       

      Also, at this same time there are other errors in the ServiceNow system log:

       

      performing addSeconds with invalid GlideDateTime: no thrown error

       

      java.lang.NullPointerException

         Caused by error in sp_widget.5c3e28c1dbbf57003c667bedbf9619d3.script at line 1

      com.glide.glideobject.GlideDateTime.addSeconds(GlideDateTime.java:1172)

      com.glide.service_portal.SPStream.get(SPStream.java:99)

      com.glide.service_portal.SPStream.getRhino(SPStream.java:59)

      com.glide.service_portal.widget.SPScriptable.getStream(SPScriptable.java:630)

      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      java.lang.reflect.Method.invoke(Method.java:498)

      org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)

      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.sp_widget_85357f52cb30020000f8d856634c9c24_script_3048._c_anonymous_2(sp_widget.85357f52cb30020000f8d856634c9c24.script:67)

      org.mozilla.javascript.gen.sp_widget_85357f52cb30020000f8d856634c9c24_script_3048.call(sp_widget.85357f52cb30020000f8d856634c9c24.script)

      org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2650)

      org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)

      org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)

      org.mozilla.javascript.gen.sp_widget_85357f52cb30020000f8d856634c9c24_script_3048._c_anonymous_1(sp_widget.85357f52cb30020000f8d856634c9c24.script:1)

      org.mozilla.javascript.gen.sp_widget_85357f52cb30020000f8d856634c9c24_script_3048.call(sp_widget.85357f52cb30020000f8d856634c9c24.script)

      org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2650)

      org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)

      org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)

      org.mozilla.javascript.gen.sp_widget_85357f52cb30020000f8d856634c9c24_script_3048._c_script_0(sp_widget.85357f52cb30020000f8d856634c9c24.script:1)

      org.mozilla.javascript.gen.sp_widget_85357f52cb30020000f8d856634c9c24_script_3048.call(sp_widget.85357f52cb30020000f8d856634c9c24.script)

      org.mozilla.javascript.gen.sp_widget_85357f52cb30020000f8d856634c9c24_script_3048.exec(sp_widget.85357f52cb30020000f8d856634c9c24.script)

      com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:279)

      com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:118)

      com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:82)

      com.glide.service_portal.SPScriptEvaluator.eval(SPScriptEvaluator.java:37)

      com.glide.service_portal.widget.SPScriptRunner.eval(SPScriptRunner.java:221)

      com.glide.service_portal.widget.SPScriptRunner.runScript(SPScriptRunner.java:70)

      com.glide.service_portal.widget.SPWidget.get(SPWidget.java:134)

      com.glide.service_portal.widget.SPScriptable.getWidget(SPScriptable.java:419)

      com.glide.service_portal.widget.fencing.ScopedSPScriptable.getWidget(ScopedSPScriptable.java:220)

      sun.reflect.GeneratedMethodAccessor1676.invoke(Unknown Source)

      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      java.lang.reflect.Method.invoke(Method.java:498)

      org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)

      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.sp_widget_5c3e28c1dbbf57003c667bedbf9619d3_script_3337._c_anonymous_2(sp_widget.5c3e28c1dbbf57003c667bedbf9619d3.script:109)

      org.mozilla.javascript.gen.sp_widget_5c3e28c1dbbf57003c667bedbf9619d3_script_3337.call(sp_widget.5c3e28c1dbbf57003c667bedbf9619d3.script)

      org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2650)

      org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)

      org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)

      org.mozilla.javascript.gen.sp_widget_5c3e28c1dbbf57003c667bedbf9619d3_script_3337._c_anonymous_1(sp_widget.5c3e28c1dbbf57003c667bedbf9619d3.script:1)

      org.mozilla.javascript.gen.sp_widget_5c3e28c1dbbf57003c667bedbf9619d3_script_3337.call(sp_widget.5c3e28c1dbbf57003c667bedbf9619d3.script)

      org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2650)

      org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2590)

      org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)

      org.mozilla.javascript.gen.sp_widget_5c3e28c1dbbf57003c667bedbf9619d3_script_3337._c_script_0(sp_widget.5c3e28c1dbbf57003c667bedbf9619d3.script:1)

      org.mozilla.javascript.gen.sp_widget_5c3e28c1dbbf57003c667bedbf9619d3_script_3337.call(sp_widget.5c3e28c1dbbf57003c667bedbf9619d3.script)

      org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:563)

      org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3428)

      org.mozilla.javascript.gen.sp_widget_5c3e28c1dbbf57003c667bedbf9619d3_script_3337.call(sp_widget.5c3e28c1dbbf57003c667bedbf9619d3.script)

      org.mozilla.javascript.gen.sp_widget_5c3e28c1dbbf57003c667bedbf9619d3_script_3337.exec(sp_widget.5c3e28c1dbbf57003c667bedbf9619d3.script)

      com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:279)

      com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:118)

      com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:82)

      com.glide.service_portal.SPScriptEvaluator.eval(SPScriptEvaluator.java:37)

      com.glide.service_portal.widget.SPScriptRunner.eval(SPScriptRunner.java:221)

      com.glide.service_portal.widget.SPScriptRunner.runScript(SPScriptRunner.java:96)

      com.glide.service_portal.widget.SPWidget.get(SPWidget.java:123)

      com.glide.service_portal.widget.SPWidget.handleWidget(SPWidget.java:381)

      com.glide.service_portal.SPRestService.rectangle(SPRestService.java:111)

      sun.reflect.GeneratedMethodAccessor2167.invoke(Unknown Source)

      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      java.lang.reflect.Method.invoke(Method.java:498)

      com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:43)

      com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:286)

      com.glide.processors.AProcessor.runProcessor(AProcessor.java:532)

      com.glide.processors.AProcessor.processTransaction(AProcessor.java:230)

      com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:178)

      com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:167)

      com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:31)

      com.glide.sys.Transaction.run(Transaction.java:2091)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      java.lang.Thread.run(Thread.java:748)

       

       

      I suspect there's really more than one root cause to these errors but I can't seem to pinpoint the any of the causes.

        • 1. Re: v5.1 Plugin Item Submit Error
          mrchadhall Lurker

          I finally got an answer about this. The workaround is to disable two-step checkout in your ServiceNow catalog properties. This is not an acceptable workaround for us since we have other catalogs which require this two-step process but its the only known workaround for v5.1. According to VMWare this will be resolved in the next release of the plugin.