cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member877082
Discoverer

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

romitchhabra
Participant
0 Kudos

Please share complete stack trace.

former_member877082
Discoverer
0 Kudos

Starting ImpEx cronjob "ImpEx-Import"

Finished 1 pass in 0d 00h:00m:00s:026ms - processed: 1, dumped: 1 (last pass: 0)

Starting pass 2

dumped unresolved line ValueLine[unresolvable:could not remove item 8796355198977 due to [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 variant product model class*VariantProductModel (de.hybris.platform.core.model.product.ProductModel and *custom variant product model class*VariantProductModel are in unnamed module of loader de.hybris.bootstrap.loader.PlatformInPlaceClassLoader @6dbae3bd),line 3 at main script,null,HeaderDescriptor[line 2 at main script, remove, product, {}, [pk] ],{1=ValueEntry('8796355198977'=8796355198977,unresolved=false,ignore=false)}]

Finished 2 pass in 0d 00h:00m:00s:004ms - processed: 1, dumped: 1 (last pass: 1)

ERROR de.hybris.platform.impex.jalo.ImpExException: Can not resolve any more lines ... Aborting further passes (at pass 2). Finally could not import 1 lines![HY-123]

Accepted Solutions (0)

Answers (0)