java.lang.IllegalArgumentException: Unsupported class file major version 67

  Kiến thức lập trình
at com.tngtech.archunit.thirdparty.org.objectweb.asm.ClassReader.<init>(ClassReader.java:199) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.thirdparty.org.objectweb.asm.ClassReader.<init>(ClassReader.java:180) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.thirdparty.org.objectweb.asm.ClassReader.<init>(ClassReader.java:166) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.thirdparty.org.objectweb.asm.ClassReader.<init>(ClassReader.java:287) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.ClassFileProcessor$UriImporterOfProcessor.tryImport(ClassFileProcessor.java:350) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.resolvers.ClassResolverFromClasspath.tryResolve(ClassResolverFromClasspath.java:51) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.ImportedClasses.resolve(ImportedClasses.java:74) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.ImportedClasses.getOrResolve(ImportedClasses.java:61) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.DomainBuilders$JavaMemberBuilder.get(DomainBuilders.java:179) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.DomainBuilders$JavaCodeUnitBuilder.asJavaClasses(DomainBuilders.java:329) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.DomainBuilders$JavaCodeUnitBuilder.getRawParameterTypes(DomainBuilders.java:303) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.domain.JavaCodeUnit$Parameters.<init>(JavaCodeUnit.java:299) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.domain.JavaCodeUnit.<init>(JavaCodeUnit.java:80) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.domain.JavaMethod.<init>(JavaMethod.java:44) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.domain.DomainObjectCreationContext.createJavaMethod(DomainObjectCreationContext.java:144) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.DomainBuilders$JavaMethodBuilder.construct(DomainBuilders.java:373) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.DomainBuilders$JavaMethodBuilder.construct(DomainBuilders.java:358) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.DomainBuilders$JavaMemberBuilder.build(DomainBuilders.java:206) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.DomainBuilders$JavaMemberBuilder.build(DomainBuilders.java:138) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.DomainBuilders$BuilderWithBuildParameter$BuildFinisher.lambda$build$0(DomainBuilders.java:892) ~[archunit-1.1.0.jar:1.1.0]
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215) ~[na:na]
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:197) ~[na:na]
at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1716) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560) ~[na:na]
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[na:na]
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265) ~[na:na]
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:727) ~[na:na]
at com.tngtech.archunit.core.importer.DomainBuilders$BuilderWithBuildParameter$BuildFinisher.build(DomainBuilders.java:892) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.ClassGraphCreator.createMethods(ClassGraphCreator.java:322) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.domain.JavaClassMembers.create(JavaClassMembers.java:352) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.domain.JavaClass.completeMembers(JavaClass.java:1471) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.domain.DomainObjectCreationContext.completeMembers(DomainObjectCreationContext.java:96) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.ClassGraphCreator.completeClasses(ClassGraphCreator.java:120) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.ClassGraphCreator.complete(ClassGraphCreator.java:108) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.ClassFileProcessor.process(ClassFileProcessor.java:75) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.ClassFileImporter.importLocations(ClassFileImporter.java:325) ~[archunit-1.1.0.jar:1.1.0]
at com.tngtech.archunit.core.importer.ClassFileImporter.importPackages(ClassFileImporter.java:214) ~[archunit-1.1.0.jar:1.1.0]
at org.springframework.modulith.core.ApplicationModules.<init>(ApplicationModules.java:100) ~[spring-modulith-core-1.0.0.jar:1.0.0]
at org.springframework.modulith.core.ApplicationModules.of(ApplicationModules.java:520) ~[spring-modulith-core-1.0.0.jar:1.0.0]
at org.springframework.modulith.core.ApplicationModules.lambda$of$3(ApplicationModules.java:185) ~[spring-modulith-core-1.0.0.jar:1.0.0]
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1713) ~[na:na]
at org.springframework.modulith.core.ApplicationModules.of(ApplicationModules.java:180) ~[spring-modulith-core-1.0.0.jar:1.0.0]
at org.springframework.modulith.core.ApplicationModules.of(ApplicationModules.java:163) ~[spring-modulith-core-1.0.0.jar:1.0.0]
at org.springframework.modulith.runtime.autoconfigure.SpringModulithRuntimeAutoConfiguration$ApplicationModulesBootstrap.initializeApplicationModules(SpringModulithRuntimeAutoConfiguration.java:145) ~[spring-modulith-runtime-1.0.0.jar:1.0.0]
at org.springframework.modulith.runtime.autoconfigure.SpringModulithRuntimeAutoConfiguration.lambda$modulesRuntime$0(SpringModulithRuntimeAutoConfiguration.java:70) ~[spring-modulith-runtime-1.0.0.jar:1.0.0]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:1575) ~[na:na]

Getting this error with 403 status when I try to hit the API on GCP but no error and 200 when local host is hit.

LEAVE A COMMENT