I’m facing a MalformedInputException: Input length = 4 error after updating both my Jenkins controller and agent nodes to Java 21 on Windows. This only happens in production; our staging environment, running an identical pipeline, works fine with Java 21.
Current Setup:
OS: Windows on both controller and agent nodes.
Java Version: Recently updated to Java 21.
Error: MalformedInputException: Input length = 4, triggered during a specific stage of the build.
I’m not aware of any known compatibility issues with Java 21 and Jenkins on Windows.
I doubt it, since I would have expected many, many more reports of issues if there were a general purpose error. Over 27000 Jenkins controllers are running Java 21. I’m confident that a relevant portion of those controllers are running on Windows.
The adoption data for Java 21 is available in the JVMs tab of the Jenkins statistcs site. Currently it looks like this:
Those are pictures of the properties. I won’t attempt to extract text from those pictures. Comparison is much more difficult when you provide pictures of text instead of just providing the text.