cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SmartEdit error: Couldn't instantiate item for given PK 8796143583314

phoude
Participant
0 Kudos
1,711

Hi, there is a content slot on my home page that is generating the below stack trace whenever I try to add or delete a component. The PK 8796143583314 is a ComposedType according to PK analyzer. Any help is appreciated.

INFO  [hybrisHTTP97] [RestHandlerExceptionResolver]    Translating exception [de.hybris.platform.servicelayer.exceptions.ModelSavingException]: Couldn't instantiate item for given PK 8796143583314
ERROR [hybrisHTTP97] [RestHandlerExceptionResolver]    de.hybris.platform.servicelayer.exceptions.ModelSavingException: Couldn't instantiate item for given PK 8796143583314
        at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.storeAttributes(ItemModelConverter.java:1831)
        at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.lambda$2(ItemModelConverter.java:864)
        at de.hybris.platform.servicelayer.internal.polyglot.UnitOfWorkInterceptor.lambda$0(UnitOfWorkInterceptor.java:71)
        at de.hybris.platform.servicelayer.internal.polyglot.UnitOfWorkInterceptor.execute(UnitOfWorkInterceptor.java:57)
        at de.hybris.platform.servicelayer.internal.polyglot.UnitOfWorkInterceptor.updateFromServiceLayer(UnitOfWorkInterceptor.java:28)
        at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.save(ItemModelConverter.java:864)
        at de.hybris.platform.servicelayer.internal.model.impl.wrapper.ModelWrapper.save(ModelWrapper.java:361)
        at de.hybris.platform.servicelayer.internal.model.impl.ResolvingModelPersister.saveOthers(ResolvingModelPersister.java:62)
        at de.hybris.platform.servicelayer.internal.model.impl.ResolvingModelPersister.persist(ResolvingModelPersister.java:47)
        at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveViaJalo(DefaultModelService.java:1173)
        at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.doJaloPersistence(DefaultModelService.java:732)
        at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.persistWrappers(DefaultModelService.java:1117)
        at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.performPersistenceOperations(DefaultModelService.java:709)
        at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveAllInternal(DefaultModelService.java:703)
        at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveAll(DefaultModelService.java:683)
        at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.save(DefaultModelService.java:630)
        at de.hybris.platform.cms2.servicelayer.services.admin.impl.DefaultCMSAdminComponentService.removeCMSComponentFromContentSlot(DefaultCMSAdminComponentService.java:263)
        at de.hybris.platform.cmsfacades.pagescontentslotscomponents.impl.DefaultPageContentSlotComponentFacade$1.doInTransactionWithoutResult(DefaultPageContentSlotComponentFacade.java:183)
        at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:36)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
        at de.hybris.platform.cmsfacades.pagescontentslotscomponents.impl.DefaultPageContentSlotComponentFacade.removeComponentFromContentSlot(DefaultPageContentSlotComponentFacade.java:178)
        at de.hybris.platform.cmswebservices.pagescontentslotscomponents.controller.PageContentSlotComponentController.removeComponent(PageContentSlotComponentController.java:198)
        at de.hybris.platform.cmswebservices.pagescontentslotscomponents.controller.PageContentSlotComponentController$$FastClassBySpringCGLIB$$1.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
        at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698)
        at de.hybris.platform.cmswebservices.pagescontentslotscomponents.controller.PageContentSlotComponentController$$EnhancerBySpringCGLIB$$1.removeComponent(<generated>)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1043)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
        at org.springframework.web.servlet.FrameworkServlet.doDelete(FrameworkServlet.java:931)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
        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 de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:322)
        at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$StatisticsGatewayFilter.doFilter(AbstractPlatformFilterChain.java:410)
        at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
        at de.hybris.platform.servicelayer.web.WebAppMediaFilter.doFilter(WebAppMediaFilter.java:160)
        at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
        at de.hybris.platform.webservicescommons.oauth2.HybrisOauth2UserFilter.doFilter(HybrisOauth2UserFilter.java:47)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:158)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:182)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92)
        at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:157)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
        at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
        at de.hybris.platform.cmswebservices.filter.RestSessionDataInjectionFilter.doFilter(RestSessionDataInjectionFilter.java:69)
        at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
        at de.hybris.platform.servicelayer.web.TenantActivationFilter.doFilter(TenantActivationFilter.java:76)
        at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
        at de.hybris.platform.servicelayer.web.Log4JFilter.doFilter(Log4JFilter.java:37)
        at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
        at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.processStandardFilterChain(AbstractPlatformFilterChain.java:200)
        at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.doFilterInternal(AbstractPlatformFilterChain.java:177)
        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.webservicescommons.filter.SessionHidingFilter.doFilter(SessionHidingFilter.java:34)
        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.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
        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 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:197)
        at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:97)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:41002)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)
        at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:367)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:639)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:882)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1647)
        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:834)
Caused by: de.hybris.platform.jalo.JaloSystemException: Couldn't instantiate item for given PK 8796143583314[HY--1]
        at de.hybris.platform.persistence.ItemEJBImpl.getComposedType(ItemEJBImpl.java:184)
        at de.hybris.platform.persistence.ItemEJBImpl.getJaloObjectClass(ItemEJBImpl.java:60)
        at de.hybris.platform.jalo.JaloImplementationManager$JaloClassMappingCache.getClassForEJBImpl(JaloImplementationManager.java:78)
        at de.hybris.platform.jalo.JaloImplementationManager.createJaloObject(JaloImplementationManager.java:199)
        at de.hybris.platform.core.WrapperFactory$ComputingJaloItemCacheUnit.compute(WrapperFactory.java:235)
        at de.hybris.platform.cache.AbstractCacheUnit.privateGetNoLock(AbstractCacheUnit.java:297)
        at de.hybris.platform.cache.AbstractCacheUnit.privateGet(AbstractCacheUnit.java:270)
        at de.hybris.platform.cache.AbstractCacheUnit.get(AbstractCacheUnit.java:172)
        at de.hybris.platform.jalo.JaloItemCacheUnit.getCached(JaloItemCacheUnit.java:106)
        at de.hybris.platform.core.WrapperFactory.getCachedItem(WrapperFactory.java:404)
        at de.hybris.platform.jalo.JaloSession.lookupItem(JaloSession.java:1832)
        at de.hybris.platform.jalo.JaloSession.getItem(JaloSession.java:1918)
        at de.hybris.platform.persistence.links.jdbc.dml.context.NewTransactionContext.getItemByPK(NewTransactionContext.java:153)
        at de.hybris.platform.persistence.links.jdbc.dml.context.RunningTransactionContext.touchExistingItem(RunningTransactionContext.java:55)
        at de.hybris.platform.persistence.links.jdbc.dml.relation.BaseRelation$Touch.contribute(BaseRelation.java:317)
        at de.hybris.platform.persistence.links.jdbc.dml.context.NewTransactionContext.consume(NewTransactionContext.java:85)
        at de.hybris.platform.persistence.links.jdbc.dml.DmlLinkOperationExecutor$BaseExecutableWithContext.execute(DmlLinkOperationExecutor.java:102)
        at de.hybris.platform.persistence.links.jdbc.dml.DmlLinkOperationExecutor.doWithContextWithinTransaction(DmlLinkOperationExecutor.java:69)
        at de.hybris.platform.persistence.links.jdbc.dml.DmlLinkOperationExecutor.execute(DmlLinkOperationExecutor.java:60)
        at de.hybris.platform.persistence.links.jdbc.JdbcSetLinkOperation.perform(JdbcSetLinkOperation.java:69)
        at de.hybris.platform.jalo.link.LinkManager.setLinkedItems(LinkManager.java:1006)
        at de.hybris.platform.jalo.Item.setLinkedItems(Item.java:2707)
        at de.hybris.platform.cms2.jalo.contents.contentslot.GeneratedContentSlot.setCmsComponents(GeneratedContentSlot.java:260)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        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.invokeSetter(ReflectionAttributeAccess.java:808)
        at de.hybris.platform.jalo.type.ReflectionAttributeAccess.setValue(ReflectionAttributeAccess.java:999)
        at de.hybris.platform.jalo.Item.setAttribute(Item.java:2387)
        at de.hybris.platform.jalo.Item.setAllAttributesInternal(Item.java:2228)
        at de.hybris.platform.jalo.Item$18.execute(Item.java:2145)
        at de.hybris.platform.tx.Transaction.execute(Transaction.java:1214)
        at de.hybris.platform.tx.Transaction.execute(Transaction.java:1182)
        at de.hybris.platform.jalo.Item.setAllAttributes(Item.java:2140)
        at de.hybris.platform.jalo.Item.setAllAttributes(Item.java:2120)
        at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.storeAttributes(ItemModelConverter.java:1816)
        ... 133 more
Caused by: de.hybris.platform.jalo.JaloItemNotFoundException: Couldn't instantiate item for given PK 8796143583314[HY-0]
        at de.hybris.platform.core.ItemImplCreationResult$MissingItemImpl.toJaloSystemException(ItemImplCreationResult.java:57)
        at de.hybris.platform.core.WrapperFactory.getItemImplForPK(WrapperFactory.java:934)
        at de.hybris.platform.core.WrapperFactory$ComputingJaloItemCacheUnit.getItemImpl(WrapperFactory.java:240)
        at de.hybris.platform.core.WrapperFactory$ComputingJaloItemCacheUnit.compute(WrapperFactory.java:234)
        at de.hybris.platform.cache.AbstractCacheUnit.privateGetNoLock(AbstractCacheUnit.java:297)
        at de.hybris.platform.cache.AbstractCacheUnit.privateGet(AbstractCacheUnit.java:270)
        at de.hybris.platform.cache.AbstractCacheUnit.get(AbstractCacheUnit.java:172)
        at de.hybris.platform.jalo.JaloItemCacheUnit.getCached(JaloItemCacheUnit.java:106)
        at de.hybris.platform.core.WrapperFactory.getCachedItem(WrapperFactory.java:404)
        at de.hybris.platform.persistence.ItemEJBImpl.getComposedType(ItemEJBImpl.java:177)
        ... 169 more
View Entire Topic
samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Pascal,

Which version of Commerce are you running? Are you running Commerce on local machine/OP or on public cloud?

phoude
Participant
0 Kudos

1905 local