Unable to find class io.debezium.connector.postgresql.PostgresSourceInfoStructMaker

17 views
Skip to first unread message

Radu Dudas

unread,
Aug 21, 2025, 5:08:40 AMAug 21
to debezium
When I deploy the application on a remote server (Ubuntu), the engine fail to start with this error:

 i.d.e.a.AsyncEmbeddedEngine [] - Engine has failed with

java.lang.IllegalArgumentException: Unable to find class io.debezium.connector.postgresql.PostgresSourceInfoStructMaker
        at io.debezium.config.Instantiator.getInstanceWithProvidedConstructorType(Instantiator.java:68) ~[debezium-core-3.2.1.Final.jar!/:3.2.1.Final]
        at io.debezium.config.Instantiator.getInstance(Instantiator.java:33) ~[debezium-core-3.2.1.Final.jar!/:3.2.1.Final]
        at io.debezium.config.Configuration.getInstance(Configuration.java:1528) ~[debezium-core-3.2.1.Final.jar!/:3.2.1.Final]
.........................................................

I've used debezium 3.2.1.Final libraries, but I receive the same error with 3.0.8.Final.

Strange thing is that locally (windows 11) the engine starts without problems. The used JDK is the same locally and on the remote server, OpenJDK 21.0.7+6

Radu Dudas

unread,
Aug 21, 2025, 7:19:50 AMAug 21
to debezium
More details about this app:
  • it's a SpringBoot 3.4.5 app, the remote deployment is done using a nested jar (that includes all needed libraries in a big jar)
  • locally I start the app from a folder, libraries are not packed inside a jar
  • I'm using the embedded Debezium engine, the database is located on the same remote server
Could it be a classloader issue due to the SpringBoot nested jar?

Chris Cranford

unread,
Aug 22, 2025, 9:41:25 AMAug 22
to debe...@googlegroups.com
As we found on Zulip, the SpringBoot class loader needed to be set as the TCCL inside the Executor thread that runs the engine. We logged DBZ-9375 [1] as a follow-up to see whether or not we can improve this integration or at the very least document the requirements if others chose to ues Debezium in SpringBoot with a nested jar.

-cc

[1]: https://issues.redhat.com/browse/DBZ-9375
--
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/a4227230-a4f7-4bc2-bcb8-ed32d9c53c27n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages