Jsondb / jsondb-core

JsonDB a pure java database that stores its data as Json Files
http://www.jsondb.io
MIT License
212 stars 45 forks source link

jsonDBTemplate.getCollection() not able to identify already existing collection #16

Closed saisreenathk closed 5 years ago

saisreenathk commented 5 years ago

We are trying to use jsonDBTemplate.getCollection() to check the Json files are already created and during next run even though the collection exists in the directory it is not able to fetch it and when it tries to createCollection, we get the following error: collection already exists.

Meaning during creation time, JsonDB is able to identify that collection exists and but jsonDBTemplate.getCollection() is not able to fetch the collection.

We implemented Serialisation and ensured that serialVersionUID is unique, but still facing the issue,. Can you please help

FarooqKhan commented 5 years ago

is it possible for you to share some code? This part of the code is pretty stable, I am unable to understand the problem from your description. Also, share any exceptions you are getting.

saisreenathk commented 5 years ago

Hi Farooq, Thanks for your support, I was able to resolve the issue by enabling DEBUG level logging to print JsonDB logs. I will seek for any further support as required. I appreciate for making this utility open source.