IDM 4.7.3 globalQuery throws NPE

Hi all!

I have just upgraded one environment to IDM 4.7.3 and I am having problems with a globalQuery executed in a pre-mapping activity. This was working on 4.7.2.

My pre-activity mapping is simple:

IDVault.globalQuery("getAccountTypes", {});

I can see the query being recieved in the LDAP trace and the expected result being sent back.

Can anyone else confirm this issue with 4.7.3?

In catalina.out I get this:

2019-07-03 10:28:18,169 [DEBUG] DataItemEvaluator [RBPM] evaluating source expression: IDVault.globalQuery("getAccountTypes", {});
2019-07-03 10:28:18,169 [DEBUG] EcmaScriptEngine [RBPM] Evaluating the script : IDVault.globalQuery("getAccountTypes", {});
2019-07-03 10:28:18,169 [DEBUG] CacheUtil [RBPM] DAL Definition RETRIEVED from cache: VDM_FORM_QUERY_DEF_getAccountTypes
2019-07-03 10:28:18,169 [DEBUG] VirtualDataAccess [RBPM] VDA.getEntityResultList
2019-07-03 10:28:18,169 [DEBUG] VirtualDataModel [RBPM] VDM.getEntityDefinition(String, Locale):iamAccountType
2019-07-03 10:28:18,169 [DEBUG] CacheUtil [RBPM] DAL Definition RETRIEVED from cache: VDM_ENTITY_DEFINITION_iamAccountType
2019-07-03 10:28:18,169 [DEBUG] CacheUtil [RBPM] DAL Definition RETRIEVED from cache: VDM_DEFINITION_ATTRIBUTE_LIST_iamAccountType
2019-07-03 10:28:18,169 [DEBUG] CacheUtil [RBPM] DAL Definition RETRIEVED from cache: VDM_DEFINITION_ATTRIBUTE_LIST_iamAccountType
2019-07-03 10:28:18,169 [DEBUG] VirtualDataAccess [RBPM] VDA.getEntityResultList query filter: (&(|(objectClass=iamAccountType)))
2019-07-03 10:28:18,169 [DEBUG] CacheUtil [RBPM] DAL Definition RETRIEVED from cache: VDM_DEFINITION_ATTRIBUTE_LIST_iamAccountType
2019-07-03 10:28:18,169 [TRACE] VirtualDataAccess [RBPM] Call to eDir search took: 0ms
com.novell.srvprv.apwa.APWAException: Failed to retrieve data items for provisioning request form.
at com.novell.srvprv.apwa.beans.AFResourceRequest.getFormItems(AFResourceRequest.java:190)
at com.novell.idm.dashboard.util.ProvUtil.generateRequestForm(ProvUtil.java:602)
at org.apache.jsp.dashboard.jsps.requestForm_jsp._jspService(requestForm_jsp.java:436)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:591)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:527)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:892)
at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:679)
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:673)
at org.apache.tiles.request.jsp.JspRequest.doInclude(JspRequest.java:123)
at org.apache.tiles.request.AbstractViewRequest.dispatch(AbstractViewRequest.java:47)
at org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)
at org.apache.tiles.request.render.ChainedDelegateRenderer.render(ChainedDelegateRenderer.java:68)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)
at org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:188)
at org.apache.tiles.template.InsertAttributeModel.execute(InsertAttributeModel.java:132)
at org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:299)
at org.apache.jsp.jsps.layouts.wfFormLayout_jsp._jspx_meth_tiles_005finsertAttribute_005f0(wfFormLayout_jsp.java:335)
at org.apache.jsp.jsps.layouts.wfFormLayout_jsp._jspService(wfFormLayout_jsp.java:229)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)
at org.apache.tiles.request.servlet.ServletRequest.forward(ServletRequest.java:265)
at org.apache.tiles.request.servlet.ServletRequest.doForward(ServletRequest.java:228)
at org.apache.tiles.request.AbstractClientRequest.dispatch(AbstractClientRequest.java:57)
at org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:397)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:238)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:221)
at org.apache.tiles.renderer.DefinitionRenderer.render(DefinitionRenderer.java:59)
at org.springframework.web.servlet.view.tiles3.TilesView.renderMergedOutputModel(TilesView.java:146)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:314)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1325)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1069)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1008)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:870)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:855)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.common.AntiCsrfServletFilter.doFilter(AntiCsrfServletFilter.java:207)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.srvprv.apwa.servlet.SessionSynchronizationFilter.doFilter(SessionSynchronizationFilter.java:79)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.srvprv.apwa.servlet.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:72)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.afw.portal.i18n.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:135)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.common.ForceNoCacheFilter.doFilter(ForceNoCacheFilter.java:69)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.common.CrossScriptingFilter.doFilter(CrossScriptingFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.common.HttpSecurityHeadersFilter.doFilter(HttpSecurityHeadersFilter.java:132)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.netiq.common.i18n.impl.I18nServletFilter.doFilter(I18nServletFilter.java:182)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.srvprv.apwa.servlet.APWAThrottleFilter.doFilter(APWAThrottleFilter.java:90)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.common.auth.ActionAuthFilter.doFilter(ActionAuthFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.common.auth.JAASFilter.doFilter(JAASFilter.java:145)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.common.auth.saml.AuthTokenGeneratorFilter.doFilter(AuthTokenGeneratorFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.novell.common.auth.sso.SSOFilter.doFilter(SSOFilter.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.novell.soa.af.ProvisioningException: Error evaluating start data items for Provisioning Request id [cn=users,cn=requestdefs,cn=appconfig,cn=userapplication,cn=driver set,ou=system,o=iam] version [2950]
at com.novell.soa.af.impl.core.ProvisioningRequestImpl.getDataItems(ProvisioningRequestImpl.java:453)
at com.novell.srvprv.apwa.beans.AFResourceRequest.getFormItems(AFResourceRequest.java:188)
... 122 more
Caused by: com.novell.soa.af.DataItemException: Dataitem [description] with expression [IDVault.globalQuery("getAccountTypes", {});] failed to evaluate.
at com.novell.soa.af.impl.core.DataItemEvaluator.evaluateSource(DataItemEvaluator.java:883)
at com.novell.soa.af.impl.core.DataItemEvaluator.evaluate(DataItemEvaluator.java:730)
at com.novell.soa.af.impl.core.DataItemEvaluator.evaluate(DataItemEvaluator.java:676)
at com.novell.soa.af.impl.core.ProvisioningRequestImpl.getDataItems(ProvisioningRequestImpl.java:451)
... 123 more
Caused by: com.novell.soa.script.ScriptException: Error Evaluating Script Error Evaluating Script com.novell.soa.script.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (unnamed script#1)
at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.evalToObject(EcmaScriptEngine.java:505)
at com.novell.soa.af.impl.core.DataItemEvaluator.evaluateSource(DataItemEvaluator.java:873)
... 126 more
Caused by: com.novell.soa.script.ScriptException: Error Evaluating Script com.novell.soa.script.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (unnamed script#1)
at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.executeExpression(EcmaScriptEngine.java:709)
at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.evalToObject(EcmaScriptEngine.java:489)
... 127 more
Caused by: com.novell.soa.script.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (unnamed script#1)
at com.novell.soa.script.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1909)
at com.novell.soa.script.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at com.novell.soa.script.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at com.novell.soa.script.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1480)
at com.novell.soa.script.mozilla.javascript.Interpreter.interpret(Interpreter.java:816)
at com.novell.soa.script.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at com.novell.soa.script.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:399)
at com.novell.soa.script.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3362)
at com.novell.soa.script.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.executeExpression(EcmaScriptEngine.java:700)
... 128 more
Caused by: java.lang.NullPointerException
at com.novell.srvprv.impl.vdata.model.VirtualDataAccess.getResultList(VirtualDataAccess.java:2589)
at com.novell.srvprv.impl.vdata.model.VirtualDataAccess.getEntityResultList(VirtualDataAccess.java:616)
at com.novell.srvprv.impl.vdata.model.VirtualDataModel.getEntityResultList(VirtualDataModel.java:421)
at com.novell.soa.af.impl.scripting.VDXScript.globalQuery(VDXScript.java:680)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.novell.soa.script.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 136 more
2019-07-03 10:28:18,213 [TRACE] CharacterEncodingFilter [RBPM] URI encoding is defaults to: ISO-8859-1
2019-07-03 10:28:18,213 [TRACE] CharacterEncodingFilter [RBPM] Page encoding defaults to:UTF-8
2019-07-03 10:28:18,213 [TRACE] EboSessionManager [RBPM] found portal session in the HTTP session = com.sssw.fw.session.EboHttpSession@44a0bc5d
2019-07-03 10:28:18,213 [TRACE] BestLocaleServletFilter [RBPM] Using Resource-Group[base-resgrp] with bestLocale[en_US] for /IDMProv/UIQuery
2019-07-03 10:28:18,214 [TRACE] UIControlRegistryFactory [RBPM] Using registry from cache for locales en_US/en