Error during XRequest com.uc4.webui.communication.requests.OpenObjectAdapter
The AWI log shows the following exception:
2022-04-25 18:47:27,612 pool-2-thread-7702 [WARN ] AUTOMIC:100/ALEXANDER/SUPPORT 0 0000000001984338 +9317 [ns.content.uc4objectview.UC4ObjectLoader] - Encountered edge case while loading UC4 object
com.uc4.ecc.backends.exceptions.AutomationEngineAPIException: Error during XRequest com.uc4.webui.communication.requests.OpenObjectAdapter
at com.uc4.ecc.backends.util.APICallHelper.sendRequestAndWait(APICallHelper.java:57)
at com.uc4.ecc.backends.impl.dataservice.request.RequestService.lambda$sendAndWait$0(RequestService.java:65)
at com.uc4.ecc.framework.core.async.VaadinSessionLockUtil.reportLock(VaadinSessionLockUtil.java:94)
at com.uc4.ecc.backends.impl.dataservice.request.RequestService.sendAndWait(RequestService.java:65)
at com.uc4.ecc.backends.impl.dataservice.request.RequestService.sendAndWait(RequestService.java:80)
at com.uc4.ecc.backends.dataservice.request.IRequestService$pbryglu.sendAndWait(Unknown Source)
at com.uc4.ecc.backends.impl.dataservice.object.ObjectService.tryOpenInternal(ObjectService.java:886)
at com.uc4.ecc.backends.impl.dataservice.object.ObjectService.tryOpen(ObjectService.java:877)
at com.uc4.ecc.backends.dataservice.object.IObjectService$pbryglu.tryOpen(Unknown Source)
at com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectLoader.load(UC4ObjectLoader.java:115)
at com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectLoader.load(UC4ObjectLoader.java:66)
at com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectLoader.load(UC4ObjectLoader.java:163)
at com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectPresenter.load(UC4ObjectPresenter.java:959)
at com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectPresenter.access$100(UC4ObjectPresenter.java:106)
at com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectPresenter$3.loadWithNullAsDefault(UC4ObjectPresenter.java:824)
at com.uc4.ecc.ae.commons.content.uc4objectview.UC4ObjectPresenter$3.loadWithNullAsDefault(UC4ObjectPresenter.java:820)
at com.uc4.webui.common.async.NullAsDefaultLoader.load(NullAsDefaultLoader.java:10)
at com.uc4.webui.common.async.NullAsDefaultLoader.load(NullAsDefaultLoader.java:6)
at com.uc4.ecc.framework.core.async.BaseRequestCoordinator$1$1.call(BaseRequestCoordinator.java:231)
at com.uc4.ecc.framework.core.pool.ContextAwareExecutorService$CallableImplementation.call(ContextAwareExecutorService.java:72)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalArgumentException: No enum constant com.uc4.api.objects.UserRight.Type.USG
at java.base/java.lang.Enum.valueOf(Enum.java:240)
at com.uc4.api.objects.UserRight$Type.valueOf(UserRight.java:27)
at com.uc4.api.objects.UserRight.<init>(UserRight.java:284)
at com.uc4.api.objects.UserAuthorizations.<init>(UserAuthorizations.java:34)
at com.uc4.api.objects.UserGroup.loadContent(UserGroup.java:67)
at com.uc4.api.objects.UC4Object.load(UC4Object.java:186)
at com.uc4.communication.requests.OpenObject.handleContent(OpenObject.java:184)
at com.uc4.communication.requests.XMLRequest.handleResponse(XMLRequest.java:86)
at com.uc4.communication.Connection.sendRequestAndWait(Connection.java:1450)
at com.uc4.webui.api.connection.AEConnectionAdapter.sendRequestAndWait(AEConnectionAdapter.java:58)
at com.uc4.ecc.backends.util.APICallHelper.sendRequestAndWait(APICallHelper.java:46)
... 23 common frames omitted
Release : 21.0, 12.3
Component : AUTOMATION ENGINE
Data inconsistency.
Some user group objects contain an entry of type 'USG' which were created in an earlier release.
The xml export of the user group object contains the following entries:
<Rights>
<row AL="1|1 " B1="1" B2="0" B3="0" B4="0" B5="0" B6="0" B7="0" B8="0" B9="0" F1="*" F2="*" F3="*" F4="*" F5="*" F6="*" F7="*" F8="*"/>
<row AL="1|1 " B1="1" B2="0" B3="0" B4="0" B5="0" B6="0" B7="0" B8="0" B9="0" F1="*" F2="\CASES\IAN\20304128" F3="*" F4="*" F5="*" F6="*" F7="*" F8="*"/>
<row AL="1|1 " B1="1" B2="0" B3="1" B4="0" B5="0" B6="0" B7="0" B8="0" B9="0" F1="JOBI" F2="*" F3="*" F4="*" F5="*" F6="*" F7="*" F8="*"/>
<row AL="1|1 " B1="0" B2="0" B3="1" B4="0" B5="0" B6="0" B7="0" B8="0" B9="0" F1="JOBP" F2="JOBP.SCHDOPEN.WORKFLOW.SP" F3="*" F4="*" F5="*" F6="*" F7="*" F8="*"/>
<row AL="1|1 " B1="0" B2="0" B3="0" B4="0" B5="0" B6="0" B7="1" B8="1" B9="0" F1="USG" F2="*" F3="*" F4="*" F5="*" F6="*" F7="*" F8="*"/>
</Rights>
Change 'USG' to 'USRG' and import the user group object with the option 'Replace existing objects'.
Once done the user group object can be opened in the AWI again.
If a lot of user group objects are affected please contact Support for an update SQL statement.