cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti 7 Core depend on Java JDK 8 or Java JDK 11?

rikouki
Champ in-the-making
Champ in-the-making

build.gradle:

classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.8.RELEASE")

compile("org.activiti:activiti-spring-boot-starter:7.0.0.GA")

error:

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/Users/SOMERAY/gradle-user-home/caches/modules-2/files-2.1/org.activiti/activiti-spring/7.0.0.GA/995c38c11309629240be161d0e2f0b114400c4c3/activiti-spring-7.0.0.GA.jar!/org/activiti/spring/SpringRejectedJobsHandler.class]; nested exception is java.lang.UnsupportedClassVersionError: org/activiti/engine/api/internal/Internal 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 org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:454) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:316) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:275) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:132) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:288) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:636) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ConfigurationClassParser.lambda$processDeferredImportSelectors$2(ConfigurationClassParser.java:566) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at java.util.ArrayList.forEach(ArrayList.java:1257) ~[na:1.8.0_191]

at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:563) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:188) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:316) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:271) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:91) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:692) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:530) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230) [spring-boot-2.0.8.RELEASE.jar:2.0.8.RELEASE]

at activititest.ActivitiTestApplication.main(ActivitiTestApplication.java:9) [main/:na]

Caused by: java.lang.UnsupportedClassVersionError: org/activiti/engine/api/internal/Internal 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) ~[na:1.8.0_191]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[na:1.8.0_191]

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_191]

at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[na:1.8.0_191]

at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[na:1.8.0_191]

at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[na:1.8.0_191]

at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[na:1.8.0_191]

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_191]

at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[na:1.8.0_191]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_191]

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_191]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_191]

at org.springframework.core.annotation.AnnotationAttributes.getAnnotationType(AnnotationAttributes.java:136) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.core.annotation.AnnotationAttributes.<init>(AnnotationAttributes.java:127) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.core.type.classreading.AnnotationAttributesReadingVisitor.<init>(AnnotationAttributesReadingVisitor.java:56) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.core.type.classreading.AnnotationMetadataReadingVisitor.visitAnnotation(AnnotationMetadataReadingVisitor.java:90) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.asm.ClassReader.accept(ClassReader.java:677) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.asm.ClassReader.accept(ClassReader.java:527) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:65) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:123) ~[spring-core-5.0.12.RELEASE.jar:5.0.12.RELEASE]

at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:430) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE]

... 23 common frames omitted

but the information I get from here:

Repositories - Activiti & Activiti Cloud Developers Guide 

is In the previous diagram there are 4 dashed boxes which contain several repositories each Activiti, Activiti Cloud, Activiti Cloud Reference and Activiti Cloud Examples. The first layer is Activiti which includes the Build projects, Process Engine Runtime and examples. At this level we just depend on Java JDK 8. Inside the Activiti repository we have activiti-spring which serves as the basic integration against Spring 5 (version which is defined inside the Build parent project). Activiti relies on [activiti-parent] for 3rd party libraries dependency management. We are making sure that we deal with 3rd party dependencies and their versions in our parent poms, so it is completely forbidden to add version definitions in submodules.

why?Help me please.

1 REPLY 1

kingtoon
Champ in-the-making
Champ in-the-making

Version Upgrade to 7.0.0.SR1

<!-- https://mvnrepository.com/artifact/org.activiti/activiti-engine -->
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-engine</artifactId>
<version>7.0.0.SR1</version>
</dependency>