SAP Knowledge Base Article - Preview

2281831 - Exception de.hybris.platform.servicelayer.exceptions.ModelSavingException: org.springframework.dao.DuplicateKeyException when refreshing token

Symptom

Below exception

[...]

de.hybris.platform.servicelayer.exceptions.ModelSavingException: org.springframework.dao.DuplicateKeyException: query; SQL []; Duplicate entry '123456789abcd' for key 'authenticationIdIdx_6228'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '123456789abcd' for key 'authenticationIdIdx_6228' at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.createNewItem(ItemModelConverter.java:2035)

[...]

occurs when calling refreshing token via https://localhost:9002/rest/oauth/token several times simultaneously.


Read more...

Environment

hybris commerce suite version 5.6 and 5.7

Product

SAP hybris Commerce 5.7 ; SAP hybris Commerce Suite 5.6

Keywords

spring, DuplicateKeyException, token, oauth, spring , KBA , CEC-COM-CPS-COR , SAP Commerce Core , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.