Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.67 KB | None | 0 0
  1. 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]
  2.  
  3. java.lang.IllegalStateException: Failed to load ApplicationContext
  4. at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)
  5. at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
  6. at org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener.prepareTestInstance(SpringBootDependencyInjectionTestExecutionListener.java:47)
  7. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230)
  8. at RestFromFileTest.setUpContext(RestFromFileTest.java:77)
  9. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  10. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  11. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  12. at java.lang.reflect.Method.invoke(Method.java:498)
  13. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
  14. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  15. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
  16. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
  17. at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
  18. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
  19. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
  20. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
  21. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
  22. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
  23. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
  24. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
  25. at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
  26. at org.junit.runners.Suite.runChild(Suite.java:128)
  27. at org.junit.runners.Suite.runChild(Suite.java:27)
  28. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
  29. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
  30. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
  31. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
  32. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
  33. at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
  34. at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
  35. at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
  36. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  37. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  38. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  39. 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:
  40. Reason: liquibase.exception.DatabaseException: Неизвестный тип данных: "TIMESTAMPTZ"
  41. Unknown data type: "TIMESTAMPTZ"; SQL statement:
  42. CREATE TABLE biz_user_profiles (
  43. id BIGSERIAL PRIMARY KEY,
  44. version BIGINT DEFAULT 0,
  45. created_date TIMESTAMPTZ DEFAULT now(),
  46. last_modified_date TIMESTAMPTZ DEFAULT now(),
  47. created_by BIGINT,
  48. last_modified_by BIGINT,
  49.  
  50. first_name VARCHAR(50),
  51. last_name VARCHAR(50),
  52. birthday TIMESTAMP,
  53. lang_key VARCHAR(5),
  54. image_url VARCHAR,
  55. phone VARCHAR,
  56. phone_confirm TIMESTAMPTZ DEFAULT NULL,
  57. country_id BIGINT,
  58. skype VARCHAR(255),
  59. icq VARCHAR(255),
  60. site VARCHAR(255),
  61. sex_id BIGINT,
  62. description TEXT,
  63. avatar_id BIGINT
  64. ) [50004-193] [Failed SQL: CREATE TABLE biz_user_profiles (
  65. id BIGSERIAL PRIMARY KEY,
  66. version BIGINT DEFAULT 0,
  67. created_date TIMESTAMPTZ DEFAULT now(),
  68. last_modified_date TIMESTAMPTZ DEFAULT now(),
  69. created_by BIGINT,
  70. last_modified_by BIGINT,
  71.  
  72. first_name VARCHAR(50),
  73. last_name VARCHAR(50),
  74. birthday TIMESTAMP,
  75. lang_key VARCHAR(5),
  76. image_url VARCHAR,
  77. phone VARCHAR,
  78. phone_confirm TIMESTAMPTZ DEFAULT NULL,
  79. country_id BIGINT,
  80. skype VARCHAR(255),
  81. icq VARCHAR(255),
  82. site VARCHAR(255),
  83. sex_id BIGINT,
  84. description TEXT,
  85. avatar_id BIGINT
  86. )]
  87. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
  88. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
  89. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
  90. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  91. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  92. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  93. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
  94. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:296)
  95. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
  96. at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081)
  97. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:856)
  98. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
  99. at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
  100. at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:762)
  101. at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:372)
  102. at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
  103. at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:111)
  104. at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
  105. at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
  106. ... 34 common frames omitted
  107. Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set biztogo_alpha::init_registration::Aleksey:
  108. Reason: liquibase.exception.DatabaseException: Неизвестный тип данных: "TIMESTAMPTZ"
  109. Unknown data type: "TIMESTAMPTZ"; SQL statement:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement