Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected exception with the NotInstantiatedList using in the Jmix entities #4068

Open
fractal3000 opened this issue Jan 15, 2025 · 0 comments
Labels
in: data triage Issue is waiting for triage type: bug Something isn't working

Comments

@fractal3000
Copy link
Contributor

Environment

Jmix version: 1.5.0

Bug Description

Unexpected exception with the NotInstantiatedList using in the Jmix entities.

Steps To Reproduce

It is hard to reproduce the problem in a test project. The entities has inheritance, has uuid attribute that is not primary key, they countains MappedSuperClasses.

Current Behavior

The error is occured (only the platform specific frames are showed, the project specific frames are not showed).

Caused by: java.lang.ClassCastException: class org.eclipse.persistence.indirection.ValueHolder cannot be cast to class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder (org.eclipse.persistence.indirection.ValueHolder and org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder are in unnamed module of loader 'app')
at io.jmix.eclipselink.impl.lazyloading.AbstractValueHolder.(AbstractValueHolder.java:56)
at io.jmix.eclipselink.impl.lazyloading.CollectionValuePropertyHolder.(CollectionValuePropertyHolder.java:44)
at io.jmix.eclipselink.impl.lazyloading.JpaLazyLoadingListener.processCollectionValueHolder(JpaLazyLoadingListener.java:121)
at io.jmix.eclipselink.impl.lazyloading.JpaLazyLoadingListener.processValueHolders(JpaLazyLoadingListener.java:106)
at io.jmix.eclipselink.impl.lazyloading.JpaLazyLoadingListener.afterEntityLoad(JpaLazyLoadingListener.java:72)
at io.jmix.core.datastore.DataStoreAfterEntityLoadEvent.sendTo(DataStoreAfterEntityLoadEvent.java:78)
at io.jmix.core.datastore.AbstractDataStore.fireEvent(AbstractDataStore.java:343)
at io.jmix.core.datastore.AbstractDataStore.loadList(AbstractDataStore.java:156)
at io.jmix.core.impl.UnconstrainedDataManagerImpl.loadList(UnconstrainedDataManagerImpl.java:112)
at io.jmix.core.FluentLoader$ByCondition.list(FluentLoader.java:819)
at r.t.l.m.r.j.BaseDocumentRepository.findAllActualByDocVersionUidsIn(BaseDocumentRepository.java:318)

Expected Behavior

There are no any exceptions

@fractal3000 fractal3000 added type: bug Something isn't working in: data triage Issue is waiting for triage labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data triage Issue is waiting for triage type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant