and more in a single search tool across platforms. Read the announcement here. |
04/12/2022 01:20 PM
Hi team,
When I create a new user with same name as an existing user with generate email, it throws ArrayIndexOutOfBoundsException, I have configured the following email generation rule in advanced config. If the first one exists.
Can you please check if the config is right or is it some other issue?
Config -
case when (users.departmentname='dept1') then concat(users.firstname,'.',users.lastname,'@company.com') else concat(users.firstname,'.',users.lastname,'@comp.com') end ### case when (users.departmentname='dept1') then concat(users.firstname,'.',users.lastname,'1@company.com') else concat(users.firstname,'.',users.lastname,'1@comp.com') end ### case when (users.departmentname='dept1') then concat(users.firstname,'.',users.lastname,'2@company.com') else concat(users.firstname,'.',users.lastname,'2@comp.com') end
Error -
2020-11-01 22:33:13,468 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - New PropertyName :Peter.Berg@vhi.ie
2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - Email Peter.Berg@vhi.ie exists so ignoring rule (ADV:case when (users.departmentname='Swiftcare') then concat(users.firstname,'.',users.lastname,'@vhiswiftcare.ie') else concat(users.firstname,'.',users.lastname,'@vhi.ie') end)
2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - Evaluating Rule :: ADV:
2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - spclChars-
2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - rule-ADV:
2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - ruleFilters-[ruletype:EMAIL]
2020-11-01 22:33:13,470 [https-jsse-nio-443-exec-185] DEBUG services.WorkflowService - specialChars-@._-
2020-11-01 22:33:13,472 [https-jsse-nio-443-exec-185] ERROR errors.GrailsExceptionResolver - ArrayIndexOutOfBoundsException occurred when processing request: [POST] /ECM/users/uploaduserfinalstep
Stacktrace follows:
java.lang.ArrayIndexOutOfBoundsException
2020-11-01 22:33:13,476 [https-jsse-nio-443-exec-185] ERROR error.ErrorController - Exception
org.codehaus.groovy.grails.web.errors.GrailsWrappedRuntimeException
at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
at com.saviynt.webservice.SaviyntRestAuthenticationFilter.doFilter(SaviyntRestAuthenticationFilter.groovy:145)
at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62)
at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.java:59)
at com.mrhaki.grails.plugin.xframeoptions.web.XFrameOptionsFilter.doFilterInternal(XFrameOptionsFilter.java:69)
at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ArrayIndexOutOfBoundsException
2020-11-01 22:33:27,320 [https-jsse-nio-443-exec-233] DEBUG domain.FlatViewJobcontrolController - ecmjobIdQuery .. select max(eij.JOBID) as 'JobId' from EcmImportJob eij where eij.TRIGGERNAME in (select qrt.TRIGGER_NAME from qrtz_triggers qrt) group by eij.TRIGGERNAME
2020-11-01 22:33:27,334 [https-jsse-nio-443-exec-233] DEBUG domain.FlatViewJobcontrolController - jobIdList size = 34
Solved! Go to Solution.
04/12/2022 03:03 PM
Hi Sakshi, What is the version you are using?
Thanks
Ajay
04/12/2022 03:04 PM
Its 5.5 SP3
04/12/2022 03:04 PM
Hi Sakshi, Request you to please create a support ticket for the issue.
Thanks
Ajay
04/12/2022 03:04 PM
Hi Team,
We are also facing Array index out of bound when trying to generate email using advance query, Could you please guide how this issue was resolved.
Thanks,
Sitarasmi