SAP Knowledge Base Article - Preview

3254114 - Can't edit products in backoffice due to java.lang.ClassCastException

Symptom

  • Trying to edit a product, you get popup error in backoffice when saving

  • In console logs you get java.lang.ClassCastException wit the following stacktrace:
"ERROR","loggerName":"org.zkoss.zk.ui.impl.UiEngineImpl","message":"","thrown":{"commonElementCount":0,"localizedMessage":"class de.hybris.platform.cronjob.model.CronJobModel cannot be cast to class de.hybris.platform.catalog.model.SyncItemCronJobModel (de.hybris.platform.cronjob.model.CronJobModel and de.hybris.platform.catalog.model.SyncItemCronJobModel are in unnamed module of loader de.hybris.bootstrap.loader.PlatformInPlaceClassLoader @7b633bf5)","message":"class de.hybris.platform.cronjob.model.CronJobModel cannot be cast to class de.hybris.platform.catalog.model.SyncItemCronJobModel (de.hybris.platform.cronjob.model.CronJobModel and de.hybris.platform.catalog.model.SyncItemCronJobModel are in unnamed module of loader de.hybris.bootstrap.loader.PlatformInPlaceClassLoader @7b633bf5)","name":"java.lang.ClassCastException","extendedStackTrace":[{"class":"java.util.stream.MatchOps$1MatchSink","method":"accept","file":"MatchOps.java","line":90,"exact":false,"location":"?","version":"?"},{"class":"java.util.ArrayList$ArrayListSpliterator","method":"tryAdvance","file":"ArrayList.java","line":1632,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.ReferencePipeline","method":"forEachWithCancel","file":"ReferencePipeline.java","line":127,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.AbstractPipeline","method":"copyIntoWithCancel","file":"AbstractPipeline.java","line":502,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.AbstractPipeline","method":"copyInto","file":"AbstractPipeline.java","line":488,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.AbstractPipeline","method":"wrapAndCopyInto","file":"AbstractPipeline.java","line":474,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.MatchOps$MatchOp","method":"evaluateSequential","file":"MatchOps.java","line":230,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.MatchOps$MatchOp","method":"evaluateSequential","file":"MatchOps.java","line":196,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.AbstractPipeline","method":"evaluate","file":"AbstractPipeline.java","line":234,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.ReferencePipeline","method":"anyMatch","file":"ReferencePipeline.java","line":528,"exact":false,"location":"?","version":"?"},{"class":"de.hybris.platform.catalog.synchronization.DefaultCatalogSynchronizationService","method":"isInProgress","file":"DefaultCatalogSynchronizationService.java","line":246,"exact":false,"location":"platformservicesserver.jar","version":"?"},{"class":"java.util.stream.MatchOps$1MatchSink","method":"accept","file":"MatchOps.java","line":90,"exact":false,"location":"?","version":"?"},{"class":"java.util.ArrayList$ArrayListSpliterator","method":"tryAdvance","file":"ArrayList.java","line":1632,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.ReferencePipeline","method":"forEachWithCancel","file":"ReferencePipeline.java","line":127,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.AbstractPipeline","method":"copyIntoWithCancel","file":"AbstractPipeline.java","line":502,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.AbstractPipeline","method":"copyInto","file":"AbstractPipeline.java","line":488,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.AbstractPipeline","method":"wrapAndCopyInto","file":"AbstractPipeline.java","line":474,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.MatchOps$MatchOp","method":"evaluateSequential","file":"MatchOps.java","line":230,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.MatchOps$MatchOp","method":"evaluateSequential","file":"MatchOps.java","line":196,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.AbstractPipeline","method":"evaluate","file":"AbstractPipeline.java","line":234,"exact":false,"location":"?","version":"?"},{"class":"java.util.stream.ReferencePipeline","method":"anyMatch","file":"ReferencePipeline.java","line":528,"exact":false,"location":"?","version":"?"},{"class":"com.hybris.backoffice.sync.facades.DefaultSynchronizationFacade","method":"isSyncInProgress","file":"DefaultSynchronizationFacade.java","line":293,"exact":false,"location":"classes/","version":"?"},{"class":"com.hybris.backoffice.editorarea.BackofficeEditorAreaLogicHandler","method":"isSyncInProgress","file":"BackofficeEditorAreaLogicHandler.java","line":49,"exact":false,"location":"classes/","version":"?"},{"class":"com.hybris.backoffice.editorarea.BackofficeEditorAreaLogicHandler","method":"executeSaveWithConfirmation","file":"BackofficeEditorAreaLogicHandler.java","line":37,"exact":false,"location":"classes/","version":"?"},{"class":"com.hybris.cockpitng.widgets.baseeditorarea.DefaultEditorAreaController","method":"executeSaveWithConfirmation","file":"DefaultEditorAreaController.java","line":791,"exact":false,"location":"backoffice-widgets-21.05.13-RC1.jar","version":"?"},{"class":"com.hybris.cockpitng.widgets.baseeditorarea.DefaultEditorAreaController","method":"saveObject","file":"DefaultEditorAreaController.java","line":315,"exact":false,"location":"backoffice-widgets-21.05.13-RC1.jar","version":"?"},{"class":"jdk.internal.reflect.NativeMethodAccessorImpl","method":"invoke0","file":"NativeMethodAccessorImpl.java","line":-2,"exact":false,"location":"?","version":"?"}...


Read more...

Environment

SAP Commerce Cloud

Product

SAP Commerce Cloud 1905

Keywords

KBA , CEC-COM-CPS-CAS , Catalog & Sync , 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.