question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Caused by: java.lang.IllegalStateException: Service ClassMappingTypeService not found                                           
        at org.litote.kmongo.service.ClassMappingTypeKt$defaultService$2.invoke(ClassMappingType.kt:38) ~[?:?]                  
        at org.litote.kmongo.service.ClassMappingTypeKt$defaultService$2.invoke(ClassMappingType.kt) ~[?:?]                     
        at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) ~[?:?]                                                           
        at org.litote.kmongo.service.ClassMappingTypeKt.getDefaultService(ClassMappingType.kt) ~[?:?]                          
        at org.litote.kmongo.service.ClassMappingTypeKt.getCurrentService(ClassMappingType.kt:49) ~[?:?]                       
        at org.litote.kmongo.service.ClassMappingTypeKt.access$getCurrentService$p(ClassMappingType.kt:1) ~[?:?]            
        at org.litote.kmongo.service.ClassMappingType.<init>(ClassMappingType.kt:57) ~[?:?]                                      
        at org.litote.kmongo.service.ClassMappingType.<clinit>(ClassMappingType.kt:57) ~[?:?]                               
        ... 15 more      

This error appears when trying to connect to the mongodb database.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
MicleBrickcommented, Dec 11, 2018

fixed it with System.setProperty("org.litote.mongo.test.mapping.service", "org.litote.kmongo.jackson.JacksonClassMappingTypeService")

0reactions
zigzagocommented, Sep 7, 2022

Is it the same idea? -> https://gist.github.com/RezzedUp/d7957af10bfbfc6837ae1a4b55975f40

A PR would be appreciated 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Ways to Troubleshoot a 'Can't Connect to This Network' Error
7 ways to troubleshoot when your PC 'can't connect to this network' · Restart Windows · Forget your WiFi network · Toggle airplane...
Read more >
Solved: Can't Connect To This Network Error [14 Possible Fixes]
Ways To Fix Can't Connect To This Network Windows 10 Error · Method 1: Forget Network · Method 2: Enable/Disable Airplane Mode ·...
Read more >
Fix “Windows Can't Connect To This Network” Error
Windows 10 can't connect to this network” is one of the issues you could face while trying to connect your Windows machine to...
Read more >
How to Fix Can't Connect to This Network Error in Windows 10
The easiest way to fix "Can't Connect to this Network" error in Windows 10 is to forget the Network and rejoin by entering...
Read more >
Device Can't Connect to Wi-Fi? Here's What to Do
How to fix your network problems ... Reboot your modem: Just as your IT guy starts with a computer reboot, your internet service...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found