Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2018-02-20 20:03:46.401 ERROR 13048 --- [ main] o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@c68b8f] to prepare test instance [RestFromFileTest@13fbad2]
- java.lang.IllegalStateException: Failed to load ApplicationContext
- at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)
- at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
- at org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener.prepareTestInstance(SpringBootDependencyInjectionTestExecutionListener.java:47)
- at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230)
- at RestFromFileTest.setUpContext(RestFromFileTest.java:77)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
- at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
- at org.junit.runners.Suite.runChild(Suite.java:128)
- at org.junit.runners.Suite.runChild(Suite.java:27)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
- at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
- at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
- at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
- at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
- at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
- Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/biztogo/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.MigrationFailedException: Migration failed for change set biztogo_alpha::init_registration::Aleksey:
- Reason: liquibase.exception.DatabaseException: Неизвестный тип данных: "TIMESTAMPTZ"
- Unknown data type: "TIMESTAMPTZ"; SQL statement:
- CREATE TABLE biz_user_profiles (
- id BIGSERIAL PRIMARY KEY,
- version BIGINT DEFAULT 0,
- created_date TIMESTAMPTZ DEFAULT now(),
- last_modified_date TIMESTAMPTZ DEFAULT now(),
- created_by BIGINT,
- last_modified_by BIGINT,
- first_name VARCHAR(50),
- last_name VARCHAR(50),
- birthday TIMESTAMP,
- lang_key VARCHAR(5),
- image_url VARCHAR,
- phone VARCHAR,
- phone_confirm TIMESTAMPTZ DEFAULT NULL,
- country_id BIGINT,
- skype VARCHAR(255),
- icq VARCHAR(255),
- site VARCHAR(255),
- sex_id BIGINT,
- description TEXT,
- avatar_id BIGINT
- ) [50004-193] [Failed SQL: CREATE TABLE biz_user_profiles (
- id BIGSERIAL PRIMARY KEY,
- version BIGINT DEFAULT 0,
- created_date TIMESTAMPTZ DEFAULT now(),
- last_modified_date TIMESTAMPTZ DEFAULT now(),
- created_by BIGINT,
- last_modified_by BIGINT,
- first_name VARCHAR(50),
- last_name VARCHAR(50),
- birthday TIMESTAMP,
- lang_key VARCHAR(5),
- image_url VARCHAR,
- phone VARCHAR,
- phone_confirm TIMESTAMPTZ DEFAULT NULL,
- country_id BIGINT,
- skype VARCHAR(255),
- icq VARCHAR(255),
- site VARCHAR(255),
- sex_id BIGINT,
- description TEXT,
- avatar_id BIGINT
- )]
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:296)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:856)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
- at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:762)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:372)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
- at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:111)
- at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
- at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
- ... 34 common frames omitted
- Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set biztogo_alpha::init_registration::Aleksey:
- Reason: liquibase.exception.DatabaseException: Неизвестный тип данных: "TIMESTAMPTZ"
- Unknown data type: "TIMESTAMPTZ"; SQL statement:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement