cancel
Showing results for 
Search instead for 
Did you mean: 

ClassCastException on new Model after update running system on cluster

Former Member
0 Kudos
1,402

Hi,

I have defined a new type in items.xml (SalesOfficeWarehouseConfig) and created a relation of this type with an existing type (B2BUnit). On our single-node environments everything went fine after an update running system. But on the clustered environments, after the update running system we were left with ClassCastExceptions, which did not go away until a new server restart.

The method where the exception was thrown from is B2BUnitModel.getWarehouseConfigs:

java.lang.ClassCastException: de.hybris.platform.core.model.ItemModel cannot be cast to eu.shimano.b2b.hybris.core.model.SalesOfficeWarehouseConfigModel

Anyone has seen these exceptions as well, and/or knows how to prevent them?

Former Member
0 Kudos

All nodes on the cluster refer to a single DB or there are multiple DB instances?

Former Member
0 Kudos

They refer to a single DB.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Can you please check if the SalesOfficeWarehouseConfigModel is created in database or not?? Check the flexible search result from hac

select * from {SalesOfficeWarehouseConfig} if it is returning rows then let me know. otherwise you have to update your running sytem to fix this issue.

This model would have not created in database.

Thanks Samudrala