Skip to Content
1
May 09 at 07:37 AM

de.hyb*.core.model.product.ProductModel cannot be cast to class *custom* variantProductModel

136 Views

Hello Everyone,

when I'm trying to delete product I receive error stating :

[de.hybris.platform.servicelayer.interceptor.impl.ProductPriceRegisterForRemoveInterceptor@3ad230ee]: unexpected removal error: class de.hybris.platform.core.model.product.ProductModel cannot be cast to class *custom model class*VariantProductModel (de.hybris.platform.core.model.product.ProductModel and *custom class* VariantProductModel are in unnamed module of loader de.hybris.bootstrap.loader.PlatformInPlaceClassLoader @6dbae3bd)

This error occurs only on product type not on variant type.

Are there any possible ways to avoid this error.

Thanks