
Fix ClassNotFoundException and NoClassDefFoundError
Tell ClassNotFoundException from NoClassDefFoundError, then find the missing jar, the wrong scope or the failed static initializer behind each.
Everything you need to level up your coding skills.

Tell ClassNotFoundException from NoClassDefFoundError, then find the missing jar, the wrong scope or the failed static initializer behind each.

Why native Java deserialization is dangerous, how gadget chains work, how to filter with ObjectInputFilter and what to use instead.

Understand how Kafka topics split into partitions, how the message key picks the partition and ordering follows from it, and size partitions for consumers.

Migrate from java.util.Date, Calendar and Joda Time to java.time with a type table, boundary adapters, JPA and Jackson settings and time zone tests.

Build dynamic JPA search queries with the Criteria API, the static metamodel and Spring Data Specifications, including paging, joins and the count query trap.

Map the class file version in the error to a Java release, then align the runtime, the compiler release flag and the toolchain so the mismatch cannot return.

What the single responsibility principle really means in Java: one reason to change, how to find a class doing too much and how far to split it.

Why ClassCastException appears where no cast is written, how raw types and unchecked warnings cause heap pollution, and how to fix it at the source.

Create a Maven project, read the pom, add a dependency and a test, then build a jar with one command and understand the directory layout.

Why changing a list inside a for-each loop throws ConcurrentModificationException, and the safe ways to remove, add or replace elements while iterating.

Fix java.lang.OutOfMemoryError Java heap space by deciding whether the heap is too small or something is leaking, using a heap dump to tell the two apart.

Fix the Jackson error about Java 8 date/time types by registering the time module, choosing ISO strings over timestamps and setting the format in one place.
We send one email when a new post is published. No spam.