Marc
05/02/2025, 5:47 PMERROR io.ktor.server.Application - Unhandled: GET - /swagger
java.lang.ClassCastException: class kotlinx.html.DIV cannot be cast to class kotlinx.html.CoreAttributeGroupFacade (kotlinx.html.DIV and kotlinx.html.CoreAttributeGroupFacade are in unnamed module of loader 'app')
at io.ktor.server.plugins.swagger.SwaggerKt$swaggerUI$5$2.invokeSuspend$lambda$9(Swagger.kt:103) [...] etc
Iβm not doing anything misterious, just followed the doccumentation steps πsimon.vergauwen
05/05/2025, 7:12 AM./gradlew dependencies
?Aleksei Tirman [JB]
05/05/2025, 7:33 AMMarc
05/05/2025, 7:46 AMAleksei Tirman [JB]
05/05/2025, 7:49 AMMarc
05/05/2025, 7:50 AMAleksei Tirman [JB]
05/05/2025, 7:50 AMMarc
05/05/2025, 7:51 AMAleksei Tirman [JB]
05/05/2025, 7:51 AMMarc
05/05/2025, 7:55 AMAleksei Tirman [JB]
05/05/2025, 8:08 AMMarc
05/05/2025, 8:09 AMMarc
05/05/2025, 8:09 AMMarc
05/05/2025, 8:11 AMHTTP.kt
Aleksei Tirman [JB]
05/05/2025, 8:29 AMFailed to initialize pool: Connection to localhost:5434 refused
After running docker compose up
it reports the following error:
Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD to a non-empty value for the
superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
connections without a password. This is *not* recommended.
See PostgreSQL documentation about "trust":
<https://www.postgresql.org/docs/current/auth-trust.html>
Marc
05/05/2025, 11:10 AMAleksei Tirman [JB]
05/05/2025, 11:19 AMAleksei Tirman [JB]
05/05/2025, 11:45 AMorg.jetbrains.kotlinx:kotlinx-html-jvm
in the project (0.7.5 and 0.12.0). The version 0.7.5 comes from org.jetbrains.dokka:dokka-base
which is a dependency of io.github.nikitok:exposed-postgis
. Ktor depends on the newer version of the library 0.12.0.Marc
05/05/2025, 12:18 PMMarc
05/05/2025, 12:18 PMAleksei Tirman [JB]
05/05/2025, 12:19 PMMarc
05/05/2025, 12:19 PMAleksei Tirman [JB]
05/05/2025, 12:20 PMMarc
05/05/2025, 12:20 PM/swagger
Marc
05/05/2025, 12:21 PMAleksei Tirman [JB]
05/05/2025, 1:10 PMfeatures/propertyscrapper/jars/skrapit-shadowed.jar
which contains a different version of the kotlinx-html library (krapit-shadowed.jar!/kotlinx/html
). No exception is thrown without that JAR in the classpath.Marc
05/05/2025, 1:15 PMMarc
05/05/2025, 1:17 PMMarc
05/05/2025, 2:13 PM