jmix-projects / jmix-ui

DEPRECATED. Use https://github.com/jmix-framework/jmix
https://www.jmix.io
3 stars 7 forks source link

unfetched attribute error on "metaproperty" #750

Closed klaus7 closed 2 years ago

klaus7 commented 2 years ago

This line ...

                Object value = EntityValues.getValue(srcEntity, propertyName);

... throws an unfetched attribute error in some occasions in my project.

I fixed it by adding ...

&& !property.isReadOnly()

before this line: https://github.com/Haulmont/jmix-ui/blob/f592b0b8f4e6647a9b9a0f50080b469bf56fb199/ui/src/main/java/io/jmix/ui/model/impl/DataContextImpl.java#L274

And it works. That should be ok, because I would never want to set a read-only property anyway.

dtaimanov commented 2 years ago

It probably has been fixed in https://github.com/Haulmont/jmix-data/issues/102

Let's see if this problem appears again and it becomes clear how to reproduce it