ClassCastException between Browsers

Hi!

I have two entity, Bank and Currency, standard browse screens for them, and repositories extending JmixDataRepository.
I’m creating some data of type Bank with bankRepository.create() and saving it using saveAll(). Then, if I first open BankBrowse from the main menu of my app to see the results, and then I try to open CurrencyBrowse, I get an exception:

ClassCastException: CurrencyBrowse incompatible with BankBrowse

Why on Earth could my app ever cast BankBrowse to CurrencyBrowse? Since I didn’t do anything with the browsers, do I get the error because of some incorrect manipulations with the data?

Can you reproduce the problem on a test project?
If not, at least attach the full exception stacktrace.

Hi Konstantin,

Unfortunately I didn’t save my stacktrace, and the bug that bothered me for a whole day just disappeared, and I didn’t manage to reproduce it. In a case I see it again I’ll post all the info. Thank you!

1 Like