Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

After using FreeMarker #1

Open
hmzgtl16 opened this issue Nov 27, 2020 · 4 comments
Open

After using FreeMarker #1

hmzgtl16 opened this issue Nov 27, 2020 · 4 comments

Comments

@hmzgtl16
Copy link

Exception in thread "eventLoopGroupProxy-3-1 @response-pipeline#4" kotlinx.coroutines.CoroutinesInternalError: Fatal exception in coroutines machinery for DispatchedContinuation[UnsafeBlockingTrampoline@22f08bcc, Continuation at io.ktor.utils.io.jvm.javaio.OutputAdapter$loop$1.loop(Blocking.kt:311)@2f879c92]. Please read KDoc to 'handleFatalException' method and report this incident to maintainers

all details in https://stackoverflow.com/questions/65040171/ktor-website-self-hosted-with-freemarker-doesnt-work

@SebastianAigner
Copy link
Contributor

Hi @Hamza1605 ! I have just checked the final branch on the repository again, which builds fine on my machine. Maybe some small mistake has made its way into your code while going through the tutorial?

You can compare your implementation against our sample solution here: https://github.com/kotlin-hands-on/creating-website-ktor/tree/final

@hmzgtl16
Copy link
Author

hmzgtl16 commented Dec 1, 2020

with ktor 1.4.0 working perfectly, ktor 1.4.2 doesn't work

@SebastianAigner
Copy link
Contributor

I just tried the final branch with the following settings in the gradle.properties file:

ktor_version=1.4.2
kotlin.code.style=official
kotlin_version=1.4.0
logback_version=1.2.3

Which seems to work just fine for me. Any other changes that might be the culprit here?

@hmzgtl16
Copy link
Author

hmzgtl16 commented Dec 1, 2020

the default settings
ktor_version=1.4.2
kotlin.code.style=official
kotlin_version=1.4.20
logback_version=1.2.1

maybe the problem in kotlin version

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants