Join Slack
Having some trouble with a ktor app. It works all fine until I enable auto-refresh. Any idea what wo...
# ktor
j
jk2018
04/11/2018, 7:20 PM
Having some trouble with a ktor app. It works all fine until I enable auto-refresh. Any idea what would cause this? ( More detail here:
https://stackoverflow.com/questions/49782953/enabling-ktor-auto-reload-breaks-the-app
)
n
neworldlt
04/12/2018, 7:07 AM
Auto-refresh uses custom classloader. In my case, jackson loaded classes from different class loaders and it messed up everything.
j
jk2018
04/12/2018, 9:46 AM
Hmm, so some dependency that I'm using is using a different classloader. I wish there was a bit more info what's breaking this...
n
neworldlt
04/12/2018, 9:57 AM
I fixed this by providing
OverridingClassLoader
class loader to the jackson
neworldlt
04/12/2018, 9:57 AM
https://kotlinlang.slack.com/archives/C0A974TJ9/p1523211961000022
j
jk2018
04/12/2018, 1:03 PM
Could you elaborate on how to "provide
OverridingClassLoader
class loader to jackson"?
jk2018
04/12/2018, 1:19 PM
I found that adding " squash " is one example of something that leads to auto-reload not working any more..
jk2018
04/12/2018, 1:20 PM
these are the dependencies. +--- org.jetbrains.squash
squash
0.2.4 | +--- org.jetbrains.kotlin
kotlin runtime
1.2.21 | | \--- org.jetbrains
annotations
13.0 | +--- org.jetbrains.kotlin
kotlin reflect
1.2.21 -> 1.2.31 (*) | +--- org.jetbrains.kotlin
kotlin stdlib jdk8
1.2.21 -> 1.2.31 (*) | \--- org.slf4j
slf4j api
1.7.24 -> 1.7.25
4
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by