Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Custom Jar Configuration and Loggers

Vijayak
New Contributor
New Contributor

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

9 REPLIES 9

rushikeshvartak
All-Star
All-Star

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 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Vijayak
New Contributor
New Contributor

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

Does your path is correct? 

Validate path same as mentioned in externalconfig.properties


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Yes, Its correct. Code ran for first time, when I am editing input file at that time getting "IOException".

Thanks,

Vijaya

Does file exists on server with proper rights


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

sahajranajee
Saviynt Employee
Saviynt Employee

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.

 


Regards,
Sahaj Ranajee
Sr. Product Specialist

Vijayak
New Contributor
New Contributor

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

 

 

 

Can you provide file screenshot with permission for files


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

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.