To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
Yes, the thread should have the lock which is why you get the exception. The thing is, it should happen automatically. You can lock it yourself from the VaadinSession, but getting access to the session object is tricky.
Any reason why you aren't using our official Spring add-ons instead?