Skip to Content
0
Oct 10, 2017 at 08:12 AM

JaloItemNotFoundException - No Attribute found, After changing item model

819 Views

Due to model changes, an attribute had been moved from a supertype (X) of a model (Y) to another model. After updating the type system, an error occured when trying to create or save an instance of the model.

 ERROR [Thread-109] [DefaultUIAccessRightService] An error occurred while determining read access.
  de.hybris.platform.jalo.JaloItemNotFoundException: no attribute SfsYoutubeComponent.text found
     at de.hybris.platform.jalo.type.ComposedType.getAttributeDescriptorIncludingPrivate(ComposedType.java:1038) ~[coreserver.jar:?]
     at de.hybris.platform.cockpit.services.impl.SystemServiceImpl.checkAttributePermissionOn(SystemServiceImpl.java:273) ~[cockpitserver.jar:?]
     at de.hybris.platform.cockpit.services.security.impl.DefaultUIAccessRightService$2.call(DefaultUIAccessRightService.java:207) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.services.security.impl.DefaultUIAccessRightService$2.call(DefaultUIAccessRightService.java:1) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.cache.RequestCacheCallable.get(RequestCacheCallable.java:44) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.services.security.impl.DefaultUIAccessRightService.isReadable(DefaultUIAccessRightService.java:240) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.services.values.impl.GenericItemObjectValueHandler.getValues(GenericItemObjectValueHandler.java:186) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.services.values.impl.GenericItemObjectValueHandler.loadValues(GenericItemObjectValueHandler.java:132) [cockpitserver.jar:?]
     at sun.reflect.GeneratedMethodAccessor878.invoke(Unknown Source) ~[?:?]
     at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[?:1.8.0_45]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[?:1.8.0_45]
     at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) [spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
     at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) [spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) [spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
     at com.sun.proxy.$Proxy269.loadValues(Unknown Source) [?:?]
     at de.hybris.platform.cockpit.wizards.generic.GenericItemWizard.getObjectValueContainer(GenericItemWizard.java:385) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.wizards.generic.GenericItemMandatoryPage.loadInitConfigValues(GenericItemMandatoryPage.java:389) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.wizards.generic.GenericItemMandatoryPage.createRepresentationItself(GenericItemMandatoryPage.java:279) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.wizards.generic.GenericItemWizard.createPageComponent(GenericItemWizard.java:481) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.wizards.Wizard.updateView(Wizard.java:344) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.wizards.Wizard.doNext(Wizard.java:470) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.wizards.generic.DecisionPage$1$1.onEvent(DecisionPage.java:206) [cockpitserver.jar:?]
     at de.hybris.platform.cockpit.util.UITools$5.onEvent(UITools.java:862) [cockpitserver.jar:?]
     at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197) [zk-3.6.4-hybris-patched.jar:3.6.4]
     at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141) [zk-3.6.4-hybris-patched.jar:3.6.4]
     at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519) [zk-3.6.4-hybris-patched.jar:3.6.4]
     at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446) [zk-3.6.4-hybris-patched.jar:3.6.4]

Solution: The error could be resolved by deleting the moved attribute definitions from the supertype (X) via HMC and clearing the cache afterwards via HAC.