From 258c86f0010fd5177f7d72bffb34e95abe723577 Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Thu, 22 Jan 2026 09:24:07 +0000 Subject: [PATCH] fix(native): add reflection config for IPC serialization Add Job, JobManifest, and JobState to reflect-config.json for proper Jackson serialization in native image. Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 6 ++++ pom.xml | 2 +- .../com.samsonmedia/barn/reflect-config.json | 32 +++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 699a369..e602709 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/). +## [0.1.7] - 2026-01-22 + +### Fixed +- Native image IPC deserialization (IpcMessage reflection config) + ## [0.1.6] - 2026-01-22 ### Added @@ -62,6 +67,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/). - Jobs that fail to start now properly transition to FAILED state - Startup errors are written to stderr.log for visibility +[0.1.7]: https://github.com/samson-media/barn/releases/tag/v0.1.7 [0.1.6]: https://github.com/samson-media/barn/releases/tag/v0.1.6 [0.1.5]: https://github.com/samson-media/barn/releases/tag/v0.1.5 [0.1.4]: https://github.com/samson-media/barn/releases/tag/v0.1.4 diff --git a/pom.xml b/pom.xml index 77010de..28e7876 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.samsonmedia barn - 0.1.6 + 0.1.7 jar Barn diff --git a/src/main/resources/META-INF/native-image/com.samsonmedia/barn/reflect-config.json b/src/main/resources/META-INF/native-image/com.samsonmedia/barn/reflect-config.json index 9afa7d5..dd58cdf 100644 --- a/src/main/resources/META-INF/native-image/com.samsonmedia/barn/reflect-config.json +++ b/src/main/resources/META-INF/native-image/com.samsonmedia/barn/reflect-config.json @@ -4,6 +4,38 @@ "allDeclaredConstructors": true, "allPublicConstructors": true }, + { + "name": "com.samsonmedia.barn.ipc.IpcMessage", + "allDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredFields": true + }, + { + "name": "com.samsonmedia.barn.jobs.Job", + "allDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredFields": true + }, + { + "name": "com.samsonmedia.barn.jobs.JobManifest", + "allDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredFields": true + }, + { + "name": "com.samsonmedia.barn.state.JobState", + "allDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredFields": true + }, { "name": "ch.qos.logback.core.status.NopStatusListener", "allDeclaredConstructors": true,