我在尝试启动Ktor服务器时遇到以下异常:
Exception in thread "main" java.io.IOException: Function not implemented
at java.base/sun.nio.fs.LinuxWatchService.<init>(LinuxWatchService.java:64)
at java.base/sun.nio.fs.LinuxFileSystem.newWatchService(LinuxFileSystem.java:47)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading$watcher$2.invoke(ApplicationEngineEnvironmentReloading.kt:81)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading$watcher$2.invoke(ApplicationEngineEnvironmentReloading.kt:79)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.getWatcher(ApplicationEngineEnvironmentReloading.kt:79)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.cleanupWatcher(ApplicationEngineEnvironmentReloading.kt:364)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.start(ApplicationEngineEnvironmentReloading.kt:281)
at io.ktor.server.netty.NettyApplicationEngine.start(NettyApplicationEngine.kt:216)
at io.ktor.server.netty.EngineMain.main(EngineMain.kt:23)
字符串
1条答案
按热度按时间1mrurvl11#
我用的是Jetbrains Exposed。
由于复制和粘贴错误,我在表定义中定义了一个重复的字段名称,一旦我删除了重复的字段名称,服务器就再次启动。