Java version compatibility issues causing compilation errors in a Spring Boot application

I’m encountering compilation errors in my Spring Boot application, which seem to be related to Java version incompatibility. Initially, I had issues with a multi-line string literal, which I resolved by converting it to a single line. However, now I’m facing a new error related to the Spring Boot class file version.

As per my pom.xml :

<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>3.3.5</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>

<java.version>17</java.version>

First my program had following line :

String createTriggerSQL = """
                CREATE TRIGGER prevent_excess_books
                BEFORE INSERT ON book_ownership
                FOR EACH ROW
                BEGIN
                    DECLARE book_count INT;
                    SELECT COUNT(*) INTO book_count
                    FROM book_ownership
                    WHERE id = NEW.id;
                    IF book_count >= 10 THEN
                        SIGNAL SQLSTATE '45000'
                        SET MESSAGE_TEXT = 'User cannot own more than 10 books.';
                    END IF;
                END;
                """;

for which the error pointed out semi-colon ‘;’ :

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[25,37] unclosed string literal
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[26,31] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[27,23] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[27,33] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[28,20] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[28,29] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[30,28] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[31,33] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[31,52] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[32,40] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[34,34] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[35,31] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[35,41] unclosed character literal
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[35,32] not a statement
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[35,47] illegal line end in character literal
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[36,44] unclosed character literal
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[36,56] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[36,65] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[36,66] not a statement
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[36,70] ‘;’ expected
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[36,80] unclosed character literal
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[36,79] not a statement
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[38,17] not a statement
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[39,19] unclosed string literal
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/DatabaseInitializer/DatabaseInitializer.java:[39,17] not a statement
[INFO] 25 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

Then I made the statement one line :
String createTriggerSQL = "CREATE TRIGGER prevent_excess_books BEFORE INSERT ON book_ownership FOR EACH ROW BEGIN DECLARE book_count INT; SELECT COUNT(*) INTO book_count FROM book_ownership WHERE id = NEW.id; IF book_count >= 10 THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'User cannot own more than 10 books.'; END IF; END;";

Now my error log shows :

