Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/23/2022 07:27 AM
We have custom jar deployed on the server and created job to invoke the methods.
Job is returning 'Success' result, but actual code is not getting executed nor logs coming up in ECM-Worker.
Are there any configurations which needs to be done on the server or missing something that I am not sure.
Can someone please help me? If any step-by step custom jar configuration article please provide.
Thank you in Advance.
Regards,
Vijaya
Solved! Go to Solution.
09/23/2022 07:56 AM
Logger https://saviynt.freshdesk.com/support/solutions/articles/43000527658-logger-configuration
Refer This post - https://forums.saviynt.com/t5/identity-governance/preprocessor-jar-file/m-p/11461#M3183
09/30/2022 05:44 AM
Hi Rushikesh,
Thank you for your quick reply.
I have referred above blogs and able to configure custom code. It ran for first time but when I am editing input files then it giving me an error "Error \u001b[22;39mEntitlementLoad :: readProperties:: IOException occurred :: /saviynt_shared/Import/Datafiles/ParameterFile.csv (No such file or directory)". Input file is uploaded at same location. Any suggestion please?
Thanks,
Vijaya
09/30/2022 05:47 AM
Does your path is correct?
Validate path same as mentioned in externalconfig.properties
09/30/2022 05:52 AM
Yes, Its correct. Code ran for first time, when I am editing input file at that time getting "IOException".
Thanks,
Vijaya
09/30/2022 06:10 AM
Does file exists on server with proper rights
10/01/2022 01:52 AM
Hi @Vijayak
2021 does not support Custom Logger implementation which uses a separate log file to be created on the backend services.
Please use the standard system.out (System.out.println() ) and the output would be available to view in ecm-worker service logs.
10/03/2022 08:36 AM
Hi Rushikesh,
Yes, File is present in Datafiles folder and same path location we are using in code.
And as mentioned by Sahaj, using standard system.out (System.out.println() ) to print output in application logs. In the logs only I can see "IO Exception".
Regards,
Vijaya
10/03/2022 08:54 AM
Can you provide file screenshot with permission for files
10/07/2022 04:36 AM
IO Exception issue got fixed. Actually 'Datafiles' folder path in 'externalconfig.properties' was different than the actual path on server, this was causing the issue.
Thanks Rushikesh and Sahaj for your help.