Symptom
In OOTB Commerce cloud version 2205 or 2221, following error can be seen in logs when doing full sync.
ERROR [SyncWorker<00000334 1 of 10>] [InvalidationTopic] unexpected error invalidating InvalidationTopic[hjmp, entity] via listener de.hybris.platform.cache.relation.RelationInvalidationListener@228ab48a java.lang.IllegalStateException: The transaction is performing invalidatins after commit / rollback. You cannot access the database in this phase. at de.hybris.platform.tx.Transaction.getTXBoundConnection(Transaction.java:2006) ~[coreserver.jar:?] at de.hybris.platform.jdbcwrapper.DataSourceImpl.getFromPool(DataSourceImpl.java:484) ~[coreserver.jar:?] at de.hybris.platform.jdbcwrapper.DataSourceImpl.doGetConnection(DataSourceImpl.java:465) ~[coreserver.jar:?] at de.hybris.platform.jdbcwrapper.DataSourceImpl.getConnection(DataSourceImpl.java:456) ~[coreserver.jar:?] at de.hybris.platform.jdbcwrapper.DataSourceImpl.getConnection(DataSourceImpl.java:410) ~[coreserver.jar:?] at de.hybris.platform.persistence.type.ComposedType_HJMPWrapper$FindByTypeCode1FinderResult.getFromDatabase(ComposedType_HJMPWrapper.java:1239) ~[coreserver.jar:?] at de.hybris.platform.persistence.type.ComposedType_HJMPWrapper$FindByTypeCode1FinderResult.compute(ComposedType_HJMPWrapper.java:1227) ~[coreserver.jar:?] at de.hybris.platform.cache.AbstractCacheUnit.privateGetNoLock(AbstractCacheUnit.java:297) ~[coreserver.jar:?] at de.hybris.platform.cache.AbstractCacheUnit.privateGet(AbstractCacheUnit.java:270) ~[coreserver.jar:?] at de.hybris.platform.cache.AbstractCacheUnit.get(AbstractCacheUnit.java:172) ~[coreserver.jar:?] at de.hybris.platform.persistence.type.ComposedType_HJMPWrapper$FindByTypeCode1FinderResult.getFinderResult(ComposedType_HJMPWrapper.java:1199) ~[coreserver.jar:?] at de.hybris.platform.persistence.type.ComposedType_HJMPWrapper.ejbFindByTypeCode(ComposedType_HJMPWrapper.java:1272) ~[coreserver.jar:?] at jdk.internal.reflect.GeneratedMethodAccessor1599.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at de.hybris.platform.util.Utilities.callMethod(Utilities.java:1021) ~[coreserver.jar:?] at de.hybris.platform.util.Utilities.callMethod(Utilities.java:1011) ~[coreserver.jar:?] at de.hybris.platform.persistence.framework.HomeInvocationHandler.invokeMethod(HomeInvocationHandler.java:105) ~[coreserver.jar:?] at de.hybris.platform.persistence.framework.HomeInvocationHandler.invoke(HomeInvocationHandler.java:55) ~[coreserver.jar:?] at jdk.proxy2.$Proxy194.findByTypeCode(Unknown Source) ~[?:?] at de.hybris.platform.persistence.type.TypeManagerEJB.getRootComposedType(TypeManagerEJB.java:445) ~[coreserver.jar:?] at de.hybris.platform.jalo.type.TypeManager.getRootComposedType(TypeManager.java:338) ~[coreserver.jar:?] at de.hybris.platform.cache.relation.TypePKsExtractor.getTypePKs(TypePKsExtractor.java:62) ~[coreserver.jar:?] at java.util.Optional.map(Optional.java:260) ~[?:?] at de.hybris.platform.cache.relation.TypePKsExtractor.lambda$extractTypePKs$1(TypePKsExtractor.java:32) ~[coreserver.jar:?] at java.util.Optional.or(Optional.java:313) ~[?:?] at de.hybris.platform.cache.relation.TypePKsExtractor.extractTypePKs(TypePKsExtractor.java:32) ~[coreserver.jar:?] at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?] at de.hybris.platform.cache.relation.CachingRelationAttributesProvider.extractTypePKs(CachingRelationAttributesProvider.java:40) ~[coreserver.jar:?] at de.hybris.platform.cache.relation.CachingRelationAttributesProvider.lambda$getTypePKs$0(CachingRelationAttributesProvider.java:35) ~[coreserver.jar:?] at java.util.Optional.orElseGet(Optional.java:364) ~[?:?] at de.hybris.platform.cache.relation.CachingRelationAttributesProvider.getTypePKs(CachingRelationAttributesProvider.java:35) ~[coreserver.jar:?] at de.hybris.platform.cache.relation.CachingRelationAttributesProvider.getRelationAttributes(CachingRelationAttributesProvider.java:30) ~[coreserver.jar:?] at de.hybris.platform.cache.relation.ConfigurableRelationAttributesProvider.getRelationAttributes(ConfigurableRelationAttributesProvider.java:38) ~[coreserver.jar:?] at de.hybris.platform.cache.relation.DefaultRelationsCache.getAllCacheableAttributes(DefaultRelationsCache.java:77) ~[coreserver.jar:?] at de.hybris.platform.cache.relation.RelationInvalidationListener.getCacheableAttributes(RelationInvalidationListener.java:96) ~[coreserver.jar:?] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?] at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:411) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?] at de.hybris.platform.cache.relation.RelationInvalidationListener.invalidateByTypeIds(RelationInvalidationListener.java:86) ~[coreserver.jar:?] at de.hybris.platform.cache.relation.RelationInvalidationListener.invalidateByTypeCode(RelationInvalidationListener.java:76) ~[coreserver.jar:?] at de.hybris.platform.cache.relation.RelationInvalidationListener.keyInvalidated(RelationInvalidationListener.java:53) ~[coreserver.jar:?] at de.hybris.platform.cache.InvalidationTopic.invalidateLocally(InvalidationTopic.java:149) ~[coreserver.jar:?] at de.hybris.platform.cache.InvalidationTopic.invalidateLocally(InvalidationTopic.java:159) ~[coreserver.jar:?] at de.hybris.platform.tx.InvalidationSet$InvalidationManagerProcessor.invalidateLocally(InvalidationSet.java:716) ~[coreserver.jar:?] at de.hybris.platform.tx.InvalidationSet.executeDelayedInvalidationsLocally(InvalidationSet.java:308) ~[coreserver.jar:?] at de.hybris.platform.tx.InvalidationSet.executeDelayedRollbackInvalidationsLocally(InvalidationSet.java:296) ~[coreserver.jar:?] at de.hybris.platform.tx.Transaction.notifyRollback(Transaction.java:1165) ~[coreserver.jar:?] at de.hybris.platform.tx.Transaction.clearTxBoundConnectionAndNotify(Transaction.java:955) ~[coreserver.jar:?] at de.hybris.platform.tx.Transaction.clearTxBoundConnectionAndNotifyRollback(Transaction.java:929) ~[coreserver.jar:?] at de.hybris.platform.tx.Transaction.rollbackOuter(Transaction.java:1133) ~[coreserver.jar:?] at de.hybris.platform.tx.Transaction.rollback(Transaction.java:1074) ~[coreserver.jar:?] at de.hybris.platform.tx.Transaction.commit(Transaction.java:726) ~[coreserver.jar:?] at de.hybris.platform.tx.Transaction.handleCommitForFinishExecute(Transaction.java:1349) ~[coreserver.jar:?] at de.hybris.platform.tx.Transaction.finishExecute(Transaction.java:1329) ~[coreserver.jar:?] at de.hybris.platform.tx.Transaction.execute(Transaction.java:1299) ~[coreserver.jar:?] at de.hybris.platform.tx.Transaction.execute(Transaction.java:1207) ~[coreserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator.doCopyInTx(ItemCopyCreator.java:422) ~[catalogserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator.copy(ItemCopyCreator.java:246) ~[catalogserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.GenericCatalogCopyContext.copy(GenericCatalogCopyContext.java:2360) ~[catalogserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncCopyContext.copy(CatalogVersionSyncCopyContext.java:529) ~[catalogserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.GenericCatalogCopyContext.copy(GenericCatalogCopyContext.java:2285) ~[catalogserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncWorker.copyItem(CatalogVersionSyncWorker.java:182) ~[catalogserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncWorker.doSynchronization(CatalogVersionSyncWorker.java:153) ~[catalogserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncWorker$1.run(CatalogVersionSyncWorker.java:116) ~[catalogserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncMaster.runExclusiveIfNecessary(CatalogVersionSyncMaster.java:305) ~[catalogserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncWorker.run(CatalogVersionSyncWorker.java:89) ~[catalogserver.jar:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] at de.hybris.platform.core.threadregistry.RegistrableThread.internalRun(RegistrableThread.java:134) ~[coreserver.jar:?] at de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncWorkerThread.internalRun(CatalogVersionSyncWorkerThread.java:71) ~[catalogserver.jar:?] at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:124) ~[coreserver.jar:?] |
Read more...
Environment
- Product version: SAP Commerce Cloud 2205
- Product version: SAP Commerce Cloud 2211
Product
SAP Commerce Cloud 2205 ; SAP Commerce Cloud 2211
Keywords
sync,RelationInvalidationListener,IllegalStateException , KBA , CEC-SCC-PLA-PL , Platform , 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.