This is a duplicate post from the EclipseStore GitHub discussion, but no one has responded there so I hope it’s ok that I’m trying here.
I have created a demo project using EclipseStore and Vaadin. If I start the application with ./mvnw
, then rebuild a module, live reload is triggered and I get this error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStorageManager' defined in class path resource [org/eclipse/store/integrations/spring/boot/types/DefaultEclipseStoreConfiguration.class]: Failed to instantiate [org.eclipse.store.storage.embedded.types.EmbeddedStorageManager]: Factory method 'defaultStorageManager' threw exception with message: Active storage for org.eclipse.store.storage.types.Database$Default@70f01db4 "Eclipse Serializer@storage" already exists.
What’s the best way to handle this? I assumed it was to exclude EclipseStore from live reload, but I tried spring.devtools.restart.exclude=**/EclipseStore/**
in application.properties and it did not fix the problem.
Please let me know if the answer is already in the docs. I did not see it.