Hot Reload Not working Properly

I’m currently doing a Registration screen by following the example provided in CUBA website.

I’m getting the below weird error

ClassCastException: com.vee.worklog.web.register.RegisterUser cannot be cast to com.vee.worklog.web.register.RegisterUser

Steps to Reproduce:
Change something on Registration screen, refresh the browser, click on Register Link in the Login window.

After restarting the server, everything works fine.

This is a known issue. In some cases, hot deploy cannot determine what classes in addition to the changed one must be reloaded, which causes the error.

1 Like