2024-10-09 18:10:49.180 ERROR [http-nio-8080-exec-4] --- i.j.f.e.DefaultUiExceptionHandler.handle : Unhandled exception java.lang.ClassCastException: class ru.dgtserv.mes.mdm.entity.building.Room cannot be cast to class io.jmix.data.entity.ReferenceToEntity (ru.dgtserv.mes.mdm.entity.building.Room and io.jmix.data.entity.ReferenceToEntity are in unnamed module of loader 'app') at io.jmix.core.metamodel.model.utils.MethodsCache$SettersHolder.accept(MethodsCache.java:241) at io.jmix.core.entity.BaseEntityEntry.setAttributeValue(BaseEntityEntry.java:104) at io.jmix.core.entity.EntityValues.setValue(EntityValues.java:73) at io.jmix.core.entity.EntityValues.setValueEx(EntityValues.java:198) at io.jmix.core.entity.EntityValues.setValueEx(EntityValues.java:151) at io.jmix.flowui.data.value.ContainerValueSource.setValue(ContainerValueSource.java:174) at io.jmix.flowui.data.binding.impl.AbstractValueBinding.setValueToSource(AbstractValueBinding.java:283) at io.jmix.flowui.data.binding.impl.AbstractValueBinding.onComponentValueChange(AbstractValueBinding.java:231) at io.jmix.flowui.data.binding.impl.AbstractValueBinding.lambda$addComponentValueChangeListener$dcaac385$1(AbstractValueBinding.java:379) at com.vaadin.flow.component.internal.AbstractFieldSupport.lambda$addValueChangeListener$828eca10$1(AbstractFieldSupport.java:98) at com.vaadin.flow.component.ComponentEventBus.fireEventForListener(ComponentEventBus.java:239) at com.vaadin.flow.component.ComponentEventBus.fireEvent(ComponentEventBus.java:228) at com.vaadin.flow.component.Component.fireEvent(Component.java:411) at com.vaadin.flow.component.ComponentUtil.fireEvent(ComponentUtil.java:416) at com.vaadin.flow.component.internal.AbstractFieldSupport.setValue(AbstractFieldSupport.java:209) at com.vaadin.flow.component.internal.AbstractFieldSupport.setValue(AbstractFieldSupport.java:135) at com.vaadin.flow.component.AbstractField.setValue(AbstractField.java:181) at io.jmix.flowui.kit.component.valuepicker.ValuePickerBase.setValue(ValuePickerBase.java:96) at io.jmix.dynattrflowui.view.categoryattr.CategoryAttributesDetailView.refreshDefaultEntityIdFieldValue(CategoryAttributesDetailView.java:902) at io.jmix.dynattrflowui.view.categoryattr.CategoryAttributesDetailView.refreshAttributesUI(CategoryAttributesDetailView.java:704) at io.jmix.dynattrflowui.view.categoryattr.CategoryAttributesDetailView.refreshOnce(CategoryAttributesDetailView.java:402) at ru.dgtserv.mes.eav.view.extcategoryattribute.ExtCategoryAttributesDetailView.onCategoryAttributeDcItemPropertyChange(ExtCategoryAttributesDetailView.java:153) at io.jmix.core.common.event.EventHub.publish(EventHub.java:172) at io.jmix.flowui.model.impl.InstanceContainerImpl.itemPropertyChanged(InstanceContainerImpl.java:182) at io.jmix.core.entity.BaseEntityEntry.firePropertyChanged(BaseEntityEntry.java:198) at io.jmix.core.impl.EntityInternals.fireListeners(EntityInternals.java:90) at io.jmix.dynattr.model.CategoryAttribute.setLookup(CategoryAttribute.java:417) at io.jmix.core.metamodel.model.utils.MethodsCache$SettersHolder.accept(MethodsCache.java:241) at io.jmix.core.entity.BaseEntityEntry.setAttributeValue(BaseEntityEntry.java:104) at io.jmix.core.entity.EntityValues.setValue(EntityValues.java:73) at io.jmix.core.entity.EntityValues.setValueEx(EntityValues.java:198) at io.jmix.core.entity.EntityValues.setValueEx(EntityValues.java:151) at io.jmix.flowui.data.value.ContainerValueSource.setValue(ContainerValueSource.java:174) at io.jmix.flowui.data.binding.impl.AbstractValueBinding.setValueToSource(AbstractValueBinding.java:283) at io.jmix.flowui.data.binding.impl.AbstractValueBinding.onComponentValueChange(AbstractValueBinding.java:231) at io.jmix.flowui.data.binding.impl.AbstractValueBinding.lambda$addComponentValueChangeListener$dcaac385$1(AbstractValueBinding.java:379) at com.vaadin.flow.component.internal.AbstractFieldSupport.lambda$addValueChangeListener$828eca10$1(AbstractFieldSupport.java:98) at com.vaadin.flow.component.ComponentEventBus.fireEventForListener(ComponentEventBus.java:239) at com.vaadin.flow.component.ComponentEventBus.fireEvent(ComponentEventBus.java:228) at com.vaadin.flow.component.Component.fireEvent(Component.java:411) at com.vaadin.flow.component.ComponentUtil.fireEvent(ComponentUtil.java:416) at com.vaadin.flow.component.internal.AbstractFieldSupport.setValue(AbstractFieldSupport.java:209) at com.vaadin.flow.component.internal.AbstractFieldSupport.setModelValue(AbstractFieldSupport.java:169) at com.vaadin.flow.component.AbstractField.setModelValue(AbstractField.java:225) at com.vaadin.flow.component.AbstractSinglePropertyField.doSetModelValue(AbstractSinglePropertyField.java:360) at com.vaadin.flow.component.AbstractSinglePropertyField.handlePropertyChange(AbstractSinglePropertyField.java:352) at com.vaadin.flow.component.AbstractSinglePropertyField$1.propertyChange(AbstractSinglePropertyField.java:329) at com.vaadin.flow.internal.nodefeature.ElementPropertyMap.lambda$fireEvent$2(ElementPropertyMap.java:465) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at com.vaadin.flow.internal.nodefeature.ElementPropertyMap.fireEvent(ElementPropertyMap.java:465) at com.vaadin.flow.internal.nodefeature.ElementPropertyMap$PutResult.run(ElementPropertyMap.java:170) at com.vaadin.flow.server.communication.ServerRpcHandler.lambda$handleInvocations$2(ServerRpcHandler.java:445) at com.vaadin.flow.server.communication.ServerRpcHandler.runMapSyncTask(ServerRpcHandler.java:461) at com.vaadin.flow.server.communication.ServerRpcHandler.lambda$handleInvocations$4(ServerRpcHandler.java:455) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at com.vaadin.flow.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:455) at com.vaadin.flow.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:324) at com.vaadin.flow.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:114) at com.vaadin.flow.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40) at com.vaadin.flow.server.VaadinService.handleRequest(VaadinService.java:1577) at com.vaadin.flow.server.VaadinServlet.service(VaadinServlet.java:398) at com.vaadin.flow.spring.SpringServlet.service(SpringServlet.java:106) at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:632) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:408) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:303) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:267) at org.springframework.web.servlet.mvc.ServletForwardingController.handleRequestInternal(ServletForwardingController.java:142) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:178) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:51) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:914) at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:547) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885) at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)