Eclipse crashing under Ubuntu

A quick one: Eclipse (2023-06) + Java (openjdk 17.0.7) under Ubuntu 22.04 crashes after a bit of interaction with this message: C [libwebkit2gtk-4.0.so.37+0xbbe3b6]. It's Wayland, but there's an easy workaround [1]: env WEBKIT_DISABLE_COMPOSITING_MODE=1 ./eclipse Resources [1] Eclipse IDE crashing with Java errors since 22.04 upgrade when using waylandhttps://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1988843/comments/5

Easily convert Github repos into Maven dependencies on the fly

TL;DR: JitPack converts Github repos to Maven repositories in near real time. Publishing dependencies to Maven central is hard and I don't care what everybody else says. Every time I need to publish a new release of one of my OSS projects I know I'll waste at least half a day. I wish it was … Continue reading Easily convert Github repos into Maven dependencies on the fly

Debugging Spring REST bad request 400 codes

This happens way too often: you POST or PUT something to a Spring @RestController and Spring only tells you that there is a bad request, HTTP 400 code; no further explanations, no logs, no exceptions. Spring logs the error cause under the category "org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod" so you can enable logging for that in your log4j.properties: log4j.logger.org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod=DEBUG,stdout … Continue reading Debugging Spring REST bad request 400 codes

End-to-end testing Java web applications with an embedded Tomcat

 In this instalment on assembly testing [1] I'll talk about how automated system tests run over my Java web applications. The set-up is rather cheap, not very labour-intensive and can incrementally evolve from a simple assembly test (aka smoke test) to a full-fledged system test. Since this post is rather concrete naming tools and frameworks, … Continue reading End-to-end testing Java web applications with an embedded Tomcat

SSLHandshakeException: unsupported certificate

When: loading client certificates from a custom keystore Reason: multiple certificates for the same domain but different purposes, e.g. one certificate handles email authentication, the other authenticates the user against a web server Solution: either fix the buggy code that selects the wrong certificate from the keystore or make sure only one certificate per domain … Continue reading SSLHandshakeException: unsupported certificate