Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao executar o Docker Compose

Boa noite,

Ao tentar executar o comando docker-compose up dá o seguinte erro:

bitcoin-jvm_1    | Exception in thread "main" java.lang.ExceptionInInitializerError
bitcoin-jvm_1    |     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
bitcoin-jvm_1    |     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
bitcoin-jvm_1    |     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
bitcoin-jvm_1    |     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
bitcoin-jvm_1    |     at java.base/java.lang.Class.newInstance(Class.java:584)
bitcoin-jvm_1    |     at io.quarkus.runtime.Quarkus.run(Quarkus.java:61)
bitcoin-jvm_1    |     at io.quarkus.runtime.Quarkus.run(Quarkus.java:38)
bitcoin-jvm_1    |     at io.quarkus.runtime.Quarkus.run(Quarkus.java:104)
bitcoin-jvm_1    |     at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
bitcoin-jvm_1    | Caused by: java.lang.RuntimeException: Failed to start quarkus
bitcoin-jvm_1    |     at io.quarkus.runner.ApplicationImpl.<clinit>(ApplicationImpl.zig:342)
bitcoin-jvm_1    |     ... 9 more
bitcoin-jvm_1    | Caused by: java.lang.UnsupportedClassVersionError: br/com/alura/model/Ordem$HibernateProxy$LZf5u0uY has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 55.0
bitcoin-jvm_1    |     at java.base/java.lang.ClassLoader.defineClass1(Native Method)
bitcoin-jvm_1    |     at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
bitcoin-jvm_1    |     at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
bitcoin-jvm_1    |     at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
bitcoin-jvm_1    |     at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
bitcoin-jvm_1    |     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
bitcoin-jvm_1    |     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
bitcoin-jvm_1    |     at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
bitcoin-jvm_1    |     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
bitcoin-jvm_1    |     at java.base/java.lang.Class.forName0(Native Method)
bitcoin-jvm_1    |     at java.base/java.lang.Class.forName(Class.java:398)
bitcoin-jvm_1    |     at io.quarkus.hibernate.orm.runtime.proxies.ProxyDefinitions.generateProxyClass(ProxyDefinitions.java:127)
bitcoin-jvm_1    |     at io.quarkus.hibernate.orm.runtime.proxies.ProxyDefinitions.createFromMetadata(ProxyDefinitions.java:61)
bitcoin-jvm_1    |     at io.quarkus.hibernate.orm.runtime.boot.FastBootMetadataBuilder.build(FastBootMetadataBuilder.java:320)
bitcoin-jvm_1    |     at io.quarkus.hibernate.orm.runtime.PersistenceUnitsHolder.createMetadata(PersistenceUnitsHolder.java:101)
bitcoin-jvm_1    |     at io.quarkus.hibernate.orm.runtime.PersistenceUnitsHolder.constructMetadataAdvance(PersistenceUnitsHolder.java:73)
bitcoin-jvm_1    |     at io.quarkus.hibernate.orm.runtime.PersistenceUnitsHolder.initializeJpa(PersistenceUnitsHolder.java:40)
bitcoin-jvm_1    |     at io.quarkus.hibernate.orm.runtime.HibernateOrmRecorder$1.created(HibernateOrmRecorder.java:58)
bitcoin-jvm_1    |     at io.quarkus.arc.runtime.ArcRecorder.initBeanContainer(ArcRecorder.java:53)
bitcoin-jvm_1    |     at io.quarkus.deployment.steps.ArcProcessor$generateResources-1025303321.deploy_0(ArcProcessor$generateResources-1025303321.zig:138)
bitcoin-jvm_1    |     at io.quarkus.deployment.steps.ArcProcessor$generateResources-1025303321.deploy(ArcProcessor$generateResources-1025303321.zig:40)
bitcoin-jvm_1    |     at io.quarkus.runner.ApplicationImpl.<clinit>(ApplicationImpl.zig:289)
bitcoin-jvm_1    |     ... 9 more
bitcoin_bitcoin-jvm_1 exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
Stopping bitcoin_mysql-bitcoin_1 ... done
1 resposta
solução!
bitcoin-jvm_1    | Caused by: java.lang.UnsupportedClassVersionError: br/com/alura/model/Ordem$HibernateProxy$LZf5u0uY has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Pela mensagem de erro o projeto foi compilado usando Java 14 e você está tentando rodar usando Java 11. Verifica a versão do JDK instalado na sua máquina, talvez seja melhor instalar o JDK 11