Marcus Brito
10/01/2021, 12:47 PMAlexander Suraphel
10/01/2021, 1:32 PMRicardo de Vries
10/08/2021, 11:59 AMHamza Ahmad
10/13/2021, 11:56 AMAlina Dolgikh [JB]
asad.awadia
10/23/2021, 6:57 PMEmmaG
10/24/2021, 5:42 PMDavid Smith
10/27/2021, 9:24 AMAlina Grebenkina
10/28/2021, 3:28 PMRaymond Boswel
11/12/2021, 10:30 AMorg.hibernate.hql.internal.ast.QuerySyntaxException: Account is not mapped
Does anyone have an example project or suggestion of how hibernate can be used with Ktor?Bernhard
11/16/2021, 10:07 AMantonarhipov
12/14/2021, 10:34 AMAlmPazel
12/15/2021, 3:54 AMJiří Hermann
12/16/2021, 3:01 PMHenrik Johansson
12/22/2021, 10:41 AMList<@NotNull String>
a list with one null element is perfectly acceptable according to javax validations included with dropwizardalon shoshani.86
12/29/2021, 9:49 AMINSERT INTO the_table (id, column_1, column_2)
VALUES (1, 'A', 'X'), (2, 'B', 'Y'), (3, 'C', 'Z')
ON CONFLICT (id) DO UPDATE
SET column_1 = excluded.column_1,
column_2 = excluded.column_2;
what is the best solution to make such call? and how can be implemeted with prepared statement?Greg Steckman
12/30/2021, 5:07 AMDebanshu Datta
12/30/2021, 2:43 PMAgustin Magne
01/01/2022, 5:27 PMAgustin Magne
01/01/2022, 5:27 PMJohann Pardanaud
01/07/2022, 2:19 PMMichael Evans
01/07/2022, 11:49 PMval port = System.getenv("PORT")?.toInt() ?: 9090
embeddedServer(Netty, port = port) {
routing {
get("/") {
call.respondText(
this::class.java.classLoader.getResource("index.html")!!.readText(),
ContentType.Text.Html
)
}
static("/static") {
resources("")
}
}
}.start(wait = true)
When running on my localhost, this responds just fine. And when running in heroku, I get the log output that tells me it did start up the server on the port heroku defines:
[main] INFO ktor.application - Responding at <http://0.0.0.0:55278>
But then when I try to load the heroku app from the browser, I get an error, and the heroku logs say: "Connection closed without response"
heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=<http://melomidi.herokuapp.com|melomidi.herokuapp.com> request_id=e0cdaa83-eaa4-4733-a51f-947de463c433 fwd="174.246.82.169" dyno=web.1 connect=0ms service=13ms status=503 bytes=0 protocol=http
I have tried with both http and https. I have also tried loading static/index.html directly and got the same result.
I've also tried adding a SERVER_HOST env var and using that to change the default 0.0.0.0 host to various things, like localhost, 127.0.0.1 and melomidi.herokuapp.com but those resulted in other errors where the server failed to start up.
Anyone have any suggestions? Thanks in advance!Michael Evans
01/08/2022, 12:03 AMMichael Evans
01/08/2022, 12:50 AMExerosis
01/08/2022, 8:01 PMvar cancel = false
var i = 0
this.forEach {
if (!cancel) {
val result = !it(using, interaction)
println("${i++} cancelled = $result")
if (result) {
println("cancelling")
cancel = true
}
}
}
So I've got this code, forEach in theory has 11 elements to loop. The 5th element cancels.Exerosis
01/08/2022, 8:02 PMExerosis
01/08/2022, 8:03 PMleomayleomay
01/09/2022, 8:27 PMleomayleomay
01/09/2022, 8:27 PMleomayleomay
01/09/2022, 8:27 PMkotlin.NotImplementedError: An operation is not implemented: Missing impl for Vehicle by impl