Advertisement
Guest User

Untitled

a guest
Aug 8th, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.21 KB | None | 0 0
  1. SLF4J: Class path contains multiple SLF4J bindings.
  2. SLF4J: Found binding in [jar:file:/C:/Users/Manoel/.m2/repository/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  3. SLF4J: Found binding in [jar:file:/C:/Users/Manoel/.m2/repository/org/slf4j/slf4j-simple/1.7.21/slf4j-simple-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  4. SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  5. SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
  6.  
  7. . ____ _ __ _ _
  8. /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
  9. ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  10. \\/ ___)| |_)| | | | | || (_| | ) ) ) )
  11. ' |____| .__|_| |_|_| |_\__, | / / / /
  12. =========|_|==============|___/=/_/_/_/
  13. :: Spring Boot :: (v1.3.6.RELEASE)
  14.  
  15. 2016-08-08 13:42:53.337 INFO 6572 --- [ restartedMain] com.algaworks.wine.WineApplication : Starting WineApplication on Manoel with PID 6572 (C:\CURSOS\spring-boot-template-projeto-master\target\classes started by Manoel in C:\CURSOS\spring-boot-template-projeto-master)
  16. 2016-08-08 13:42:53.346 INFO 6572 --- [ restartedMain] com.algaworks.wine.WineApplication : No active profile set, falling back to default profiles: default
  17. 2016-08-08 13:42:53.847 INFO 6572 --- [ restartedMain] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@e66d742: startup date [Mon Aug 08 13:42:53 GMT-03:00 2016]; root of context hierarchy
  18. 2016-08-08 13:42:58.029 INFO 6572 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$417efcb6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
  19. 2016-08-08 13:42:59.087 INFO 6572 --- [ restartedMain] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
  20. 2016-08-08 13:42:59.113 INFO 6572 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service Tomcat
  21. 2016-08-08 13:42:59.116 INFO 6572 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.0.36
  22. 2016-08-08 13:42:59.418 INFO 6572 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
  23. 2016-08-08 13:42:59.418 INFO 6572 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 5582 ms
  24. 2016-08-08 13:43:00.313 INFO 6572 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
  25. 2016-08-08 13:43:00.319 INFO 6572 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
  26. 2016-08-08 13:43:00.320 INFO 6572 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
  27. 2016-08-08 13:43:00.320 INFO 6572 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
  28. 2016-08-08 13:43:00.320 INFO 6572 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
  29. 2016-08-08 13:43:00.860 INFO 6572 --- [ restartedMain] o.f.core.internal.util.VersionPrinter : Flyway 3.2.1 by Boxfuse
  30. 2016-08-08 13:43:03.081 INFO 6572 --- [ restartedMain] o.f.c.i.dbsupport.DbSupportFactory : Database: jdbc:postgresql://localhost/wine (PostgreSQL 9.4)
  31. 2016-08-08 13:43:03.185 INFO 6572 --- [ restartedMain] o.f.core.internal.command.DbValidate : Validated 1 migration (execution time 00:00.038s)
  32. 2016-08-08 13:43:03.238 INFO 6572 --- [ restartedMain] o.f.core.internal.command.DbMigrate : Current version of schema "public": << Empty Schema >>
  33. 2016-08-08 13:43:03.239 INFO 6572 --- [ restartedMain] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version 01 - criar tabela vinho
  34. 2016-08-08 13:43:03.262 ERROR 6572 --- [ restartedMain] o.f.core.internal.command.DbMigrate : Migration of schema "public" to version 01 failed! Changes successfully rolled back.
  35. 2016-08-08 13:43:03.266 WARN 6572 --- [ restartedMain] ationConfigEmbeddedWebApplicationContext : 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.dbsupport.FlywaySqlScriptException:
  36. Migration V01__criar_tabela_vinho.sql failed
  37. --------------------------------------------
  38. SQL State : 42601
  39. Error Code : 0
  40. Message : ERROR: syntax error at or near "("
  41. Posição: 36
  42. Location : db/migration/V01__criar_tabela_vinho.sql (C:\CURSOS\spring-boot-template-projeto-master\target\classes\db\migration\V01__criar_tabela_vinho.sql)
  43. Line : 1
  44. Statement : CREATE TABLE vinho (
  45. codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT,
  46. nome VARCHAR(50) NOT NULL,
  47. tipo VARCHAR(50) NOT NULL,
  48. safra INT NOT NULL,
  49. volume INT NOT NULL,
  50. valor DECIMAL (10,2) NOT NULL
  51.  
  52. )ENGINE=InnoDB DEFAULT CHARSET=utf8
  53.  
  54. 2016-08-08 13:43:03.297 INFO 6572 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service Tomcat
  55. 2016-08-08 13:43:03.324 ERROR 6572 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed
  56.  
  57. 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.dbsupport.FlywaySqlScriptException:
  58. Migration V01__criar_tabela_vinho.sql failed
  59. --------------------------------------------
  60. SQL State : 42601
  61. Error Code : 0
  62. Message : ERROR: syntax error at or near "("
  63. Posição: 36
  64. Location : db/migration/V01__criar_tabela_vinho.sql (C:\CURSOS\spring-boot-template-projeto-master\target\classes\db\migration\V01__criar_tabela_vinho.sql)
  65. Line : 1
  66. Statement : CREATE TABLE vinho (
  67. codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT,
  68. nome VARCHAR(50) NOT NULL,
  69. tipo VARCHAR(50) NOT NULL,
  70. safra INT NOT NULL,
  71. volume INT NOT NULL,
  72. valor DECIMAL (10,2) NOT NULL
  73.  
  74. )ENGINE=InnoDB DEFAULT CHARSET=utf8
  75.  
  76. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  77. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  78. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  79. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  80. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  81. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  82. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  83. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:296) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  84. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  85. at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  86. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:829) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  87. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  88. at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  89. at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:760) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  90. at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:360) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  91. at org.springframework.boot.SpringApplication.run(SpringApplication.java:306) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  92. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  93. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  94. at com.algaworks.wine.WineApplication.main(WineApplication.java:10) [classes/:na]
  95. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
  96. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_51]
  97. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_51]
  98. at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_51]
  99. at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  100. Caused by: org.flywaydb.core.internal.dbsupport.FlywaySqlScriptException:
  101. Migration V01__criar_tabela_vinho.sql failed
  102. --------------------------------------------
  103. SQL State : 42601
  104. Error Code : 0
  105. Message : ERROR: syntax error at or near "("
  106. Posição: 36
  107. Location : db/migration/V01__criar_tabela_vinho.sql (C:\CURSOS\spring-boot-template-projeto-master\target\classes\db\migration\V01__criar_tabela_vinho.sql)
  108. Line : 1
  109. Statement : CREATE TABLE vinho (
  110. codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT,
  111. nome VARCHAR(50) NOT NULL,
  112. tipo VARCHAR(50) NOT NULL,
  113. safra INT NOT NULL,
  114. volume INT NOT NULL,
  115. valor DECIMAL (10,2) NOT NULL
  116.  
  117. )ENGINE=InnoDB DEFAULT CHARSET=utf8
  118.  
  119. at org.flywaydb.core.internal.dbsupport.SqlScript.execute(SqlScript.java:117) ~[flyway-core-3.2.1.jar:na]
  120. at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.execute(SqlMigrationExecutor.java:71) ~[flyway-core-3.2.1.jar:na]
  121. at org.flywaydb.core.internal.command.DbMigrate$5.doInTransaction(DbMigrate.java:284) ~[flyway-core-3.2.1.jar:na]
  122. at org.flywaydb.core.internal.command.DbMigrate$5.doInTransaction(DbMigrate.java:282) ~[flyway-core-3.2.1.jar:na]
  123. at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) ~[flyway-core-3.2.1.jar:na]
  124. at org.flywaydb.core.internal.command.DbMigrate.applyMigration(DbMigrate.java:282) ~[flyway-core-3.2.1.jar:na]
  125. at org.flywaydb.core.internal.command.DbMigrate.access$800(DbMigrate.java:46) ~[flyway-core-3.2.1.jar:na]
  126. at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:207) ~[flyway-core-3.2.1.jar:na]
  127. at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:156) ~[flyway-core-3.2.1.jar:na]
  128. at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) ~[flyway-core-3.2.1.jar:na]
  129. at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:156) ~[flyway-core-3.2.1.jar:na]
  130. at org.flywaydb.core.Flyway$1.execute(Flyway.java:1059) ~[flyway-core-3.2.1.jar:na]
  131. at org.flywaydb.core.Flyway$1.execute(Flyway.java:1006) ~[flyway-core-3.2.1.jar:na]
  132. at org.flywaydb.core.Flyway.execute(Flyway.java:1418) ~[flyway-core-3.2.1.jar:na]
  133. at org.flywaydb.core.Flyway.migrate(Flyway.java:1006) ~[flyway-core-3.2.1.jar:na]
  134. at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66) ~[spring-boot-autoconfigure-1.3.6.RELEASE.jar:1.3.6.RELEASE]
  135. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  136. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
  137. ... 23 common frames omitted
  138. Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near "("
  139. Posição: 36
  140. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270) ~[postgresql-9.4-1200-jdbc41.jar:9.4]
  141. at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998) ~[postgresql-9.4-1200-jdbc41.jar:9.4]
  142. at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255) ~[postgresql-9.4-1200-jdbc41.jar:9.4]
  143. at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570) ~[postgresql-9.4-1200-jdbc41.jar:9.4]
  144. at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:406) ~[postgresql-9.4-1200-jdbc41.jar:9.4]
  145. at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:398) ~[postgresql-9.4-1200-jdbc41.jar:9.4]
  146. at org.flywaydb.core.internal.dbsupport.JdbcTemplate.executeStatement(JdbcTemplate.java:238) ~[flyway-core-3.2.1.jar:na]
  147. at org.flywaydb.core.internal.dbsupport.SqlScript.execute(SqlScript.java:114) ~[flyway-core-3.2.1.jar:na]
  148. ... 40 common frames omitted
  149.  
  150. 2016-08-08 13:43:03.329 INFO 6572 --- [ restartedMain] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/C:/CURSOS/spring-boot-template-projeto-master/target/classes/]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement