[ INFO] 11/07 12:35:09.596 ru.vniins.ais.realty.RealtyApplication - Starting RealtyApplication on rocknote with PID 9227 (/media/rockerzz/work/work/p/vniins/realty-backend/build/classes/production/realty-backend started by rockerzz in /home/rockerzz/Documents/www)
[DEBUG] 11/07 12:35:09.599 ru.vniins.ais.realty.RealtyApplication - Running with Spring Boot v1.1.1.RELEASE, Spring v4.0.5.RELEASE
[ERROR] 11/07 12:35:24.754 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table documents drop constraint FK_3c13treg0y3t7pg6rmk6frpo5
[ERROR] 11/07 12:35:24.755 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.DOCUMENTS
[ERROR] 11/07 12:35:24.755 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table documents drop constraint FK_fj8px66makr2oxpcuys5nvn2f
[ERROR] 11/07 12:35:24.756 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.DOCUMENTS
[ERROR] 11/07 12:35:24.756 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table employment_agreements drop constraint FK_57w2kqwx3pxgkrh2jl732jfl4
[ERROR] 11/07 12:35:24.756 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.EMPLOYMENT_AGREEMENTS
[ERROR] 11/07 12:35:24.756 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table employment_agreements drop constraint FK_2nb4ejem9tm9rsehgiqse2136
[ERROR] 11/07 12:35:24.756 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.EMPLOYMENT_AGREEMENTS
[ERROR] 11/07 12:35:24.756 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table entity_permissions drop constraint FK_fodpa8lk0cj8j7iti5y579t0e
[ERROR] 11/07 12:35:24.756 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.ENTITY_PERMISSIONS
[ERROR] 11/07 12:35:24.756 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table functional_permissions drop constraint FK_1uvpf2ntdb7ggm7rdufqi74ip
[ERROR] 11/07 12:35:24.756 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.FUNCTIONAL_PERMISSIONS
[ERROR] 11/07 12:35:24.757 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table leases drop constraint FK_rbrcreqo72levylifjegdh7uc
[ERROR] 11/07 12:35:24.757 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.LEASES
[ERROR] 11/07 12:35:24.757 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table military_units drop constraint FK_fpvpvwyxvwdgo1qv8uv1xya3l
[ERROR] 11/07 12:35:24.758 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: FK_FPVPVWYXVWDGO1QV8UV1XYA3L
[ERROR] 11/07 12:35:24.758 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table military_units drop constraint FK_b3waum79at016ohybvtl0qr3h
[ERROR] 11/07 12:35:24.758 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: FK_B3WAUM79AT016OHYBVTL0QR3H
[ERROR] 11/07 12:35:24.759 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table military_units drop constraint FK_8xw3oet54i0wvl1b1dahggsr7
[ERROR] 11/07 12:35:24.759 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: FK_8XW3OET54I0WVL1B1DAHGGSR7
[ERROR] 11/07 12:35:24.759 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table real_estate_certificates drop constraint FK_ej1nakot5gd66tla8p4iwuiv1
[ERROR] 11/07 12:35:24.759 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.REAL_ESTATE_CERTIFICATES
[ERROR] 11/07 12:35:24.759 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table real_estates drop constraint FK_hx09kskcc18j1h0jclkarcy1m
[ERROR] 11/07 12:35:24.759 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.REAL_ESTATES
[ERROR] 11/07 12:35:24.760 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table real_estates drop constraint FK_be0av6fyvxalmays42gwh7jg1
[ERROR] 11/07 12:35:24.760 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.REAL_ESTATES
[ERROR] 11/07 12:35:24.760 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table real_estates drop constraint FK_72656sg19n5e3tg9sf4el3jig
[ERROR] 11/07 12:35:24.760 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.REAL_ESTATES
[ERROR] 11/07 12:35:24.760 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table real_estates drop constraint FK_72iikufer9e21uooeyh453mlw
[ERROR] 11/07 12:35:24.760 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.REAL_ESTATES
[ERROR] 11/07 12:35:24.760 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table settlements drop constraint FK_sydkgi7sf0qie1fgycgp7brto
[ERROR] 11/07 12:35:24.760 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: FK_SYDKGI7SF0QIE1FGYCGP7BRTO
[ERROR] 11/07 12:35:24.761 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table soldier_relatives drop constraint FK_5m9k9rqs2jeysfquvomipmwbr
[ERROR] 11/07 12:35:24.761 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.SOLDIER_RELATIVES
[ERROR] 11/07 12:35:24.761 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table soldier_relatives drop constraint FK_afuyycpflx3s8brm8lrrb4v4a
[ERROR] 11/07 12:35:24.761 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.SOLDIER_RELATIVES
[ERROR] 11/07 12:35:24.761 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table soldiers drop constraint FK_r5orhdxs0m3nhyknb3fdhaj0o
[ERROR] 11/07 12:35:24.761 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.SOLDIERS
[ERROR] 11/07 12:35:24.762 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table soldiers drop constraint FK_rgprhoj8wd1i3a5pyotus79cn
[ERROR] 11/07 12:35:24.762 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.SOLDIERS
[ERROR] 11/07 12:35:24.762 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table user_roles drop constraint FK_5q4rc4fh1on6567qk69uesvyf
[ERROR] 11/07 12:35:24.762 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.USER_ROLES
[ERROR] 11/07 12:35:24.762 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table user_roles drop constraint FK_g1uebn6mqk9qiaw45vnacmyo2
[ERROR] 11/07 12:35:24.762 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.USER_ROLES
[ERROR] 11/07 12:35:24.763 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table users drop constraint FK_de8v8je7kx7dgt2dq5pmslf58
[ERROR] 11/07 12:35:24.763 org.hibernate.tool.hbm2ddl.SchemaExport - user lacks privilege or object not found: PUBLIC.USERS
[ERROR] 11/07 12:35:24.765 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: drop table military_units if exists
[ERROR] 11/07 12:35:24.765 org.hibernate.tool.hbm2ddl.SchemaExport - is referenced by FOREIGN KEY constraint: PUBLIC.FK_RXI1YMXKCSSCL9PQTP0ABVJ5T in statement [drop table military_units if exists]
[ERROR] 11/07 12:35:24.766 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: drop table roles if exists
[ERROR] 11/07 12:35:24.766 org.hibernate.tool.hbm2ddl.SchemaExport - is referenced by FOREIGN KEY constraint: PUBLIC.FK_SQ51IHFRAPWDR98UUFENHCOCG in statement [drop table roles if exists]
[ERROR] 11/07 12:35:24.767 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: drop table settlements if exists
[ERROR] 11/07 12:35:24.767 org.hibernate.tool.hbm2ddl.SchemaExport - is referenced by FOREIGN KEY constraint: PUBLIC.FK_HESRHT9IP5L1A9X9YPDM91EQL in statement [drop table settlements if exists]
[ERROR] 11/07 12:35:24.772 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: create table military_units (id bigint generated by default as identity (start with 1), name varchar(255) not null, number integer not null, military_district_id bigint not null, senior_military_unit_id bigint, settlement_id bigint, primary key (id))
[ERROR] 11/07 12:35:24.772 org.hibernate.tool.hbm2ddl.SchemaExport - object name already exists: MILITARY_UNITS in statement [create table military_units (id bigint generated by default as identity (start with 1), name varchar(255) not null, number integer not null, military_district_id bigint not null, senior_military_unit_id bigint, settlement_id bigint, primary key (id))]
[ERROR] 11/07 12:35:24.775 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: create table roles (id bigint generated by default as identity (start with 1), description varchar(255), name varchar(255) not null, subsystem integer not null, primary key (id))
[ERROR] 11/07 12:35:24.775 org.hibernate.tool.hbm2ddl.SchemaExport - object name already exists: ROLES in statement [create table roles (id bigint generated by default as identity (start with 1), description varchar(255), name varchar(255) not null, subsystem integer not null, primary key (id))]
[ERROR] 11/07 12:35:24.775 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: create table settlements (id bigint generated by default as identity (start with 1), name varchar(255) not null, federal_subject_id bigint, primary key (id))
[ERROR] 11/07 12:35:24.775 org.hibernate.tool.hbm2ddl.SchemaExport - object name already exists: SETTLEMENTS in statement [create table settlements (id bigint generated by default as identity (start with 1), name varchar(255) not null, federal_subject_id bigint, primary key (id))]
[ERROR] 11/07 12:35:24.780 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table military_units add constraint UK_e3b4dbjtru5qgassatdx8rvjt unique (name)
[ERROR] 11/07 12:35:24.781 org.hibernate.tool.hbm2ddl.SchemaExport - object name already exists: UK_E3B4DBJTRU5QGASSATDX8RVJT in statement [alter table military_units add constraint UK_e3b4dbjtru5qgassatdx8rvjt unique (name)]
[ERROR] 11/07 12:35:24.781 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table military_units add constraint UK_2b50ruxdp0ntggml8qaxj390y unique (number)
[ERROR] 11/07 12:35:24.781 org.hibernate.tool.hbm2ddl.SchemaExport - object name already exists: UK_2B50RUXDP0NTGGML8QAXJ390Y in statement [alter table military_units add constraint UK_2b50ruxdp0ntggml8qaxj390y unique (number)]
[ERROR] 11/07 12:35:24.784 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table roles add constraint UK_58pqn5cvy21odgyl7tnu80jq5 unique (name, subsystem)
[ERROR] 11/07 12:35:24.784 org.hibernate.tool.hbm2ddl.SchemaExport - object name already exists: UK_58PQN5CVY21ODGYL7TNU80JQ5 in statement [alter table roles add constraint UK_58pqn5cvy21odgyl7tnu80jq5 unique (name, subsystem)]
[ERROR] 11/07 12:35:24.785 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table roles add constraint UK_ofx66keruapi6vyqpv6f2or37 unique (name)
[ERROR] 11/07 12:35:24.785 org.hibernate.tool.hbm2ddl.SchemaExport - object name already exists: UK_OFX66KERUAPI6VYQPV6F2OR37 in statement [alter table roles add constraint UK_ofx66keruapi6vyqpv6f2or37 unique (name)]
[ERROR] 11/07 12:35:24.785 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table settlements add constraint UK_4sxgi75ipxcpbao8hq3l86joy unique (name)
[ERROR] 11/07 12:35:24.785 org.hibernate.tool.hbm2ddl.SchemaExport - object name already exists: UK_4SXGI75IPXCPBAO8HQ3L86JOY in statement [alter table settlements add constraint UK_4sxgi75ipxcpbao8hq3l86joy unique (name)]
[TRACE] 11/07 12:35:25.443 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: EmploymentAgreement, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.463 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: Document, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.470 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: MilitaryDistrict, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.479 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: SoldierRelative, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.486 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: Role, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.659 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: Settlement, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.667 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: Soldier, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.691 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: RealEstate, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.726 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: FederalSubject, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.735 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: MilitaryRank, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.746 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: RealEstateCertificate, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.754 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: Lease, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.764 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: User, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.775 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: EntityPermission, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:25.804 ltyRepositoryFactoryLoader$RealtyRepositoryFactory - Entity: MilitaryUnit, AuthenticatedUserDetails: ru.vniins.ais.realty.security.AuthenticatedUserDetailsImpl@7d401cdc
[TRACE] 11/07 12:35:28.414 r.v.a.r.shared.repository.RealtyRepositoryImpl - save: Bean EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_WRITE), entity=User, field=null)
[TRACE] 11/07 12:35:28.433 r.v.a.r.shared.repository.RealtyRepositoryImpl - save: Bean EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_WRITE), entity=EntityPermission, field=null)
[TRACE] 11/07 12:35:28.438 r.v.a.r.shared.repository.RealtyRepositoryImpl - save: Bean EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_WRITE), entity=Role, field=null)
[TRACE] 11/07 12:35:28.445 r.v.a.r.shared.repository.RealtyRepositoryImpl - save: Bean EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_ONLY), entity=FederalSubject, field=null)
[TRACE] 11/07 12:35:28.451 r.v.a.r.shared.repository.RealtyRepositoryImpl - save: Bean EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_ONLY), entity=MilitaryUnit, field=null)
[TRACE] 11/07 12:35:28.456 r.v.a.r.shared.repository.RealtyRepositoryImpl - save: Bean EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_ONLY), entity=MilitaryDistrict, field=null)
[TRACE] 11/07 12:35:28.461 r.v.a.r.shared.repository.RealtyRepositoryImpl - save: Bean EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_ONLY), entity=Settlement, field=null)
[TRACE] 11/07 12:35:28.466 r.v.a.r.shared.repository.RealtyRepositoryImpl - save: Bean EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_ONLY), entity=MilitaryRank, field=null)
[TRACE] 11/07 12:35:28.486 r.v.a.r.shared.repository.RealtyRepositoryImpl - save: Beans [EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_WRITE), entity=User, field=null), EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_ONLY), entity=MilitaryUnit, field=null), EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_ONLY), entity=MilitaryDistrict, field=null), EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_ONLY), entity=Settlement, field=null), EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_WRITE), entity=Role, field=null), EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_ONLY), entity=FederalSubject, field=null), EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_ONLY), entity=MilitaryRank, field=null), EntityPermission(super=Permission(role=Role(name=Администратор, subsystem=administration), accessType=READ_WRITE), entity=EntityPermission, field=null)]
[TRACE] 11/07 12:35:28.500 r.v.a.r.shared.repository.RealtyRepositoryImpl - save: Bean User(username=ab, roles=[Role(name=Администратор, subsystem=administration)], militaryUnit=null)
[ERROR] 11/07 12:35:28.668 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: drop table military_units if exists
[ERROR] 11/07 12:35:28.668 org.hibernate.tool.hbm2ddl.SchemaExport - is referenced by FOREIGN KEY constraint: PUBLIC.FK_RXI1YMXKCSSCL9PQTP0ABVJ5T in statement [drop table military_units if exists]
[ERROR] 11/07 12:35:28.669 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: drop table roles if exists
[ERROR] 11/07 12:35:28.669 org.hibernate.tool.hbm2ddl.SchemaExport - is referenced by FOREIGN KEY constraint: PUBLIC.FK_SQ51IHFRAPWDR98UUFENHCOCG in statement [drop table roles if exists]
[ERROR] 11/07 12:35:28.669 org.hibernate.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: drop table settlements if exists
[ERROR] 11/07 12:35:28.669 org.hibernate.tool.hbm2ddl.SchemaExport - is referenced by FOREIGN KEY constraint: PUBLIC.FK_HESRHT9IP5L1A9X9YPDM91EQL in statement [drop table settlements if exists]
[ERROR] 11/07 12:35:28.710 org.springframework.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceInitializer' defined in class path resource [ru/vniins/ais/realty/config/PersistenceConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement at line 22 of resource class path resource [hsqldb-data.sql]: INSERT INTO SETTLEMENTS (ID, FEDERAL_SUBJECT_ID, NAME) VALUES (1, 1, 'Тула'); nested exception is java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10131 table: SETTLEMENTS
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120) ~[spring-boot-1.1.1.RELEASE.jar:1.1.1.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:683) [spring-boot-1.1.1.RELEASE.jar:1.1.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) [spring-boot-1.1.1.RELEASE.jar:1.1.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:944) [spring-boot-1.1.1.RELEASE.jar:1.1.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:933) [spring-boot-1.1.1.RELEASE.jar:1.1.1.RELEASE]
at ru.vniins.ais.realty.RealtyApplication.main(RealtyApplication.java:16) [realty-backend/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_05]
at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0_05]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) [idea_rt.jar:na]
Caused by: org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement at line 22 of resource class path resource [hsqldb-data.sql]: INSERT INTO SETTLEMENTS (ID, FEDERAL_SUBJECT_ID, NAME) VALUES (1, 1, 'Тула'); nested exception is java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10131 table: SETTLEMENTS
at org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:474) ~[spring-jdbc-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate(ResourceDatabasePopulator.java:208) ~[spring-jdbc-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.jdbc.datasource.init.DatabasePopulatorUtils.execute(DatabasePopulatorUtils.java:49) ~[spring-jdbc-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.jdbc.datasource.init.DataSourceInitializer.execute(DataSourceInitializer.java:108) ~[spring-jdbc-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.jdbc.datasource.init.DataSourceInitializer.afterPropertiesSet(DataSourceInitializer.java:93) ~[spring-jdbc-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 20 common frames omitted
Caused by: java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10131 table: SETTLEMENTS
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) ~[hsqldb-2.3.2.jar:2.3.2]
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) ~[hsqldb-2.3.2.jar:2.3.2]
at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source) ~[hsqldb-2.3.2.jar:2.3.2]
at org.hsqldb.jdbc.JDBCStatement.execute(Unknown Source) ~[hsqldb-2.3.2.jar:2.3.2]
at com.jolbox.bonecp.StatementHandle.execute(StatementHandle.java:254) ~[bonecp-0.8.0.RELEASE.jar:na]
at org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:459) ~[spring-jdbc-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 26 common frames omitted