"Cannot get unfetched attribute" error when adding record to entity via REST API

{
“last_name”: “last name”,
“name”:“name”,
“second_name”:“second name”,
“phone_number”:“996558622222”,
“appeal_text”: “0123456 test”,
“pin”: “зшт123321”,
“status”: {
“id”: “201”
},
“organization” : {“id”:“601”}
}

10:22:25.206 WARN c.h.cuba.security.app.EntityLog - Unable to log entity com.company.upr.entity.Appeal-136101 [new,managed], id=136101
java.lang.IllegalStateException: Cannot get unfetched attribute [organization_ru] from detached object com.company.upr.entity.Organization-601 [detached].

Entity Appeal

Entity Organization
image

View Organization
image

View Appeal
image

Can you show us the definition of the “appeal-view” - maybe edit it and include attribute organization_ru directly into it, and then try.

<view entity="upr_Appeal" name="appeal-view" extends="_local">
    <property name="organization" view="organization-view"/>
    <property name="types" view="types"/>
    <property name="objectofwork" view="objectOfWork-view"/>
    <property name="responsible" view="employees-view"/>
    <property name="status" view="status-view"/>
    <property name="before_photo_id" view="_local"/>
    <property name="after_photo_id" view="_local"/>
</view>

<view entity="upr_Organization" name="organization-view">
    <property name="organization_alias"/>
    <property name="organization_ru"/>
    <property name="organization_kg"/>
    <property name="description"/>
    <property name="latitude"/>
    <property name="longitude"/>
    <property name="inn"/>
    <property name="show_on_map"/>
    <property name="deleted"/>
</view>

organization_ru attribute is already added in organization-view

The error occurs at the time of adding a record to the entity Appeal via rest api

Well, the error is clear - it doesn’t have value for organization_ru.
Maybe it is permission related - did you add the entity attribute permissions, not just entity permissions?
What happens if you remove the line

property name=“organization” view=“organization-view”

does everything else work?

If you remove the line property name=“organization” view=“organization-view” then an error occurs
image

Да, разрешения добавлены для объекта и для атрибутов объекта
image

image

2022-03-14 10:15:59.269 WARN [qtp1007251739-454/upr-admin-core/api-oktell] com.haulmont.cuba.security.app.EntityLog - Unable to log entity com.company.upr.entity.Appeal-139991 [new,managed], id=139991
java.lang.IllegalStateException: Cannot get unfetched attribute [organization_ru] from detached object com.company.upr.entity.Organization-601 [detached].
at org.eclipse.persistence.internal.queries.EntityFetchGroup.onUnfetchedAttribute(EntityFetchGroup.java:100) ~[shared/:na]
at com.haulmont.cuba.core.sys.persistence.CubaEntityFetchGroup.onUnfetchedAttribute(CubaEntityFetchGroup.java:74) ~[classes/:na]
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.processUnfetchedAttribute(EntityManagerImpl.java:2998) ~[shared/:na]
at com.haulmont.chile.core.model.impl.AbstractInstance._persistence_checkFetched(AbstractInstance.java) ~[classes/:na]
at com.company.upr.entity.Organization._persistence_get_organization_ru(Organization.java) ~[classes/:na]
at com.company.upr.entity.Organization.getOrganization_ru(Organization.java:88) ~[classes/:na]
at com.haulmont.chile.core.model.impl.AbstractInstance.getValue(AbstractInstance.java:108) ~[classes/:na]
at com.haulmont.cuba.core.entity.BaseGenericIdEntity.getValue(BaseGenericIdEntity.java:146) ~[classes/:na]
at com.haulmont.cuba.core.global.MetadataTools.getInstanceName(MetadataTools.java:215) ~[classes/:na]
at com.haulmont.cuba.security.app.EntityLog.stringify(EntityLog.java:808) ~[classes/:na]
at com.haulmont.cuba.security.app.EntityLog.createLogAttributes(EntityLog.java:635) ~[classes/:na]
at com.haulmont.cuba.security.app.EntityLog.internalRegisterCreate(EntityLog.java:438) ~[classes/:na]
at com.haulmont.cuba.security.app.EntityLog.registerCreate(EntityLog.java:395) ~[classes/:na]
at com.haulmont.cuba.core.sys.persistence.PersistenceImplSupport$OnSaveEntityVisitor.visit(PersistenceImplSupport.java:543) [classes/:na]
at com.haulmont.cuba.core.sys.persistence.PersistenceImplSupport.beforeStore(PersistenceImplSupport.java:236) [classes/:na]
at com.haulmont.cuba.core.sys.persistence.PersistenceImplSupport.traverseEntities(PersistenceImplSupport.java:222) [classes/:na]
at com.haulmont.cuba.core.sys.persistence.PersistenceImplSupport$ContainerResourceSynchronization.beforeCommit(PersistenceImplSupport.java:408) [classes/:na]
at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:96) [shared/:na]
at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:920) [shared/:na]
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:728) [shared/:na]
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:712) [shared/:na]
at com.haulmont.cuba.core.sys.TransactionImpl.commit(TransactionImpl.java:104) [classes/:na]
at com.haulmont.cuba.core.app.RdbmsStore.commit(RdbmsStore.java:539) [classes/:na]
at com.haulmont.cuba.core.app.RdbmsStore$$FastClassBySpringCGLIB$$f20c7b33.invoke() [classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) [shared/:na]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769) [shared/:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) [shared/:na]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747) [shared/:na]
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:62) [shared/:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [shared/:na]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747) [shared/:na]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95) [shared/:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [shared/:na]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747) [shared/:na]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689) [shared/:na]
at com.haulmont.cuba.core.app.RdbmsStore$$EnhancerBySpringCGLIB$$a486c57c.commit() [classes/:na]
at com.haulmont.cuba.core.app.DataManagerBean.commit(DataManagerBean.java:188) [classes/:na]
at com.haulmont.cuba.core.app.importexport.EntityImportExport.importEntities(EntityImportExport.java:261) [classes/:na]
at com.haulmont.cuba.core.app.importexport.EntityImportExport.importEntities(EntityImportExport.java:199) [classes/:na]
at com.haulmont.cuba.core.app.importexport.EntityImportExportServiceBean.importEntities(EntityImportExportServiceBean.java:70) [classes/:na]
at com.haulmont.cuba.core.app.importexport.EntityImportExportServiceBean$$FastClassBySpringCGLIB$$cfb7c61c.invoke() [classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) [shared/:na]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769) [shared/:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) [shared/:na]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747) [shared/:na]
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) [shared/:na]
at com.haulmont.cuba.core.sys.ServiceInterceptor.aroundInvoke(ServiceInterceptor.java:90) [classes/:na]
at sun.reflect.GeneratedMethodAccessor145.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_232]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_232]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) [shared/:na]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) [shared/:na]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) [shared/:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) [shared/:na]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747) [shared/:na]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95) [shared/:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [shared/:na]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747) [shared/:na]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689) [shared/:na]
at com.haulmont.cuba.core.app.importexport.EntityImportExportServiceBean$$EnhancerBySpringCGLIB$$17205ca7.importEntities() [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_232]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_232]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_232]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_232]
at com.haulmont.cuba.core.sys.remoting.LocalServiceInvokerImpl.invoke(LocalServiceInvokerImpl.java:94) [classes/:na]
at com.haulmont.cuba.web.sys.remoting.LocalServiceProxy$LocalServiceInvocationHandler.invoke(LocalServiceProxy.java:159) [classes/:na]
at com.sun.proxy.$Proxy184.importEntities(Unknown Source) [na:na]
at com.haulmont.addon.restapi.api.service.EntitiesControllerManager.createEntityFromJson(EntitiesControllerManager.java:483) [classes/:na]
at com.haulmont.addon.restapi.api.service.EntitiesControllerManager.createResponseInfoEntity(EntitiesControllerManager.java:421) [classes/:na]
at com.haulmont.addon.restapi.api.service.EntitiesControllerManager.createEntity(EntitiesControllerManager.java:405) [classes/:na]
at com.haulmont.addon.restapi.api.controllers.EntitiesController.createEntity(EntitiesController.java:126) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_232]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_232]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_232]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_232]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) [shared/:na]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) [shared/:na]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) [shared/:na]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888) [shared/:na]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) [shared/:na]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) [shared/:na]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) [shared/:na]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) [shared/:na]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) [shared/:na]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) [shared/:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [upr-admin.jar:na]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) [shared/:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [upr-admin.jar:na]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:876) [upr-admin.jar:na]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623) [upr-admin.jar:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) [shared/:na]
at com.haulmont.addon.restapi.api.auth.CubaRestLastSecurityFilter.doFilter(CubaRestLastSecurityFilter.java:90) [classes/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126) [shared/:na]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90) [shared/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118) [shared/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:158) [shared/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at com.haulmont.addon.restapi.api.auth.CubaAnonymousAuthenticationFilter.doFilter(CubaAnonymousAuthenticationFilter.java:142) [classes/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:182) [shared/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:92) [shared/:na]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [shared/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92) [shared/:na]
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77) [shared/:na]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [shared/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) [shared/:na]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [shared/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) [shared/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:108) [shared/:na]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) [shared/:na]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [shared/:na]
at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:113) [shared/:na]
at com.haulmont.addon.restapi.api.sys.RestExceptionLoggingFilter.doFilter(RestExceptionLoggingFilter.java:42) [classes/:na]
at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:113) [shared/:na]
at org.springframework.web.filter.CompositeFilter.doFilter(CompositeFilter.java:74) [shared/:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [shared/:na]
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) [shared/:na]
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) [shared/:na]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [shared/:na]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [shared/:na]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602) [upr-admin.jar:na]
at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:108) [shared/:na]
at org.springframework.web.filter.CompositeFilter.doFilter(CompositeFilter.java:74) [shared/:na]
at com.haulmont.cuba.web.sys.CubaHttpFilter.doFilter(CubaHttpFilter.java:93) [classes/:na]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) [upr-admin.jar:na]
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:214) [upr-admin.jar:na]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) [upr-admin.jar:na]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) [upr-admin.jar:na]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) [upr-admin.jar:na]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1711) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1347) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) [upr-admin.jar:na]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) [upr-admin.jar:na]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1678) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1249) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:152) [upr-admin.jar:na]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [upr-admin.jar:na]
at org.eclipse.jetty.server.Server.handle(Server.java:505) [upr-admin.jar:na]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370) [upr-admin.jar:na]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267) [upr-admin.jar:na]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) [upr-admin.jar:na]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [upr-admin.jar:na]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [upr-admin.jar:na]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) [upr-admin.jar:na]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) [upr-admin.jar:na]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) [upr-admin.jar:na]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) [upr-admin.jar:na]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [upr-admin.jar:na]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:781) [upr-admin.jar:na]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:917) [upr-admin.jar:na]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_232]

I see. Are you using the latest version of REST API, 7.2.4, and CUBA 7.2.18 ?

If it is not that, then in your place I would try to go step by step

  • read CUBA REST API
  • check their examples, see how they work
  • make your test example, try to post some simple entity without related entities - does it work?
  • then add a related entity and try to post that

Meanwhile, maybe somebody with more knowledge can help. If nothing happens, maybe make another thread, and post your simple project code that is having problems, as .zip so people can help.

1 Like

Thanks! Problem solved with CUBA 7.2.18 version change