Advertisement
fedorm

Untitled

Oct 18th, 2019
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 48.83 KB | None | 0 0
  1. ework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  2.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  3.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  4.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  5.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  6.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  7.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  8.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  9.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  10.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  11.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  12.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  13.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  14.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  15.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  16.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  17.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  18.     at java.lang.reflect.Method.invoke(Method.java:498)
  19.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  20.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  21.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  22.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  23. Caused by: java.io.EOFException: null
  24.     at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
  25.     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
  26.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
  27.     ... 45 common frames omitted
  28. 18.10 11:30:19.231 WARN [AbstractApplicationContext:558] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
  29. Unable to obtain database connection
  30. ------------------------------------
  31. SQL State  : 08001
  32. Error Code : 0
  33. Message    : The connection attempt failed.
  34.  
  35. 18.10 11:30:19.308 ERROR [SpringApplication:842] - Application run failed
  36. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
  37. Unable to obtain database connection
  38. ------------------------------------
  39. SQL State  : 08001
  40. Error Code : 0
  41. Message    : The connection attempt failed.
  42.  
  43.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706)
  44.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  45.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  46.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  47.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  48.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  49.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  50.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  51.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  52.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  53.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  54.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  55.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  56.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  57.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  58.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  59.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  60.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  61.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  62.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  63.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  64.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  65.     at java.lang.reflect.Method.invoke(Method.java:498)
  66.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  67.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  68.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  69.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  70. Caused by: org.flywaydb.core.internal.exception.FlywaySqlException:
  71. Unable to obtain database connection
  72. ------------------------------------
  73. SQL State  : 08001
  74. Error Code : 0
  75. Message    : The connection attempt failed.
  76.  
  77.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:57)
  78.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  79.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  80.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  81.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  82.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  83.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  84.     ... 26 common frames omitted
  85. Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
  86.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
  87.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  88.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  89.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  90.     at org.postgresql.Driver.connect(Driver.java:254)
  91.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  92.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  93.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  94.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  95.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  96.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  97.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  98.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  99.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  100.     ... 32 common frames omitted
  101. Caused by: java.io.EOFException: null
  102.     at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
  103.     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
  104.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
  105.     ... 45 common frames omitted
  106. Listening for transport dt_socket at address: 8787
  107.  
  108.   .   ____          _            __ _ _
  109.  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
  110. ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  111.  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  112.   '  |____| .__|_| |_|_| |_\__, | / / / /
  113.  =========|_|==============|___/=/_/_/_/
  114.  :: Spring Boot ::        (v2.0.2.RELEASE)
  115.  
  116. 18.10 11:30:51.596 WARN [URLConfigurationSource:121] - No URLs will be polled as dynamic configuration sources.
  117. 18.10 11:30:53.690 WARN [ConnectionFactoryImpl:317] - IOException occurred while connecting to pg-balancer.service.consul:6000
  118. java.io.EOFException: null
  119.     at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
  120.     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
  121.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
  122.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  123.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  124.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  125.     at org.postgresql.Driver.connect(Driver.java:254)
  126.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  127.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  128.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  129.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  130.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  131.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  132.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  133.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  134.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  135.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  136.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  137.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  138.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  139.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  140.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  141.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  142.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  143.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  144.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  145.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  146.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  147.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  148.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  149.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  150.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  151.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  152.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  153.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  154.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  155.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  156.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  157.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  158.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  159.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  160.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  161.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  162.     at java.lang.reflect.Method.invoke(Method.java:498)
  163.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  164.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  165.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  166.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  167. 18.10 11:30:53.697 ERROR [Driver:263] - Connection error:
  168. org.postgresql.util.PSQLException: The connection attempt failed.
  169.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
  170.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  171.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  172.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  173.     at org.postgresql.Driver.connect(Driver.java:254)
  174.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  175.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  176.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  177.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  178.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  179.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  180.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  181.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  182.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  183.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  184.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  185.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  186.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  187.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  188.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  189.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  190.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  191.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  192.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  193.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  194.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  195.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  196.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  197.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  198.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  199.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  200.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  201.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  202.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  203.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  204.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  205.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  206.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  207.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  208.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  209.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  210.     at java.lang.reflect.Method.invoke(Method.java:498)
  211.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  212.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  213.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  214.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  215. Caused by: java.io.EOFException: null
  216.     at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
  217.     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
  218.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
  219.     ... 45 common frames omitted
  220. 18.10 11:30:54.698 ERROR [HikariPool:567] - HikariPool-1 - Exception during pool initialization.
  221. org.postgresql.util.PSQLException: The connection attempt failed.
  222.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
  223.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  224.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  225.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  226.     at org.postgresql.Driver.connect(Driver.java:254)
  227.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  228.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  229.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  230.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  231.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  232.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  233.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  234.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  235.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  236.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  237.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  238.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  239.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  240.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  241.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  242.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  243.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  244.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  245.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  246.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  247.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  248.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  249.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  250.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  251.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  252.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  253.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  254.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  255.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  256.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  257.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  258.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  259.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  260.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  261.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  262.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  263.     at java.lang.reflect.Method.invoke(Method.java:498)
  264.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  265.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  266.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  267.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  268. Caused by: java.io.EOFException: null
  269.     at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
  270.     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
  271.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
  272.     ... 45 common frames omitted
  273. 18.10 11:30:54.706 WARN [AbstractApplicationContext:558] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
  274. Unable to obtain database connection
  275. ------------------------------------
  276. SQL State  : 08001
  277. Error Code : 0
  278. Message    : The connection attempt failed.
  279.  
  280. 18.10 11:30:54.765 ERROR [SpringApplication:842] - Application run failed
  281. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
  282. Unable to obtain database connection
  283. ------------------------------------
  284. SQL State  : 08001
  285. Error Code : 0
  286. Message    : The connection attempt failed.
  287.  
  288.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706)
  289.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  290.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  291.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  292.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  293.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  294.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  295.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  296.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  297.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  298.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  299.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  300.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  301.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  302.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  303.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  304.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  305.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  306.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  307.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  308.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  309.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  310.     at java.lang.reflect.Method.invoke(Method.java:498)
  311.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  312.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  313.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  314.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  315. Caused by: org.flywaydb.core.internal.exception.FlywaySqlException:
  316. Unable to obtain database connection
  317. ------------------------------------
  318. SQL State  : 08001
  319. Error Code : 0
  320. Message    : The connection attempt failed.
  321.  
  322.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:57)
  323.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  324.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  325.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  326.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  327.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  328.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  329.     ... 26 common frames omitted
  330. Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
  331.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
  332.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  333.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  334.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  335.     at org.postgresql.Driver.connect(Driver.java:254)
  336.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  337.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  338.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  339.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  340.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  341.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  342.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  343.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  344.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  345.     ... 32 common frames omitted
  346. Caused by: java.io.EOFException: null
  347.     at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
  348.     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
  349.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
  350.     ... 45 common frames omitted
  351. Listening for transport dt_socket at address: 8787
  352.  
  353.   .   ____          _            __ _ _
  354.  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
  355. ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  356.  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  357.   '  |____| .__|_| |_|_| |_\__, | / / / /
  358.  =========|_|==============|___/=/_/_/_/
  359.  :: Spring Boot ::        (v2.0.2.RELEASE)
  360.  
  361. 18.10 11:31:29.071 WARN [URLConfigurationSource:121] - No URLs will be polled as dynamic configuration sources.
  362. 18.10 11:31:31.139 WARN [ConnectionFactoryImpl:317] - IOException occurred while connecting to pg-balancer.service.consul:6000
  363. java.io.EOFException: null
  364.     at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
  365.     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
  366.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
  367.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  368.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  369.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  370.     at org.postgresql.Driver.connect(Driver.java:254)
  371.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  372.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  373.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  374.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  375.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  376.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  377.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  378.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  379.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  380.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  381.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  382.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  383.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  384.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  385.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  386.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  387.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  388.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  389.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  390.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  391.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  392.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  393.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  394.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  395.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  396.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  397.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  398.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  399.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  400.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  401.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  402.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  403.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  404.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  405.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  406.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  407.     at java.lang.reflect.Method.invoke(Method.java:498)
  408.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  409.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  410.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  411.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  412. 18.10 11:31:31.148 ERROR [Driver:263] - Connection error:
  413. org.postgresql.util.PSQLException: The connection attempt failed.
  414.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
  415.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  416.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  417.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  418.     at org.postgresql.Driver.connect(Driver.java:254)
  419.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  420.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  421.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  422.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  423.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  424.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  425.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  426.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  427.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  428.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  429.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  430.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  431.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  432.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  433.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  434.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  435.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  436.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  437.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  438.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  439.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  440.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  441.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  442.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  443.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  444.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  445.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  446.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  447.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  448.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  449.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  450.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  451.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  452.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  453.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  454.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  455.     at java.lang.reflect.Method.invoke(Method.java:498)
  456.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  457.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  458.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  459.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  460. Caused by: java.io.EOFException: null
  461.     at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
  462.     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
  463.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
  464.     ... 45 common frames omitted
  465. 18.10 11:31:32.150 ERROR [HikariPool:567] - HikariPool-1 - Exception during pool initialization.
  466. org.postgresql.util.PSQLException: The connection attempt failed.
  467.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
  468.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  469.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  470.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  471.     at org.postgresql.Driver.connect(Driver.java:254)
  472.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  473.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  474.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  475.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  476.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  477.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  478.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  479.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  480.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  481.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  482.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  483.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  484.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  485.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  486.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  487.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  488.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  489.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  490.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  491.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  492.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  493.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  494.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  495.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  496.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  497.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  498.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  499.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  500.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  501.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  502.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  503.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  504.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  505.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  506.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  507.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  508.     at java.lang.reflect.Method.invoke(Method.java:498)
  509.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  510.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  511.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  512.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  513. Caused by: java.io.EOFException: null
  514.     at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
  515.     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
  516.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
  517.     ... 45 common frames omitted
  518. 18.10 11:31:32.158 WARN [AbstractApplicationContext:558] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
  519. Unable to obtain database connection
  520. ------------------------------------
  521. SQL State  : 08001
  522. Error Code : 0
  523. Message    : The connection attempt failed.
  524.  
  525. 18.10 11:31:32.207 ERROR [SpringApplication:842] - Application run failed
  526. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
  527. Unable to obtain database connection
  528. ------------------------------------
  529. SQL State  : 08001
  530. Error Code : 0
  531. Message    : The connection attempt failed.
  532.  
  533.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706)
  534.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  535.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  536.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  537.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  538.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  539.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  540.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  541.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  542.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  543.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  544.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  545.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  546.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  547.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  548.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  549.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  550.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  551.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  552.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  553.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  554.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  555.     at java.lang.reflect.Method.invoke(Method.java:498)
  556.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  557.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  558.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  559.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  560. Caused by: org.flywaydb.core.internal.exception.FlywaySqlException:
  561. Unable to obtain database connection
  562. ------------------------------------
  563. SQL State  : 08001
  564. Error Code : 0
  565. Message    : The connection attempt failed.
  566.  
  567.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:57)
  568.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  569.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  570.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  571.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  572.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  573.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  574.     ... 26 common frames omitted
  575. Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
  576.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
  577.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  578.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  579.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  580.     at org.postgresql.Driver.connect(Driver.java:254)
  581.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  582.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  583.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  584.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  585.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  586.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  587.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  588.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  589.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  590.     ... 32 common frames omitted
  591. Caused by: java.io.EOFException: null
  592.     at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
  593.     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
  594.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
  595.     ... 45 common frames omitte
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement