Skip to Content
0
May 13 at 02:53 PM

SAP Commerce 2105.9 - ClassCastException - AttributeDescriptor cannot be cast to RelationDescriptor

71 Views

Hi All,

I am working on upgrading SAP Commerce from 1905 to 2105.9. Code compilation and server startup is fine without any errors however, i am getting below error after startup.

Also, the categories in backoffice are showing "Internal Error" and logs are showing same error:

[2022-05-12T20:44:28,662] [] [] [hybrisHTTP37] [SyncStatusCellRenderer] ERROR Unable to calculate sync status

java.lang.ClassCastException: class de.hybris.platform.jalo.type.AttributeDescriptor cannot be cast to class de.hybris.platform.jalo.type.RelationDescriptor (de.hybris.platform.jalo.type.AttributeDescriptor and de.hybris.platform.jalo.type.RelationDescriptor are in unnamed module of loader de.hybris.bootstrap.loader.PlatformInPlaceClassLoader @52552067)

at de.hybris.platform.util.OneToManyHandler.getRelationsInfo(OneToManyHandler.java:111)

at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:167)

at de.hybris.platform.util.OneToManyHandler.getValues(OneToManyHandler.java:274)

at de.hybris.platform.catalog.jalo.GeneratedCatalogVersion.getIncomingSynchronizations(GeneratedCatalogVersion.java:983)

at jdk.internal.reflect.GeneratedMethodAccessor977.invoke(Unknown Source)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at de.hybris.platform.jalo.type.ReflectionAttributeAccess$AttributeMethod.invokeGetter(ReflectionAttributeAccess.java:753)

at de.hybris.platform.jalo.type.ReflectionAttributeAccess.getValue(ReflectionAttributeAccess.java:959)

at de.hybris.platform.jalo.Item.getAttribute(Item.java:1921)

at de.hybris.platform.servicelayer.internal.model.impl.JaloPersistenceObject.readRawValue(JaloPersistenceObject.java:104)

at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.readSingleAttribute(ItemModelConverter.java:1431)

at de.hybris.platform.servicelayer.internal.converter.impl.ItemAttributeProvider.getAttribute(ItemAttributeProvider.java:110)

at de.hybris.platform.servicelayer.model.ItemModelContextImpl.loadUnlocalizedAttribute(ItemModelContextImpl.java:285)

at de.hybris.platform.servicelayer.model.ItemModelContextImpl.getValue(ItemModelContextImpl.java:245)

at de.hybris.platform.servicelayer.model.ItemModelContextImpl.getPropertyValue(ItemModelContextImpl.java:261)

at de.hybris.platform.catalog.model.CatalogVersionModel.getIncomingSynchronizations(CatalogVersionModel.java:356)

at com.hybris.backoffice.sync.facades.DefaultSynchronizationFacade.getInboundSynchronizations(DefaultSynchronizationFacade.java:174)

at com.hybris.backoffice.sync.facades.DefaultSynchronizationFacade.getSynchronizations(DefaultSynchronizationFacade.java:165)

at java.base/java.util.Optional.map(Optional.java:265)

at com.hybris.backoffice.sync.facades.DefaultSynchronizationFacade.isInSync(DefaultSynchronizationFacade.java:249)

at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)

at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)

at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)

at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)

at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)

at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)

at com.hybris.backoffice.sync.facades.DefaultSynchronizationFacade.isInSync(DefaultSynchronizationFacade.java:242)

at com.hybris.backoffice.sync.renderers.SyncStatusCellRenderer.loadData(SyncStatusCellRenderer.java:75)

at com.hybris.backoffice.sync.renderers.SyncStatusCellRenderer.render(SyncStatusCellRenderer.java:49)

at com.hybris.backoffice.sync.renderers.SyncStatusCellRenderer.render(SyncStatusCellRenderer.java:1)

at com.hybris.cockpitng.widgets.common.AbstractImageBoxRenderer.renderAdditionalComponent(AbstractImageBoxRenderer.java:86)

at com.hybris.cockpitng.widgets.common.AbstractImageBoxRenderer.lambda$applyAdditionalRenderers$0(AbstractImageBoxRenderer.java:67)

at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)

at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)

at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)

at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)

at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)

at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)

at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)

at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)

at com.hybris.cockpitng.widgets.common.AbstractImageBoxRenderer.applyAdditionalRenderers(AbstractImageBoxRenderer.java:67)

at com.hybris.cockpitng.widgets.collectionbrowser.mold.impl.gridview.renderer.DefaultGridBoxRenderer.render(DefaultGridBoxRenderer.java:60)

at com.hybris.cockpitng.widgets.collectionbrowser.mold.impl.gridview.renderer.DefaultGridBoxRenderer.render(DefaultGridBoxRenderer.java:25)

at com.hybris.cockpitng.widgets.collectionbrowser.mold.impl.gridview.GridViewCollectionBrowserMoldStrategy.lambda$render$1(GridViewCollectionBrowserMoldStrategy.java:90)

at com.hybris.cockpitng.components.grid.GridBox.renderBox(GridBox.java:102)

at com.hybris.cockpitng.components.grid.GridBox.refreshView(GridBox.java:69)

at com.hybris.cockpitng.components.grid.GridBox.setModel(GridBox.java:295)

at com.hybris.cockpitng.widgets.collectionbrowser.mold.impl.gridview.GridViewCollectionBrowserMoldStrategy.processViewWith(GridViewCollectionBrowserMoldStrategy.java:258)

at com.hybris.cockpitng.widgets.collectionbrowser.mold.impl.gridview.GridViewCollectionBrowserMoldStrategy.setPage(GridViewCollectionBrowserMoldStrategy.java:248)

at com.hybris.cockpitng.widgets.collectionbrowser.mold.impl.PagingDelegateController.displayFetchedData(PagingDelegateController.java:130)

at com.hybris.cockpitng.widgets.collectionbrowser.mold.impl.PagingDelegateController.lambda$loadPage$1(PagingDelegateController.java:86)

at com.hybris.cockpitng.engine.impl.DefaultWidgetInstanceManager.onBackgroundOperationSuccess(DefaultWidgetInstanceManager.java:272)

at com.hybris.cockpitng.engine.impl.DefaultWidgetInstanceManager.lambda$prepareLongOperation$1(DefaultWidgetInstanceManager.java:219)

at com.hybris.cockpitng.engine.impl.DefaultWidgetInstanceManager.lambda$prepareLongOperation$3(DefaultWidgetInstanceManager.java:226)

at com.hybris.cockpitng.engine.operations.CockpitNGBackgroundOperation.lambda$scheduleForUI$1(CockpitNGBackgroundOperation.java:156)

at org.zkoss.zk.ui.impl.DesktopImpl$ScheduleInfo.invoke(DesktopImpl.java:1803)

at org.zkoss.zk.ui.impl.DesktopImpl$ScheduleInfo.access$1100(DesktopImpl.java:1790)

at org.zkoss.zk.ui.impl.DesktopImpl$ScheduleListener.onEvent(DesktopImpl.java:1814)

at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:3179)

at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:3149)

at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:3091)

at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138)

at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1845)

at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1617)

at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1320)

at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:611)

at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:487)

at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:495)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:204)

at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183)

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at com.hybris.backoffice.mobile.filter.BackofficeMobileFilter.doFilter(BackofficeMobileFilter.java:56)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at de.hybris.platform.servicelayer.web.WebAppMediaFilter.doFilter(WebAppMediaFilter.java:160)

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:338)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$StatisticsGatewayFilter.doFilter(AbstractPlatformFilterChain.java:426)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at com.hybris.backoffice.filter.responseheaders.BackofficeLoginErrorFilter.doFilter(BackofficeLoginErrorFilter.java:33)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at com.hybris.backoffice.security.BackofficeDynamicCatalogVersionActivationFilter.doFilter(BackofficeDynamicCatalogVersionActivationFilter.java:81)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at de.hybris.platform.servicelayer.web.DataSourceSwitchingFilter.doFilter(DataSourceSwitchingFilter.java:59)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at de.hybris.platform.servicelayer.web.session.stale.impl.DefaultStaleSessionCheckingFilterChain.filterWithStaleSessionChecking(DefaultStaleSessionCheckingFilterChain.java:92)

at de.hybris.platform.servicelayer.web.session.stale.impl.DefaultStaleSessionCheckingFilterChain.doFilter(DefaultStaleSessionCheckingFilterChain.java:58)

at de.hybris.platform.servicelayer.web.SessionFilter.doFilterInternal(SessionFilter.java:122)

at de.hybris.platform.servicelayer.web.SessionFilter.doFilter(SessionFilter.java:84)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at de.hybris.platform.servicelayer.web.session.HybrisSpringSessionFilter.doFilter(HybrisSpringSessionFilter.java:67)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at com.hybris.cockpitng.modules.spring.filter.ExternalModuleContextClassLoaderFilter.doFilter(ExternalModuleContextClassLoaderFilter.java:37)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at de.hybris.platform.servicelayer.web.RedirectWhenSystemIsNotInitializedFilter.doFilter(RedirectWhenSystemIsNotInitializedFilter.java:94)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at de.hybris.platform.servicelayer.web.TenantActivationFilter.doFilter(TenantActivationFilter.java:76)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at de.hybris.platform.servicelayer.web.Log4JFilter.doFilter(Log4JFilter.java:37)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at com.hybris.backoffice.filter.responseheaders.BackofficeResponseHeadersFilter.doFilter(BackofficeResponseHeadersFilter.java:31)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:308)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.processStandardFilterChain(AbstractPlatformFilterChain.java:216)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.doFilterInternal(AbstractPlatformFilterChain.java:193)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at de.hybris.platform.servicelayer.web.XSSFilter.processPatternsAndDoFilter(XSSFilter.java:351)

at de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:299)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:196)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)

at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:182)

at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:329)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:364)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:624)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1650)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)

at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.base/java.lang.Thread.run(Thread.java:829)