Vahid
Vahid

Reputation: 83

Storage exception in microstream

I'm using microstream and I try to save my object in storage :

EmbeddedStorageFoundation esf = EmbeddedStorageFoundation.New().setConfiguration(storageConfiguration);
storage = esf.createEmbeddedStorageManager();
storage.start();
storage.setRoot(content);

when I execute "storage.start()" the exception throw : enter image description here Can you help me what is the problem? If you need another thing comment to provide.

Upvotes: 0

Views: 112

Answers (1)

Zdenek Jonas
Zdenek Jonas

Reputation: 146

This exception means, that another process is running on the existing storage. It is not allowed. When you set a root, you need also to save it.

    storageManager.storeRoot();

Upvotes: 0

Related Questions