Advertisement
aironman

gcp

Jul 9th, 2019
153
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mvn spring-boot:run
  2. [INFO] Scanning for projects...
  3. [WARNING]
  4. [WARNING] Some problems were encountered while building the effective model for org.springframework.cloud:spring-cloud-gcp-vision-api-sample:jar:1.2.0.BUILD-SNAPSHOT
  5. [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. @ line 34, column 12
  6. [WARNING]
  7. [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  8. [WARNING]
  9. [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  10. [WARNING]
  11. [INFO]
  12. [INFO] ----< org.springframework.cloud:spring-cloud-gcp-vision-api-sample >----
  13. [INFO] Building Spring Cloud GCP Vision API Sample 1.2.0.BUILD-SNAPSHOT
  14. [INFO] --------------------------------[ jar ]---------------------------------
  15. [INFO]
  16. [INFO] >>> spring-boot-maven-plugin:2.2.0.M4:run (default-cli) > test-compile @ spring-cloud-gcp-vision-api-sample >>>
  17. [INFO]
  18. [INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-validation) @ spring-cloud-gcp-vision-api-sample ---
  19. [INFO] Comenzando auditoría...
  20. Auditoría concluida.
  21. [INFO]
  22. [INFO] --- maven-checkstyle-plugin:3.0.0:check (no-http-checkstyle-validation) @ spring-cloud-gcp-vision-api-sample ---
  23. [INFO]
  24. [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ spring-cloud-gcp-vision-api-sample ---
  25. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  26. [INFO] Copying 1 resource
  27. [INFO] Copying 5 resources
  28. [INFO]
  29. [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ spring-cloud-gcp-vision-api-sample ---
  30. [INFO] Nothing to compile - all classes are up to date
  31. [INFO]
  32. [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ spring-cloud-gcp-vision-api-sample ---
  33. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  34. [INFO] skip non existing resourceDirectory /Users/aironman/spring-cloud/spring-cloud-gcp/spring-cloud-gcp-samples/spring-cloud-gcp-vision-api-sample/src/test/resources
  35. [INFO]
  36. [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ spring-cloud-gcp-vision-api-sample ---
  37. [INFO] Nothing to compile - all classes are up to date
  38. [INFO]
  39. [INFO] <<< spring-boot-maven-plugin:2.2.0.M4:run (default-cli) < test-compile @ spring-cloud-gcp-vision-api-sample <<<
  40. [INFO]
  41. [INFO]
  42. [INFO] --- spring-boot-maven-plugin:2.2.0.M4:run (default-cli) @ spring-cloud-gcp-vision-api-sample ---
  43. [INFO] Attaching agents: []
  44.  
  45. . ____ _ __ _ _
  46. /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
  47. ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  48. \\/ ___)| |_)| | | | | || (_| | ) ) ) )
  49. ' |____| .__|_| |_|_| |_\__, | / / / /
  50. =========|_|==============|___/=/_/_/_/
  51. :: Spring Boot :: (v2.2.0.M4)
  52.  
  53. 2019-07-09 13:21:55.822 INFO 68886 --- [ main] com.example.Application : Starting Application on MacBook-Pro-Retina-de-Alonso.local with PID 68886 (/Users/aironman/spring-cloud/spring-cloud-gcp/spring-cloud-gcp-samples/spring-cloud-gcp-vision-api-sample/target/classes started by aironman in /Users/aironman/spring-cloud/spring-cloud-gcp/spring-cloud-gcp-samples/spring-cloud-gcp-vision-api-sample)
  54. 2019-07-09 13:21:55.825 INFO 68886 --- [ main] com.example.Application : No active profile set, falling back to default profiles: default
  55. 2019-07-09 13:21:56.245 ERROR 68886 --- [ main] o.s.boot.SpringApplication : Application run failed
  56.  
  57. java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.gcp.autoconfigure.vision.CloudVisionAutoConfiguration.cloudVisionTemplate
  58. at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:59) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  59. at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  60. at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:184) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  61. at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:144) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  62. at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:120) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  63. at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:337) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  64. at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:242) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  65. at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  66. at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  67. at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  68. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  69. at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  70. at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:748) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  71. at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  72. at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  73. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1227) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  74. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1216) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  75. at com.example.Application.main(Application.java:31) ~[classes/:na]
  76. Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.gcp.autoconfigure.vision.CloudVisionAutoConfiguration] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29]
  77. at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:476) ~[spring-core-5.2.0.M3.jar:5.2.0.M3]
  78. at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:354) ~[spring-core-5.2.0.M3.jar:5.2.0.M3]
  79. at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:410) ~[spring-core-5.2.0.M3.jar:5.2.0.M3]
  80. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.lambda$getTypeForFactoryMethod$2(AbstractAutowireCapableBeanFactory.java:742) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  81. at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) ~[na:na]
  82. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:741) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  83. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:680) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  84. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:648) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  85. at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1518) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  86. at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1023) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  87. at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:191) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  88. at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:158) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  89. at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanType(BeanTypeRegistry.java:151) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  90. at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.updateTypesIfNecessary(BeanTypeRegistry.java:139) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  91. at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133) ~[na:na]
  92. at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.updateTypesIfNecessary(BeanTypeRegistry.java:134) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  93. at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.getNamesForType(BeanTypeRegistry.java:97) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  94. at org.springframework.boot.autoconfigure.condition.OnBeanCondition.collectBeanNamesForType(OnBeanCondition.java:268) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  95. at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:261) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  96. at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:250) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  97. at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchingBeans(OnBeanCondition.java:170) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  98. at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:145) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  99. at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:46) ~[spring-boot-autoconfigure-2.2.0.M4.jar:2.2.0.M4]
  100. ... 17 common frames omitted
  101. Caused by: java.lang.NoClassDefFoundError: com/google/cloud/storage/Storage
  102. at java.base/java.lang.Class.getDeclaredMethods0(Native Method) ~[na:na]
  103. at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3167) ~[na:na]
  104. at java.base/java.lang.Class.getDeclaredMethods(Class.java:2310) ~[na:na]
  105. at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:458) ~[spring-core-5.2.0.M3.jar:5.2.0.M3]
  106. ... 39 common frames omitted
  107. Caused by: java.lang.ClassNotFoundException: com.google.cloud.storage.Storage
  108. at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) ~[na:na]
  109. at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
  110. at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na]
  111. ... 43 common frames omitted
  112.  
  113. 2019-07-09 13:21:56.254 WARN 68886 --- [ main] o.s.boot.SpringApplication : Unable to close ApplicationContext
  114.  
  115. java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.gcp.autoconfigure.vision.CloudVisionAutoConfiguration] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29]
  116. at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:476) ~[spring-core-5.2.0.M3.jar:5.2.0.M3]
  117. at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:354) ~[spring-core-5.2.0.M3.jar:5.2.0.M3]
  118. at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:410) ~[spring-core-5.2.0.M3.jar:5.2.0.M3]
  119. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.lambda$getTypeForFactoryMethod$2(AbstractAutowireCapableBeanFactory.java:742) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  120. at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) ~[na:na]
  121. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:741) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  122. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:680) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  123. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:648) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  124. at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1518) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  125. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:513) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  126. at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:483) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  127. at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:604) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  128. at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:596) ~[spring-beans-5.2.0.M3.jar:5.2.0.M3]
  129. at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1226) ~[spring-context-5.2.0.M3.jar:5.2.0.M3]
  130. at org.springframework.boot.SpringApplication.getExitCodeFromMappedException(SpringApplication.java:870) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  131. at org.springframework.boot.SpringApplication.getExitCodeFromException(SpringApplication.java:858) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  132. at org.springframework.boot.SpringApplication.handleExitCode(SpringApplication.java:845) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  133. at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:796) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  134. at org.springframework.boot.SpringApplication.run(SpringApplication.java:324) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  135. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1227) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  136. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1216) ~[spring-boot-2.2.0.M4.jar:2.2.0.M4]
  137. at com.example.Application.main(Application.java:31) ~[classes/:na]
  138. Caused by: java.lang.NoClassDefFoundError: com/google/cloud/storage/Storage
  139. at java.base/java.lang.Class.getDeclaredMethods0(Native Method) ~[na:na]
  140. at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3167) ~[na:na]
  141. at java.base/java.lang.Class.getDeclaredMethods(Class.java:2310) ~[na:na]
  142. at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:458) ~[spring-core-5.2.0.M3.jar:5.2.0.M3]
  143. ... 21 common frames omitted
  144. Caused by: java.lang.ClassNotFoundException: com.google.cloud.storage.Storage
  145. at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) ~[na:na]
  146. at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
  147. at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na]
  148. ... 25 common frames omitted
  149.  
  150. [INFO] ------------------------------------------------------------------------
  151. [INFO] BUILD FAILURE
  152. [INFO] ------------------------------------------------------------------------
  153. [INFO] Total time: 4.853 s
  154. [INFO] Finished at: 2019-07-09T13:21:56+02:00
  155. [INFO] ------------------------------------------------------------------------
  156. [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.0.M4:run (default-cli) on project spring-cloud-gcp-vision-api-sample: Application finished with exit code: 1 -> [Help 1]
  157. [ERROR]
  158. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  159. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  160. [ERROR]
  161. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  162. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  163. aironman@MacBook-Pro-Retina-de-Alonso ~/s/s/s/spring-cloud-gcp-vision-api-sample> java --version
  164. openjdk 11.0.2 2019-01-15
  165. OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
  166. OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
  167. aironman@MacBook-Pro-Retina-de-Alonso ~/s/s/s/spring-cloud-gcp-vision-api-sample> mvn --version
  168. Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00)
  169. Maven home: /usr/local/Cellar/maven/3.6.1/libexec
  170. Java version: 11.0.2, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home
  171. Default locale: es_ES, platform encoding: UTF-8
  172. OS name: "mac os x", version: "10.14.5", arch: "x86_64", family: "mac"
  173. aironman@MacBook-Pro-Retina-de-Alonso ~/s/s/s/spring-cloud-gcp-vision-api-sample>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement