[JAVA] I tried to verify AdoptOpenJDK 11 (11.0.2) with Docker image

A bug in HTTP communication with Java 11 has been fixed in 11.0.2!

Communication is not possible due to the following error ... https://stackoverflow.com/questions/52016415/jdk-11-ssl-error-on-valid-certificate-working-in-previous-versions

Exception in thread “main” javax.net.ssl.SSLHandshakeException: extension (10) should not be presented in server_hello

Docker image

https://hub.docker.com/r/adoptopenjdk/openjdk11

Preparation

Dockerfile

FROM adoptopenjdk/openjdk11:latest
RUN mkdir /opt/app
COPY hoge.jar /opt/app
CMD ["java", "-jar", "/opt/app/hoge.jar"]
$ docker build -t japp .
$ docker run -it --rm japp

important point

It's silly, but ... You have to put hoge.jar in the Dockerfile hierarchy COPY failed: stat /var/lib/docker/tmp/docker-builderXXXXXXX/xxx no such file or directory I get an error like this.

result

This time, only the code that outputs the result of HTTP communication is written, so Communication success was confirmed by outputting a response to the console.

スクリーンショット 2019-01-22 14.55.56.png

Recommended Posts

I tried to verify AdoptOpenJDK 11 (11.0.2) with Docker image
I tried BIND with Docker
I tried to verify yum-cron
I tried to interact with Java
I tried to make an introduction to PHP + MySQL with Docker
I tried to create a padrino development environment with Docker
I tried to get started with WebAssembly
I tried using Scalar DL with Docker
I tried to build AdoptOpenjdk 11 on CentOS 7
What is Docker? I tried to summarize
I tried to implement ModanShogi with Kinx
I tried to build the environment of PlantUML Server with Docker
I tried to implement the image preview function with Rails / jQuery
I tried to make Basic authentication with Java
I tried to manage struts configuration with Coggle
I tried to manage login information with JMX
I tried to make an automatic backup with pleasanter + PostgreSQL + SSL + docker
I tried to build a Firebase application development environment with Docker in 2020
I tried to build AdoptOpenJDK 8 (Addition: Amazon Corretto 8)
How to give your image to someone with docker
I tried to break a block with java (1)
I tried to create a portfolio with AWS, Docker, CircleCI, Laravel [with reference link]
I tried to make a machine learning application with Dash (+ Docker) part3 ~ Practice ~
I tried what I wanted to try with Stream softly.
I tried to implement file upload with Spring MVC
I tried to read and output CSV with Outsystems
I tried to implement TCP / IP + BIO with JAVA
[Java 11] I tried to execute Java without compiling with javac
I tried to summarize the state transition of docker
I started MySQL 5.7 with docker-compose and tried to connect
I tried to get started with Spring Data JPA
I tried to draw animation with Blazor + canvas API
I tried to implement Stalin sort with Java Collector
Rails6 I tried to introduce Docker to an existing application
roman numerals (I tried to simplify it with hash)
I tried to build an environment using Docker (beginner)
I tried DI with Ruby
I tried the Docker tutorial!
I tried UPSERT with PostgreSQL.
I tried using Wercker to create and publish a Docker image that launches GlassFish 5.
I tried to create a java8 development environment with Chocolatey
I tried to modernize a Java EE application with OpenShift.
I tried to increase the processing speed with spiritual engineering
[Rails] I tried to create a mini app with FullCalendar
I tried to verify this and that of Spring @ Transactional
I tried to link chat with Minecraft server with Discord API
I tried to create React.js × TypeScript × Material-UI on docker environment
I tried to build the environment little by little using docker
[Rails] I tried to implement batch processing with Rake task
I tried to automate LibreOffice Calc with Ruby + PyCall.rb (Ubuntu 18.04)
I tried to build the environment of WSL2 + Docker + VSCode
I tried running WordPress with docker preview on M1 Mac.
I tried to get started with Swagger using Spring Boot
I tried upgrading from CentOS 6.5 to CentOS 7 with the upgrade tool
I tried to be able to pass multiple objects with Ractor
Easy to make LINE BOT with Java Servlet Part 2: I tried image messages and templates
I tried to build an API server with Go (Echo) x MySQL x Docker x Clean Architecture
When I tried to run Azure Kinect DK with Docker, it was blocked by EULA
Run lambda with custom docker image
I tried to chew C # (indexer)
I tried using JOOQ with Gradle