https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
http4k
  • j

    Jippe Holwerda

    04/01/2021, 7:19 PM
    it seems the
    SinglePageAppRoutingHandler
    and
    ServerFilters.Cors
    filter do not play nice together. The CORS OPTION request is being handled by
    SinglePageAppRoutingHandler
    . Since it doesn't match a resource, the
    fallbackHandler
    is used with a new GET request (without headers). When that request is handled by the Cors filter, the Origin header is missing causing the request to fail...
    s
    d
    • 3
    • 31
  • p

    Philipp Mayer

    04/01/2021, 8:08 PM
    Hey guys, not sure if I'm missing something, but I ran into a weird issue with the Apache Backend. Setting up my server with
    val server = DebuggingFilters.PrintRequest()
            .then(ServerFilters.CatchAll())
            .then(ServerFilters.RequestTracing())
            .then(CorsFilter)
            .then(PowerSocketSwitcherApp(powerSwitch, config.sockets))
            .asServer(SunHttp(9090))
            .start()
    Will let me access it from inside the local network. But when I swap out SunHttp for Apache, I get a response "not authoritative". I just found that issue, but it's more centered around the work load it seems: https://github.com/http4k/http4k/issues/481 Btw, my CorsFilter:
    val CorsFilter = ServerFilters.Cors(
            CorsPolicy(
                originPolicy = AllowAllOriginPolicy,
                headers = listOf("*"),
                methods = Method.values().toList(),
                credentials = false
            )
        )
    Do you have any hints? Thanks in advance!
    s
    r
    • 3
    • 4
  • u

    Uberto Barbini

    04/09/2021, 8:21 AM
    hi @Razvan I'm using Kondor with Http4k
    r
    • 2
    • 14
  • v

    Vojtěch Knyttl

    04/09/2021, 6:34 PM
    is there a reason an example is not showing in OpenAPI for such definition (the content type is missing as well):
    returning(Status.OK, Body.string(ContentType.TEXT_PLAIN).toLens() to "example string")
    d
    r
    • 3
    • 3
  • m

    mattTea

    04/14/2021, 5:05 PM
    Hi, the docs pretty much say this isn’t possible, but just in case I’ve missed something, is there a way I can continue using typesafe routing (for dynamic path params) when using the
    "/path/{param}"
    pattern, or is this only possible for contract routes in the
    "/path" / Path.uuid().of("param")
    pattern? Here’s an example of the contract routing style, where http4k handles type-safety for the path parameter (n.b. using Result4k for error handling in these examples)…
    fun getThingRoute(retriever: Retriever) =
       "/path" / Path.uuid().of("id") bindContract GET to { id ->
           {
               retriever(id)
                   .map { Response(OK).body(it) }
                   .mapFailure { it.toErrorResponse() }
                   .get()
           }
       }
    And the non-contract routing pattern I’d like to switch to, but which I think needs our own typesafe error handling (if we want to handle non-UUID path parameters, for example)...
    fun getThingRoute(retriever: Retriever) =
       "/path/{id}-something-after-param" bind GET to { request ->
           resultFrom { UUID.fromString(request.path("id")) }
               .mapFailure { NotFound("ID must be a valid UUID") }
               .flatMap { id ->
                   retriever(id)
                       .map { Response(OK).body(it) }
               }
               .mapFailure { it.toErrorResponse() }
               .get()
       }
    Thanks!
    👋 1
    👋🏻 1
    d
    • 2
    • 4
  • t

    taer

    04/22/2021, 10:13 PM
    Are there any dropwizard admin like plugins for http4k? I'm trying to make a dropwizard app go away, but the main reason for DW is the http admin server that allows for heap-dumps, thread-dumps etc. Is there anything like that already existing?
    d
    • 2
    • 14
  • r

    Razvan

    04/24/2021, 2:38 PM
    I guess we’ll have to test it to see the impact in http4k-graphql…
    d
    • 2
    • 2
  • r

    Razvan

    04/30/2021, 8:46 AM
    It's strage that kotlin does not catch it as Java's
    getResourceAsStream
    is annotated as
    @nullable
    I thought it would say that you can't call
    .reader()' on its result without
    ?
    or
    !!`
    Companion::class.java.getResourceAsStream("/${resource.removePrefix("/")}").reader()
    d
    • 2
    • 3
  • p

    Paulien van Alst

    05/04/2021, 10:59 AM
    Hey guys, I am introducing http4k in a project at work and I somehow get an error when serializing with Jackson in my http client:
    java.lang.NoSuchMethodError: com.fasterxml.jackson.module.kotlin.KotlinModule
    I am using versio
    2.10.2
    of
    com.fasterxml.jaclson.module
    and version
    4.8.0.0
    of http4k. How can I fix this?
    d
    • 2
    • 7
  • d

    dave

    05/07/2021, 8:58 AM
    @fredrik.nordin I've stripped out the refreshVersions plugin for the moment so you should be able to build from master again. Hopefully we'll be able to put it back in soon because it's really useful.
    f
    • 2
    • 3
  • e

    elect

    05/09/2021, 8:22 AM
    Hi, I'm looking to some lib to replace crude shell commands such as
    curl -X GET -H "Authorization: token $token <https://api.github.com/repos/kotlin-graphics/mary/contents/$path>
    I also need to parse the responding json to extract, for example, a sha encoding and create some other json to pass to some other
    curl
    commands. Can http4k be all I need? 😛
    d
    • 2
    • 32
  • a

    Andrew O'Hara

    05/14/2021, 5:36 PM
    When I use http4k-contract to generate a spec, the path and query descriptions are serialized as
    null
    with both Argo and Jackson. The Swagger Editor seems to treat these as warnings, Swagger UI works fine, but the latest Redoc throws an exception that prevents the UI from loading. Is there any way to set a non-null description for these parameters? Or has anyone had a better experience with a different version of redoc?
    r
    • 2
    • 2
  • s

    s4nchez

    05/15/2021, 8:54 AM
    Have you declared
    mavenCentral()
    as a repo for plugin dependencies?
    e
    • 2
    • 1
  • e

    elect

    05/15/2021, 4:00 PM
    I was wondering thought, if there might be an interest of a http4k module to interface with the github api. All the current solutions don't work if you don't have the repo cloned, as far as I got
    s
    • 2
    • 2
  • p

    Philipp Mayer

    05/23/2021, 8:35 PM
    Really looking forward to watching you guys on the official Kotlin YouTube channel!
    🙂 1
    👍 1
    d
    t
    r
    • 4
    • 16
  • m

    michaelbannister

    05/28/2021, 3:09 PM
    Hello! I’ve been playing with the OpenTelemetry module for the Tracing filters and wanted to have an easy way to name the server spans for each different route. Rather than pass a spanNamer – which would have the effect of having my naming logic separated from the routing definition, I extended the routing DSL a little bit to get this:
    fun endpoints() = "/orders" bind POST to routes(
                "/create" bind ::createOrder named "Create Order",
                "/submit" bind ::submitOrder named "Submit Order",
        )
    
    object SpanNameFilter {
        operator fun invoke(name: String) = Filter { next ->
            { req ->
                Span.current().updateName(name)
                next(req)
            }
        }
    }
    
    infix fun RoutingHttpHandler.named(name: String) = SpanNameFilter(name).then(this)
    Wondered if this might be something you’d be interested in adding to the opentelemetry module in some form or other? Or is there a different way of doing this you’d recommend? Would a more general ability to name RoutingHttpHandlers be useful?
    r
    • 2
    • 3
  • s

    Simon Hilz

    05/31/2021, 8:28 AM
    Hi guys! i fell in love with http4k for its simplicity. Now i am looking for a dependency injection solution for it. Koin seems to be the kool kid in school right now. However i hardly find anyone talking about it in the context of backend/server side of things. i feel like Koin has similar philosophies as http4k has (simplicitly, explicit over implicit, no magic) and might be a good fit here. Code generation things like dagger i do not really like and these sorts of things were the reason why i even started moving away from spring boot/java stack. what are you guys using?
    d
    t
    • 3
    • 9
  • p

    Paulien van Alst

    05/31/2021, 1:40 PM
    Hey guys! When working with http4k, I noticed something that “worried” me a bit. I saw that the class
    UriTemplate
    was proposing an extension function on
    String
    called
    trimSlashes
    . What is the reason to declare an extension function on the class String? This extension function will be accessible anywhere in your code base for any String you want, however it is very clear that it should only be used for `String`s representing URI`s . I was curious behind the reason on declaring it on
    String
    and not
    UriTemplate
    for instance.
    s
    d
    • 3
    • 4
  • d

    dave

    06/11/2021, 6:32 AM
    A quick reminder that this coming Tuesday @ 1700BST @s4nchez and I will be presenting a JetBrains Webinar on your favourite http toolkit. We'll be live coding an app and showing the different runtime options (server/aws/Graal). Details and sign-up here: https://info.jetbrains.com/kotlin-webinar-june-15-2021.html
    🎉 2
    c
    • 2
    • 6
  • r

    RajanS

    06/11/2021, 9:46 AM
    Hello guys, we are trying out the RateLimit functionality and we can’t get it work as we expected. Here is how we set up the client:
    private fun client(uri: Uri): HttpHandler =
        SetBaseUriFrom(uri)
            .then(RateLimit())
            .then(OkHttp(okHttpClient(100)))
    Note: It’s using the default RateLimitConfig which is documented as
    By default, handles maximum of 50 requests per 5 seconds.
    Here is how we are testing this out:
    fun main(){
        val timeTaken = measureTimeMillis {
            makeMultipleRequests(51, client(Uri.of("<http://localhost:3002/some-url>")))
        }
        println(timeTaken)
    }
    I would expect the time taken to be greater than 5 seconds? Is this is how it’s suppose to work? Running it a few times to get an average it seems to complete in around 2-3 seconds. Thanks in advance
    d
    • 2
    • 5
  • s

    s1m0nw1

    06/15/2021, 1:13 PM
    Does the following make sense? The JSON lens is typed as non-nullable
    X
    yet gives out a
    null
    pointer
    public fun main() {
        val l: BiDiBodyLens<X> = Body.auto<X>().toLens()
        val request: Request = Request(POST, "/").body("null")
        val extracted: X = l.extract(request)
        print(extracted) // null :shrug:
    }
    d
    r
    • 3
    • 8
  • d

    dave

    06/16/2021, 4:10 AM
    The video is now published oh the webinar. Any question or comments about thuhgs that didn't make any sense (it all went past at 100mph), please let us know:

    https://youtu.be/NjoCjupV8HE▾

    👍 4
    r
    r
    +2
    • 5
    • 11
  • r

    Razvan

    06/20/2021, 1:01 PM
    Hi, got an issue that I can’t figure out. I made a lib based on http4k that exposes a method that calls a url using OkHttp client. When I use it from a http4k client app I have no problem, but I also tried to use it from a SpringBoot (kotlin) project and I get this error:
    Companion
    java.lang.NoSuchFieldError: Companion
    	at org.http4k.client.OkHttpKt.requestBody(OkHttp.kt:75)
    	at org.http4k.client.OkHttpKt.asOkHttp(OkHttp.kt:68)
    	at org.http4k.client.OkHttpKt.access$asOkHttp(OkHttp.kt:1)
    	at org.http4k.client.OkHttp$invoke$1.invoke(OkHttp.kt:38)
    	at org.http4k.client.OkHttp$invoke$1.invoke(OkHttp.kt:35)
    It’s the basic client, nothing fancy
    OkHtttp()
    if I replace that with JavaHttpClient() or ApacheClient() all works. Does that ring a bel or should try to make test projects to show it ? The error line is the if line in this function
    private fun Request.requestBody() =
        if (permitsRequestBody(method.toString())) body.payload.array().toRequestBody()
        else null
    d
    • 2
    • 9
  • m

    Mervyn McCreight

    06/22/2021, 6:53 AM
    Hi 🙂 Does anyone here know if there is something existing for http4k to do Digest Authentication (https://en.wikipedia.org/wiki/Digest_access_authentication) with a client in http4k? 🙂
    d
    a
    • 3
    • 7
  • d

    dave

    06/22/2021, 3:07 PM
    Well, we promised a bit more JetBrains'y /http4k goodness and here it is. In the new episode of Talking Kotlin, we chat with the JB guys about the what, the why and the how of http4k.

    https://youtu.be/mPmUjJhdYME▾

    👍 2
    👏 1
    ❤️ 2
    🎉 8
    r
    t
    +4
    • 7
    • 9
  • r

    Razvan

    07/04/2021, 5:27 PM
    Hello, anyone played enough with SSE to have an idea how to resolve a CORS error ? the browser error is:
    logs.html:1 Access to resource at '<http://localhost:8080/logsse>' from origin '<http://localhost:8880>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    Couldn't figure out how to set that header...
    d
    • 2
    • 35
  • c

    christophsturm

    07/08/2021, 8:21 AM
    is there a recommendation what http4k backend to use?
    👍 1
    d
    • 2
    • 2
  • s

    Stefan

    07/08/2021, 12:56 PM
    hi, how do I customize Jackson for openapi generation? serializing "description": null seems illegal in many cases
    d
    • 2
    • 12
  • s

    Stefan

    07/08/2021, 3:32 PM
    Is it possible to add an openAPI descriptions to my domain objects? (e.g here https://github.com/http4k/http4k-by-example/blob/master/src/main/kotlin/verysecuresystems/domain.kt)
    d
    • 2
    • 5
  • r

    Riku

    07/09/2021, 11:41 AM
    Was updating Kotlin, h4k and other deps and noticed h4k seems to have some problems with Kotlin 1.5.20 and
    core.with
    . No big deal for me, I am fine at 1.4.32 but I wondered if that issue was on your radar.
    d
    • 2
    • 6
Powered by Linen
Title
r

Riku

07/09/2021, 11:41 AM
Was updating Kotlin, h4k and other deps and noticed h4k seems to have some problems with Kotlin 1.5.20 and
core.with
. No big deal for me, I am fine at 1.4.32 but I wondered if that issue was on your radar.
***** RESPONSE FAILED to GET: /api/v1/courses *****
java.lang.NullPointerException: Parameter specified as non-null is null: method org.http4k.core.HttpKt.with, parameter $this$with
at org.http4k.core.HttpKt.with(http.kt)
at org.http4k.filter.ServerFilters$Cors$invoke$1$1.invoke(ServerFilters.kt:64)
at org.http4k.filter.ServerFilters$Cors$invoke$1$1.invoke(ServerFilters.kt:50)
at org.http4k.contract.ContractRoutingHttpHandler$identify$1$1$1.invoke(ContractRoutingHttpHandler.kt:105)
at org.http4k.contract.ContractRoutingHttpHandler$identify$1$1$1.invoke(ContractRoutingHttpHandler.kt:26)
at org.http4k.core.Http4kKt$then$2.invoke(Http4k.kt:15)
at org.http4k.core.Http4kKt$then$2.invoke(Http4k.kt)
at org.http4k.routing.RouterMatch$MatchingHandler.invoke(Router.kt:47)
at org.http4k.routing.RouterMatch$MatchingHandler.invoke(Router.kt:46)
at org.http4k.routing.RouterBasedHttpHandler.invoke(RouterBasedHttpHandler.kt:23)
at org.http4k.routing.RouterBasedHttpHandler.invoke(RouterBasedHttpHandler.kt:13)
at org.http4k.filter.ServerFilters$CatchLensFailure$2$1.invoke(ServerFilters.kt:237)
at org.http4k.filter.ServerFilters$CatchLensFailure$2$1.invoke(ServerFilters.kt:45)
at fi.danceupacademy.auth.TokenAuthentication$tokenFilter$1$1.invoke(TokenAuthentication.kt:91)
at fi.danceupacademy.auth.TokenAuthentication$tokenFilter$1$1.invoke(TokenAuthentication.kt:76)
at org.http4k.filter.ServerFilters$Cors$invoke$1$1.invoke(ServerFilters.kt:55)
at org.http4k.filter.ServerFilters$Cors$invoke$1$1.invoke(ServerFilters.kt:50)
at fi.danceupacademy.DanceUpAdminKt$httoRedirectFilter$1$1.invoke(DanceUpAdmin.kt:60)
at fi.danceupacademy.DanceUpAdminKt$httoRedirectFilter$1$1.invoke(DanceUpAdmin.kt:52)
at org.http4k.filter.DebuggingFilters$PrintResponse$invoke$1$1.invoke(DebuggingFilters.kt:31)
at org.http4k.filter.DebuggingFilters$PrintResponse$invoke$1$1.invoke(DebuggingFilters.kt:27)
at org.http4k.filter.RequestFilters$Tap$invoke$1$1.invoke(RequestFilters.kt:23)
at org.http4k.filter.RequestFilters$Tap$invoke$1$1.invoke(RequestFilters.kt:19)
at org.http4k.filter.ServerFilters$InitialiseRequestContext$invoke$1$1.invoke(ServerFilters.kt:311)
at org.http4k.filter.ServerFilters$InitialiseRequestContext$invoke$1$1.invoke(ServerFilters.kt:306)
at org.http4k.core.Http4kKt$then$2.invoke(Http4k.kt:15)
at org.http4k.core.Http4kKt$then$2.invoke(Http4k.kt)
at org.http4k.filter.ServerFilters$CatchAll$invoke$1$1.invoke(ServerFilters.kt:256)
at org.http4k.filter.ServerFilters$CatchAll$invoke$1$1.invoke(ServerFilters.kt:252)
at org.http4k.core.Http4kKt$then$2.invoke(Http4k.kt:15)
at org.http4k.core.Http4kKt$then$2.invoke(Http4k.kt)
at org.http4k.server.Http4kUndertowHttpHandler.handleRequest(Http4kUndertowHttpHandler.kt:37)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:841)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1423)
at java.base/java.lang.Thread.run(Thread.java:834)
d

dave

07/09/2021, 11:56 AM
Hmmm - that's new to me - can you put a repro together @Riku ?
r

Riku

07/09/2021, 11:56 AM
sure
I did tried to do a repro and everything 👌. So must be something screwy in my project…
d

dave

07/09/2021, 1:11 PM
Obvs I don't know but could it be something with kotlin reflect clashing between 1.4.32 and 1.5.x? Multiple versions of that jar on the CP have caused problems in the past...
r

Riku

07/09/2021, 1:38 PM
yeah I realized while out jogging the same, that kotlin reflect is out of sync and maybe that is it. Must try when I am back at my machine
View count: 19