Skip to content

Don't use jlink in newer JDKs images until properly tested #1124

@lemeurherve

Description

@lemeurherve

Not easy to integrate nor fully verified on new JDK support:

And potentially causing issue:

  • From @jonesbusy in feat(linux): add support on Linux for JDK 25 preview in Docker build configurations #1024 (comment)

    I'm investigating a bug that occur on Java 25 (all container, both controller and agent).

    The httprequest plugin fail all request via apache-httpcomponents-client-5-api

    [16:25:10.392+01:00] - java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: jdk/net/Sockets [in thread "samples-ci-dotnet-core-main-225-sxrcq-djzx4-w70wq [#11] for JNLP4-connect connection to elca-jenkins-agent/172.30.70.87:50000 id=2054"]
    [16:25:10.392+01:00] - 	at PluginClassLoader for apache-httpcomponents-client-5-api//org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.<clinit>(DefaultHttpClientConnectionOperator.java:87)
    

    Don't we need jdk.net as well?

    I will try to investigate and document my findings

We should remove the use of jlink (at least for new JDKs like JDK25 until proven flawless) in controller and agents images until we have a way to properly test it.

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions