# Nullpointer Exception Met While Encrypted Data Synchronization Task Was Running

**URL:** <https://developer.sailpoint.com/discuss/t/nullpointer-exception-met-while-encrypted-data-synchronization-task-was-running/72706>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq\
**Created:** [July 15, 2024, 9:48am UTC](https://developer.sailpoint.com/discuss/t/nullpointer-exception-met-while-encrypted-data-synchronization-task-was-running/72706 "2024-07-15T09:48:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![LohithHarish](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@LohithHarish](https://developer.sailpoint.com/discuss/u/LohithHarish)\
**Post date:** [July 15, 2024, 9:48am UTC](https://developer.sailpoint.com/discuss/t/nullpointer-exception-met-while-encrypted-data-synchronization-task-was-running/72706/1 "2024-07-15T09:48:30Z")

</div>

Hi there, sailors Hopefully, all is well with you.

Nullpointer exception has been occurring when I’m executing the “Encrypted Data Synchronization task”.We first encountered a different error message, which read, “An unexpected error occurred: Given final block not properly padded. Such issues can arise if a bad key is used during decryption…” But in some way, we managed to locate the application whose password isn’t decryptable and fixed it, then from later execution onwards we’re encountering a Null Pointer Exception.I would appreciate any assistance with this matter.

Current Error:- An unexpected error occurred: java.lang.NullPointerException

---

<div class="post-metadata">

**Author:** ![enistriminsait](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@enistriminsait](https://developer.sailpoint.com/discuss/u/enistriminsait)\
**Post date:** [July 15, 2024, 9:58am UTC](https://developer.sailpoint.com/discuss/t/nullpointer-exception-met-while-encrypted-data-synchronization-task-was-running/72706/2 "2024-07-15T09:58:53Z")

</div>

> [@LohithHarish](#):
>
> Encrypted Data Synchronization task

Hi @LohithHarish,

Have you configured correctly the keystore?  
You can follow this guide:  
[https://community.sailpoint.com/t5/Technical-White-Papers/Using-the-IdentityIQ-Keystore/ta-p/75490](https://community.sailpoint.com/t5/Technical-White-Papers/Using-the-IdentityIQ-Keystore/ta-p/75490)

If yes, try to activate, on for time, the flag of the task:

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/7/74f95b5dea71dcfc8734f9f72667476ba949565a.png)

first only application, later only identity ecc…so you can find in which type of object there is a problem.

Also, you can activate the logs for this task for have more informations:  
`log4j.logger.sailpoint.task.EncryptedDataSyncExecutor=trace`

Sure this task is tring to recalculate a pwd of something without pwd or inconsistent

---

<div class="post-metadata">

**Author:** ![LohithHarish](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@LohithHarish](https://developer.sailpoint.com/discuss/u/LohithHarish)\
**Post date:** [July 17, 2024, 6:56am UTC](https://developer.sailpoint.com/discuss/t/nullpointer-exception-met-while-encrypted-data-synchronization-task-was-running/72706/3 "2024-07-17T06:56:27Z")

</div>

Thanks for the reply @enistriminsait i’ll give it a try

---

<div class="post-metadata">

**Author:** ![LohithHarish](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@LohithHarish](https://developer.sailpoint.com/discuss/u/LohithHarish)\
**Post date:** [July 24, 2024, 12:52pm UTC](https://developer.sailpoint.com/discuss/t/nullpointer-exception-met-while-encrypted-data-synchronization-task-was-running/72706/4 "2024-07-24T12:52:15Z")

</div>

Finally, we were able to figure out the reason for this failure. There are a few apps that were corrupted, which caused this.

---

<div class="post-metadata">

**Author:** ![Debarun\_Synch](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Debarun\_Synch](https://developer.sailpoint.com/discuss/u/Debarun_Synch)\
**Post date:** [August 31, 2024, 4:38pm UTC](https://developer.sailpoint.com/discuss/t/nullpointer-exception-met-while-encrypted-data-synchronization-task-was-running/72706/5 "2024-08-31T16:38:33Z")

</div>

@enistriminsait Thanks for your suggestions. I am also getting JavaNullPointerException while running the Encrypted Data Synchronization task. Below is the Catalina.out log for the same

2024-08-30T17:03:08,584 ERROR QuartzScheduler\_Worker-1 sailpoint.task.EncryptedDataSyncExecutor:358 - Error executing Key Sync.  
java.lang.NullPointerException: null  
at sailpoint.tools.path.PutAllPathVisitor.visit(PutAllPathVisitor.java:46) ~[identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]  
at sailpoint.tools.path.Path.accept(Path.java:56) ~[identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]  
at sailpoint.tools.MapUtil.putAll(MapUtil.java:112) ~[identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]  
at sailpoint.task.EncryptedDataSyncExecutor.encryptAppConfigAttr(EncryptedDataSyncExecutor.java:581) ~[identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]  
at sailpoint.task.EncryptedDataSyncExecutor.handleApplication(EncryptedDataSyncExecutor.java:542) ~[identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]  
at sailpoint.task.EncryptedDataSyncExecutor.roundtrip(EncryptedDataSyncExecutor.java:407) ~[identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]  
at sailpoint.task.EncryptedDataSyncExecutor.execute(EncryptedDataSyncExecutor.java:304) [identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]  
at sailpoint.api.TaskManager.runSync(TaskManager.java:981) [identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]  
at sailpoint.api.TaskManager.runSync(TaskManager.java:764) [identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]  
at sailpoint.scheduler.JobAdapter.execute(JobAdapter.java:128) [identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]  
at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.3.2.jar:?]  
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?]

Also, I have run the task by activating those flag one at a time. But every time it failed with NullPointerException, but while activating Disable Application Synchronizationflag, got An unexpected error occurred: org.hibernate.exception.GenericJDBCException: could not execute statement. Please assist.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [October 30, 2024, 4:39pm UTC](https://developer.sailpoint.com/discuss/t/nullpointer-exception-met-while-encrypted-data-synchronization-task-was-running/72706/6 "2024-10-30T16:39:04Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
