You are not logged in.

#1 2023-11-12 19:26:59

ambra
Member
Registered: 2019-10-01
Posts: 10

Recent java packaging made some apps resulting with ClassNotFound

After recent change in JRE/JDK packaging I have some issues for which I couldn't find any solution on the Internet.

On couple of server I run Spring Boot applications packaged as JAR. Before the update these application run without problems with only jre-openjdk-headless installed.
However, after the update these applications won't start because some classes can't be found. But if I install full jdk-openjdk these applications run without problems.
Is it possible that some libraries were dropped?

Here's the output of failed start if it helps:

Nov 12 20:19:58 systemd[1]: Started Fluxer Service.
Nov 12 20:20:00 java[11450]:   .   ____          _            __ _ _
Nov 12 20:20:00 java[11450]:  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
Nov 12 20:20:00 java[11450]: ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
Nov 12 20:20:00 java[11450]:  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
Nov 12 20:20:00 java[11450]:   '  |____| .__|_| |_|_| |_\__, | / / / /
Nov 12 20:20:00 java[11450]:  =========|_|==============|___/=/_/_/_/
Nov 12 20:20:00 java[11450]:  :: Spring Boot ::                (v3.1.3)
Nov 12 20:20:00 java[11450]: 2023-11-12T20:20:00.975+01:00  INFO 11450 --- [           main] c.ambraspace.fluxer2.Fluxer2Application  : Starting Fluxer2Application v0.17.9 using Java 21 with PID 11450 (/home/ambra/fluxer2-0.17.9.jar started by root in /)
Nov 12 20:20:00 java[11450]: 2023-11-12T20:20:00.977+01:00 DEBUG 11450 --- [           main] c.ambraspace.fluxer2.Fluxer2Application  : Running with Spring Boot v3.1.3, Spring v6.0.11
Nov 12 20:20:00 java[11450]: 2023-11-12T20:20:00.979+01:00  INFO 11450 --- [           main] c.ambraspace.fluxer2.Fluxer2Application  : No active profile set, falling back to 1 default profile: "default"
Nov 12 20:20:03 java[11450]: 2023-11-12T20:20:03.437+01:00  INFO 11450 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
Nov 12 20:20:04 java[11450]: 2023-11-12T20:20:04.318+01:00  INFO 11450 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 859 ms. Found 15 JPA repository interfaces.
Nov 12 20:20:06 java[11450]: 2023-11-12T20:20:06.237+01:00  INFO 11450 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
Nov 12 20:20:06 java[11450]: 2023-11-12T20:20:06.272+01:00  INFO 11450 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
Nov 12 20:20:06 java[11450]: 2023-11-12T20:20:06.273+01:00  INFO 11450 --- [           main] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.12]
Nov 12 20:20:06 java[11450]: 2023-11-12T20:20:06.621+01:00  INFO 11450 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
Nov 12 20:20:06 java[11450]: 2023-11-12T20:20:06.627+01:00  INFO 11450 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 5458 ms
Nov 12 20:20:07 java[11450]: 2023-11-12T20:20:07.082+01:00  INFO 11450 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
Nov 12 20:20:07 java[11450]: 2023-11-12T20:20:07.394+01:00  INFO 11450 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 6.2.8.Final
Nov 12 20:20:07 java[11450]: 2023-11-12T20:20:07.399+01:00  INFO 11450 --- [           main] org.hibernate.cfg.Environment            : HHH000406: Using bytecode reflection optimizer
Nov 12 20:20:07 java[11450]: 2023-11-12T20:20:07.734+01:00  INFO 11450 --- [           main] o.h.e.boot.internal.EnversServiceImpl    : Envers integration enabled? : true
Nov 12 20:20:07 java[11450]: 2023-11-12T20:20:07.795+01:00  INFO 11450 --- [           main] o.h.b.i.BytecodeProviderInitiator        : HHH000021: Bytecode provider name : bytebuddy
Nov 12 20:20:08 java[11450]: 2023-11-12T20:20:08.069+01:00  INFO 11450 --- [           main] o.s.o.j.p.SpringPersistenceUnitInfo      : No LoadTimeWeaver setup: ignoring JPA class transformer
Nov 12 20:20:08 java[11450]: 2023-11-12T20:20:08.119+01:00  INFO 11450 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
Nov 12 20:20:08 java[11450]: 2023-11-12T20:20:08.379+01:00  INFO 11450 --- [           main] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Added connection org.mariadb.jdbc.Connection@1dab9dd6
Nov 12 20:20:08 java[11450]: 2023-11-12T20:20:08.383+01:00  INFO 11450 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
Nov 12 20:20:09 java[11450]: 2023-11-12T20:20:09.805+01:00  INFO 11450 --- [           main] o.h.e.c.i.m.AuditMetadataGenerator       : Adding properties for entity: com.ambraspace.fluxer2.model.device.Device
Nov 12 20:20:09 java[11450]: 2023-11-12T20:20:09.812+01:00  INFO 11450 --- [           main] o.h.e.c.i.m.AuditMetadataGenerator       : Adding properties for entity: com.ambraspace.fluxer2.model.device.impl.WP8026ADAM
Nov 12 20:20:09 java[11450]: 2023-11-12T20:20:09.812+01:00  INFO 11450 --- [           main] o.h.e.c.i.m.AuditMetadataGenerator       : Adding properties for entity: com.ambraspace.fluxer2.model.device.impl.IOTROUTER_ZHC2921
Nov 12 20:20:09 java[11450]: 2023-11-12T20:20:09.813+01:00  INFO 11450 --- [           main] o.h.e.c.i.m.AuditMetadataGenerator       : Adding properties for entity: com.ambraspace.fluxer2.model.device.impl.IOTROUTER_ZHC292C
Nov 12 20:20:09 java[11450]: 2023-11-12T20:20:09.813+01:00  INFO 11450 --- [           main] o.h.e.c.i.m.AuditMetadataGenerator       : Adding properties for entity: com.ambraspace.fluxer2.model.device.impl.ET_FLUXER42_MF_V2_1
Nov 12 20:20:09 java[11450]: 2023-11-12T20:20:09.813+01:00  INFO 11450 --- [           main] o.h.e.c.i.m.AuditMetadataGenerator       : Adding properties for entity: com.ambraspace.fluxer2.model.device.impl.ET_FLUXER42_MF_V2_2
Nov 12 20:20:09 java[11450]: 2023-11-12T20:20:09.814+01:00  INFO 11450 --- [           main] o.h.e.c.i.m.AuditMetadataGenerator       : Adding properties for entity: com.ambraspace.fluxer2.model.device.impl.ET_FLUXER42_MF_V2
Nov 12 20:20:09 java[11450]: 2023-11-12T20:20:09.814+01:00  INFO 11450 --- [           main] o.h.e.c.i.m.AuditMetadataGenerator       : Adding properties for entity: com.ambraspace.fluxer2.model.device.impl.ET_FLUXER42_MF
Nov 12 20:20:09 java[11450]: 2023-11-12T20:20:09.818+01:00  INFO 11450 --- [           main] o.h.e.c.i.m.AuditMetadataGenerator       : Adding properties for entity: com.ambraspace.fluxer2.model.alarm.Alarm
Nov 12 20:20:10 java[11450]: 2023-11-12T20:20:10.464+01:00  INFO 11450 --- [           main] o.h.b.i.BytecodeProviderInitiator        : HHH000021: Bytecode provider name : bytebuddy
Nov 12 20:20:14 java[11450]: 2023-11-12T20:20:14.274+01:00  INFO 11450 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
Nov 12 20:20:14 java[11450]: 2023-11-12T20:20:14.358+01:00  INFO 11450 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
Nov 12 20:20:15 java[11450]: 2023-11-12T20:20:15.245+01:00  INFO 11450 --- [           main] o.s.d.j.r.query.QueryEnhancerFactory     : Hibernate is in classpath; If applicable, HQL parser will be used.
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.575+01:00 ERROR 11450 --- [           main] o.s.b.web.embedded.tomcat.TomcatStarter  : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'jwtRequestFilter': Unsatisfied dependency expressed through field 'userService': Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'installationService': Error creating bean with name 'installationService': Unsatisfied dependency expressed through field 'triggerService': Error creating bean with name 'triggerService': Unsatisfied dependency expressed through field 'deviceService': Error creating bean with name 'deviceService': Unsatisfied dependency expressed through field 'alarmService': Error creating bean with name 'alarmService': Lookup method resolution failed
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.650+01:00  INFO 11450 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.658+01:00  WARN 11450 --- [           main] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [HikariPool-1 housekeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
Nov 12 20:20:17 java[11450]:  java.base/jdk.internal.misc.Unsafe.park(Native Method)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.lang.Thread.run(Unknown Source)
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.670+01:00  WARN 11450 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.671+01:00  INFO 11450 --- [           main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.674+01:00  INFO 11450 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.686+01:00  INFO 11450 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.708+01:00  INFO 11450 --- [           main] .s.b.a.l.ConditionEvaluationReportLogger :
Nov 12 20:20:17 java[11450]: Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.748+01:00 ERROR 11450 --- [           main] o.s.boot.SpringApplication               : Application run failed
Nov 12 20:20:17 java[11450]: org.springframework.context.ApplicationContextException: Unable to start web server
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:164) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:602) ~[spring-context-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:436) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at com.ambraspace.fluxer2.Fluxer2Application.main(Fluxer2Application.java:39) ~[classes!/:0.17.9]
Nov 12 20:20:17 java[11450]:         at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[fluxer2-0.17.9.jar:0.17.9]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:95) ~[fluxer2-0.17.9.jar:0.17.9]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[fluxer2-0.17.9.jar:0.17.9]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65) ~[fluxer2-0.17.9.jar:0.17.9]
Nov 12 20:20:17 java[11450]: Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:142) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:104) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:489) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:183) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:161) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         ... 12 common frames omitted
Nov 12 20:20:17 java[11450]: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jwtRequestFilter': Unsatisfied dependency expressed through field 'userService': Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'installationService': Error creating bean with name 'installationService': Unsatisfied dependency expressed through field 'triggerService': Error creating bean with name 'triggerService': Unsatisfied dependency expressed through field 'deviceService': Error creating bean with name 'deviceService': Unsatisfied dependency expressed through field 'alarmService': Error creating bean with name 'alarmService': Lookup method resolution failed
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:716) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:696) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:483) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1416) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:597) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:210) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:173) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:168) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:153) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init>(ServletContextInitializerBeans.java:86) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:261) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:235) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:52) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4886) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1328) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1318) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:846) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1328) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1318) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:241) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.StandardService.startInternal(StandardService.java:428) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:918) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.apache.catalina.startup.Tomcat.start(Tomcat.java:485) ~[tomcat-embed-core-10.1.12.jar!/:na]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) ~[spring-boot-3.1.3.jar!/:3.1.3]
Nov 12 20:20:17 java[11450]:         ... 17 common frames omitted
Nov 12 20:20:17 java[11450]: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'installationService': Error creating bean with name 'installationService': Unsatisfied dependency expressed through field 'triggerService': Error creating bean with name 'triggerService': Unsatisfied dependency expressed through field 'deviceService': Error creating bean with name 'deviceService': Unsatisfied dependency expressed through field 'alarmService': Error creating bean with name 'alarmService': Lookup method resolution failed
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:716) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:696) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:483) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1416) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:597) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:713) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         ... 59 common frames omitted
Nov 12 20:20:17 java[11450]: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'installationService': Unsatisfied dependency expressed through field 'triggerService': Error creating bean with name 'triggerService': Unsatisfied dependency expressed through field 'deviceService': Error creating bean with name 'deviceService': Unsatisfied dependency expressed through field 'alarmService': Error creating bean with name 'alarmService': Lookup method resolution failed
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:716) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:696) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:483) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1416) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:597) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:713) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         ... 73 common frames omitted
Nov 12 20:20:17 java[11450]: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'triggerService': Unsatisfied dependency expressed through field 'deviceService': Error creating bean with name 'deviceService': Unsatisfied dependency expressed through field 'alarmService': Error creating bean with name 'alarmService': Lookup method resolution failed
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:716) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:696) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:483) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1416) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:597) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:713) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         ... 87 common frames omitted
Nov 12 20:20:17 java[11450]: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deviceService': Unsatisfied dependency expressed through field 'alarmService': Error creating bean with name 'alarmService': Lookup method resolution failed
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:716) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:696) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:483) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1416) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:597) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:713) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         ... 101 common frames omitted
Nov 12 20:20:17 java[11450]: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alarmService': Lookup method resolution failed
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.checkLookupMethods(AutowiredAnnotationBeanPostProcessor.java:472) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:342) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1291) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1186) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:560) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:713) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         ... 115 common frames omitted
Nov 12 20:20:17 java[11450]: Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.ambraspace.fluxer2.model.alarm.AlarmService] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@4e50df2e]
Nov 12 20:20:17 java[11450]:         at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:483) ~[spring-core-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:320) ~[spring-core-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.checkLookupMethods(AutowiredAnnotationBeanPostProcessor.java:450) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         ... 128 common frames omitted
Nov 12 20:20:17 java[11450]: Caused by: java.lang.NoClassDefFoundError: com/sun/jdi/InvalidTypeException
Nov 12 20:20:17 java[11450]:         at java.base/java.lang.Class.getDeclaredMethods0(Native Method) ~[na:na]
Nov 12 20:20:17 java[11450]:         at java.base/java.lang.Class.privateGetDeclaredMethods(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         at java.base/java.lang.Class.getDeclaredMethods(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:465) ~[spring-core-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]:         ... 130 common frames omitted
Nov 12 20:20:17 java[11450]: Caused by: java.lang.ClassNotFoundException: com.sun.jdi.InvalidTypeException
Nov 12 20:20:17 java[11450]:         at java.base/java.net.URLClassLoader.findClass(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:149) ~[fluxer2-0.17.9.jar:0.17.9]
Nov 12 20:20:17 java[11450]:         at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[na:na]
Nov 12 20:20:17 java[11450]:         ... 134 common frames omitted
Nov 12 20:20:17 systemd[1]: fluxer.service: Main process exited, code=exited, status=1/FAILURE
Nov 12 20:20:17 systemd[1]: fluxer.service: Failed with result 'exit-code'.
Nov 12 20:20:17 systemd[1]: fluxer.service: Consumed 18.078s CPU time.

Offline

#2 2023-11-12 23:15:15

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,122

Re: Recent java packaging made some apps resulting with ClassNotFound

Are you running the server through a debugger, by chance? The com.sun.jdi package is part of the Java debugger. It would make sense that the debugger isn't packaged with the JRE, only with the JDK.

Offline

#3 2023-11-13 07:34:03

ambra
Member
Registered: 2019-10-01
Posts: 10

Re: Recent java packaging made some apps resulting with ClassNotFound

No, it's just simple "java -jar file.jar".

Offline

#4 2023-11-13 10:45:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,861

Re: Recent java packaging made some apps resulting with ClassNotFound

Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.575+01:00 ERROR 11450 --- [           main] o.s.b.web.embedded.tomcat.TomcatStarter  : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'jwtRequestFilter': Unsatisfied dependency expressed through field 'userService': Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'installationService': Error creating bean with name 'installationService': Unsatisfied dependency expressed through field 'triggerService': Error creating bean with name 'triggerService': Unsatisfied dependency expressed through field 'deviceService': Error creating bean with name 'deviceService': Unsatisfied dependency expressed through field 'alarmService': Error creating bean with name 'alarmService': Lookup method resolution failed
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.650+01:00  INFO 11450 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
Nov 12 20:20:17 java[11450]: 2023-11-12T20:20:17.658+01:00  WARN 11450 --- [           main] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [HikariPool-1 housekeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
Nov 12 20:20:17 java[11450]:  java.base/jdk.internal.misc.Unsafe.park(Native Method)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
Nov 12 20:20:17 java[11450]:  java.base/java.lang.Thread.run(Unknown Source)

org.springframework.beans.factory.UnsatisfiedDependencyException seems relevant .

Are you using https://aur.archlinux.org/packages/spring-boot-cli from AUR ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2023-11-13 11:42:20

ambra
Member
Registered: 2019-10-01
Posts: 10

Re: Recent java packaging made some apps resulting with ClassNotFound

Lone_Wolf wrote:

No. sad

I use eclipse-jee from AUR for developing and just run "mvn clean package" to make JAR file. What's puzzling me the most is that last week it worked fine only with jre-openjdk-headless. After the update (pacman -Syu) it fails with ClassNotFoundException. Two other JAR files which are plain Java applications (without Spring Boot) run fine.

Offline

#6 2023-11-13 21:20:31

ambra
Member
Registered: 2019-10-01
Posts: 10

Re: Recent java packaging made some apps resulting with ClassNotFound

After thoroughly investigating pom.xml I decided to try some another jre. So I installed jre17-openjdk-headless and (to my surprise) everything works fine.
Shouldn't Java be backward compatible?!

Offline

#7 2023-11-14 10:28:49

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,861

Re: Recent java packaging made some apps resulting with ClassNotFound

This looks like may be caused by changes in what's present in the jre-openjdk-headless package in arch, not java itself .

jre-openjdk-headless-21.u35-3 is the last version before the change, download it and install it with pacman -U  .

Verify if that version gives the same errors.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#8 2023-11-14 10:48:13

ambra
Member
Registered: 2019-10-01
Posts: 10

Re: Recent java packaging made some apps resulting with ClassNotFound

Lone_Wolf wrote:

This looks like may be caused by changes in what's present in the jre-openjdk-headless package in arch, not java itself .

jre-openjdk-headless-21.u35-3 is the last version before the change, download it and install it with pacman -U  .

Verify if that version gives the same errors.

Yes, I've just tested. It works fine with jre-openjdk-headless-21.u35-3, but fails to start with all later revisions.

Regards!

Offline

#9 2023-11-14 10:50:47

ambra
Member
Registered: 2019-10-01
Posts: 10

Re: Recent java packaging made some apps resulting with ClassNotFound

I've just noticed that there's significant difference in size of the packages:

jre-openjdk-headless-21.u35-3-x86_64.pkg.tar.zst   21-Sep-2023 19:27     41M
jre-openjdk-headless-21.u35-4-x86_64.pkg.tar.zst   08-Oct-2023 17:38     29M

Offline

#10 2023-11-14 11:09:25

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,861

Re: Recent java packaging made some apps resulting with ClassNotFound

There were several intermediate versions that haven't been published to extra repo . Compare -3 and -8 .

There are differences in many files between those versions, but there's one file in -3 that's not in -8 .

/usr/lib/jvm/java-21-openjdk/release appears to have been moved from jre-openjdk-headless to jdk-openjdk .

Try copying that file to a system with latest jre-openjdk-headless and test.

Last edited by Lone_Wolf (2023-11-14 11:10:17)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#11 2023-11-14 11:28:11

ambra
Member
Registered: 2019-10-01
Posts: 10

Re: Recent java packaging made some apps resulting with ClassNotFound

Lone_Wolf wrote:

Try copying that file to a system with latest jre-openjdk-headless and test.

Tried. It fails with the same error.

Offline

#12 2023-11-14 14:55:35

seth
Member
Registered: 2012-09-03
Posts: 57,935

Re: Recent java packaging made some apps resulting with ClassNotFound

Nov 12 20:20:17 java[11450]: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alarmService': Lookup method resolution failed
Nov 12 20:20:17 java[11450]:         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:342) ~[spring-beans-6.0.11.jar!/:6.0.11]
Nov 12 20:20:17 java[11450]: Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.ambraspace.fluxer2.model.alarm.AlarmService] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@4e50df2e]

Probably sth. along https://stackoverflow.com/questions/237 … g-bean-wit is triggering the debugger which now fails because you lack the jdk, why that would have worked beforehand otherwise idk.

Offline

Board footer

Powered by FluxBB