commit 80c7842ea10fd000b74eaf766047e8a4b542a891 Author: francescods Date: Tue Feb 4 14:17:39 2025 +0100 primo commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c426c32 --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +.gradle +build/ +!gradle/wrapper/gradle-wrapper.jar +!**/src/main/**/build/ +!**/src/test/**/build/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..06ff8e4 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,45 @@ +val kotlin_version: String by project +val ktor_version: String by project +val logback_version: String by project +val exposed_version: String by project + +plugins { + kotlin("jvm") version "2.0.20" + id("io.ktor.plugin") version "2.3.12" + kotlin("plugin.serialization") version "1.9.23" // Aggiungi il plugin di Serialization +} + +group = "eu.maiora" +version = "0.0.1" + +application { + mainClass.set("eu.maiora.ApplicationKt") + + val isDevelopment: Boolean = project.ext.has("development") + applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment") +} + +repositories { + mavenCentral() +} + +dependencies { + implementation("io.ktor:ktor-server-core-jvm") + implementation("io.ktor:ktor-server-netty-jvm") + implementation("io.ktor:ktor-client-core:$ktor_version") // Core del client + implementation("io.ktor:ktor-client-cio:$ktor_version") // Motore CIO per il client + implementation("ch.qos.logback:logback-classic:$logback_version") + implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version") // Per usare Kotlinx Serialization con JSON + implementation("io.ktor:ktor-server-content-negotiation:$ktor_version") // Per il supporto a content negotiation + implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.15.2") // Jackson per Kotlin + implementation("org.postgresql:postgresql:42.7.2") + implementation("io.ktor:ktor-server-call-logging:$ktor_version") + implementation("io.ktor:ktor-server-cors:$ktor_version") + implementation("org.jetbrains.exposed:exposed-jdbc:0.55.0") + implementation("org.jetbrains.exposed:exposed-dao:$exposed_version") + implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.1") + implementation ("org.jetbrains.exposed:exposed-java-time:$exposed_version") + testImplementation("io.ktor:ktor-server-test-host-jvm") + testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version") + +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..d2610c8 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,5 @@ +kotlin.code.style=official +ktor_version=2.3.12 +kotlin_version=2.0.20 +logback_version=1.4.14 +exposed_version=0.55.0 diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..7454180 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..e411586 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..1b6c787 --- /dev/null +++ b/gradlew @@ -0,0 +1,234 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..107acd3 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..4d8670a --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1 @@ +rootProject.name = "AIPoc_Caritas" diff --git a/src/main/kotlin/eu/maiora/Application.kt b/src/main/kotlin/eu/maiora/Application.kt new file mode 100644 index 0000000..85e7754 --- /dev/null +++ b/src/main/kotlin/eu/maiora/Application.kt @@ -0,0 +1,40 @@ +package eu.maiora + +import eu.maiora.model.LogScriptRepository +import eu.maiora.model.LogScriptRepositoryImpl +import eu.maiora.plugins.* +import io.ktor.http.* +import io.ktor.server.application.* +import io.ktor.server.config.* +import io.ktor.server.engine.* +import io.ktor.server.netty.* +import io.ktor.server.plugins.callloging.* +import io.ktor.server.plugins.cors.routing.* + +fun main() { + embeddedServer(Netty, port = 8099, host = "0.0.0.0", module = Application::module) + .start(wait = true) +} + +fun Application.module() { + val config = ApplicationConfig("application.conf") + val dbUrl = config.property("ktor.database.url").getString(); + val username = config.property("ktor.database.username").getString(); + val password = config.property("ktor.database.password").getString(); + val repository = LogScriptRepositoryImpl() + configureDatabases(dbUrl, username, password) + configureRouting(dbUrl, username, password, repository) + configureSerialization() + install(CallLogging) + install(CORS){ + anyHost() + allowSameOrigin = true + allowNonSimpleContentTypes = true + allowHeader(HttpHeaders.AccessControlAllowOrigin) + allowHeader(HttpHeaders.ContentType) + allowMethod(HttpMethod.Options) + allowMethod(HttpMethod.Put) + allowMethod(HttpMethod.Patch) + allowMethod(HttpMethod.Delete) + } +} diff --git a/src/main/kotlin/eu/maiora/db/Mapping.kt b/src/main/kotlin/eu/maiora/db/Mapping.kt new file mode 100644 index 0000000..3e66805 --- /dev/null +++ b/src/main/kotlin/eu/maiora/db/Mapping.kt @@ -0,0 +1,41 @@ +package com.example.db + +import eu.maiora.model.LogScript +import kotlinx.coroutines.Dispatchers +import kotlinx.datetime.LocalDateTime +import org.jetbrains.exposed.dao.IntEntity +import org.jetbrains.exposed.dao.IntEntityClass +import org.jetbrains.exposed.dao.id.EntityID +import org.jetbrains.exposed.dao.id.IdTable +import org.jetbrains.exposed.dao.id.IntIdTable +import org.jetbrains.exposed.sql.Table +import org.jetbrains.exposed.sql.Transaction +import org.jetbrains.exposed.sql.javatime.datetime +import org.jetbrains.exposed.sql.transactions.experimental.newSuspendedTransaction + +object LogScriptTable : IdTable("aipoc.log_script") { + override val id = integer("id").entityId() + val ts_ricezione = datetime("ts_ricezione") + val script_ricevuto = varchar("script_ricevuto", 50) + val script_elaborato = varchar("script_elaborato", 50) + + override val primaryKey = PrimaryKey(id) +} + +class LogScriptDAO(id: EntityID) : IntEntity(id) { + companion object : IntEntityClass(LogScriptTable) + + var ts_ricezione by LogScriptTable.ts_ricezione + var script_ricevuto by LogScriptTable.script_ricevuto + var script_elaborato by LogScriptTable.script_elaborato +} + +suspend fun suspendTransaction(block: Transaction.() -> T): T = + newSuspendedTransaction(Dispatchers.IO, statement = block) + +fun logScriptDaoToModel(dao: LogScriptDAO) = LogScript( + dao.id.value, + LocalDateTime.parse(dao.ts_ricezione.toString()), + dao.script_ricevuto, + dao.script_elaborato +) \ No newline at end of file diff --git a/src/main/kotlin/eu/maiora/model/LogScript.kt b/src/main/kotlin/eu/maiora/model/LogScript.kt new file mode 100644 index 0000000..c0170f9 --- /dev/null +++ b/src/main/kotlin/eu/maiora/model/LogScript.kt @@ -0,0 +1,12 @@ +package eu.maiora.model + +import kotlinx.datetime.LocalDateTime +import kotlinx.serialization.Serializable + +@Serializable +data class LogScript( + val id: Int, + val ts_ricezione: LocalDateTime, + val script_ricevuto: String, + val script_elaborato: String +) \ No newline at end of file diff --git a/src/main/kotlin/eu/maiora/model/LogScriptRepository.kt b/src/main/kotlin/eu/maiora/model/LogScriptRepository.kt new file mode 100644 index 0000000..32d6dcf --- /dev/null +++ b/src/main/kotlin/eu/maiora/model/LogScriptRepository.kt @@ -0,0 +1,10 @@ +package eu.maiora.model + +interface LogScriptRepository { + suspend fun allLogScript(): List + suspend fun logScriptById(id: Int): LogScript? + suspend fun editLogScript(logScript: LogScript): Boolean + /*suspend fun addLogScript(logScript: LogScript): Long + suspend fun editLogScript(logScript: LogScript) + suspend fun removeLogScript(logScript: LogScript): Boolean*/ +} \ No newline at end of file diff --git a/src/main/kotlin/eu/maiora/model/LogScriptRepositoryImpl.kt b/src/main/kotlin/eu/maiora/model/LogScriptRepositoryImpl.kt new file mode 100644 index 0000000..18b7a39 --- /dev/null +++ b/src/main/kotlin/eu/maiora/model/LogScriptRepositoryImpl.kt @@ -0,0 +1,51 @@ +package eu.maiora.model + +import com.example.db.* +import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq +import org.jetbrains.exposed.sql.deleteWhere + +class LogScriptRepositoryImpl : LogScriptRepository { + override suspend fun allLogScript(): List = suspendTransaction { + LogScriptDAO.all().map(::logScriptDaoToModel) + } + + override suspend fun logScriptById(id: Int): LogScript? = suspendTransaction { + LogScriptDAO.findById(id)?.let { logScriptDaoToModel(it) } + } + + override suspend fun editLogScript(logScript: LogScript): Boolean = suspendTransaction { + val logScriptDao = LogScriptDAO.findById(logScript.id) + + if (logScriptDao != null) { + logScriptDao.script_elaborato = logScript.script_elaborato + true + } else { + false + } + } + + /*override suspend fun taskByName(name: String): Task? = suspendTransaction { + TaskDAO + .find { (TaskTable.name eq name) } + .limit(1) + .map(::daoToModel) + .firstOrNull() + } + + override suspend fun addTask(task: Task): Unit = suspendTransaction { + TaskDAO.new { + name = task.name + description = task.description + priority = task.priority.toString() + } + } + + override suspend fun removeTask(name: String): Boolean = suspendTransaction { + val rowsDeleted = TaskTable.deleteWhere { + TaskTable.name eq name + } + rowsDeleted == 1 + }*/ + + +} \ No newline at end of file diff --git a/src/main/kotlin/eu/maiora/plugins/Databases.kt b/src/main/kotlin/eu/maiora/plugins/Databases.kt new file mode 100644 index 0000000..ac87f30 --- /dev/null +++ b/src/main/kotlin/eu/maiora/plugins/Databases.kt @@ -0,0 +1,12 @@ +package eu.maiora.plugins + +import io.ktor.server.application.* +import org.jetbrains.exposed.sql.Database + +fun Application.configureDatabases(dbUrl : String, username : String, password : String) { + Database.connect( + dbUrl, + user = username, + password = password + ) +} \ No newline at end of file diff --git a/src/main/kotlin/eu/maiora/plugins/Routing.kt b/src/main/kotlin/eu/maiora/plugins/Routing.kt new file mode 100644 index 0000000..7a332be --- /dev/null +++ b/src/main/kotlin/eu/maiora/plugins/Routing.kt @@ -0,0 +1,21 @@ +package eu.maiora.plugins + +import eu.maiora.model.LogScriptRepositoryImpl +import eu.maiora.routes.analizzaURLRoute +import eu.maiora.routes.eseguiScriptSQLRoute +import eu.maiora.routes.logScriptRouting +import io.ktor.server.application.* +import io.ktor.server.response.* +import io.ktor.server.routing.* + +fun Application.configureRouting(dbUrl : String, username : String, password : String, repository : LogScriptRepositoryImpl ) { + routing { + get("/") { + call.respondText("Hello World!") + } + + analizzaURLRoute() + eseguiScriptSQLRoute(dbUrl, username, password) + logScriptRouting(repository) + } +} diff --git a/src/main/kotlin/eu/maiora/plugins/Serialization.kt b/src/main/kotlin/eu/maiora/plugins/Serialization.kt new file mode 100644 index 0000000..6594ae9 --- /dev/null +++ b/src/main/kotlin/eu/maiora/plugins/Serialization.kt @@ -0,0 +1,11 @@ +package eu.maiora.plugins + +import io.ktor.serialization.kotlinx.json.* +import io.ktor.server.application.* +import io.ktor.server.plugins.contentnegotiation.* + +fun Application.configureSerialization() { + install(ContentNegotiation) { + json() + } +} \ No newline at end of file diff --git a/src/main/kotlin/eu/maiora/routes/AnalizzaURLRoute.kt b/src/main/kotlin/eu/maiora/routes/AnalizzaURLRoute.kt new file mode 100644 index 0000000..f6803e2 --- /dev/null +++ b/src/main/kotlin/eu/maiora/routes/AnalizzaURLRoute.kt @@ -0,0 +1,48 @@ +package eu.maiora.routes + +import io.ktor.server.application.* +import io.ktor.client.* +import io.ktor.client.engine.cio.* +import io.ktor.client.request.* +import io.ktor.client.statement.* +import io.ktor.http.* +import io.ktor.server.request.* +import io.ktor.server.response.* +import io.ktor.server.routing.* +import kotlinx.serialization.Serializable +import kotlinx.serialization.encodeToString +import kotlinx.serialization.json.Json + + +fun Route.analizzaURLRoute() { + post("/analizzaURL") { + // Riceve il body della richiesta e lo deserializza in UrlRequest + val urlRequest = try { + call.receive() + } catch (e: Exception) { + return@post call.respondText("URL mancante " + e.stackTraceToString(), status = HttpStatusCode.BadRequest) + } + + // Configura il JSON per la serializzazione + val json = Json { prettyPrint = true } + + // Converte l'oggetto UrlRequest in una stringa JSON + val jsonString = json.encodeToString(urlRequest) + + val client = HttpClient(CIO) + try { + val response: HttpResponse = client.post("https://hyo0tcstdh.execute-api.eu-west-1.amazonaws.com/dev/ai") { + header(HttpHeaders.ContentType, ContentType.Application.Json) + setBody(jsonString) + } + call.respond(response.status, response.bodyAsText()) + } catch (e: Exception) { + call.respondText("Errore: ${e.message}", status = HttpStatusCode.InternalServerError) + } finally { + client.close() + } + } +} + +@Serializable +data class UrlRequest(val body: String) diff --git a/src/main/kotlin/eu/maiora/routes/EseguiScriptSQLRoute.kt b/src/main/kotlin/eu/maiora/routes/EseguiScriptSQLRoute.kt new file mode 100644 index 0000000..76fa844 --- /dev/null +++ b/src/main/kotlin/eu/maiora/routes/EseguiScriptSQLRoute.kt @@ -0,0 +1,59 @@ +package eu.maiora.routes + +import io.ktor.http.* +import java.sql.Connection +import io.ktor.server.application.* +import io.ktor.server.request.* +import io.ktor.server.response.* +import io.ktor.server.routing.* +import kotlinx.serialization.Serializable +import org.slf4j.LoggerFactory +import java.sql.DriverManager +import java.time.Instant +import java.time.format.DateTimeFormatter + +fun Route.eseguiScriptSQLRoute(dbUrl : String, username : String, password : String) { + post("/eseguiScriptSQL") { + // Riceve il body della richiesta e lo deserializza in ReceivedResponse + val receivedResponse = try { + call.receive() + } catch (e: Exception) { + return@post call.respondText("Body mancante " + e.stackTraceToString(), status = HttpStatusCode.BadRequest) + } + val logger = LoggerFactory.getLogger("LogScriptRoute") + logger.info("instructions: " + + receivedResponse.instructions); + + + val connection: Connection = DriverManager.getConnection(dbUrl, username, password) + val statement = connection.createStatement() + + val sqlInsert = "INSERT INTO aipoc.log_script(id,ts_ricezione, script_ricevuto, script_elaborato) VALUES (" + + "NEXTVAL('aipoc.seq_log_script'), " + + "'" + DateTimeFormatter.ISO_INSTANT.format(Instant.now()).toString() + "', " + + "'" +receivedResponse.instructions + "', " + + "'" +receivedResponse.instructions + "') RETURNING id" + + val resultSet = statement.executeQuery(sqlInsert) + val results = mutableListOf>() + + val metaData = resultSet.metaData + val columnCount = metaData.columnCount + while (resultSet.next()) { + val row = mutableMapOf() + for (i in 1..columnCount) { + row[metaData.getColumnName(i)] = resultSet.getObject(i) + } + results.add(row) + } + + resultSet.close() + statement.close() + connection.close() + call.respondText("receivedResponse: ${results}", status = HttpStatusCode.OK); + } + +} + +@Serializable +data class ReceivedResponse(val instructions: String) \ No newline at end of file diff --git a/src/main/kotlin/eu/maiora/routes/LogScriptRoutes.kt b/src/main/kotlin/eu/maiora/routes/LogScriptRoutes.kt new file mode 100644 index 0000000..2012075 --- /dev/null +++ b/src/main/kotlin/eu/maiora/routes/LogScriptRoutes.kt @@ -0,0 +1,66 @@ +package eu.maiora.routes + +import eu.maiora.model.LogScript +import eu.maiora.model.LogScriptRepositoryImpl +import io.ktor.http.* +import io.ktor.server.application.* +import io.ktor.server.request.* +import io.ktor.server.response.* +import io.ktor.server.routing.* + + +fun Route.logScriptRouting(repository : LogScriptRepositoryImpl) { + route("/logScript"){ + get{ + val logScript = repository.allLogScript() + call.respond(logScript) + } + + get("{id}"){ + // Ottieni l'ID dal percorso + val id = call.parameters["id"]?.toIntOrNull() + + if (id == null) { + call.respondText("Invalid ID", status = HttpStatusCode.BadRequest) + return@get + } + + // Cerca il log_script per ID + val logScript = repository.logScriptById(id) + + if (logScript != null) { + call.respond(logScript) + } else { + call.respondText("Log Script Not Found", status = HttpStatusCode.NotFound) + } + } + + // Endpoint per aggiornare un log_script esistente tramite ID + put("{id}") { + // Ottieni l'ID dal percorso + val id = call.parameters["id"]?.toIntOrNull() + + if (id == null) { + call.respondText("Invalid ID", status = HttpStatusCode.BadRequest) + return@put + } + + // Parsing del body della richiesta + val updateRequest = call.receive() + + // Aggiorna il record + val updated = repository.editLogScript(updateRequest) + + if (updated) { + call.respondText("Log Script Updated Successfully", status = HttpStatusCode.OK) + } else { + call.respondText("Log Script Not Found", status = HttpStatusCode.NotFound) + } + } + + + } + + +} + diff --git a/src/main/resources/application.conf b/src/main/resources/application.conf new file mode 100644 index 0000000..6b4ff98 --- /dev/null +++ b/src/main/resources/application.conf @@ -0,0 +1,8 @@ +ktor { + database { + url = "jdbc:postgresql://192.168.20.49:5432/caritas" + username = "caritas" + password = "caritas" + driver = "org.postgresql.Driver" + } +} diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..c574dfb --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,19 @@ + + + + %d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + testFile.log + true + + %d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + \ No newline at end of file diff --git a/testFile.log b/testFile.log new file mode 100644 index 0000000..a7ca06c --- /dev/null +++ b/testFile.log @@ -0,0 +1,2071 @@ +2024-10-02 11:43:26.921 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-02 11:43:27.676 [main] INFO ktor.application - Application started in 0.84 seconds. +2024-10-02 11:43:27.677 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@40e4ea87 +2024-10-02 11:43:28.067 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-02 11:44:10.063 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> SUCCESS @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + "" -> "analizzaURL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /analizzaURL/(method:POST) +2024-10-02 11:44:10.116 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.UrlRequest, reifiedType=class eu.maiora.routes.UrlRequest, kotlinType=eu.maiora.routes.UrlRequest) for call /analizzaURL +2024-10-02 11:44:10.309 [eventLoopGroupProxy-4-1] TRACE i.ktor.client.plugins.HttpPlainText - Adding Accept-Charset=UTF-8 to https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai +2024-10-02 11:44:10.313 [eventLoopGroupProxy-4-1] TRACE i.k.c.plugins.defaultTransformers - Transformed with default transformers request body for https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai from class kotlin.String +2024-10-02 11:44:11.472 [eventLoopGroupProxy-4-1] TRACE i.k.client.plugins.HttpCallValidator - Validating response for request https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai +2024-10-02 11:44:11.473 [eventLoopGroupProxy-4-1] TRACE i.k.c.p.DefaultResponseValidation - Skipping default response validation for https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai +2024-10-02 11:44:11.488 [eventLoopGroupProxy-4-1] TRACE i.k.c.plugins.defaultTransformers - Transformed with default transformers response body for https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai to class io.ktor.utils.io.core.ByteReadPacket +2024-10-02 11:44:11.489 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from String to OutgoingContent for the POST /analizzaURL request because the String type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 11:44:11.552 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /analizzaURL in 1510ms +2024-10-02 11:47:20.381 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-02 11:47:21.142 [main] INFO ktor.application - Application started in 0.865 seconds. +2024-10-02 11:47:21.142 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@3704122f +2024-10-02 11:47:21.527 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-02 11:47:45.139 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@3704122f +2024-10-02 11:47:45.145 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@3704122f +2024-10-02 12:36:25.289 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-02 12:36:26.101 [main] INFO ktor.application - Application started in 0.89 seconds. +2024-10-02 12:36:26.102 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@3704122f +2024-10-02 12:36:26.566 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-02 12:36:49.985 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> SUCCESS @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + "" -> "analizzaURL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /analizzaURL/(method:POST) +2024-10-02 12:36:50.043 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.UrlRequest, reifiedType=class eu.maiora.routes.UrlRequest, kotlinType=eu.maiora.routes.UrlRequest) for call /analizzaURL +2024-10-02 12:36:50.266 [eventLoopGroupProxy-4-1] TRACE i.ktor.client.plugins.HttpPlainText - Adding Accept-Charset=UTF-8 to https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai +2024-10-02 12:36:50.277 [eventLoopGroupProxy-4-1] TRACE i.k.c.plugins.defaultTransformers - Transformed with default transformers request body for https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai from class kotlin.String +2024-10-02 12:36:51.411 [eventLoopGroupProxy-4-1] TRACE i.k.client.plugins.HttpCallValidator - Validating response for request https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai +2024-10-02 12:36:51.412 [eventLoopGroupProxy-4-1] TRACE i.k.c.p.DefaultResponseValidation - Skipping default response validation for https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai +2024-10-02 12:36:51.431 [eventLoopGroupProxy-4-1] TRACE i.k.c.plugins.defaultTransformers - Transformed with default transformers response body for https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai to class io.ktor.utils.io.core.ByteReadPacket +2024-10-02 12:36:51.436 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from String to OutgoingContent for the POST /analizzaURL request because the String type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 12:36:51.520 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /analizzaURL in 1553ms +2024-10-02 12:37:12.564 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> FAILURE "Selector didn't match" @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-02 12:37:12.569 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaURL request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 12:37:12.570 [eventLoopGroupProxy-4-2] INFO ktor.application - 405 Method Not Allowed: OPTIONS - /analizzaURL in 6ms +2024-10-02 12:37:26.809 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> FAILURE "Selector didn't match" @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-02 12:37:26.809 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaURL request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 12:37:26.810 [eventLoopGroupProxy-4-2] INFO ktor.application - 405 Method Not Allowed: OPTIONS - /analizzaURL in 2ms +2024-10-02 12:39:18.134 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> SUCCESS @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + "" -> "analizzaURL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /analizzaURL/(method:POST) +2024-10-02 12:39:18.138 [eventLoopGroupProxy-4-2] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.UrlRequest, reifiedType=class eu.maiora.routes.UrlRequest, kotlinType=eu.maiora.routes.UrlRequest) for call /analizzaURL +2024-10-02 12:39:18.138 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping content converter for request type class eu.maiora.routes.UrlRequest because content type text/plain does not match application/json +2024-10-02 12:39:18.138 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - No suitable content converter found for request type class eu.maiora.routes.UrlRequest +2024-10-02 12:39:18.164 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-02 12:39:18.164 [eventLoopGroupProxy-4-2] INFO ktor.application - 400 Bad Request: POST - /analizzaURL in 30ms +2024-10-02 12:41:46.649 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> SUCCESS @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + "" -> "analizzaURL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /analizzaURL/(method:POST) +2024-10-02 12:41:46.650 [eventLoopGroupProxy-4-2] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.UrlRequest, reifiedType=class eu.maiora.routes.UrlRequest, kotlinType=eu.maiora.routes.UrlRequest) for call /analizzaURL +2024-10-02 12:41:46.651 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping content converter for request type class eu.maiora.routes.UrlRequest because content type text/plain does not match application/json +2024-10-02 12:41:46.651 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - No suitable content converter found for request type class eu.maiora.routes.UrlRequest +2024-10-02 12:41:46.651 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-02 12:41:46.652 [eventLoopGroupProxy-4-2] INFO ktor.application - 400 Bad Request: POST - /analizzaURL in 3ms +2024-10-02 12:42:09.507 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> SUCCESS @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + "" -> "analizzaURL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /analizzaURL/(method:POST) +2024-10-02 12:42:09.508 [eventLoopGroupProxy-4-2] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.UrlRequest, reifiedType=class eu.maiora.routes.UrlRequest, kotlinType=eu.maiora.routes.UrlRequest) for call /analizzaURL +2024-10-02 12:42:09.509 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping content converter for request type class eu.maiora.routes.UrlRequest because content type text/plain does not match application/json +2024-10-02 12:42:09.509 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - No suitable content converter found for request type class eu.maiora.routes.UrlRequest +2024-10-02 12:42:09.510 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-02 12:42:09.511 [eventLoopGroupProxy-4-2] INFO ktor.application - 400 Bad Request: POST - /analizzaURL in 4ms +2024-10-02 12:56:35.108 [eventLoopGroupProxy-4-3] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> SUCCESS @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + "" -> "analizzaURL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /analizzaURL/(method:POST) +2024-10-02 12:56:35.109 [eventLoopGroupProxy-4-3] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.UrlRequest, reifiedType=class eu.maiora.routes.UrlRequest, kotlinType=eu.maiora.routes.UrlRequest) for call /analizzaURL +2024-10-02 12:56:35.111 [eventLoopGroupProxy-4-3] TRACE i.k.s.p.c.ContentNegotiation - Skipping content converter for request type class eu.maiora.routes.UrlRequest because content type text/plain does not match application/json +2024-10-02 12:56:35.111 [eventLoopGroupProxy-4-3] TRACE i.k.s.p.c.ContentNegotiation - No suitable content converter found for request type class eu.maiora.routes.UrlRequest +2024-10-02 12:56:35.112 [eventLoopGroupProxy-4-3] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-02 12:56:35.113 [eventLoopGroupProxy-4-3] INFO ktor.application - 400 Bad Request: POST - /analizzaURL in 5ms +2024-10-02 12:57:05.657 [eventLoopGroupProxy-4-3] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> SUCCESS @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + "" -> "analizzaURL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /analizzaURL/(method:POST) +2024-10-02 12:57:05.658 [eventLoopGroupProxy-4-3] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.UrlRequest, reifiedType=class eu.maiora.routes.UrlRequest, kotlinType=eu.maiora.routes.UrlRequest) for call /analizzaURL +2024-10-02 12:57:05.658 [eventLoopGroupProxy-4-3] TRACE i.k.s.p.c.ContentNegotiation - Skipping content converter for request type class eu.maiora.routes.UrlRequest because content type text/plain does not match application/json +2024-10-02 12:57:05.658 [eventLoopGroupProxy-4-3] TRACE i.k.s.p.c.ContentNegotiation - No suitable content converter found for request type class eu.maiora.routes.UrlRequest +2024-10-02 12:57:05.659 [eventLoopGroupProxy-4-3] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-02 12:57:05.660 [eventLoopGroupProxy-4-3] INFO ktor.application - 400 Bad Request: POST - /analizzaURL in 4ms +2024-10-02 12:59:11.904 [eventLoopGroupProxy-4-4] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> SUCCESS @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + "" -> "analizzaURL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /analizzaURL/(method:POST) +2024-10-02 12:59:11.905 [eventLoopGroupProxy-4-4] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.UrlRequest, reifiedType=class eu.maiora.routes.UrlRequest, kotlinType=eu.maiora.routes.UrlRequest) for call /analizzaURL +2024-10-02 12:59:11.906 [eventLoopGroupProxy-4-4] TRACE i.k.s.p.c.ContentNegotiation - Skipping content converter for request type class eu.maiora.routes.UrlRequest because content type text/plain does not match application/json +2024-10-02 12:59:11.907 [eventLoopGroupProxy-4-4] TRACE i.k.s.p.c.ContentNegotiation - No suitable content converter found for request type class eu.maiora.routes.UrlRequest +2024-10-02 12:59:11.908 [eventLoopGroupProxy-4-4] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-02 12:59:11.909 [eventLoopGroupProxy-4-4] INFO ktor.application - 400 Bad Request: POST - /analizzaURL in 5ms +2024-10-02 14:15:13.199 [eventLoopGroupProxy-4-5] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> SUCCESS @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + "" -> "analizzaURL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /analizzaURL/(method:POST) +2024-10-02 14:15:13.200 [eventLoopGroupProxy-4-5] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.UrlRequest, reifiedType=class eu.maiora.routes.UrlRequest, kotlinType=eu.maiora.routes.UrlRequest) for call /analizzaURL +2024-10-02 14:15:13.201 [eventLoopGroupProxy-4-5] TRACE i.k.s.p.c.ContentNegotiation - Skipping content converter for request type class eu.maiora.routes.UrlRequest because content type text/plain does not match application/json +2024-10-02 14:15:13.201 [eventLoopGroupProxy-4-5] TRACE i.k.s.p.c.ContentNegotiation - No suitable content converter found for request type class eu.maiora.routes.UrlRequest +2024-10-02 14:15:13.203 [eventLoopGroupProxy-4-5] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-02 14:15:13.204 [eventLoopGroupProxy-4-5] INFO ktor.application - 400 Bad Request: POST - /analizzaURL in 6ms +2024-10-02 14:46:05.597 [eventLoopGroupProxy-4-6] TRACE ktor.application - Failed to decode request +java.lang.IllegalArgumentException: invalid version format: ܭ|O'SSL> H؊-$- +/,0̨̩/5S::3CL‘,; % Q0([%?25NJ́"5ۊ*I֝IQ|4T|J̐ZɈ2WA**3`^{NXQP6_W_7W )އVD^Y]W(M?DŽ˜.{F?L}Țײ{J_G4SJ°U\ȺIÒ@2FBB[> Q.XL&UC`;C7 + at io.netty.handler.codec.http.HttpVersion.(HttpVersion.java:123) + at io.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:85) + at io.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:200) + at io.netty.handler.codec.http.HttpObjectDecoder.decode(HttpObjectDecoder.java:354) + at io.netty.handler.codec.http.HttpServerCodec$HttpServerRequestDecoder.decode(HttpServerCodec.java:167) + at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:530) + at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:469) + at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) + at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) + at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) + at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1407) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) + at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:918) + at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) + at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) + at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) + at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) + at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) + at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296) + at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) + at java.base/java.lang.Thread.run(Thread.java:1583) +2024-10-02 14:46:05.624 [eventLoopGroupProxy-4-7] TRACE ktor.application - Failed to decode request +java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9) + at io.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:72) + at io.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:200) + at io.netty.handler.codec.http.HttpObjectDecoder.decode(HttpObjectDecoder.java:354) + at io.netty.handler.codec.http.HttpServerCodec$HttpServerRequestDecoder.decode(HttpServerCodec.java:167) + at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:530) + at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:469) + at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) + at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) + at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) + at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1407) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) + at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:918) + at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) + at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) + at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) + at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) + at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) + at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296) + at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) + at java.base/java.lang.Thread.run(Thread.java:1583) +2024-10-02 14:46:38.406 [eventLoopGroupProxy-4-8] TRACE io.ktor.routing.Routing - Trace for [analizzaUrl] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-02 14:46:38.407 [eventLoopGroupProxy-4-8] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaUrl request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 14:46:38.407 [eventLoopGroupProxy-4-8] INFO ktor.application - 404 Not Found: OPTIONS - /analizzaUrl in 2ms +2024-10-02 14:48:44.131 [eventLoopGroupProxy-4-8] TRACE io.ktor.routing.Routing - Trace for [analizzaUrl] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-02 14:48:44.132 [eventLoopGroupProxy-4-8] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaUrl request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 14:48:44.133 [eventLoopGroupProxy-4-8] INFO ktor.application - 404 Not Found: OPTIONS - /analizzaUrl in 2ms +2024-10-02 14:48:45.573 [eventLoopGroupProxy-4-8] TRACE io.ktor.routing.Routing - Trace for [analizzaUrl] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-02 14:48:45.574 [eventLoopGroupProxy-4-8] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaUrl request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 14:48:45.575 [eventLoopGroupProxy-4-8] INFO ktor.application - 404 Not Found: OPTIONS - /analizzaUrl in 2ms +2024-10-02 15:01:54.172 [eventLoopGroupProxy-4-9] TRACE io.ktor.routing.Routing - Trace for [analizzaUrl] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-02 15:01:54.172 [eventLoopGroupProxy-4-9] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaUrl request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 15:01:54.172 [eventLoopGroupProxy-4-9] INFO ktor.application - 404 Not Found: OPTIONS - /analizzaUrl in 6ms +2024-10-02 15:02:01.982 [eventLoopGroupProxy-4-9] TRACE io.ktor.routing.Routing - Trace for [analizzaUrl] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-02 15:02:01.983 [eventLoopGroupProxy-4-9] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaUrl request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 15:02:01.983 [eventLoopGroupProxy-4-9] INFO ktor.application - 404 Not Found: OPTIONS - /analizzaUrl in 1ms +2024-10-02 15:05:20.251 [eventLoopGroupProxy-4-9] TRACE io.ktor.routing.Routing - Trace for [analizzaUrl] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-02 15:05:20.278 [eventLoopGroupProxy-4-9] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaUrl request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 15:05:20.278 [eventLoopGroupProxy-4-9] INFO ktor.application - 404 Not Found: OPTIONS - /analizzaUrl in 27ms +2024-10-02 15:05:30.832 [eventLoopGroupProxy-4-9] TRACE io.ktor.routing.Routing - Trace for [analizzaUrl] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-02 15:05:30.832 [eventLoopGroupProxy-4-9] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaUrl request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 15:05:30.833 [eventLoopGroupProxy-4-9] INFO ktor.application - 404 Not Found: OPTIONS - /analizzaUrl in 1ms +2024-10-02 15:06:10.973 [eventLoopGroupProxy-4-9] TRACE io.ktor.routing.Routing - Trace for [analizzaUrl] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-02 15:06:10.973 [eventLoopGroupProxy-4-9] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaUrl request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 15:06:10.973 [eventLoopGroupProxy-4-9] INFO ktor.application - 404 Not Found: OPTIONS - /analizzaUrl in 1ms +2024-10-02 16:01:56.107 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@3704122f +2024-10-02 16:01:56.114 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@3704122f +2024-10-02 16:39:15.191 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-02 16:39:15.653 [main] INFO ktor.application - Application started in 0.511 seconds. +2024-10-02 16:39:15.653 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@3704122f +2024-10-02 16:39:15.930 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-02 16:39:19.803 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-02 16:39:19.832 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-02 16:39:20.412 [eventLoopGroupProxy-4-1] ERROR ktor.application - Unhandled: POST - /eseguiScriptSQL +org.postgresql.util.PSQLException: ERROR: syntax error at or near "," + Posizione: 81 + at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676) + at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366) + at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356) + at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:496) + at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:413) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:333) + at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:319) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:295) + at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:244) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invokeSuspend(EseguiScriptSQLRoute.kt:34) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invokeSuspend(Route.kt:116) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:17) + at io.ktor.server.routing.Routing.executeResult(Routing.kt:190) + at io.ktor.server.routing.Routing.interceptor(Routing.kt:64) + at io.ktor.server.routing.Routing$Plugin$install$1.invokeSuspend(Routing.kt:140) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invokeSuspend(BaseApplicationEngine.kt:124) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:17) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invokeSuspend(DefaultEnginePipeline.kt:123) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:17) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invokeSuspend(NettyApplicationCallHandler.kt:140) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44) + at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112) + at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56) + at kotlinx.coroutines.BuildersKt.launch(Unknown Source) + at io.ktor.server.netty.NettyApplicationCallHandler.handleRequest(NettyApplicationCallHandler.kt:41) + at io.ktor.server.netty.NettyApplicationCallHandler.channelRead(NettyApplicationCallHandler.kt:33) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) + at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61) + at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:425) + at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166) + at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) + at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) + at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296) + at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) + at java.base/java.lang.Thread.run(Thread.java:1583) +2024-10-02 16:39:20.416 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the POST /eseguiScriptSQL request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 16:39:20.450 [eventLoopGroupProxy-4-1] INFO ktor.application - 500 Internal Server Error: POST - /eseguiScriptSQL in 658ms +2024-10-02 16:39:51.357 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@3704122f +2024-10-02 16:39:51.357 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@3704122f +2024-10-02 16:40:14.874 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-02 16:40:15.293 [main] INFO ktor.application - Application started in 0.473 seconds. +2024-10-02 16:40:15.294 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@3704122f +2024-10-02 16:40:15.526 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-02 16:40:23.619 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-02 16:40:23.650 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-02 16:40:24.139 [eventLoopGroupProxy-4-1] ERROR ktor.application - Unhandled: POST - /eseguiScriptSQL +org.postgresql.util.PSQLException: ERROR: syntax error at or near "," + Posizione: 81 + at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676) + at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366) + at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356) + at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:496) + at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:413) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:333) + at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:319) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:295) + at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:244) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invokeSuspend(EseguiScriptSQLRoute.kt:34) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invokeSuspend(Route.kt:116) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:17) + at io.ktor.server.routing.Routing.executeResult(Routing.kt:190) + at io.ktor.server.routing.Routing.interceptor(Routing.kt:64) + at io.ktor.server.routing.Routing$Plugin$install$1.invokeSuspend(Routing.kt:140) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invokeSuspend(BaseApplicationEngine.kt:124) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:17) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invokeSuspend(DefaultEnginePipeline.kt:123) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:17) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invokeSuspend(NettyApplicationCallHandler.kt:140) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44) + at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112) + at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56) + at kotlinx.coroutines.BuildersKt.launch(Unknown Source) + at io.ktor.server.netty.NettyApplicationCallHandler.handleRequest(NettyApplicationCallHandler.kt:41) + at io.ktor.server.netty.NettyApplicationCallHandler.channelRead(NettyApplicationCallHandler.kt:33) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) + at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61) + at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:425) + at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166) + at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) + at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) + at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296) + at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) + at java.base/java.lang.Thread.run(Thread.java:1583) +2024-10-02 16:40:24.144 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the POST /eseguiScriptSQL request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 16:40:24.180 [eventLoopGroupProxy-4-1] INFO ktor.application - 500 Internal Server Error: POST - /eseguiScriptSQL in 572ms +2024-10-02 16:42:25.631 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@3704122f +2024-10-02 16:42:25.632 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@3704122f +2024-10-02 16:42:49.706 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-02 16:42:55.323 [main] INFO ktor.application - Application started in 5.672 seconds. +2024-10-02 16:42:55.324 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@6406d180 +2024-10-02 16:42:55.600 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-02 16:43:03.146 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-02 16:43:03.172 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-02 16:43:54.603 [eventLoopGroupProxy-4-1] ERROR ktor.application - Unhandled: POST - /eseguiScriptSQL +org.postgresql.util.PSQLException: ERROR: syntax error at or near "," + Posizione: 81 + at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676) + at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366) + at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356) + at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:496) + at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:413) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:333) + at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:319) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:295) + at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:244) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invokeSuspend(EseguiScriptSQLRoute.kt:40) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invokeSuspend(Route.kt:116) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.routing.Routing.executeResult(Routing.kt:190) + at io.ktor.server.routing.Routing.interceptor(Routing.kt:64) + at io.ktor.server.routing.Routing$Plugin$install$1.invokeSuspend(Routing.kt:140) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invokeSuspend(BaseApplicationEngine.kt:124) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invokeSuspend(DefaultEnginePipeline.kt:123) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invokeSuspend(NettyApplicationCallHandler.kt:140) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44) + at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112) + at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56) + at kotlinx.coroutines.BuildersKt.launch(Unknown Source) + at io.ktor.server.netty.NettyApplicationCallHandler.handleRequest(NettyApplicationCallHandler.kt:41) + at io.ktor.server.netty.NettyApplicationCallHandler.channelRead(NettyApplicationCallHandler.kt:33) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) + at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61) + at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:425) + at io.netty.util.concurrent.AbstractEventExecutor.runTask$$$capture(AbstractEventExecutor.java:173) + at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:166) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java) + at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) + at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) + at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296) + at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) + at java.base/java.lang.Thread.run(Thread.java:1583) +2024-10-02 16:43:54.616 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the POST /eseguiScriptSQL request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 16:43:54.708 [eventLoopGroupProxy-4-1] INFO ktor.application - 500 Internal Server Error: POST - /eseguiScriptSQL in 51570ms +2024-10-02 16:44:49.717 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@6406d180 +2024-10-02 16:44:49.718 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@6406d180 +2024-10-02 16:45:12.891 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-02 16:45:13.382 [main] INFO ktor.application - Application started in 0.533 seconds. +2024-10-02 16:45:13.383 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@5486887b +2024-10-02 16:45:13.629 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-02 16:49:43.989 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-02 16:49:44.020 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-02 16:49:47.459 [eventLoopGroupProxy-4-1] ERROR ktor.application - Unhandled: POST - /eseguiScriptSQL +org.postgresql.util.PSQLException: ERROR: syntax error at or near "," + Posizione: 81 + at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676) + at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366) + at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356) + at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:496) + at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:413) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:333) + at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:319) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:295) + at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:244) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invokeSuspend(EseguiScriptSQLRoute.kt:40) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invokeSuspend(Route.kt:116) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.routing.Routing.executeResult(Routing.kt:190) + at io.ktor.server.routing.Routing.interceptor(Routing.kt:64) + at io.ktor.server.routing.Routing$Plugin$install$1.invokeSuspend(Routing.kt:140) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invokeSuspend(BaseApplicationEngine.kt:124) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invokeSuspend(DefaultEnginePipeline.kt:123) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invokeSuspend(NettyApplicationCallHandler.kt:140) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44) + at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112) + at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56) + at kotlinx.coroutines.BuildersKt.launch(Unknown Source) + at io.ktor.server.netty.NettyApplicationCallHandler.handleRequest(NettyApplicationCallHandler.kt:41) + at io.ktor.server.netty.NettyApplicationCallHandler.channelRead(NettyApplicationCallHandler.kt:33) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) + at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61) + at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:425) + at io.netty.util.concurrent.AbstractEventExecutor.runTask$$$capture(AbstractEventExecutor.java:173) + at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:166) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java) + at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) + at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) + at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296) + at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) + at java.base/java.lang.Thread.run(Thread.java:1583) +2024-10-02 16:49:47.466 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the POST /eseguiScriptSQL request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 16:49:47.501 [eventLoopGroupProxy-4-1] INFO ktor.application - 500 Internal Server Error: POST - /eseguiScriptSQL in 3521ms +2024-10-02 16:49:57.363 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-02 16:49:57.363 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-02 16:57:57.953 [eventLoopGroupProxy-4-1] ERROR ktor.application - Unhandled: POST - /eseguiScriptSQL +org.postgresql.util.PSQLException: ERROR: syntax error at or near "," + Posizione: 81 + at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676) + at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366) + at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356) + at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:496) + at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:413) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:333) + at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:319) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:295) + at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:244) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invokeSuspend(EseguiScriptSQLRoute.kt:40) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invokeSuspend(Route.kt:116) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.routing.Routing.executeResult(Routing.kt:190) + at io.ktor.server.routing.Routing.interceptor(Routing.kt:64) + at io.ktor.server.routing.Routing$Plugin$install$1.invokeSuspend(Routing.kt:140) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invokeSuspend(BaseApplicationEngine.kt:124) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invokeSuspend(DefaultEnginePipeline.kt:123) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invokeSuspend(NettyApplicationCallHandler.kt:140) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44) + at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112) + at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56) + at kotlinx.coroutines.BuildersKt.launch(Unknown Source) + at io.ktor.server.netty.NettyApplicationCallHandler.handleRequest(NettyApplicationCallHandler.kt:41) + at io.ktor.server.netty.NettyApplicationCallHandler.channelRead(NettyApplicationCallHandler.kt:33) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) + at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61) + at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:425) + at io.netty.util.concurrent.AbstractEventExecutor.runTask$$$capture(AbstractEventExecutor.java:173) + at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:166) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java) + at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) + at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) + at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296) + at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) + at java.base/java.lang.Thread.run(Thread.java:1583) +2024-10-02 16:57:57.954 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the POST /eseguiScriptSQL request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 16:57:57.955 [eventLoopGroupProxy-4-1] INFO ktor.application - 500 Internal Server Error: POST - /eseguiScriptSQL in 480593ms +2024-10-02 16:58:04.515 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@5486887b +2024-10-02 16:58:04.516 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@5486887b +2024-10-02 16:59:09.727 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-02 16:59:10.282 [main] INFO ktor.application - Application started in 0.601 seconds. +2024-10-02 16:59:10.282 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@5486887b +2024-10-02 16:59:10.540 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-02 17:00:35.931 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-02 17:00:35.963 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-02 17:00:39.744 [eventLoopGroupProxy-4-1] ERROR ktor.application - Unhandled: POST - /eseguiScriptSQL +org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "pk_log_script" + Dettaglio: Key (id)=(-1) already exists. + at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676) + at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366) + at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356) + at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:496) + at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:413) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:333) + at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:319) + at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:295) + at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:244) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invokeSuspend(EseguiScriptSQLRoute.kt:40) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at eu.maiora.routes.EseguiScriptSQLRouteKt$eseguiScriptSQLRoute$1.invoke(EseguiScriptSQLRoute.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invokeSuspend(Route.kt:116) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.routing.Routing.executeResult(Routing.kt:190) + at io.ktor.server.routing.Routing.interceptor(Routing.kt:64) + at io.ktor.server.routing.Routing$Plugin$install$1.invokeSuspend(Routing.kt:140) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invokeSuspend(BaseApplicationEngine.kt:124) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invokeSuspend(DefaultEnginePipeline.kt:123) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invokeSuspend(NettyApplicationCallHandler.kt:140) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44) + at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112) + at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56) + at kotlinx.coroutines.BuildersKt.launch(Unknown Source) + at io.ktor.server.netty.NettyApplicationCallHandler.handleRequest(NettyApplicationCallHandler.kt:41) + at io.ktor.server.netty.NettyApplicationCallHandler.channelRead(NettyApplicationCallHandler.kt:33) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) + at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61) + at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:425) + at io.netty.util.concurrent.AbstractEventExecutor.runTask$$$capture(AbstractEventExecutor.java:173) + at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:166) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java) + at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) + at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) + at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296) + at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) + at java.base/java.lang.Thread.run(Thread.java:1583) +2024-10-02 17:00:39.750 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the POST /eseguiScriptSQL request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-02 17:00:39.784 [eventLoopGroupProxy-4-1] INFO ktor.application - 500 Internal Server Error: POST - /eseguiScriptSQL in 3863ms +2024-10-02 17:02:01.510 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-02 17:02:01.510 [eventLoopGroupProxy-4-2] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-02 17:02:03.559 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-02 17:02:03.561 [eventLoopGroupProxy-4-2] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 2052ms +2024-10-02 17:08:20.431 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@5486887b +2024-10-02 17:08:20.431 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@5486887b +2024-10-03 11:39:21.235 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-03 11:39:21.789 [main] INFO ktor.application - Application started in 0.624 seconds. +2024-10-03 11:39:21.789 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@3704122f +2024-10-03 11:39:22.062 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-03 11:39:31.012 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-03 11:39:31.049 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-03 11:39:31.671 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-03 11:39:31.713 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 714ms +2024-10-03 11:42:55.508 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@3704122f +2024-10-03 11:42:55.510 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@3704122f +2024-10-03 14:48:59.481 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-03 14:49:00.008 [main] INFO ktor.application - Application started in 0.594 seconds. +2024-10-03 14:49:00.008 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@4102b1b1 +2024-10-03 14:49:00.286 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-03 14:49:15.074 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [analizzaURL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:1 -> SUCCESS @ /analizzaURL + /analizzaURL/(method:POST), segment:1 -> SUCCESS @ /analizzaURL/(method:POST) + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + "" -> "analizzaURL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /analizzaURL/(method:POST) +2024-10-03 14:49:15.105 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.UrlRequest, reifiedType=class eu.maiora.routes.UrlRequest, kotlinType=eu.maiora.routes.UrlRequest) for call /analizzaURL +2024-10-03 14:49:15.214 [eventLoopGroupProxy-4-1] TRACE i.ktor.client.plugins.HttpPlainText - Adding Accept-Charset=UTF-8 to https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai +2024-10-03 14:49:15.216 [eventLoopGroupProxy-4-1] TRACE i.k.c.plugins.defaultTransformers - Transformed with default transformers request body for https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai from class kotlin.String +2024-10-03 14:49:15.852 [eventLoopGroupProxy-4-1] TRACE i.k.client.plugins.HttpCallValidator - Validating response for request https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai +2024-10-03 14:49:15.853 [eventLoopGroupProxy-4-1] TRACE i.k.c.p.DefaultResponseValidation - Skipping default response validation for https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai +2024-10-03 14:49:15.861 [eventLoopGroupProxy-4-1] TRACE i.k.c.plugins.defaultTransformers - Transformed with default transformers response body for https://pqzniin5r9.execute-api.eu-west-1.amazonaws.com/dev/ai to class io.ktor.utils.io.core.ByteReadPacket +2024-10-03 14:49:15.862 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from String to OutgoingContent for the POST /analizzaURL request because the String type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-03 14:49:15.924 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /analizzaURL in 861ms +2024-10-03 14:49:21.329 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@4102b1b1 +2024-10-03 14:49:21.330 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@4102b1b1 +2024-10-03 15:36:16.660 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-03 15:36:17.092 [main] INFO ktor.application - Application started in 0.478 seconds. +2024-10-03 15:36:17.093 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@3a71c100 +2024-10-03 15:36:17.352 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-03 15:39:32.410 [eventLoopGroupProxy-4-1] TRACE io.ktor.server.plugins.cors.CORS - Respond preflight on OPTIONS for /analizzaUrl +2024-10-03 15:39:32.411 [eventLoopGroupProxy-4-1] TRACE io.ktor.server.plugins.cors.CORS - Return Forbidden for /analizzaUrl: request has not allowed headers. +2024-10-03 15:39:32.435 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the OPTIONS /analizzaUrl request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-03 15:39:32.499 [eventLoopGroupProxy-4-1] INFO ktor.application - 403 Forbidden: OPTIONS - /analizzaUrl in 94ms +2024-10-03 15:39:32.503 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [analizzaUrl] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-03 15:42:46.041 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@3a71c100 +2024-10-03 15:42:46.042 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@3a71c100 +2024-10-15 11:49:54.145 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-15 11:49:54.630 [main] INFO ktor.application - Application started in 0.536 seconds. +2024-10-15 11:49:54.631 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@3aaf4f07 +2024-10-15 11:49:54.907 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-15 11:50:53.906 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [getLogScript] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-15 11:50:53.923 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the POST /getLogScript request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-15 11:50:53.955 [eventLoopGroupProxy-4-1] INFO ktor.application - 404 Not Found: POST - /getLogScript in 55ms +2024-10-15 11:51:05.001 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [getLogScript] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL +Matched routes: + No results +Route resolve result: + FAILURE "No matched subtrees found" @ / +2024-10-15 11:51:05.001 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the GET /getLogScript request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-15 11:51:05.001 [eventLoopGroupProxy-4-1] INFO ktor.application - 404 Not Found: GET - /getLogScript in 1ms +2024-10-15 11:52:30.084 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@3aaf4f07 +2024-10-15 11:52:30.085 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@3aaf4f07 +2024-10-15 11:52:32.317 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-15 11:52:32.731 [main] INFO ktor.application - Application started in 0.457 seconds. +2024-10-15 11:52:32.732 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@5a2f016d +2024-10-15 11:52:32.956 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-15 11:54:50.229 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [getLogScript] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /getLogScript, segment:1 -> SUCCESS @ /getLogScript + /getLogScript/(method:GET), segment:1 -> SUCCESS @ /getLogScript/(method:GET) +Matched routes: + "" -> "getLogScript" -> "(method:GET)" +Route resolve result: + SUCCESS @ /getLogScript/(method:GET) +2024-10-15 11:55:00.310 [eventLoopGroupProxy-4-1] ERROR ktor.application - Unhandled: GET - /getLogScript +org.postgresql.util.PSQLException: Il tentativo di connessione fallito. + at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:331) + at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49) + at org.postgresql.jdbc.PgConnection.(PgConnection.java:247) + at org.postgresql.Driver.makeConnection(Driver.java:434) + at org.postgresql.Driver.connect(Driver.java:291) + at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:683) + at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:230) + at eu.maiora.routes.GetLogScriptRouteKt$getLogScriptRoute$1.invokeSuspend(GetLogScriptRoute.kt:15) + at eu.maiora.routes.GetLogScriptRouteKt$getLogScriptRoute$1.invoke(GetLogScriptRoute.kt) + at eu.maiora.routes.GetLogScriptRouteKt$getLogScriptRoute$1.invoke(GetLogScriptRoute.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invokeSuspend(Route.kt:116) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:17) + at io.ktor.server.routing.Routing.executeResult(Routing.kt:190) + at io.ktor.server.routing.Routing.interceptor(Routing.kt:64) + at io.ktor.server.routing.Routing$Plugin$install$1.invokeSuspend(Routing.kt:140) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invokeSuspend(BaseApplicationEngine.kt:124) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:17) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invokeSuspend(DefaultEnginePipeline.kt:123) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:17) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invokeSuspend(NettyApplicationCallHandler.kt:140) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:20) + at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:360) + at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:124) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:52) + at kotlinx.coroutines.BuildersKt.launch(Unknown Source) + at io.ktor.server.netty.NettyApplicationCallHandler.handleRequest(NettyApplicationCallHandler.kt:41) + at io.ktor.server.netty.NettyApplicationCallHandler.channelRead(NettyApplicationCallHandler.kt:33) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) + at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61) + at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:425) + at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166) + at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) + at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) + at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296) + at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) + at java.base/java.lang.Thread.run(Thread.java:1583) +Caused by: java.net.SocketTimeoutException: Connect timed out + at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:546) + at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) + at java.base/java.net.Socket.connect(Socket.java:751) + at org.postgresql.core.PGStream.createSocket(PGStream.java:241) + at org.postgresql.core.PGStream.(PGStream.java:98) + at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:109) + at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:235) + ... 71 common frames omitted +2024-10-15 11:55:00.324 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the GET /getLogScript request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-15 11:55:00.358 [eventLoopGroupProxy-4-1] INFO ktor.application - 500 Internal Server Error: GET - /getLogScript in 10139ms +2024-10-15 11:55:34.185 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [getLogScript] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /getLogScript, segment:1 -> SUCCESS @ /getLogScript + /getLogScript/(method:GET), segment:1 -> SUCCESS @ /getLogScript/(method:GET) +Matched routes: + "" -> "getLogScript" -> "(method:GET)" +Route resolve result: + SUCCESS @ /getLogScript/(method:GET) +2024-10-15 11:55:34.738 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-15 11:55:34.741 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: GET - /getLogScript in 556ms +2024-10-15 11:57:34.286 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@5a2f016d +2024-10-15 11:57:34.287 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@5a2f016d +2024-10-15 12:01:35.283 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-15 12:01:35.695 [main] INFO ktor.application - Application started in 0.493 seconds. +2024-10-15 12:01:35.696 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@42deb43a +2024-10-15 12:01:35.917 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-15 12:01:39.262 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> SUCCESS @ /logScript/(method:GET) +Matched routes: + "" -> "logScript" -> "(method:GET)" +Route resolve result: + SUCCESS @ /logScript/(method:GET) +2024-10-15 12:01:39.753 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-15 12:01:39.791 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: GET - /logScript in 538ms +2024-10-15 12:01:46.305 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@42deb43a +2024-10-15 12:01:46.306 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@42deb43a +2024-10-16 09:53:28.095 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-16 09:54:29.783 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-16 10:00:32.354 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-16 10:00:32.892 [main] INFO ktor.application - Application started in 0.597 seconds. +2024-10-16 10:00:32.893 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@5bbbdd4b +2024-10-16 10:00:33.160 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-16 10:00:38.420 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> SUCCESS @ /logScript/(method:GET) + /logScript/{id}, segment:1 -> FAILURE "Selector didn't match" @ /logScript/{id} +Matched routes: + "" -> "logScript" -> "(method:GET)" +Route resolve result: + SUCCESS @ /logScript/(method:GET) +2024-10-16 10:00:39.024 [eventLoopGroupProxy-4-1] ERROR ktor.application - Unhandled: GET - /logScript +java.lang.AbstractMethodError: Receiver class org.jetbrains.exposed.sql.statements.jdbc.JdbcConnectionImpl does not define or inherit an implementation of the resolved method 'abstract void setReadOnly(boolean)' of interface org.jetbrains.exposed.sql.statements.api.ExposedConnection. + at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManager$ThreadLocalTransaction.connectionLazy$lambda$2(ThreadLocalTransactionManager.kt:155) + at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81) + at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManager$ThreadLocalTransaction.getConnection(ThreadLocalTransactionManager.kt:163) + at org.jetbrains.exposed.sql.Transaction.getConnection(Transaction.kt) + at org.jetbrains.exposed.sql.Database.metadata$exposed_core(Database.kt:44) + at org.jetbrains.exposed.sql.Database.identifierManager_delegate$lambda$15(Database.kt:81) + at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) + at org.jetbrains.exposed.sql.Database.getIdentifierManager(Database.kt:81) + at org.jetbrains.exposed.sql.Transaction.fullIdentity$lambda$22(Transaction.kt:329) + at org.jetbrains.exposed.sql.QueryBuilder.invoke(Expression.kt:19) + at org.jetbrains.exposed.sql.Transaction.fullIdentity$exposed_core(Transaction.kt:325) + at org.jetbrains.exposed.sql.Column.toQueryBuilder(Column.kt:52) + at org.jetbrains.exposed.sql.QueryBuilder.append(Expression.kt:58) + at org.jetbrains.exposed.sql.QueryBuilder.unaryPlus(Expression.kt:67) + at org.jetbrains.exposed.sql.Query.prepareSQL$lambda$21$lambda$14(Query.kt:177) + at org.jetbrains.exposed.sql.QueryBuilder.appendTo(Expression.kt:31) + at org.jetbrains.exposed.sql.QueryBuilder.appendTo$default(Expression.kt:22) + at org.jetbrains.exposed.sql.Query.prepareSQL$lambda$21(Query.kt:177) + at org.jetbrains.exposed.sql.QueryBuilder.invoke(Expression.kt:19) + at org.jetbrains.exposed.sql.Query.prepareSQL(Query.kt:164) + at org.jetbrains.exposed.sql.AbstractQuery.arguments(AbstractQuery.kt:52) + at org.jetbrains.exposed.sql.AbstractQuery.arguments(AbstractQuery.kt:9) + at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed_core(Statement.kt:63) + at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:292) + at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:269) + at org.jetbrains.exposed.sql.AbstractQuery.iterator(AbstractQuery.kt:93) + at org.jetbrains.exposed.sql.IterableExKt$mapLazy$1.iterator(IterableEx.kt:214) + at eu.maiora.model.LogScriptRepositoryImpl.allLogScript$lambda$0(LogScriptRepositoryImpl.kt:42) + at com.example.db.MappingKt.suspendTransaction$suspendConversion0(mapping.kt:29) + at com.example.db.MappingKt.access$suspendTransaction$suspendConversion0(mapping.kt:1) + at com.example.db.MappingKt$suspendTransaction$2.invoke(mapping.kt:29) + at com.example.db.MappingKt$suspendTransaction$2.invoke(mapping.kt:29) + at org.jetbrains.exposed.sql.transactions.experimental.SuspendedKt$suspendedTransactionAsyncInternal$1.invokeSuspend(Suspended.kt:187) + at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) + at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101) + at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113) + at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89) + at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707) +2024-10-16 10:00:39.036 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the GET /logScript request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-16 10:00:39.073 [eventLoopGroupProxy-4-1] INFO ktor.application - 500 Internal Server Error: GET - /logScript in 664ms +2024-10-16 10:02:46.416 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@5bbbdd4b +2024-10-16 10:02:46.416 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@5bbbdd4b +2024-10-16 10:03:09.258 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-16 10:03:09.714 [main] INFO ktor.application - Application started in 0.509 seconds. +2024-10-16 10:03:09.715 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@25230246 +2024-10-16 10:03:09.976 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-16 10:03:13.423 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> SUCCESS @ /logScript/(method:GET) + /logScript/{id}, segment:1 -> FAILURE "Selector didn't match" @ /logScript/{id} +Matched routes: + "" -> "logScript" -> "(method:GET)" +Route resolve result: + SUCCESS @ /logScript/(method:GET) +2024-10-16 10:03:14.060 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT log_script.id, log_script.ts_ricezione, log_script.script_ricevuto, log_script.script_elaborato FROM log_script +2024-10-16 10:03:14.061 [DefaultDispatcher-worker-1] WARN Exposed - Transaction attempt #0 failed: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109. Statement(s): SELECT log_script.id, log_script.ts_ricezione, log_script.script_ricevuto, log_script.script_elaborato FROM log_script +org.jetbrains.exposed.exceptions.ExposedSQLException: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109 + at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed_core(Statement.kt:99) + at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:292) + at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:269) + at org.jetbrains.exposed.sql.AbstractQuery.iterator(AbstractQuery.kt:93) + at org.jetbrains.exposed.sql.IterableExKt$mapLazy$1.iterator(IterableEx.kt:214) + at eu.maiora.model.LogScriptRepositoryImpl.allLogScript$lambda$0(LogScriptRepositoryImpl.kt:42) + at com.example.db.MappingKt.suspendTransaction$suspendConversion0(mapping.kt:29) + at com.example.db.MappingKt.access$suspendTransaction$suspendConversion0(mapping.kt:1) + at com.example.db.MappingKt$suspendTransaction$2.invoke(mapping.kt:29) + at com.example.db.MappingKt$suspendTransaction$2.invoke(mapping.kt:29) + at org.jetbrains.exposed.sql.transactions.experimental.SuspendedKt$suspendedTransactionAsyncInternal$1.invokeSuspend(Suspended.kt:187) + at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) + at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101) + at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113) + at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89) + at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707) +Caused by: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109 + at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2725) + at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2412) + at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:371) + at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:502) + at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:419) + at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:194) + at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:137) + at org.jetbrains.exposed.sql.statements.jdbc.JdbcPreparedStatementImpl.executeQuery(JdbcPreparedStatementImpl.kt:51) + at org.jetbrains.exposed.sql.Query.executeInternal(Query.kt:158) + at org.jetbrains.exposed.sql.Query.executeInternal(Query.kt:22) + at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed_core(Statement.kt:97) + ... 18 common frames omitted +2024-10-16 10:03:14.090 [DefaultDispatcher-worker-1] WARN Exposed - Wait 0 milliseconds before retrying +2024-10-16 10:03:14.370 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT log_script.id, log_script.ts_ricezione, log_script.script_ricevuto, log_script.script_elaborato FROM log_script +2024-10-16 10:03:14.370 [DefaultDispatcher-worker-1] WARN Exposed - Transaction attempt #1 failed: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109. Statement(s): SELECT log_script.id, log_script.ts_ricezione, log_script.script_ricevuto, log_script.script_elaborato FROM log_script +org.jetbrains.exposed.exceptions.ExposedSQLException: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109 + at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed_core(Statement.kt:99) + at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:292) + at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:269) + at org.jetbrains.exposed.sql.AbstractQuery.iterator(AbstractQuery.kt:93) + at org.jetbrains.exposed.sql.IterableExKt$mapLazy$1.iterator(IterableEx.kt:214) + at eu.maiora.model.LogScriptRepositoryImpl.allLogScript$lambda$0(LogScriptRepositoryImpl.kt:42) + at com.example.db.MappingKt.suspendTransaction$suspendConversion0(mapping.kt:29) + at com.example.db.MappingKt.access$suspendTransaction$suspendConversion0(mapping.kt:1) + at com.example.db.MappingKt$suspendTransaction$2.invoke(mapping.kt:29) + at com.example.db.MappingKt$suspendTransaction$2.invoke(mapping.kt:29) + at org.jetbrains.exposed.sql.transactions.experimental.SuspendedKt$suspendedTransactionAsyncInternal$1.invokeSuspend(Suspended.kt:187) + at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) + at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101) + at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113) + at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89) + at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707) +Caused by: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109 + at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2725) + at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2412) + at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:371) + at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:502) + at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:419) + at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:194) + at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:137) + at org.jetbrains.exposed.sql.statements.jdbc.JdbcPreparedStatementImpl.executeQuery(JdbcPreparedStatementImpl.kt:51) + at org.jetbrains.exposed.sql.Query.executeInternal(Query.kt:158) + at org.jetbrains.exposed.sql.Query.executeInternal(Query.kt:22) + at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed_core(Statement.kt:97) + ... 18 common frames omitted +2024-10-16 10:03:14.394 [DefaultDispatcher-worker-1] WARN Exposed - Wait 0 milliseconds before retrying +2024-10-16 10:03:14.669 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT log_script.id, log_script.ts_ricezione, log_script.script_ricevuto, log_script.script_elaborato FROM log_script +2024-10-16 10:03:14.669 [DefaultDispatcher-worker-1] WARN Exposed - Transaction attempt #2 failed: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109. Statement(s): SELECT log_script.id, log_script.ts_ricezione, log_script.script_ricevuto, log_script.script_elaborato FROM log_script +org.jetbrains.exposed.exceptions.ExposedSQLException: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109 + at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed_core(Statement.kt:99) + at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:292) + at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:269) + at org.jetbrains.exposed.sql.AbstractQuery.iterator(AbstractQuery.kt:93) + at org.jetbrains.exposed.sql.IterableExKt$mapLazy$1.iterator(IterableEx.kt:214) + at eu.maiora.model.LogScriptRepositoryImpl.allLogScript$lambda$0(LogScriptRepositoryImpl.kt:42) + at com.example.db.MappingKt.suspendTransaction$suspendConversion0(mapping.kt:29) + at com.example.db.MappingKt.access$suspendTransaction$suspendConversion0(mapping.kt:1) + at com.example.db.MappingKt$suspendTransaction$2.invoke(mapping.kt:29) + at com.example.db.MappingKt$suspendTransaction$2.invoke(mapping.kt:29) + at org.jetbrains.exposed.sql.transactions.experimental.SuspendedKt$suspendedTransactionAsyncInternal$1.invokeSuspend(Suspended.kt:187) + at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) + at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101) + at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113) + at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89) + at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707) +Caused by: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109 + at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2725) + at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2412) + at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:371) + at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:502) + at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:419) + at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:194) + at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:137) + at org.jetbrains.exposed.sql.statements.jdbc.JdbcPreparedStatementImpl.executeQuery(JdbcPreparedStatementImpl.kt:51) + at org.jetbrains.exposed.sql.Query.executeInternal(Query.kt:158) + at org.jetbrains.exposed.sql.Query.executeInternal(Query.kt:22) + at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed_core(Statement.kt:97) + ... 18 common frames omitted +2024-10-16 10:03:14.737 [eventLoopGroupProxy-4-1] ERROR ktor.application - Unhandled: GET - /logScript +org.jetbrains.exposed.exceptions.ExposedSQLException: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109 + at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed_core(Statement.kt:99) + at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:292) + at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:269) + at org.jetbrains.exposed.sql.AbstractQuery.iterator(AbstractQuery.kt:93) + at org.jetbrains.exposed.sql.IterableExKt$mapLazy$1.iterator(IterableEx.kt:214) + at eu.maiora.model.LogScriptRepositoryImpl.allLogScript$lambda$0(LogScriptRepositoryImpl.kt:42) + at com.example.db.MappingKt.suspendTransaction$suspendConversion0(mapping.kt:29) + at com.example.db.MappingKt.access$suspendTransaction$suspendConversion0(mapping.kt:1) + at com.example.db.MappingKt$suspendTransaction$2.invoke(mapping.kt:29) + at com.example.db.MappingKt$suspendTransaction$2.invoke(mapping.kt:29) + at org.jetbrains.exposed.sql.transactions.experimental.SuspendedKt$suspendedTransactionAsyncInternal$1.invokeSuspend(Suspended.kt:187) + at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) + at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101) + at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113) + at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89) + at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720) + at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707) +Caused by: org.postgresql.util.PSQLException: ERROR: relation "log_script" does not exist + Posizione: 109 + at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2725) + at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2412) + at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:371) + at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:502) + at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:419) + at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:194) + at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:137) + at org.jetbrains.exposed.sql.statements.jdbc.JdbcPreparedStatementImpl.executeQuery(JdbcPreparedStatementImpl.kt:51) + at org.jetbrains.exposed.sql.Query.executeInternal(Query.kt:158) + at org.jetbrains.exposed.sql.Query.executeInternal(Query.kt:22) + at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed_core(Statement.kt:97) + ... 18 common frames omitted +2024-10-16 10:03:14.747 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the GET /logScript request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-16 10:03:14.778 [eventLoopGroupProxy-4-1] INFO ktor.application - 500 Internal Server Error: GET - /logScript in 1363ms +2024-10-16 10:19:03.227 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@25230246 +2024-10-16 10:19:03.228 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@25230246 +2024-10-16 10:19:19.933 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-16 10:19:20.512 [main] INFO ktor.application - Application started in 0.628 seconds. +2024-10-16 10:19:20.513 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@4fdf8f12 +2024-10-16 10:19:20.729 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-16 10:19:23.328 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> SUCCESS @ /logScript/(method:GET) + /logScript/{id}, segment:1 -> FAILURE "Selector didn't match" @ /logScript/{id} +Matched routes: + "" -> "logScript" -> "(method:GET)" +Route resolve result: + SUCCESS @ /logScript/(method:GET) +2024-10-16 10:19:23.952 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script +2024-10-16 10:19:24.187 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: GET - /logScript in 867ms +2024-10-16 10:21:36.114 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@4fdf8f12 +2024-10-16 10:21:36.114 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@4fdf8f12 +2024-10-16 10:37:09.739 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-16 10:37:10.160 [main] INFO ktor.application - Application started in 0.462 seconds. +2024-10-16 10:37:10.160 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@25230246 +2024-10-16 10:37:10.377 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-16 10:37:16.737 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> SUCCESS @ /logScript/(method:GET) + /logScript/{id}, segment:1 -> FAILURE "Selector didn't match" @ /logScript/{id} +Matched routes: + "" -> "logScript" -> "(method:GET)" +Route resolve result: + SUCCESS @ /logScript/(method:GET) +2024-10-16 10:37:17.384 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script +2024-10-16 10:37:17.637 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: GET - /logScript in 910ms +2024-10-16 10:58:05.607 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@25230246 +2024-10-16 10:58:05.609 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@25230246 +2024-10-16 11:01:18.359 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-16 11:01:18.783 [main] INFO ktor.application - Application started in 0.473 seconds. +2024-10-16 11:01:18.784 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@25230246 +2024-10-16 11:01:18.998 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-16 11:01:53.246 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript, 1] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> FAILURE "Not all segments matched" @ /logScript/(method:GET) + /logScript/{id}, segment:2 -> SUCCESS; Parameters [id=[1]] @ /logScript/{id} + /logScript/{id}/(method:GET), segment:2 -> SUCCESS @ /logScript/{id}/(method:GET) +Matched routes: + "" -> "logScript" -> "{id}" -> "(method:GET)" +Route resolve result: + SUCCESS; Parameters [id=[1]] @ /logScript/{id}/(method:GET) +2024-10-16 11:01:53.939 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script WHERE aipoc.log_script.id = 1 +2024-10-16 11:01:54.154 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: GET - /logScript/1 in 918ms +2024-10-16 11:01:59.252 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript, 11] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> FAILURE "Not all segments matched" @ /logScript/(method:GET) + /logScript/{id}, segment:2 -> SUCCESS; Parameters [id=[11]] @ /logScript/{id} + /logScript/{id}/(method:GET), segment:2 -> SUCCESS @ /logScript/{id}/(method:GET) +Matched routes: + "" -> "logScript" -> "{id}" -> "(method:GET)" +Route resolve result: + SUCCESS; Parameters [id=[11]] @ /logScript/{id}/(method:GET) +2024-10-16 11:01:59.505 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script WHERE aipoc.log_script.id = 11 +2024-10-16 11:01:59.559 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-16 11:01:59.561 [eventLoopGroupProxy-4-1] INFO ktor.application - 404 Not Found: GET - /logScript/11 in 309ms +2024-10-16 11:21:33.487 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@25230246 +2024-10-16 11:21:33.487 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@25230246 +2024-10-16 11:55:13.001 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-16 11:55:13.643 [main] INFO ktor.application - Application started in 0.685 seconds. +2024-10-16 11:55:13.644 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@677b8e13 +2024-10-16 11:55:13.918 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-16 11:56:14.819 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript, 11] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> FAILURE "Not all segments matched" @ /logScript/(method:GET) + /logScript/{id}, segment:2 -> SUCCESS; Parameters [id=[11]] @ /logScript/{id} + /logScript/{id}/(method:GET), segment:2 -> SUCCESS @ /logScript/{id}/(method:GET) + /logScript/{id}/(method:PUT), segment:2 -> FAILURE "Selector didn't match" @ /logScript/{id}/(method:PUT) +Matched routes: + "" -> "logScript" -> "{id}" -> "(method:GET)" +Route resolve result: + SUCCESS; Parameters [id=[11]] @ /logScript/{id}/(method:GET) +2024-10-16 11:56:15.557 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script WHERE aipoc.log_script.id = 11 +2024-10-16 11:56:15.618 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-16 11:56:15.668 [eventLoopGroupProxy-4-1] INFO ktor.application - 404 Not Found: GET - /logScript/11 in 863ms +2024-10-16 11:56:20.778 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript, 1] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> FAILURE "Not all segments matched" @ /logScript/(method:GET) + /logScript/{id}, segment:2 -> SUCCESS; Parameters [id=[1]] @ /logScript/{id} + /logScript/{id}/(method:GET), segment:2 -> SUCCESS @ /logScript/{id}/(method:GET) + /logScript/{id}/(method:PUT), segment:2 -> FAILURE "Selector didn't match" @ /logScript/{id}/(method:PUT) +Matched routes: + "" -> "logScript" -> "{id}" -> "(method:GET)" +Route resolve result: + SUCCESS; Parameters [id=[1]] @ /logScript/{id}/(method:GET) +2024-10-16 11:56:21.029 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script WHERE aipoc.log_script.id = 1 +2024-10-16 11:56:21.234 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: GET - /logScript/1 in 457ms +2024-10-16 11:56:47.642 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript, 1] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> FAILURE "Selector didn't match" @ /logScript/(method:GET) + /logScript/{id}, segment:2 -> SUCCESS; Parameters [id=[1]] @ /logScript/{id} + /logScript/{id}/(method:GET), segment:2 -> FAILURE "Selector didn't match" @ /logScript/{id}/(method:GET) + /logScript/{id}/(method:PUT), segment:2 -> SUCCESS @ /logScript/{id}/(method:PUT) +Matched routes: + "" -> "logScript" -> "{id}" -> "(method:PUT)" +Route resolve result: + SUCCESS; Parameters [id=[1]] @ /logScript/{id}/(method:PUT) +2024-10-16 11:56:51.603 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.model.LogScript, reifiedType=class eu.maiora.model.LogScript, kotlinType=eu.maiora.model.LogScript) for call /logScript/1 +2024-10-16 11:56:51.710 [eventLoopGroupProxy-4-1] DEBUG ktor.application - Unhandled: PUT - /logScript/1. Exception class io.ktor.server.plugins.BadRequestException: Failed to convert request body to class eu.maiora.model.LogScript +io.ktor.server.plugins.BadRequestException: Failed to convert request body to class eu.maiora.model.LogScript + at io.ktor.server.plugins.contentnegotiation.RequestConverterKt.convertBody(RequestConverter.kt:69) + at io.ktor.server.plugins.contentnegotiation.RequestConverterKt.access$convertBody(RequestConverter.kt:1) + at io.ktor.server.plugins.contentnegotiation.RequestConverterKt$convertRequestBody$1$1.invokeSuspend(RequestConverter.kt:40) + at io.ktor.server.plugins.contentnegotiation.RequestConverterKt$convertRequestBody$1$1.invoke(RequestConverter.kt) + at io.ktor.server.plugins.contentnegotiation.RequestConverterKt$convertRequestBody$1$1.invoke(RequestConverter.kt) + at io.ktor.server.application.OnCallReceiveContext.transformBody(KtorCallContexts.kt:65) + at io.ktor.server.plugins.contentnegotiation.RequestConverterKt$convertRequestBody$1.invokeSuspend(RequestConverter.kt:28) + at io.ktor.server.plugins.contentnegotiation.RequestConverterKt$convertRequestBody$1.invoke(RequestConverter.kt) + at io.ktor.server.plugins.contentnegotiation.RequestConverterKt$convertRequestBody$1.invoke(RequestConverter.kt) + at io.ktor.server.application.PluginBuilder$onCallReceive$3.invokeSuspend(PluginBuilder.kt:163) + at io.ktor.server.application.PluginBuilder$onCallReceive$3.invoke(PluginBuilder.kt) + at io.ktor.server.application.PluginBuilder$onCallReceive$3.invoke(PluginBuilder.kt) + at io.ktor.server.application.PluginBuilder$onCallReceive$2.invokeSuspend(PluginBuilder.kt:107) + at io.ktor.server.application.PluginBuilder$onCallReceive$2.invoke(PluginBuilder.kt) + at io.ktor.server.application.PluginBuilder$onCallReceive$2.invoke(PluginBuilder.kt) + at io.ktor.server.application.PluginBuilder$onDefaultPhase$1.invokeSuspend(PluginBuilder.kt:215) + at io.ktor.server.application.PluginBuilder$onDefaultPhase$1.invoke(PluginBuilder.kt) + at io.ktor.server.application.PluginBuilder$onDefaultPhase$1.invoke(PluginBuilder.kt) + at io.ktor.server.application.PluginBuilder$onDefaultPhaseWithMessage$1$1$1.invokeSuspend(PluginBuilder.kt:198) + at io.ktor.server.application.PluginBuilder$onDefaultPhaseWithMessage$1$1$1.invoke(PluginBuilder.kt) + at io.ktor.server.application.PluginBuilder$onDefaultPhaseWithMessage$1$1$1.invoke(PluginBuilder.kt) + at io.ktor.util.debug.ContextUtilsKt$addToContextInDebugMode$2.invokeSuspend(ContextUtils.kt:33) + at io.ktor.util.debug.ContextUtilsKt$addToContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$addToContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:42) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:164) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.addToContextInDebugMode(ContextUtils.kt:33) + at io.ktor.server.application.PluginBuilder$onDefaultPhaseWithMessage$1$1.invokeSuspend(PluginBuilder.kt:194) + at io.ktor.server.application.PluginBuilder$onDefaultPhaseWithMessage$1$1.invoke(PluginBuilder.kt) + at io.ktor.server.application.PluginBuilder$onDefaultPhaseWithMessage$1$1.invoke(PluginBuilder.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.request.ApplicationReceiveFunctionsKt.receiveNullable(ApplicationReceiveFunctions.kt:103) + at eu.maiora.routes.LogScriptRoutesKt$logScriptRouting$1$3.invokeSuspend(LogScriptRoutes.kt:117) + at eu.maiora.routes.LogScriptRoutesKt$logScriptRouting$1$3.invoke(LogScriptRoutes.kt) + at eu.maiora.routes.LogScriptRoutesKt$logScriptRouting$1$3.invoke(LogScriptRoutes.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invokeSuspend(Route.kt:116) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.server.routing.Route$buildPipeline$1$1.invoke(Route.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.routing.Routing$executeResult$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:42) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:164) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.routing.Routing.executeResult(Routing.kt:190) + at io.ktor.server.routing.Routing.interceptor(Routing.kt:64) + at io.ktor.server.routing.Routing$Plugin$install$1.invokeSuspend(Routing.kt:140) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.server.routing.Routing$Plugin$install$1.invoke(Routing.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invokeSuspend(BaseApplicationEngine.kt:124) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.server.engine.BaseApplicationEngineKt$installDefaultTransformationChecker$1.invoke(BaseApplicationEngine.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:42) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:164) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invokeSuspend(DefaultEnginePipeline.kt:123) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$1.invoke(DefaultEnginePipeline.kt) + at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:131) + at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:89) + at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:109) + at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invokeSuspend(Pipeline.kt:478) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1$invokeSuspend$$inlined$execute$1.invoke(Pipeline.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invokeSuspend(ContextUtils.kt:20) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at io.ktor.util.debug.ContextUtilsKt$initContextInDebugMode$2.invoke(ContextUtils.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:42) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:164) + at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) + at io.ktor.util.debug.ContextUtilsKt.initContextInDebugMode(ContextUtils.kt:20) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invokeSuspend(NettyApplicationCallHandler.kt:140) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at io.ktor.server.netty.NettyApplicationCallHandler$handleRequest$1.invoke(NettyApplicationCallHandler.kt) + at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:20) + at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:360) + at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:124) + at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:52) + at kotlinx.coroutines.BuildersKt.launch(Unknown Source) + at io.ktor.server.netty.NettyApplicationCallHandler.handleRequest(NettyApplicationCallHandler.kt:41) + at io.ktor.server.netty.NettyApplicationCallHandler.channelRead(NettyApplicationCallHandler.kt:33) + at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) + at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61) + at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:425) + at io.netty.util.concurrent.AbstractEventExecutor.runTask$$$capture(AbstractEventExecutor.java:173) + at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:166) + at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java) + at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994) + at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) + at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296) + at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) + at java.base/java.lang.Thread.run(Thread.java:1583) +Caused by: io.ktor.serialization.JsonConvertException: Illegal input: Fields [id, ts_ricezione, script_ricevuto] are required for type with serial name 'eu.maiora.model.LogScript', but they were missing at path: $ + at io.ktor.serialization.kotlinx.KotlinxSerializationConverter.deserialize(KotlinxSerializationConverter.kt:90) + at io.ktor.server.plugins.contentnegotiation.RequestConverterKt.convertBody(RequestConverter.kt:67) + ... 120 common frames omitted +Caused by: kotlinx.serialization.MissingFieldException: Fields [id, ts_ricezione, script_ricevuto] are required for type with serial name 'eu.maiora.model.LogScript', but they were missing at path: $ + at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:93) + at kotlinx.serialization.json.Json.decodeFromString(Json.kt:107) + at io.ktor.serialization.kotlinx.KotlinxSerializationConverter.deserialize(KotlinxSerializationConverter.kt:82) + ... 121 common frames omitted +Caused by: kotlinx.serialization.MissingFieldException: Fields [id, ts_ricezione, script_ricevuto] are required for type with serial name 'eu.maiora.model.LogScript', but they were missing + at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20) + at eu.maiora.model.LogScript.(LogScript.kt:6) + at eu.maiora.model.LogScript$$serializer.deserialize(LogScript.kt:6) + at eu.maiora.model.LogScript$$serializer.deserialize(LogScript.kt:6) + at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:70) + ... 123 common frames omitted +2024-10-16 11:56:51.731 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping response body transformation from HttpStatusCode to OutgoingContent for the PUT /logScript/1 request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]. +2024-10-16 11:56:51.735 [eventLoopGroupProxy-4-1] INFO ktor.application - 400 Bad Request: PUT - /logScript/1 in 4094ms +2024-10-16 11:58:42.752 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [logScript, 1] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> FAILURE "Selector didn't match" @ /logScript/(method:GET) + /logScript/{id}, segment:2 -> SUCCESS; Parameters [id=[1]] @ /logScript/{id} + /logScript/{id}/(method:GET), segment:2 -> FAILURE "Selector didn't match" @ /logScript/{id}/(method:GET) + /logScript/{id}/(method:PUT), segment:2 -> SUCCESS @ /logScript/{id}/(method:PUT) +Matched routes: + "" -> "logScript" -> "{id}" -> "(method:PUT)" +Route resolve result: + SUCCESS; Parameters [id=[1]] @ /logScript/{id}/(method:PUT) +2024-10-16 11:58:42.765 [eventLoopGroupProxy-4-2] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.model.LogScript, reifiedType=class eu.maiora.model.LogScript, kotlinType=eu.maiora.model.LogScript) for call /logScript/1 +2024-10-16 11:58:43.022 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script WHERE aipoc.log_script.id = 1 +2024-10-16 11:58:43.066 [DefaultDispatcher-worker-1] DEBUG Exposed - UPDATE aipoc.log_script SET script_elaborato='select * from aipoc.luoghi edited' WHERE id = 1 +2024-10-16 11:58:43.130 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-16 11:58:43.131 [eventLoopGroupProxy-4-2] INFO ktor.application - 200 OK: PUT - /logScript/1 in 380ms +2024-10-16 11:58:55.676 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [logScript, 1] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> FAILURE "Not all segments matched" @ /logScript/(method:GET) + /logScript/{id}, segment:2 -> SUCCESS; Parameters [id=[1]] @ /logScript/{id} + /logScript/{id}/(method:GET), segment:2 -> SUCCESS @ /logScript/{id}/(method:GET) + /logScript/{id}/(method:PUT), segment:2 -> FAILURE "Selector didn't match" @ /logScript/{id}/(method:PUT) +Matched routes: + "" -> "logScript" -> "{id}" -> "(method:GET)" +Route resolve result: + SUCCESS; Parameters [id=[1]] @ /logScript/{id}/(method:GET) +2024-10-16 11:58:55.930 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script WHERE aipoc.log_script.id = 1 +2024-10-16 11:58:55.982 [eventLoopGroupProxy-4-2] INFO ktor.application - 200 OK: GET - /logScript/1 in 306ms +2024-10-16 11:59:08.582 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [logScript, 1] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> FAILURE "Selector didn't match" @ /logScript/(method:GET) + /logScript/{id}, segment:2 -> SUCCESS; Parameters [id=[1]] @ /logScript/{id} + /logScript/{id}/(method:GET), segment:2 -> FAILURE "Selector didn't match" @ /logScript/{id}/(method:GET) + /logScript/{id}/(method:PUT), segment:2 -> SUCCESS @ /logScript/{id}/(method:PUT) +Matched routes: + "" -> "logScript" -> "{id}" -> "(method:PUT)" +Route resolve result: + SUCCESS; Parameters [id=[1]] @ /logScript/{id}/(method:PUT) +2024-10-16 11:59:08.591 [eventLoopGroupProxy-4-2] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.model.LogScript, reifiedType=class eu.maiora.model.LogScript, kotlinType=eu.maiora.model.LogScript) for call /logScript/1 +2024-10-16 11:59:08.851 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script WHERE aipoc.log_script.id = 1 +2024-10-16 11:59:08.915 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-16 11:59:08.915 [eventLoopGroupProxy-4-2] INFO ktor.application - 200 OK: PUT - /logScript/1 in 334ms +2024-10-16 11:59:12.587 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [logScript, 1] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Not all segments matched" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> FAILURE "Not all segments matched" @ /logScript/(method:GET) + /logScript/{id}, segment:2 -> SUCCESS; Parameters [id=[1]] @ /logScript/{id} + /logScript/{id}/(method:GET), segment:2 -> SUCCESS @ /logScript/{id}/(method:GET) + /logScript/{id}/(method:PUT), segment:2 -> FAILURE "Selector didn't match" @ /logScript/{id}/(method:PUT) +Matched routes: + "" -> "logScript" -> "{id}" -> "(method:GET)" +Route resolve result: + SUCCESS; Parameters [id=[1]] @ /logScript/{id}/(method:GET) +2024-10-16 11:59:12.850 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script WHERE aipoc.log_script.id = 1 +2024-10-16 11:59:12.904 [eventLoopGroupProxy-4-2] INFO ktor.application - 200 OK: GET - /logScript/1 in 318ms +2024-10-16 12:03:41.096 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@677b8e13 +2024-10-16 12:03:41.097 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@677b8e13 +2024-10-16 16:13:47.998 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-16 16:13:48.548 [main] INFO ktor.application - Application started in 0.611 seconds. +2024-10-16 16:13:48.548 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@6979efad +2024-10-16 16:13:48.825 [DefaultDispatcher-worker-2] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-16 16:15:17.251 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) + /logScript, segment:0 -> FAILURE "Selector didn't match" @ /logScript +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-16 16:15:17.281 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-16 16:15:17.323 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - instructions: select * from aipoc.luoghi bla bla bla 16102024 +2024-10-16 16:15:17.968 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-16 16:15:18.025 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 781ms +2024-10-16 16:15:41.484 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@6979efad +2024-10-16 16:15:41.485 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@6979efad +2024-10-21 15:14:13.763 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-21 15:14:14.332 [main] INFO ktor.application - Application started in 0.644 seconds. +2024-10-21 15:14:14.333 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@4a8b5227 +2024-10-21 15:14:14.574 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-21 15:15:59.426 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [logScript, 1] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:0 -> FAILURE "Selector didn't match" @ /eseguiScriptSQL + /logScript, segment:1 -> SUCCESS @ /logScript + /logScript/(method:GET), segment:1 -> FAILURE "Selector didn't match" @ /logScript/(method:GET) + /logScript/{id}, segment:2 -> SUCCESS; Parameters [id=[1]] @ /logScript/{id} + /logScript/{id}/(method:GET), segment:2 -> FAILURE "Selector didn't match" @ /logScript/{id}/(method:GET) + /logScript/{id}/(method:PUT), segment:2 -> SUCCESS @ /logScript/{id}/(method:PUT) +Matched routes: + "" -> "logScript" -> "{id}" -> "(method:PUT)" +Route resolve result: + SUCCESS; Parameters [id=[1]] @ /logScript/{id}/(method:PUT) +2024-10-21 15:15:59.452 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.model.LogScript, reifiedType=class eu.maiora.model.LogScript, kotlinType=eu.maiora.model.LogScript) for call /logScript/1 +2024-10-21 15:16:00.402 [DefaultDispatcher-worker-1] DEBUG Exposed - SELECT aipoc.log_script.id, aipoc.log_script.ts_ricezione, aipoc.log_script.script_ricevuto, aipoc.log_script.script_elaborato FROM aipoc.log_script WHERE aipoc.log_script.id = 1 +2024-10-21 15:16:00.516 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-21 15:16:00.547 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: PUT - /logScript/1 in 1130ms +2024-10-21 15:19:19.196 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@4a8b5227 +2024-10-21 15:19:19.196 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@4a8b5227 +2024-10-30 16:00:31.406 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-30 16:00:31.941 [main] INFO ktor.application - Application started in 0.58 seconds. +2024-10-30 16:00:31.941 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@4a8b5227 +2024-10-30 16:00:32.204 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-30 16:00:35.202 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) + /logScript, segment:0 -> FAILURE "Selector didn't match" @ /logScript +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-30 16:00:35.235 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-30 16:00:35.270 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - request: io.ktor.server.routing.RoutingApplicationRequest@c79d2 +2024-10-30 16:00:35.271 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - instructions: select * from aipoc.luoghi bla bla bla 30102024 +2024-10-30 16:00:35.886 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-30 16:00:35.919 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 725ms +2024-10-30 16:01:18.630 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@4a8b5227 +2024-10-30 16:01:18.631 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@4a8b5227 +2024-10-30 16:01:24.117 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-30 16:01:24.648 [main] INFO ktor.application - Application started in 0.581 seconds. +2024-10-30 16:01:24.648 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@6979efad +2024-10-30 16:01:24.892 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-30 16:01:27.183 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) + /logScript, segment:0 -> FAILURE "Selector didn't match" @ /logScript +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-30 16:01:27.210 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-30 16:01:27.241 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - request: io.ktor.server.netty.NettyApplicationRequest$queryParameters$1@30208320 +2024-10-30 16:01:27.241 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - instructions: select * from aipoc.luoghi bla bla bla 30102024 +2024-10-30 16:01:27.762 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-30 16:01:27.797 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 622ms +2024-10-30 16:01:58.426 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) + /logScript, segment:0 -> FAILURE "Selector didn't match" @ /logScript +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-30 16:01:58.428 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-30 16:01:58.428 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - request: io.ktor.server.netty.NettyApplicationRequest$queryParameters$1@5a04ec68 +2024-10-30 16:01:58.428 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - instructions: select * from aipoc.luoghi bla bla bla 30102024 +2024-10-30 16:01:58.685 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-30 16:01:58.686 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 260ms +2024-10-30 16:02:04.742 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@6979efad +2024-10-30 16:02:04.743 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@6979efad +2024-10-30 16:02:10.068 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-30 16:02:10.576 [main] INFO ktor.application - Application started in 0.563 seconds. +2024-10-30 16:02:10.577 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@6979efad +2024-10-30 16:02:10.813 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-30 16:02:12.796 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) + /logScript, segment:0 -> FAILURE "Selector didn't match" @ /logScript +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-30 16:02:12.826 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-30 16:02:12.862 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - request: [] +2024-10-30 16:02:12.862 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - instructions: select * from aipoc.luoghi bla bla bla 30102024 +2024-10-30 16:02:13.379 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-30 16:02:13.416 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 630ms +2024-10-30 16:03:07.619 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@6979efad +2024-10-30 16:03:07.620 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@6979efad +2024-10-30 16:03:12.771 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-30 16:03:13.235 [main] INFO ktor.application - Application started in 0.506 seconds. +2024-10-30 16:03:13.236 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@6979efad +2024-10-30 16:03:13.469 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-30 16:03:16.291 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) + /logScript, segment:0 -> FAILURE "Selector didn't match" @ /logScript +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-30 16:03:16.322 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-30 16:03:16.362 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - request: [] +2024-10-30 16:03:16.362 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - instructions: select * from aipoc.luoghi bla bla bla 30102024 +2024-10-30 16:03:16.865 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-30 16:03:16.903 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 620ms +2024-10-30 16:05:50.786 [KtorShutdownHook] INFO ktor.application - Application stopping: io.ktor.server.application.Application@6979efad +2024-10-30 16:05:50.787 [KtorShutdownHook] INFO ktor.application - Application stopped: io.ktor.server.application.Application@6979efad +2024-10-30 16:05:55.909 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. +2024-10-30 16:05:56.442 [main] INFO ktor.application - Application started in 0.593 seconds. +2024-10-30 16:05:56.443 [main] INFO ktor.application - Application started: io.ktor.server.application.Application@6979efad +2024-10-30 16:05:56.673 [DefaultDispatcher-worker-2] INFO ktor.application - Responding at http://127.0.0.1:8099 +2024-10-30 16:05:59.172 [eventLoopGroupProxy-4-1] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) + /logScript, segment:0 -> FAILURE "Selector didn't match" @ /logScript +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-30 16:05:59.202 [eventLoopGroupProxy-4-1] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-30 16:05:59.239 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - Metodo: HttpMethod(value=POST) +2024-10-30 16:05:59.241 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - URI: /eseguiScriptSQL +2024-10-30 16:05:59.241 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - Query Parameter: null +2024-10-30 16:05:59.241 [eventLoopGroupProxy-4-1] INFO LogScriptRoute - instructions: select * from aipoc.luoghi bla bla bla 30102024 +2024-10-30 16:05:59.751 [eventLoopGroupProxy-4-1] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-30 16:05:59.789 [eventLoopGroupProxy-4-1] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 625ms +2024-10-30 16:07:21.558 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) + /logScript, segment:0 -> FAILURE "Selector didn't match" @ /logScript +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-30 16:07:21.558 [eventLoopGroupProxy-4-2] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-30 16:07:21.558 [eventLoopGroupProxy-4-2] INFO LogScriptRoute - Metodo: HttpMethod(value=POST) +2024-10-30 16:07:21.558 [eventLoopGroupProxy-4-2] INFO LogScriptRoute - URI: /eseguiScriptSQL +2024-10-30 16:07:21.558 [eventLoopGroupProxy-4-2] INFO LogScriptRoute - Query Parameter: null +2024-10-30 16:07:21.558 [eventLoopGroupProxy-4-2] INFO LogScriptRoute - instructions: +2024-10-30 16:07:21.823 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-30 16:07:21.823 [eventLoopGroupProxy-4-2] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 267ms +2024-10-30 16:07:51.587 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) + /logScript, segment:0 -> FAILURE "Selector didn't match" @ /logScript +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-30 16:07:51.587 [eventLoopGroupProxy-4-2] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-30 16:07:51.595 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-30 16:07:51.595 [eventLoopGroupProxy-4-2] INFO ktor.application - 400 Bad Request: POST - /eseguiScriptSQL in 9ms +2024-10-30 16:08:02.895 [eventLoopGroupProxy-4-2] TRACE io.ktor.routing.Routing - Trace for [eseguiScriptSQL] +/, segment:0 -> SUCCESS @ / + /, segment:0 -> SUCCESS @ / + /(method:GET), segment:0 -> FAILURE "Selector didn't match" @ /(method:GET) + /analizzaURL, segment:0 -> FAILURE "Selector didn't match" @ /analizzaURL + /eseguiScriptSQL, segment:1 -> SUCCESS @ /eseguiScriptSQL + /eseguiScriptSQL/(method:POST), segment:1 -> SUCCESS @ /eseguiScriptSQL/(method:POST) + /logScript, segment:0 -> FAILURE "Selector didn't match" @ /logScript +Matched routes: + "" -> "eseguiScriptSQL" -> "(method:POST)" +Route resolve result: + SUCCESS @ /eseguiScriptSQL/(method:POST) +2024-10-30 16:08:02.895 [eventLoopGroupProxy-4-2] TRACE i.k.server.engine.DefaultTransform - No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class eu.maiora.routes.ReceivedResponse, reifiedType=class eu.maiora.routes.ReceivedResponse, kotlinType=eu.maiora.routes.ReceivedResponse) for call /eseguiScriptSQL +2024-10-30 16:08:02.895 [eventLoopGroupProxy-4-2] INFO LogScriptRoute - Metodo: HttpMethod(value=POST) +2024-10-30 16:08:02.895 [eventLoopGroupProxy-4-2] INFO LogScriptRoute - URI: /eseguiScriptSQL +2024-10-30 16:08:02.895 [eventLoopGroupProxy-4-2] INFO LogScriptRoute - Query Parameter: null +2024-10-30 16:08:02.895 [eventLoopGroupProxy-4-2] INFO LogScriptRoute - instructions: +2024-10-30 16:08:03.148 [eventLoopGroupProxy-4-2] TRACE i.k.s.p.c.ContentNegotiation - Skipping because body is already converted. +2024-10-30 16:08:03.148 [eventLoopGroupProxy-4-2] INFO ktor.application - 200 OK: POST - /eseguiScriptSQL in 254ms +2024-10-30 17:20:45.549 [main] INFO ktor.application - Application stopping: io.ktor.server.application.Application@6979efad +2024-10-30 17:20:45.555 [main] INFO ktor.application - Application stopped: io.ktor.server.application.Application@6979efad