Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quarkus todo fails to launch in docker container #21

Open
FrankBergemann opened this issue Apr 2, 2021 · 0 comments
Open

Quarkus todo fails to launch in docker container #21

FrankBergemann opened this issue Apr 2, 2021 · 0 comments

Comments

@FrankBergemann
Copy link

Hi,
Thank you for maintaining this nice todo application. However, I noticed an error when trying to deploy and run quarkus todo app in a docker container on Win10. As per comment in the Dockerfile, I issued the following commands:
`mvn package

docker build -f src/main/docker/Dockerfile.jvm -t quarkus/todo-backend-jvm .

docker run -i --rm -p 8080:8080 quarkus/todo-backend-jvm`

The last command fails with the following error messages:

PS C:\Users\BERGEF\onedrive\git\todo-app> docker run -i --rm -p 8080:8080 quarkus/todo-backend-jvm exec java -Dquarkus.http.host=0.0.0.0 -javaagent:/opt/agent-bond/agent-bond.jar=jolokia{{host=0.0.0.0}},jmx_exporter{{9779:/opt/agent-bond/jmx_exporter_config.yml}} -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:+ExitOnOutOfMemoryError -cp . -jar /deployments/app.jar I> No access restrictor found, access to any MBean is allowed Jolokia: Agent started with URL http://172.17.0.2:8778/jolokia/ Exception in thread "main" java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at io.quarkus.runtime.Quarkus.run(Quarkus.java:65) at io.quarkus.runtime.Quarkus.run(Quarkus.java:42) at io.quarkus.runtime.Quarkus.run(Quarkus.java:119) at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29) Caused by: java.lang.RuntimeException: Failed to start quarkus at io.quarkus.runner.ApplicationImpl.<clinit>(ApplicationImpl.zig:368) ... 9 more Caused by: java.lang.UnsupportedClassVersionError: io/quarkus/sample/TodoResource has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at io.quarkus.deployment.steps.HibernateValidatorProcessor$build74467542.deploy_0(HibernateValidatorProcessor$build74467542.zig:75) at io.quarkus.deployment.steps.HibernateValidatorProcessor$build74467542.deploy(HibernateValidatorProcessor$build74467542.zig:40) at io.quarkus.runner.ApplicationImpl.<clinit>(ApplicationImpl.zig:260) ... 9 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant