Overview
One of your applications is fetching documents from global document DS in start post script using BLClientUtil.getGlobalDocumentDS. This application was working fine in 2015 SP1 version. But after migrating to 2021 R1, the flow is getting stuck and BLClientUtil.getGlobalDocumentDS is giving exception:
[#| 19 Apr 2021 14:26:57,359 | BizLogic | ERROR | ejbServer | BizLogic | (333) Error occurred while executing the method context(SDSService.getDocuments(DSContext,DF)) Nested:java.util.Arrays$ArrayList incompatible with java.lang.String | ORB.thread.pool : 0 |#]
java.lang.ClassCastException: java.util.Arrays$ArrayList incompatible with java.lang.String
at com.savvion.sbm.dms.svo.SVOFactory.setAuthors(SVOFactory.java:63)
at com.savvion.sbm.dms.svo.SVOFactory.getDocument(SVOFactory.java:53)
at com.savvion.sbm.dms.sds.SDSService.getDocuments(SDSService.java:719)
at com.savvion.sbm.dms.svo.DocumentFolder.getDocuments(DocumentFolder.java:257)
at com.savvion.sbm.bizlogic.server.svo.DocumentDS.getDSDocs(DocumentDS.java:1484)
at com.savvion.sbm.bizlogic.server.svo.DocumentDS.getDSDocs(DocumentDS.java:1478)
at com.savvion.sbm.bizlogic.server.svo.DocumentDS.getDocuments(DocumentDS.java:367)
at com.penske.dummyTest.DummyTest.loadGlobalDocumentDS(DummyTest.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:197)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:63)
at org.mozilla.javascript.gen.c7._c0(POST:11)
at org.mozilla.javascript.gen.c7.call(POST)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769)
at org.mozilla.javascript.gen.c7.call(POST)
at org.mozilla.javascript.gen.c7.exec(POST)
at com.savvion.sbm.bizlogic.server.WFJavaScript.executeJS(WFJavaScript.java:684)
at com.savvion.sbm.bizlogic.server.WFWorkstepInstance.executeScript(WFWorkstepInstance.java:2480)
at com.savvion.sbm.bizlogic.server.WFWorkstepInstance.complete(WFWorkstepInstance.java:815)
at com.savvion.sbm.bizlogic.server.WFAtomicInstance.complete(WFAtomicInstance.java:293)
at com.savvion.sbm.bizlogic.server.WFAtomicInstance.complete(WFAtomicInstance.java:211)
at com.savvion.sbm.bizlogic.server.WFAtomicInstance.execute(WFAtomicInstance.java:193)
at com.savvion.sbm.bizlogic.server.WFWorkstepInstance.startWorkstepExecution(WFWorkstepInstance.java:2267)
at com.savvion.sbm.bizlogic.server.WFWorkstepInstance.runIt(WFWorkstepInstance.java:1794)
at com.savvion.sbm.bizlogic.server.WFWorkstepInstance.activate(WFWorkstepInstance.java:1282)
at com.savvion.sbm.bizlogic.server.WFProcessContext.activateWorkstep(WFProcessContext.java:1091)
at com.savvion.sbm.bizlogic.server.WFProcessInstance.activate(WFProcessInstance.java:1040)
at com.savvion.sbm.bizlogic.server.WFProcessInstance.createInstance(WFProcessInstance.java:567)
at com.savvion.sbm.bizlogic.server.WFProcessContext.createProcessInstance(WFProcessContext.java:1008)
at com.savvion.sbm.bizlogic.server.ejb.BLServerBean.createProcessInstance(BLServerBean.java:930)
at com.savvion.sbm.bizlogic.server.ejb.EJSRemoteStatelessBLServerBean_e586166b.createProcessInstance(Unknown Source)
at com.savvion.sbm.bizlogic.server.ejb._EJSRemoteStatelessBLServerBean_e586166b_Tie.createProcessInstance__com_savvion_sbm_bizlogic_util_Session__CORBA_WStringValue__java_util_HashMap__java_util_HashMap__boolean(Unknown Source)
at com.savvion.sbm.bizlogic.server.ejb._EJSRemoteStatelessBLServerBean_e586166b_Tie._invoke(Unknown Source)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:678)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:526)
at com.ibm.rmi.iiop.ORB.process(ORB.java:599)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1583)
at com.ibm.rmi.iiop.Connection.doRequestWork(Connection.java:3170)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:3040)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:64)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)
Information
This issue has been fixed in our latest release 2021 R2. Please, upgrade to the latest version. You can find the list of fixed issues in the Release Notes for version 2021 R2 (Issue ID SBM-71566 - Users cannot get documents from the Global DS due to Classcast exceptions).