Encounter an exception when start operate 1.0.2

2021-07-13 14:45:03.963 INFO 83770 — [ main] i.c.o.Application : Starting Application using Java 16.0.1 on EHMBP.local with PID 83770 (/Users/eko/SiE/env/camunda-cloud-operate-1.0.2/lib/operate-webapp-1.0.2-exec.jar started by eko in /Users/eko/SiE/env/camunda-cloud-operate-1.0.2/bin)
2021-07-13 14:45:03.974 INFO 83770 — [ main] i.c.o.Application : The following profiles are active: auth
2021-07-13 14:45:06.374 INFO 83770 — [ main] o.s.b.w.e.t.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2021-07-13 14:45:06.383 INFO 83770 — [ main] o.a.c.h.Http11NioProtocol : Initializing ProtocolHandler [“http-nio-8080”]
2021-07-13 14:45:06.384 INFO 83770 — [ main] o.a.c.c.StandardService : Starting service [Tomcat]
2021-07-13 14:45:06.384 INFO 83770 — [ main] o.a.c.c.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.45]
2021-07-13 14:45:06.464 INFO 83770 — [ main] o.a.c.c.C.[.[.[/] : Initializing Spring embedded WebApplicationContext
2021-07-13 14:45:06.464 INFO 83770 — [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2416 ms
2021-07-13 14:45:06.763 INFO 83770 — [ main] i.c.o.WebappModuleConfiguration : Starting module: webapp
2021-07-13 14:45:07.245 WARN 83770 — [ main] i.c.o.e.ElasticsearchConnector : Username and/or password for are empty. Basic authentication for elasticsearch is not used.
2021-07-13 14:45:07.731 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskExecutor : Initializing ExecutorService
2021-07-13 14:45:07.733 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskExecutor : Initializing ExecutorService ‘migrationThreadPoolExecutor’
2021-07-13 14:45:07.733 INFO 83770 — [ main] i.c.o.s.SchemaStartup : SchemaStartup started.
2021-07-13 14:45:07.734 INFO 83770 — [ main] i.c.o.s.SchemaStartup : SchemaStartup: validate schema.
2021-07-13 14:45:07.992 INFO 83770 — [ main] i.c.o.s.SchemaStartup : SchemaStartup: schema won’t be created, it either already exist, or schema creation is disabled in configuration.
2021-07-13 14:45:07.992 INFO 83770 — [ main] i.c.o.s.SchemaStartup : SchemaStartup: migrate schema.
2021-07-13 14:45:07.993 WARN 83770 — [ main] i.c.o.s.m.ElasticsearchStepsRepository : Directory with migration steps was not found: class path resource [schema/change/] cannot be resolved to URL because it does not exist
2021-07-13 14:45:08.090 INFO 83770 — [ migration_3] i.c.o.s.m.Migrator : Check if index web-session needs to migrate.
2021-07-13 14:45:08.090 INFO 83770 — [ migration_5] i.c.o.s.m.Migrator : Check if index import-position needs to migrate.
2021-07-13 14:45:08.090 INFO 83770 — [ migration_2] i.c.o.s.m.Migrator : Check if index migration-steps-repository needs to migrate.
2021-07-13 14:45:08.090 INFO 83770 — [ migration_4] i.c.o.s.m.Migrator : Check if index process needs to migrate.
2021-07-13 14:45:08.090 INFO 83770 — [ migration_1] i.c.o.s.m.Migrator : Check if index user needs to migrate.
2021-07-13 14:45:08.095 INFO 83770 — [ migration_1] i.c.o.s.m.Migrator : No migration needed for user, no previous indices found.
2021-07-13 14:45:08.096 INFO 83770 — [ migration_2] i.c.o.s.m.Migrator : No migration needed for migration-steps-repository, no previous indices found.
2021-07-13 14:45:08.096 INFO 83770 — [ migration_3] i.c.o.s.m.Migrator : No migration needed for web-session, no previous indices found.
2021-07-13 14:45:08.096 INFO 83770 — [ migration_5] i.c.o.s.m.Migrator : No migration needed for import-position, no previous indices found.
2021-07-13 14:45:08.096 INFO 83770 — [ migration_4] i.c.o.s.m.Migrator : No migration needed for process, no previous indices found.
2021-07-13 14:45:08.122 INFO 83770 — [ migration_1] i.c.o.s.m.Migrator : Check if index incident needs to migrate.
2021-07-13 14:45:08.122 INFO 83770 — [ migration_3] i.c.o.s.m.Migrator : Check if index variable needs to migrate.
2021-07-13 14:45:08.122 INFO 83770 — [ migration_2] i.c.o.s.m.Migrator : Check if index operation needs to migrate.
2021-07-13 14:45:08.122 INFO 83770 — [ migration_5] i.c.o.s.m.Migrator : Check if index list-view needs to migrate.
2021-07-13 14:45:08.122 INFO 83770 — [ migration_4] i.c.o.s.m.Migrator : Check if index flownode-instance needs to migrate.
2021-07-13 14:45:08.127 INFO 83770 — [ migration_1] i.c.o.s.m.Migrator : No migration needed for incident, no previous indices found.
2021-07-13 14:45:08.156 INFO 83770 — [ migration_1] i.c.o.s.m.Migrator : Check if index batch-operation needs to migrate.
2021-07-13 14:45:08.162 INFO 83770 — [ migration_2] i.c.o.s.m.Migrator : No migration needed for operation, no previous indices found.
2021-07-13 14:45:08.162 INFO 83770 — [ migration_4] i.c.o.s.m.Migrator : No migration needed for flownode-instance, no previous indices found.
2021-07-13 14:45:08.162 INFO 83770 — [ migration_5] i.c.o.s.m.Migrator : No migration needed for list-view, no previous indices found.
2021-07-13 14:45:08.162 INFO 83770 — [ migration_3] i.c.o.s.m.Migrator : No migration needed for variable, no previous indices found.
2021-07-13 14:45:08.196 INFO 83770 — [ migration_1] i.c.o.s.m.Migrator : No migration needed for batch-operation, no previous indices found.
2021-07-13 14:45:08.191 INFO 83770 — [ migration_5] i.c.o.s.m.Migrator : Check if index sequence-flow needs to migrate.
2021-07-13 14:45:08.191 INFO 83770 — [ migration_2] i.c.o.s.m.Migrator : Check if index event needs to migrate.
2021-07-13 14:45:08.229 INFO 83770 — [ migration_5] i.c.o.s.m.Migrator : No migration needed for sequence-flow, no previous indices found.
2021-07-13 14:45:08.229 INFO 83770 — [ migration_2] i.c.o.s.m.Migrator : No migration needed for event, no previous indices found.
2021-07-13 14:45:08.257 INFO 83770 — [ main] i.c.o.s.SchemaStartup : SchemaStartup finished.
2021-07-13 14:45:08.267 INFO 83770 — [ main] i.c.o.ImportModuleConfiguration : Starting module: importer
2021-07-13 14:45:08.267 INFO 83770 — [ main] i.c.o.ArchiverModuleConfiguration : Starting module: archiver
2021-07-13 14:45:08.430 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskExecutor : Initializing ExecutorService
2021-07-13 14:45:08.430 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskExecutor : Initializing ExecutorService ‘operationsThreadPoolExecutor’
2021-07-13 14:45:08.550 WARN 83770 — [ main] i.c.o.e.ElasticsearchConnector : Username and/or password for are empty. Basic authentication for elasticsearch is not used.
2021-07-13 14:45:08.562 INFO 83770 — [ main] i.c.o.w.StartupBean : INIT: Create users in elasticsearch if not exists …
2021-07-13 14:45:08.609 INFO 83770 — [ main] i.c.o.w.StartupBean : INIT: Start operation executor…
2021-07-13 14:45:08.610 INFO 83770 — [ main] i.c.o.w.StartupBean : INIT: DONE
2021-07-13 14:45:08.781 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskExecutor : Initializing ExecutorService
2021-07-13 14:45:08.782 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskExecutor : Initializing ExecutorService ‘importThreadPoolExecutor’
2021-07-13 14:45:08.783 INFO 83770 — [ Thread-3] i.c.o.z.ZeebeImporter : INIT: Start importing data…
2021-07-13 14:45:08.787 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService
2021-07-13 14:45:08.789 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService ‘archiverThreadPoolExecutor’
2021-07-13 14:45:08.789 INFO 83770 — [ main] i.c.o.a.Archiver : INIT: Start archiving data…
2021-07-13 14:45:09.107 INFO 83770 — [ main] i.c.o.a.Archiver : Starting archiver for partitions: [1]
2021-07-13 14:45:09.107 INFO 83770 — [ Thread-3] i.c.o.z.RecordsReaderHolder : Starting import for partitions: [1]
2021-07-13 14:45:09.549 INFO 83770 — [ main] o.s.b.a.e.w.EndpointLinksResolver : Exposing 5 endpoint(s) beneath base path ‘/actuator’
2021-07-13 14:45:09.826 INFO 83770 — [ main] o.s.s.w.DefaultSecurityFilterChain : Will secure any request with [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@17e9bc9e, org.springframework.security.web.context.SecurityContextPersistenceFilter@1e977098, org.springframework.security.web.header.HeaderWriterFilter@6e03db1f, org.springframework.security.web.csrf.CsrfFilter@6d33a66e, io.camunda.operate.webapp.security.WebSecurityConfig$1@36b9cb99, org.springframework.security.web.authentication.logout.LogoutFilter@7c37f145, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@2b4b96a4, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@6690b9fa, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@55fee662, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@4130955c, org.springframework.security.web.session.SessionManagementFilter@708eb310, org.springframework.security.web.access.ExceptionTranslationFilter@5f1483fd, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@3252747e]
2021-07-13 14:45:09.941 INFO 83770 — [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [META-INF/resources/index.html]
2021-07-13 14:45:10.078 WARN 83770 — [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ldapContextSource’ defined in class path resource [org/springframework/boot/autoconfigure/ldap/LdapAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.ldap.core.support.LdapContextSource]: Factory method ‘ldapContextSource’ threw exception; nested exception is java.lang.IllegalAccessError: class org.springframework.ldap.core.support.AbstractContextSource (in unnamed module @0x6f79caec) cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap to unnamed module @0x6f79caec
2021-07-13 14:45:10.085 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskScheduler : Shutting down ExecutorService ‘archiverThreadPoolExecutor’
2021-07-13 14:45:10.086 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskExecutor : Shutting down ExecutorService ‘importThreadPoolExecutor’
2021-07-13 14:45:10.087 INFO 83770 — [ main] i.c.o.z.ZeebeImporter : Shutdown ZeebeImporter
2021-07-13 14:45:11.312 INFO 83770 — [ main] i.c.o.w.StartupBean : Shutdown elasticsearch clients.
2021-07-13 14:45:11.319 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskExecutor : Shutting down ExecutorService ‘operationsThreadPoolExecutor’
2021-07-13 14:45:11.319 INFO 83770 — [ main] i.c.o.w.z.o.OperationExecutor : Shutdown OperationExecutor
2021-07-13 14:45:11.320 INFO 83770 — [ main] o.s.s.c.ThreadPoolTaskExecutor : Shutting down ExecutorService ‘migrationThreadPoolExecutor’
2021-07-13 14:45:11.333 INFO 83770 — [ main] o.a.c.c.StandardService : Stopping service [Tomcat]
2021-07-13 14:45:11.350 INFO 83770 — [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2021-07-13 14:45:11.367 ERROR 83770 — [ main] o.s.b.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ldapContextSource’ defined in class path resource [org/springframework/boot/autoconfigure/ldap/LdapAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.ldap.core.support.LdapContextSource]: Factory method ‘ldapContextSource’ threw exception; nested exception is java.lang.IllegalAccessError: class org.springframework.ldap.core.support.AbstractContextSource (in unnamed module @0x6f79caec) cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap to unnamed module @0x6f79caec
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1334) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.6.jar!/:5.3.6]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.6.jar!/:5.3.6]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.5.jar!/:2.4.5]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:782) ~[spring-boot-2.4.5.jar!/:2.4.5]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:774) [spring-boot-2.4.5.jar!/:2.4.5]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439) [spring-boot-2.4.5.jar!/:2.4.5]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) [spring-boot-2.4.5.jar!/:2.4.5]
at io.camunda.operate.Application.main(Application.java:50) [classes!/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [operate-webapp-1.0.2-exec.jar:?]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) [operate-webapp-1.0.2-exec.jar:?]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [operate-webapp-1.0.2-exec.jar:?]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) [operate-webapp-1.0.2-exec.jar:?]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.ldap.core.support.LdapContextSource]: Factory method ‘ldapContextSource’ threw exception; nested exception is java.lang.IllegalAccessError: class org.springframework.ldap.core.support.AbstractContextSource (in unnamed module @0x6f79caec) cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap to unnamed module @0x6f79caec
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.6.jar!/:5.3.6]
… 26 more
Caused by: java.lang.IllegalAccessError: class org.springframework.ldap.core.support.AbstractContextSource (in unnamed module @0x6f79caec) cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap to unnamed module @0x6f79caec
at org.springframework.ldap.core.support.AbstractContextSource.(AbstractContextSource.java:77) ~[spring-ldap-core-2.3.3.RELEASE.jar!/:2.3.3.RELEASE]
at org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration.ldapContextSource(LdapAutoConfiguration.java:53) ~[spring-boot-autoconfigure-2.4.5.jar!/:2.4.5]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.6.jar!/:5.3.6]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.6.jar!/:5.3.6]
… 26 more

Has anyone come across it? How to solve?

The problem was solved with Java 11.

Great to hear that you solved it!

Can you please mark your last comment as the Solution.