Unexpected error Please contact system administrator

I have a CUBA Application that has been running on Production, but it just stopped working, in that when a user tries to login it gives an error that “Unexpected error Please contact system administrator”

I cloned the project from a remote repo and I have been working on my local to troubleshoot and fix the bug. However the problem seems to persist even on the local server. I look at app.log this is the very last part of the log file where I suspect the error is occurring but I do not get it, It has to do with “Placeholder” and others I assume::

2023-03-03 13:17:04.884 WARN [localhost-startStop-1] com.haulmont.cuba.core.sys.CubaCoreApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name ‘ldap_ldapContextSource’ defined in null: Could not resolve placeholder ‘ldap.contextSourceUserName’ in value “${ldap.contextSourceUserName}”; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘ldap.contextSourceUserName’ in value “${ldap.contextSourceUserName}”
2023-03-03 13:17:04.902 ERROR [localhost-startStop-1] com.haulmont.cuba.core.sys.AbstractWebAppContextLoader - Error initializing application
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name ‘ldap_ldapContextSource’ defined in null: Could not resolve placeholder ‘ldap.contextSourceUserName’ in value “${ldap.contextSourceUserName}”; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘ldap.contextSourceUserName’ in value “${ldap.contextSourceUserName}”
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:223) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:210) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:283) ~[spring-context-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:163) ~[spring-context-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) ~[spring-context-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524) ~[spring-context-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139) ~[spring-context-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93) ~[spring-context-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at com.haulmont.cuba.core.sys.CubaClassPathXmlApplicationContext.(CubaClassPathXmlApplicationContext.java:27) ~[cuba-global-6.10.20.jar:6.10.20]
at com.haulmont.cuba.core.sys.CubaCoreApplicationContext.(CubaCoreApplicationContext.java:26) ~[cuba-core-6.10.20.jar:6.10.20]
at com.haulmont.cuba.core.sys.AppContextLoader.createApplicationContext(AppContextLoader.java:89) ~[cuba-core-6.10.20.jar:6.10.20]
at com.haulmont.cuba.core.sys.AppContextLoader.createApplicationContext(AppContextLoader.java:35) ~[cuba-core-6.10.20.jar:6.10.20]
at com.haulmont.cuba.core.sys.AbstractAppContextLoader.initAppContext(AbstractAppContextLoader.java:62) ~[cuba-global-6.10.20.jar:6.10.20]
at com.haulmont.cuba.core.sys.AbstractWebAppContextLoader.contextInitialized(AbstractWebAppContextLoader.java:78) ~[cuba-global-6.10.20.jar:6.10.20]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4792) [catalina.jar:8.5.33]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256) [catalina.jar:8.5.33]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.33]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754) [catalina.jar:8.5.33]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730) [catalina.jar:8.5.33]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) [catalina.jar:8.5.33]
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140) [catalina.jar:8.5.33]
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) [catalina.jar:8.5.33]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_172]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_172]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_172]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_172]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_172]
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder ‘ldap.contextSourceUserName’ in value “${ldap.contextSourceUserName}”
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174) ~[spring-core-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126) ~[spring-core-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingStringValueResolver.resolveStringValue(PropertyPlaceholderConfigurer.java:246) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:282) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:209) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:141) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:82) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:169) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitIndexedArgumentValues(BeanDefinitionVisitor.java:150) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:84) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:220) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
… 27 common frames omitted

Hi,
Your project contains the LDAP add-on.
This add-on requires to set values for several application properties, before starting the application.

Your project is missing the value for the property is “ldap.contextSourceUserName”, that’s why applicaiton fails to start.
See documentation: ldap-addon/README.md at master · cuba-platform/ldap-addon · GitHub

In local dev environment you can set it in the app.properties file.
In production environment - the property can be set in the local.app.properties file, or via environment variable.

After updating the files for ldap, the new errors that have emerged are these:

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘imap_AttachmentsAPI’ defined in URL [jar:file:/C:/Users/mie.name/Documents/systemApp/deploy/tomcat/webapps/app-core/WEB-INF/lib/imap-core-1.2.0.jar!/com/haulmont/addon/imap/api/ImapAttachments.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘imap_ImapHelper’ defined in URL [jar:file:/C:/Users/mie.name/Documents/systemApp/deploy/tomcat/webapps/app-core/WEB-INF/lib/imap-core-1.2.0.jar!/com/haulmont/addon/imap/core/ImapHelper.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘imapStoreBuilder’ defined in URL [jar:file:/C:/Users/mie.name/Documents/systemApp/deploy/tomcat/webapps/app-core/WEB-INF/lib/imap-core-1.2.0.jar!/com/haulmont/addon/imap/core/ImapStoreBuilder.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘imap_DefaultEncryptor’: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot configure encryptor com.haulmont.addon.imap.crypto.DefaultEncryptor, property “imap.encryption.key” is not set
11:37:41.194 INFO c.h.c.c.s.CubaThreadPoolTaskScheduler - Shutting down ExecutorService ‘scheduler’
11:37:41.257 ERROR c.h.c.c.s.AbstractWebAppContextLoader - Error initializing application

Caused by: java.lang.IllegalStateException: Cannot configure encryptor com.haulmont.addon.imap.crypto.DefaultEncryptor, property “imap.encryption.key” is not set
at com.haulmont.addon.imap.crypto.DefaultEncryptor.initKey(DefaultEncryptor.java:45) ~[imap-core-1.2.0.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_172]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_172]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_172]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_172]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:311) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:134) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
… 77 common frames omitted
Mar 06, 2023 11:37:41 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Mar 06, 2023 11:37:41 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/app-core] startup failed due to previous errors
Mar 06, 2023 11:37:41 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [C:\Users\mie.name\Documents\systemApp\deploy\tomcat\webapps\app-core] has finished in [21,049] ms
Mar 06, 2023 11:37:41 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [“http-nio-8080”]
Mar 06, 2023 11:37:41 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [“ajp-nio-8009”]
Mar 06, 2023 11:37:41 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 54160 ms
Mar 06, 2023 11:37:41 AM com.vaadin.server.DefaultDeploymentConfiguration checkProductionMode
WARNING:

I would be grateful for your assistance. Please note that I am new to CUBA Framework, I am working hard to get up to speed. Thank you

And now you need to set required property “imap.encryption.key” for the IMAP addon.
See information here: GitHub - cuba-platform/imap-addon: IMAP Integration CUBA component provides a readily available instrument that enables adding the capability to integrate email messaging into any application developed using CUBA Platform.

Thank you once again. I have another problem.

The application running on production when it is loaded and a login page appears the moment you press login it throws this error on the login screen “Login failed. System Date compilation error, contact system administrator” I have looked at the logs on the server here’s what I have found, perhaps you could make more sense to it.

06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/8.5.50
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Dec 7 2019 19:19:46 UTC
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.50.0
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows Server 2016
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jre1.8.0_311
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_311-b11
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 8.5
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 8.5
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.5
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 8.5
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 8.5\temp
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 8.5\conf\logging.properties
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: abort
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms7050m
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx7050m
06-Mar-2023 15:20:48.985 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Apache Software Foundation\Tomcat 8.5\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jre1.8.0_311\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\OmniBack\bin;C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\WindowsApps;.]
06-Mar-2023 15:20:49.297 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]
06-Mar-2023 15:20:49.391 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
06-Mar-2023 15:20:49.438 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“ajp-nio-8009”]
06-Mar-2023 15:20:49.454 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
06-Mar-2023 15:20:49.454 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1206 ms
06-Mar-2023 15:20:49.641 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
06-Mar-2023 15:20:49.641 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.50
06-Mar-2023 15:20:49.688 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\app-core.war]
06-Mar-2023 15:21:36.711 INFO [localhost-startStop-1] org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory.getObjectInstance Name = CubaDS Ignoring unknown property: value of “localhost” for “cubaDbHost” property
06-Mar-2023 15:21:36.711 INFO [localhost-startStop-1] org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory.getObjectInstance Name = CubaDS Ignoring unknown property: value of “leavemanagementsystem” for “cubaDbName” property
06-Mar-2023 15:21:37.570 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
06-Mar-2023 15:21:59.914 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\app-core.war] has finished in [70,226] ms
06-Mar-2023 15:21:59.930 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\app.war]
06-Mar-2023 15:22:28.742 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
06-Mar-2023 15:22:42.821 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\app.war] has finished in [42,891] ms
06-Mar-2023 15:22:42.821 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\docs]
06-Mar-2023 15:22:43.946 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
06-Mar-2023 15:22:43.946 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\docs] has finished in [1,125] ms
06-Mar-2023 15:22:43.946 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\manager]
06-Mar-2023 15:22:44.868 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
06-Mar-2023 15:22:44.883 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\manager] has finished in [937] ms
06-Mar-2023 15:22:44.883 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\ROOT]
06-Mar-2023 15:22:45.821 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
06-Mar-2023 15:22:45.821 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\ROOT] has finished in [938] ms
06-Mar-2023 15:22:45.821 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-8080”]
06-Mar-2023 15:22:45.836 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“ajp-nio-8009”]
06-Mar-2023 15:22:45.836 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 116382 ms
06-Mar-2023 15:22:45.836 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
06-Mar-2023 15:22:45.868 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“ajp-nio-8009”]
06-Mar-2023 15:22:45.904 INFO [Thread-5] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
06-Mar-2023 15:22:46.029 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [app-core] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
06-Mar-2023 15:22:46.029 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [app-core] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(Unknown Source)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:64)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
06-Mar-2023 15:22:46.029 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [app-core] created a ThreadLocal with key of type [com.ibm.icu.impl.number.PNAffixGenerator$1] (value [com.ibm.icu.impl.number.PNAffixGenerator$1@42e714c2]) and a value of type [com.ibm.icu.impl.number.PNAffixGenerator] (value [com.ibm.icu.impl.number.PNAffixGenerator@24110ce0]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
06-Mar-2023 15:22:46.029 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [app-core] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1096b661]) and a value of type [org.apache.xerces.jaxp.SAXParserImpl] (value [org.apache.xerces.jaxp.SAXParserImpl@6a2de1b5]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
06-Mar-2023 15:22:46.044 INFO [Thread-5] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8080”]
06-Mar-2023 15:22:46.060 INFO [Thread-5] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“ajp-nio-8009”]
06-Mar-2023 15:22:46.060 INFO [Thread-5] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“http-nio-8080”]
06-Mar-2023 15:22:46.060 INFO [Thread-5] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“ajp-nio-8009”]

The log snippet you’ve provided doesn’t contain useful info.
And the message is weird, I doubt it’s built into the platform. Maybe its the message from your project.

1 Like

Yes, true. it was an error from the database side.