RestApi upload file exception: NoSuchMethodError:xxx.Metadata.create

hi,
after i upgrade cuba to 7.2.1, and keep rest-api as 7.1.1,
the file upload api throw exception after requesst.

Caused by: java.lang.NoSuchMethodError: com.haulmont.cuba.core.global.Metadata.create(Ljava/lang/Class;)Ljava/lang/Object;
at com.haulmont.addon.restapi.api.controllers.FileUploadController.createFileDescriptor(FileUploadController.java:163) ~[restapi-rest-api-7.1.1.jar:na]
at com.haulmont.addon.restapi.api.controllers.FileUploadController.uploadFile(FileUploadController.java:124) ~[restapi-rest-api-7.1.1.jar:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.3.RELEASE.jar:5.2.3.RELEASE]

plz help me out.

Hi,
Rest-api 7.1.1 is incompatible with CUBA 7.2.1. It’s not a big surprise your project doesn’t work.

After you’ve migrated to CUBA 7.2 - you have to upgrade all add-ons as well, otherwise add-on functionality or the whole system may not work.

So the solution is to upgrade rest-api to latest version compatible with CUBA 7.2 - this is 7.2.0 version.

The same with other add-ons if you use those in your project.