Closed rudolphi closed 5 months ago
This regression is fixed in the ImageJ 1.54k8 daily build. The commit is at https://github.com/imagej/ImageJ/commit/8799326e2cd8b7f23f7f8648e8cb39f11b6f0383.
This issue has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/headless-issue-since-imagej-1-54i12/98569/2
The Recorder in the ImageJ 1.54k11 daily build no longer creates a TextArea at line 33. The commit is at 2024.07.11 (1.54k10; Recorder) · imagej/ImageJ@0abfe3e · GitHub.
Since 1.54i, ij.io.FileOpener calls Recorder.suspendRecording(), and ij.plugin.frame.Recorder:33 defines a field private static TextArea textArea = new TextArea(); //recorded code goes here (start with dummy to avoid NullPointerException) that results in java.awt.HeadlessException -> java.lang.ExceptionInInitializerError in a headless environment (JSP server).