Skip to content

Commit 159da39

Browse files
authored
Fix native image build when using Netty (#7291)
1 parent 88f026b commit 159da39

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "bugfix",
3+
"category": "Netty NIO HTTP Client",
4+
"contributor": "",
5+
"description": "Fix `NettyNioAsyncHttpClient` errors when making requests in GraalVM native images, which can lead to timeout exceptions."
6+
}

http-clients/netty-nio-client/src/main/resources/META-INF/native-image/software.amazon.awssdk/netty-nio-client/native-image.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
# express or implied. See the License for the specific language governing
1313
# permissions and limitations under the License.
1414
#
15+
# Needed because native-maven-plugin's metadata repository excludes netty's own
16+
# '--initialize-at-build-time=io.netty', leaving jctools queues to fail at run time.
1517
Args=--allow-incomplete-classpath \
1618
--initialize-at-run-time=io.netty.internal.tcnative.SSL,\
1719
io.netty.internal.tcnative.CertificateVerifier,\
1820
io.netty.internal.tcnative.AsyncSSLPrivateKeyMethod,\
1921
io.netty.internal.tcnative.SSLPrivateKeyMethod,\
2022
io.netty.handler.ssl.OpenSslPrivateKeyMethod,\
2123
io.netty.handler.ssl.ReferenceCountedOpenSslEngine,\
22-
io.netty.handler.ssl.OpenSslAsyncPrivateKeyMethod
24+
io.netty.handler.ssl.OpenSslAsyncPrivateKeyMethod \
25+
--initialize-at-build-time=io.netty.util.internal.shaded.org.jctools

0 commit comments

Comments
 (0)