[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.15.0/plexus-compiler-manager-2.15.0.jar (5.2 kB at 476 kB/s)
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/com/thoughtworks/qdox/qdox/2.0.3/qdox-2.0.3.jar (334 kB at 22 MB/s)
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 33 source files with javac [debug parameters release 17] to target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /workspace/src/main/java/edu/unc/cs/BookSwap/BookSwapApplication.java:[3,32] cannot access org.springframework.boot.SpringApplication
bad class file: /layers/heroku_maven/repository/org/springframework/boot/spring-boot/3.3.5/spring-boot-3.3.5.jar(org/springframework/boot/SpringApplication.class)
class file has wrong version 61.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

IN second case, it is interseting to note “heroku_maven” (i never created this repo in my app anywhere) in

[3,32] cannot access org.springframework.boot.SpringApplication
bad class file: /layers/heroku_maven/repository/org/springframework/boot/spring-boot/3.3.5/spring-boot-3.3.5.jar(org/springframework/boot/SpringApplication.class)

I tried chatGPT’s help.

  1. Check your project’s Java version:
    In your pom.xml file, ensure you have the correct Java version specified:

xml

<properties>
    <java.version>17</java.version>
</properties>
  1. Update Heroku Java version:
    Create a system.properties file in your project root with:

text

java.runtime.version=17
  1. Update Maven compiler plugin:
    In your pom.xml, ensure the Maven compiler plugin is set to Java 17:

xml

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
        <source>17</source>
        <target>17</target>
    </configuration>
</plugin>
  1. Check Spring Boot version:
    Ensure you’re using a Spring Boot version compatible with Java 17. In your pom.xml:

xml

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.7.0</version> <!-- or later -->
</parent>
  1. Clean and rebuild:
    Run mvn clean install locally to ensure everything compiles.
  2. Redeploy to Heroku:
    Push your changes to Heroku to trigger a new build with the updated Java version.

But I am still getting this :

2024-12-06T20:44:06.914Z INFO 1 — [BookSwap] [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting…
2024-12-06T20:44:07.928Z WARN 1 — [BookSwap] [ main] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 08S01
2024-12-06T20:44:07.932Z ERROR 1 — [BookSwap] [ main] o.h.engine.jdbc.spi.SqlExceptionHelper : Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
2024-12-06T20:44:07.936Z WARN 1 — [BookSwap] [ main] o.h.e.j.e.i.JdbcEnvironmentInitiator : HHH000342: Could not obtain connection to query metadata
org.hibernate.exception.JDBCConnectionException: unable to obtain isolated JDBC connection [Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.] [n/a]
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:100) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:58) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:108) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:94) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.delegateWork(JdbcIsolationDelegate.java:116) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.getJdbcEnvironmentUsingJdbcMetadata(JdbcEnvironmentInitiator.java:292) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:124) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:78) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:130) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:238) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:215) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.boot.model.relational.Database.(Database.java:45) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.getDatabase(InFlightMetadataCollectorImpl.java:221) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:189) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:171) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1431) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1502) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:75) ~[spring-orm-6.1.14.jar!/:6.1.14]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:390) ~[spring-orm-6.1.14.jar!/:6.1.14]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) ~[spring-orm-6.1.14.jar!/:6.1.14]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) ~[spring-orm-6.1.14.jar!/:6.1.14]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:366) ~[spring-orm-6.1.14.jar!/:6.1.14]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853) ~[spring-beans-6.1.14.jar!/:6.1.14]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1802) ~[spring-beans-6.1.14.jar!/:6.1.14]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600) ~[spring-beans-6.1.14.jar!/:6.1.14]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) ~[spring-beans-6.1.14.jar!/:6.1.14]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337) ~[spring-beans-6.1.14.jar!/:6.1.14]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.1.14.jar!/:6.1.14]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335) ~[spring-beans-6.1.14.jar!/:6.1.14]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205) ~[spring-beans-6.1.14.jar!/:6.1.14]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:954) ~[spring-context-6.1.14.jar!/:6.1.14]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:625) ~[spring-context-6.1.14.jar!/:6.1.14]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.3.5.jar!/:3.3.5]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) ~[spring-boot-3.3.5.jar!/:3.3.5]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456) ~[spring-boot-3.3.5.jar!/:3.3.5]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:335) ~[spring-boot-3.3.5.jar!/:3.3.5]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1363) ~[spring-boot-3.3.5.jar!/:3.3.5]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1352) ~[spring-boot-3.3.5.jar!/:3.3.5]
at edu.unc.cs.BookSwap.BookSwapApplication.main(BookSwapApplication.java:16) ~[!/:0.0.1-SNAPSHOT]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:102) ~[BookSwap-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:64) ~[BookSwap-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:40) ~[BookSwap-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:815) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:438) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:241) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:189) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137) ~[HikariCP-5.1.0.jar!/:na]
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360) ~[HikariCP-5.1.0.jar!/:na]
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202) ~[HikariCP-5.1.0.jar!/:na]
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461) ~[HikariCP-5.1.0.jar!/:na]
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550) ~[HikariCP-5.1.0.jar!/:na]
at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:98) ~[HikariCP-5.1.0.jar!/:na]
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:111) ~[HikariCP-5.1.0.jar!/:na]
at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:439) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.delegateWork(JdbcIsolationDelegate.java:61) ~[hibernate-core-6.5.3.Final.jar!/:6.5.3.Final]
… 42 common frames omitted
Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:na]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[na:na]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[na:na]
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:104) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:149) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:165) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:88) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.NativeSession.connect(NativeSession.java:120) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:935) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:805) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
… 55 common frames omitted
Caused by: java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[na:na]
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[na:na]
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547) ~[na:na]
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602) ~[na:na]
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[na:na]
at java.base/java.net.Socket.connect(Socket.java:639) ~[na:na]
at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:153) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:62) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]
… 58 common frames omitted

Such error is not coming on my local device. :frowning:

The latest error is related to a failing connection to a database using JDBC. It is worth checking your database connection setup.