How can I fix the forgotpassword addon error after upgrade to cubaVersion7.2?

When I try to call the forgotpassword add-on’s rest api,
i get this error msg.

{
    "error": "Error on service method invocation",
    "details": "com.haulmont.cuba.core.global.Metadata.create(Ljava/lang/Class;)Ljava/lang/Object;"
}

Environment
Platform version: 7.2

Description of the bug or enhancement
forgotpasswordaddOn

java.lang.NoSuchMethodError: com.haulmont.cuba.core.global.Metadata.create(Ljava/lang/Class;)Ljava/lang/Object;
	at it.nexbit.cuba.security.forgotpassword.core.NexbitUserManagementServiceBean.generateResetPasswordToken(NexbitUserManagementServiceBean.java:395) ~[nxsecfp-core-4.0.0.jar:na]
	at it.nexbit.cuba.security.forgotpassword.core.NexbitUserManagementServiceBean.generateResetPasswordTokens(NexbitUserManagementServiceBean.java:369) ~[nxsecfp-core-4.0.0.jar:na]
	at it.nexbit.cuba.security.forgotpassword.core.NexbitUserManagementServiceBean.sendResetPasswordLinks(NexbitUserManagementServiceBean.java:219) ~[nxsecfp-core-4.0.0.jar:na]
	at it.nexbit.cuba.security.forgotpassword.core.NexbitUserManagementServiceBean.sendResetPasswordLink(NexbitUserManagementServiceBean.java:112) ~[nxsecfp-core-4.0.0.jar:na]
	at it.nexbit.cuba.security.forgotpassword.core.NexbitUserManagementServiceBean.sendResetPasswordLink(NexbitUserManagementServiceBean.java:101) ~[nxsecfp-core-4.0.0.jar:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_191]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_191]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_191]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_191]
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.2.3.RELEASE.jar:5.2.3.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) [spring-aop-5.2.3.RELEASE.jar:5.2.3.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) [spring-aop-5.2.3.RELEASE.jar:5.2.3.RELEASE]
	at com.haulmont.cuba.core.sys.aop.CubaMethodValidationInterceptor.invoke(CubaMethodValidationInterceptor.java:79) ~[cuba-core-7.2.1.jar:7.2.1]

Is the a way to fix this bug ?

Hi, that’s not a bug, the add-on is not (yet) compatible with 7.2
After being upgraded and tested for 7.2, you’ll find the updated version in the marketplace.

Paolo

Thanks for your reply, Paolo. :blush: