From 0bb6defb97c3ae127aa53079ae0590cb965c5d15 Mon Sep 17 00:00:00 2001 From: user Date: Sat, 11 Jan 2025 21:58:03 +0400 Subject: [PATCH] Update versions --- build.gradle | 11 +- data/emails.trace.db | 2900 --------------------- gradlew | 313 ++- src/main/java/email/core/BaseEntity.java | 12 +- src/main/java/email/model/Email.java | 2 +- src/main/resources/application.properties | 3 +- 6 files changed, 214 insertions(+), 3027 deletions(-) delete mode 100644 data/emails.trace.db mode change 100644 => 100755 gradlew diff --git a/build.gradle b/build.gradle index b1f06d5..48155c3 100644 --- a/build.gradle +++ b/build.gradle @@ -3,11 +3,12 @@ buildscript { mavenCentral() } dependencies { - classpath("org.springframework.boot:spring-boot-gradle-plugin:2.6.4") + classpath("org.springframework.boot:spring-boot-gradle-plugin:3.4.1") } } apply plugin: 'java' +apply plugin: 'application' apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: 'org.springframework.boot' @@ -18,8 +19,8 @@ repositories { mavenCentral() } -sourceCompatibility = 11 -targetCompatibility = 11 +sourceCompatibility = 21 +targetCompatibility = 21 dependencies { implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web' @@ -27,8 +28,8 @@ dependencies { implementation group: 'org.springframework.boot', name: 'spring-boot-devtools' implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa' implementation group: 'com.h2database', name: 'h2' - implementation group: 'javax.xml.bind', name: 'jaxb-api' - implementation group: 'javax.validation', name: 'validation-api', version: '2.0.1.Final' + implementation group: 'jakarta.xml.bind', name: 'jakarta.xml.bind-api' + implementation group: 'jakarta.validation', name: 'jakarta.validation-api', version: '3.1.0' implementation group: 'javassist', name: 'javassist', version: '3.12.1.GA' implementation group: 'junit', name: 'junit' } diff --git a/data/emails.trace.db b/data/emails.trace.db deleted file mode 100644 index 6815eb2..0000000 --- a/data/emails.trace.db +++ /dev/null @@ -1,2900 +0,0 @@ -2022-10-05 00:26:03 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.lambda$logDataSources$0(H2ConsoleAutoConfiguration.java:77) - at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) - at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) - at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) - at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) - at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) - at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.logDataSources(H2ConsoleAutoConfiguration.java:83) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.h2Console(H2ConsoleAutoConfiguration.java:70) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:478) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 106 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 100 more -2022-10-05 00:26:04 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) - at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:173) - at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 73 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 67 more -2022-10-05 00:26:06 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) - at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:63) - at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:43) - at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:39) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:66) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:60) - at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:183) - at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:104) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:81) - at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:335) - at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 72 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 66 more -2022-10-05 00:26:56 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.lambda$logDataSources$0(H2ConsoleAutoConfiguration.java:77) - at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) - at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) - at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) - at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) - at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) - at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.logDataSources(H2ConsoleAutoConfiguration.java:83) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.h2Console(H2ConsoleAutoConfiguration.java:70) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:478) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 106 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 100 more -2022-10-05 00:26:58 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) - at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:173) - at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 73 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 67 more -2022-10-05 00:27:00 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) - at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:63) - at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:43) - at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:39) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:66) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:60) - at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:183) - at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:104) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:81) - at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:335) - at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 72 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 66 more -2022-10-05 00:30:39 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.lambda$logDataSources$0(H2ConsoleAutoConfiguration.java:77) - at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) - at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) - at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) - at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) - at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) - at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.logDataSources(H2ConsoleAutoConfiguration.java:83) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.h2Console(H2ConsoleAutoConfiguration.java:70) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:478) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 106 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 100 more -2022-10-05 00:30:41 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) - at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:173) - at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 73 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 67 more -2022-10-05 00:30:42 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) - at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:63) - at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:43) - at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:39) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:66) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:60) - at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:183) - at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:104) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:81) - at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:335) - at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 72 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 66 more -2022-10-05 00:31:04 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.lambda$logDataSources$0(H2ConsoleAutoConfiguration.java:77) - at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) - at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) - at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) - at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) - at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) - at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.logDataSources(H2ConsoleAutoConfiguration.java:83) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.h2Console(H2ConsoleAutoConfiguration.java:70) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:478) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 106 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 100 more -2022-10-05 00:31:05 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) - at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:173) - at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 73 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 67 more -2022-10-05 00:31:07 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) - at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:63) - at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:43) - at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:39) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:66) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:60) - at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:183) - at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:104) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:81) - at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:335) - at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 72 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 66 more -2022-10-05 00:32:11 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.lambda$logDataSources$0(H2ConsoleAutoConfiguration.java:77) - at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) - at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) - at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) - at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) - at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) - at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.logDataSources(H2ConsoleAutoConfiguration.java:83) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.h2Console(H2ConsoleAutoConfiguration.java:70) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:478) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 106 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 100 more -2022-10-05 00:32:13 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) - at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:173) - at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 73 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 67 more -2022-10-05 00:32:14 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) - at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:63) - at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:43) - at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:39) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:66) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:60) - at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:183) - at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:104) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:81) - at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:335) - at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 72 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 66 more -2022-10-05 00:32:52 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.lambda$logDataSources$0(H2ConsoleAutoConfiguration.java:77) - at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) - at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) - at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) - at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) - at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) - at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.logDataSources(H2ConsoleAutoConfiguration.java:83) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.h2Console(H2ConsoleAutoConfiguration.java:70) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:478) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 106 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 100 more -2022-10-05 00:32:54 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) - at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:173) - at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 73 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 67 more -2022-10-05 00:32:56 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) - at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:63) - at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:43) - at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:39) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:66) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:60) - at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:183) - at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:104) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:81) - at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:335) - at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 72 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 66 more -2022-10-05 00:33:44 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.lambda$logDataSources$0(H2ConsoleAutoConfiguration.java:77) - at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) - at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) - at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) - at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) - at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) - at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.logDataSources(H2ConsoleAutoConfiguration.java:83) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.h2Console(H2ConsoleAutoConfiguration.java:70) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:478) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 106 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 100 more -2022-10-05 00:33:46 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) - at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:173) - at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 73 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 67 more -2022-10-05 00:33:48 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) - at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:63) - at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:43) - at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:39) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:66) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:60) - at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:183) - at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:104) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:81) - at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:335) - at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 72 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 66 more -2022-10-05 00:34:07 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.lambda$logDataSources$0(H2ConsoleAutoConfiguration.java:77) - at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) - at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) - at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) - at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) - at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) - at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.logDataSources(H2ConsoleAutoConfiguration.java:83) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.h2Console(H2ConsoleAutoConfiguration.java:70) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:478) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 106 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 100 more -2022-10-05 00:34:09 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) - at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:173) - at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 73 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 67 more -2022-10-05 00:34:10 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) - at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:63) - at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:43) - at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:39) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:66) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:60) - at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:183) - at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:104) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:81) - at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:335) - at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 72 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 66 more -2022-10-05 00:35:30 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.lambda$logDataSources$0(H2ConsoleAutoConfiguration.java:77) - at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) - at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) - at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) - at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) - at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) - at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.logDataSources(H2ConsoleAutoConfiguration.java:83) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.h2Console(H2ConsoleAutoConfiguration.java:70) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:478) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 106 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 100 more -2022-10-05 00:35:32 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) - at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:173) - at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 73 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 67 more -2022-10-05 00:35:33 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) - at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:63) - at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:43) - at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:39) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:66) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:60) - at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:183) - at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:104) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:81) - at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:335) - at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 72 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 66 more -2022-10-05 00:37:58 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.lambda$logDataSources$0(H2ConsoleAutoConfiguration.java:77) - at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) - at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) - at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) - at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) - at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) - at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) - at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.logDataSources(H2ConsoleAutoConfiguration.java:83) - at org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration.h2Console(H2ConsoleAutoConfiguration.java:70) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) - at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:478) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 106 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 100 more -2022-10-05 00:38:00 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) - at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) - at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) - at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:173) - at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 73 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 67 more -2022-10-05 00:38:01 database: flush -org.h2.message.DbException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.get(DbException.java:194) - at org.h2.message.DbException.convert(DbException.java:347) - at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93) - at org.h2.mvstore.MVStore.handleException(MVStore.java:2877) - at org.h2.mvstore.MVStore.panic(MVStore.java:481) - at org.h2.mvstore.MVStore.(MVStore.java:402) - at org.h2.mvstore.MVStore$Builder.open(MVStore.java:3579) - at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:170) - at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:103) - at org.h2.engine.Database.getPageStore(Database.java:2659) - at org.h2.engine.Database.open(Database.java:675) - at org.h2.engine.Database.openDatabase(Database.java:307) - at org.h2.engine.Database.(Database.java:301) - at org.h2.engine.Engine.openSession(Engine.java:74) - at org.h2.engine.Engine.openSession(Engine.java:192) - at org.h2.engine.Engine.createSessionAndValidate(Engine.java:171) - at org.h2.engine.Engine.createSession(Engine.java:166) - at org.h2.engine.Engine.createSession(Engine.java:29) - at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:340) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:173) - at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:152) - at org.h2.Driver.connect(Driver.java:69) - at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) - at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) - at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) - at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) - at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) - at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) - at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) - at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) - at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) - at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) - at org.hibernate.tool.schema.internal.exec.ImprovedExtractionContextImpl.getJdbcConnection(ImprovedExtractionContextImpl.java:63) - at org.hibernate.tool.schema.extract.spi.ExtractionContext.getQueryResults(ExtractionContext.java:43) - at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:39) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:66) - at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:60) - at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:183) - at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:104) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:192) - at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:81) - at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:335) - at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471) - at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1498) - at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) - at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) - at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) - at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) - at email.Application.main(Application.java:10) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.base/java.lang.reflect.Method.invoke(Method.java:568) - at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) -Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" -General error: "java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7]" [50000-200] - at org.h2.message.DbException.getJdbcSQLException(DbException.java:505) - at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - ... 72 more -Caused by: java.lang.IllegalStateException: The file is locked: nio:D:/work/projects/spring-mvc-example/data/emails.mv.db [1.4.200/7] - at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:950) - at org.h2.mvstore.FileStore.open(FileStore.java:172) - at org.h2.mvstore.MVStore.(MVStore.java:381) - ... 66 more diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 index 27309d9..1aa94a4 --- a/gradlew +++ b/gradlew @@ -1,78 +1,127 @@ -#!/usr/bin/env bash +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ############################################################################## -## -## Gradle start up script for UN*X -## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# ############################################################################## # Attempt to set APP_HOME + # Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" +MAX_FD=maximum -warn ( ) { +warn () { echo "$*" -} +} >&2 -die ( ) { +die () { echo echo "$*" echo exit 1 -} +} >&2 # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false nonstop=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; - NONSTOP* ) - nonstop=true - ;; +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" + JAVACMD=$JAVA_HOME/jre/sh/java else - JAVACMD="$JAVA_HOME/bin/java" + JAVACMD=$JAVA_HOME/bin/java fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME @@ -81,84 +130,120 @@ Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." + fi fi # Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - JAVACMD=`cygpath --unix "$JAVACMD"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" esac fi -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/src/main/java/email/core/BaseEntity.java b/src/main/java/email/core/BaseEntity.java index fced11c..cabc026 100644 --- a/src/main/java/email/core/BaseEntity.java +++ b/src/main/java/email/core/BaseEntity.java @@ -1,11 +1,11 @@ package email.core; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; -import javax.persistence.Version; -import javax.validation.constraints.NotNull; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; +import jakarta.persistence.Version; +import jakarta.validation.constraints.NotNull; import java.io.Serializable; @MappedSuperclass diff --git a/src/main/java/email/model/Email.java b/src/main/java/email/model/Email.java index d2eefe3..3a5dbf6 100644 --- a/src/main/java/email/model/Email.java +++ b/src/main/java/email/model/Email.java @@ -2,7 +2,7 @@ package email.model; import email.core.BaseEntity; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class Email extends BaseEntity { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index a013d4b..f80be7a 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -11,5 +11,6 @@ spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password=password spring.jpa.database-platform=org.hibernate.dialect.H2Dialect +spring.jpa.properties.hibernate.globally_quoted_identifiers=true spring.h2.console.enabled=true -spring.jpa.hibernate.ddl-auto=update \ No newline at end of file +spring.jpa.hibernate.ddl-auto=create \ No newline at end of file