Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: fuse-7.4-GA
    • Fix Version/s: fuse-7.4-GA
    • Component/s: Examples, Spring Boot
    • Labels:
      None
    • Sprint:
      Fuse 7.4 Sprint 48 - Blockers

      Description

      https://github.com/fabric8-quickstarts/spring-boot-camel-config/tree/spring-boot-camel-config-1.0.fuse-sb2-740002

      mvn spring-boot:run

      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ----------< io.fabric8.quickstarts:spring-boot-camel-config >-----------
      [INFO] Building Fabric8 :: Quickstarts :: Spring Boot :: Camel Config 1.0.fuse-sb2-740002
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO] 
      [INFO] >>> spring-boot-maven-plugin:7.4.0.fuse-sb2-740002:run (default-cli) > test-compile @ spring-boot-camel-config >>>
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring-boot-camel-config ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 4 resources
      [INFO] 
      [INFO] --- fabric8-maven-plugin:7.4.0.fuse-sb2-740002:resource (default) @ spring-boot-camel-config ---
      [INFO] F8: Using docker image name of namespace: llowinge
      [INFO] F8: Running generator spring-boot
      [INFO] F8: spring-boot: Using ImageStreamTag 'fuse7-java-openshift:1.4' from namespace 'openshift' as builder image
      [INFO] F8: using resource templates from /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/src/main/fabric8
      [INFO] F8: fmp-service: Adding a default service 'spring-boot-camel-config' with ports [8080]
      [INFO] F8: f8-healthcheck-spring-boot: Adding readiness probe on port 8080, path='/actuator/health', scheme='HTTP', with initial delay 10 seconds
      [INFO] F8: f8-healthcheck-spring-boot: Adding liveness probe on port 8080, path='/actuator/health', scheme='HTTP', with initial delay 180 seconds
      [INFO] F8: fmp-revision-history: Adding revision history limit to 2
      [INFO] F8: fmp-revision-history: Adding revision history limit to 2
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/target/classes/META-INF/fabric8/kubernetes/qs-camel-config-serviceaccount.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/target/classes/META-INF/fabric8/kubernetes/qs-camel-config-rolebinding.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/target/classes/META-INF/fabric8/kubernetes/spring-boot-camel-config-service.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/target/classes/META-INF/fabric8/kubernetes/spring-boot-camel-config-deployment.yml resource
      [INFO] F8: using resource templates from /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/src/main/fabric8
      [INFO] F8: fmp-service: Adding a default service 'spring-boot-camel-config' with ports [8080]
      [INFO] F8: f8-healthcheck-spring-boot: Adding readiness probe on port 8080, path='/actuator/health', scheme='HTTP', with initial delay 10 seconds
      [INFO] F8: f8-healthcheck-spring-boot: Adding liveness probe on port 8080, path='/actuator/health', scheme='HTTP', with initial delay 180 seconds
      [INFO] F8: fmp-revision-history: Adding revision history limit to 2
      [INFO] F8: fmp-revision-history: Adding revision history limit to 2
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/target/classes/META-INF/fabric8/openshift/spring-boot-camel-config-route.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/target/classes/META-INF/fabric8/openshift/qs-camel-config-serviceaccount.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/target/classes/META-INF/fabric8/openshift/spring-boot-camel-config-deploymentconfig.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/target/classes/META-INF/fabric8/openshift/qs-camel-config-rolebinding.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/fabric8-quickstarts/spring-boot-camel-config/target/classes/META-INF/fabric8/openshift/spring-boot-camel-config-service.yml resource
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ spring-boot-camel-config ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spring-boot-camel-config ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 2 resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ spring-boot-camel-config ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO] 
      [INFO] <<< spring-boot-maven-plugin:7.4.0.fuse-sb2-740002:run (default-cli) < test-compile @ spring-boot-camel-config <<<
      [INFO] 
      [INFO] 
      [INFO] --- spring-boot-maven-plugin:7.4.0.fuse-sb2-740002:run (default-cli) @ spring-boot-camel-config ---
      10:15:55.505 [background-preinit] INFO  o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.0.14.Final
      10:15:55.724 [main] ERROR o.s.boot.SpringApplication - Application run failed
      java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V
      	at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:120)
      	at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:84)
      	at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:62)
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
      	at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:75)
      	at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
      	at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:347)
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
      	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
      	at io.fabric8.quickstarts.camel.config.Application.main(Application.java:30)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:528)
      	at java.lang.Thread.run(Thread.java:748)
      [WARNING] 
      java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:498)
          at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:528)
          at java.lang.Thread.run (Thread.java:748)
      Caused by: java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V
          at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext (BootstrapApplicationListener.java:120)
          at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent (BootstrapApplicationListener.java:84)
          at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent (BootstrapApplicationListener.java:62)
          at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener (SimpleApplicationEventMulticaster.java:172)
          at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener (SimpleApplicationEventMulticaster.java:165)
          at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:139)
          at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:127)
          at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared (EventPublishingRunListener.java:75)
          at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared (SpringApplicationRunListeners.java:54)
          at org.springframework.boot.SpringApplication.prepareEnvironment (SpringApplication.java:347)
          at org.springframework.boot.SpringApplication.run (SpringApplication.java:306)
          at org.springframework.boot.SpringApplication.run (SpringApplication.java:1260)
          at org.springframework.boot.SpringApplication.run (SpringApplication.java:1248)
          at io.fabric8.quickstarts.camel.config.Application.main (Application.java:30)
          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:498)
          at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:528)
          at java.lang.Thread.run (Thread.java:748)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 8.135 s
      [INFO] Finished at: 2019-06-14T10:15:55+02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.jboss.redhat-fuse:spring-boot-maven-plugin:7.4.0.fuse-sb2-740002:run (default-cli) on project spring-boot-camel-config: An exception occurred while running. null: InvocationTargetException: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ffang Freeman(Yue) Fang
                  Reporter:
                  llowinge Lukáš Löwinger
                  Tester:
                  Lukáš Löwinger
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: