You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular CrnkErrorController.errorToJsonApi() calls AbstractErrorController.getErrorAttributes() which takes a boolean in 2.4 but in 2.5 expects an ErrorAttributeOptions resulting in the following stacktrace:
java.lang.NoSuchMethodError: 'java.util.Map io.crnk.spring.setup.boot.mvc.CrnkErrorController.getErrorAttributes(javax.servlet.http.HttpServletRequest, boolean)'
at io.crnk.spring.setup.boot.mvc.CrnkErrorController.errorToJsonApi(CrnkErrorController.java:39) ~[crnk-setup-spring-boot2-3.4.20210509072026.jar:na]
at io.crnk.spring.setup.boot.mvc.CrnkErrorController.error(CrnkErrorController.java:64) ~[crnk-setup-spring-boot2-3.4.20210509072026.jar:na]
...
The text was updated successfully, but these errors were encountered:
I too am experiencing this issue. Below is a link directly to the method that was deprecated in Spring Boot 2.3 and then removed in Spring Boot 2.5 - @remmeier - I'll open a pull request if that will help.
Workaround - In the absence of pull request #821 being accepted and a new version of crnk being released... I'm using the following workaround to just exclude the configuration for the CrnkErrorController so I can update Spring Boot to v2.5.X
In particular
CrnkErrorController.errorToJsonApi()
callsAbstractErrorController.getErrorAttributes()
which takes aboolean
in 2.4 but in 2.5 expects anErrorAttributeOptions
resulting in the following stacktrace:The text was updated successfully, but these errors were encountered: