I cannot reproduce it using Apache JMeter 5.6.3 and Java 24:
As you can see, HTTP Request sampler is successful and response can be seen in the View Results Tree listener.
And Debug Sampler shows that I'm running Java 24.
It might be the case you're behind a proxy, in this case you need to make JMeter aware of this proxy