I found out interesting thing – when you debug your app with active connection to Mongo it could cause unexpected issue at least if use spring mongo data What I noticed If you remove all data from collection you will not be able insert any new record to that collection Sometimes getAll method could return […]
Andriy Andrunevchyn
I reinstalled my OS so that mongo either. When I deploy project, following error appeared in log Exception in thread "main" org.springframework.data.mongodb.CannotGetMongoDbConnectionException: Failed to authenticate to database [xxx], username = [xxx], password = [x*******x] I spend few hours adding user in robomongo and directly [...]
Andriy Andrunevchyn
Цікаву багу(особливість?) знайшов у mongo/spring-data-mongo Коли зберігаєш пустий ArrayList на зразок //value = new ArrayList(); mongoTemplate.save(new CacheElement(key, value), collectionName); То при вичитці монго повертає HashSet і відповідно кидає помилку java.lang.ClassCastException: java.util.HashSet cannot be cast to [...]
Andriy Andrunevchyn
Recent Comments