Actions
Defect #968
closedSync - contracts - item log is null
Start date:
02/15/2018
Due date:
% Done:
0%
Estimated time:
Affected versions:
Owner:
Description
We have discovered a very odd behavior of customer contract synchronization.
- Synchronization has been linked against the table in MSSQL (net.sourceforge.jtds.jdbc.Driver).
- The system was created as duplicate a system for synchronizing identity.
- An error has occurred whenever synchronization is started:
java.lang.NullPointerException at eu.bcvsolutions.idm.acc.service.impl.ContractSynchronizationExecutor.getValueByMappedAttribute(ContractSynchronizatio nExecutor.java:395) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.handleIcObject(AbstractSynchronizationExecutor.j ava:507) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor$DefaultResultHandler.handle(AbstractSynchronizat ionExecutor.java:2123) at eu.bcvsolutions.idm.ic.connid.service.impl.ConnIdIcConnectorService$2.handle(ConnIdIcConnectorService.java:250) at org.identityconnectors.framework.impl.api.SearchResultsHandlerLoggingProxy.handle(SearchResultsHandlerLoggingProxy.java:64) at org.identityconnectors.framework.impl.api.StreamHandlerUtil$ObjectStreamHandlerAdapter.handle(StreamHandlerUtil.java:101) at org.identityconnectors.framework.impl.api.BufferedResultsProxy.invoke(BufferedResultsProxy.java:262)
- No LogItems were created. The error was only in the main synchronization log.
- We have never been able to simulate this problem.
- Solution: re-creating the system with the same settings (including synchronization).
- After mapping has been reselected in a failed sync, this synchronization has started to work properly.
Updated by Marcel Poul almost 7 years ago
- Priority changed from Normal to High
I came across the situation again in contracts synchronization. I return a valid String value from my transformation script into Contract's attribute Guarantees and then the synchronization immidiately fails with Nullpointer exception.
Alltoghether the sync. mapping consist of only 3 attributes. owner, guarantee, validTill.
Updated by Vít Švanda almost 7 years ago
- Status changed from New to Needs feedback
- Assignee changed from Vít Švanda to Ondřej Kopr
- Target version changed from Garnet (7.7.0) to Hematite (8.0.0)
Problem was in the custom sync filter.
- If was selected token attribute and this attribute was mapped as "owner" attribute, then this nullpointer (for contract sync) was throwed.
- Before workaround worked, because after mapping (selected in sync) was changed, then the token attribute is always cleared.
- I fixed this bug in the https://github.com/bcvsolutions/CzechIdMng/commits/vsvanda/968-sync-contracts-item-log-is-null
Updated by Vít Švanda almost 7 years ago
- Target version changed from Hematite (8.0.0) to Garnet (7.8.1)
Updated by Vít Švanda almost 7 years ago
- Status changed from Needs feedback to Closed
Actions