SAP Knowledge Base Article - Preview

3502911 - Deployment failed in migrate data stage with exception Caused by: java.lang.IllegalArgumentException: Multiple entries with same key: XXXX=de.hybris.bootstrap.ddl.dbtypesystem.impl.DbEnumerationValue@1b8a0420 and XXXX=de.hybris.bootstrap.ddl.dbtypesy

Symptom

The deployment failed in migrate data stage. And you could see the below log in platform-update pod.

Please note that the XXXX in below log is one example of the key name. It could be different in real case.

2024-08-02 00:31:03,032 main ERROR JsonLayout contains an invalid element or attribute "pattern"
java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at de.hybris.bootstrap.loader.Loader.execute(Loader.java:144)
    at de.hybris.bootstrap.loader.Loader.main(Loader.java:108)
Caused by: Sourced file: inline evaluation of: ``try                 {                     de.hybris.ant.taskdefs.AntPerformable p = new de.hybris.ant.taskd . . . '' : Method Invocation p.doPerform : at Line: 4 : in file: inline evaluation of: ``try                 {                     de.hybris.ant.taskdefs.AntPerformable p = new de.hybris.ant.taskd . . . '' : p .doPerform ( ) 

Target exception: java.lang.IllegalArgumentException: Multiple entries with same key: XXXX=de.hybris.bootstrap.ddl.dbtypesystem.impl.DbEnumerationValue@1b8a0420 and XXXX=de.hybris.bootstrap.ddl.dbtypesystem.impl.DbEnumerationValue@3cb2395. To index multiple values under a key, use Multimaps.index.

    at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:91)
    at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:96)
    at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:41)
    at bsh.BSHBlock.evalBlock(BSHBlock.java:125)
    at bsh.BSHBlock.eval(BSHBlock.java:75)
    at bsh.BSHBlock.eval(BSHBlock.java:41)
    at bsh.BSHTryStatement.eval(BSHTryStatement.java:80)
    at bsh.Interpreter.eval(Interpreter.java:659)
    at bsh.Interpreter.eval(Interpreter.java:750)
    at bsh.Interpreter.eval(Interpreter.java:739)
    at de.hybris.platform.util.ClientExecuter.execute(ClientExecuter.java:42)
    ... 6 more
Caused by: java.lang.IllegalArgumentException: Multiple entries with same key: XXXX=de.hybris.bootstrap.ddl.dbtypesystem.impl.DbEnumerationValue@1b8a0420 and XXXX=de.hybris.bootstrap.ddl.dbtypesystem.impl.DbEnumerationValue@3cb2395. To index multiple values under a key, use Multimaps.index.
    at com.google.common.collect.Maps.uniqueIndex(Maps.java:1383)
    at com.google.common.collect.Maps.uniqueIndex(Maps.java:1329)
    at de.hybris.bootstrap.ddl.dbtypesystem.impl.DbType.setEnumerationValues(DbType.java:134)
    at de.hybris.bootstrap.ddl.dbtypesystem.impl.DbTypeSystemImpl.linkDbTypeSystemEntities(DbTypeSystemImpl.java:230)
    at de.hybris.bootstrap.ddl.dbtypesystem.impl.DbTypeSystemImpl.initialize(DbTypeSystemImpl.java:152)
    at de.hybris.bootstrap.ddl.dbtypesystem.impl.DbTypeSystemFactory.createDbTypeSystem(DbTypeSystemFactory.java:26)
    at de.hybris.bootstrap.ddl.HybrisSchemaGenerator.createDbTypeSystem(HybrisSchemaGenerator.java:469)
    at de.hybris.bootstrap.ddl.HybrisSchemaGenerator.update(HybrisSchemaGenerator.java:259)
    at de.hybris.platform.core.Initialization.initializeSchemaAndTypeSystemFullyNewStyle(Initialization.java:1338)
    at de.hybris.platform.core.Initialization.initialize(Initialization.java:1212)
    at de.hybris.platform.core.Initialization.createEmptySystemOrUpdate(Initialization.java:851)
    at de.hybris.platform.core.Initialization$4.call(Initialization.java:595)
    at de.hybris.platform.core.Initialization$4.call(Initialization.java:590)
    at de.hybris.platform.core.Initialization$SessionRecoveryAfterRegistryStartupAwareExecutor.execute(Initialization.java:773)
    at de.hybris.platform.core.Initialization.doInitializeImpl(Initialization.java:598)
    at de.hybris.platform.core.Initialization$5.call(Initialization.java:895)
    at de.hybris.platform.core.Initialization$5.call(Initialization.java:886)
    at de.hybris.platform.core.system.InitializationLockHandler.performLocked(InitializationLockHandler.java:68)
    at de.hybris.platform.core.Initialization.doInitialize(Initialization.java:927)
    at de.hybris.ant.taskdefs.InitPlatformAntPerformableImpl.performImpl(InitPlatformAntPerformableImpl.java:107)
    at de.hybris.ant.taskdefs.AbstractAntPerformable.doPerform(AbstractAntPerformable.java:84)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at bsh.Reflect.invokeMethod(Reflect.java:131)
    at bsh.Reflect.invokeObjectMethod(Reflect.java:77)
    at bsh.Name.invokeMethod(Name.java:852)
    at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:69)
    ... 16 more
shutting down hybris registry..

BUILD FAILED
/opt/hybris/bin/platform/build.xml:139: The following error occurred while executing this line:
/opt/hybris/bin/platform/resources/ant/platformadministration.xml:99: The following error occurred while executing this line:
/opt/hybris/bin/platform/resources/ant/antmacros.xml:680: Java returned: 1


Read more...

Environment

SAP Commerce Cloud

Product

SAP Commerce Cloud 2205 ; SAP Commerce Cloud 2211

Keywords

ccv2, deployment, data migrate, deployment failed,Multiple entries with same key , KBA , CEC-SCC-CLA-DEP , Deployments , 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.