[ 
https://issues.apache.org/jira/browse/CAMEL-12868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-12868.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0.M4
                   3.0.0

> Camel project generated from spring initalzr is shutdowning immediately after 
> start
> -----------------------------------------------------------------------------------
>
>                 Key: CAMEL-12868
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12868
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-spring-boot
>    Affects Versions: 2.22.1
>            Reporter: Aurélien Pupier
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.0.0, 3.0.0.M4
>
>
> - go to https://start.spring.io/
> - let default values for "generate a Maven project with Java and Spring Boot 
> 2.0.5"
> - add Camel dependencies
> - expand zipped project
> - launch mvn spring-boot:run
> - Camel is started and then shutdowned immediately instead of letting the 
> application running
> {noformat}
> C:\ws\workingDirectoryForTest\test-project-generated-from-start-spring-io\demo>mvn
>  spring-boot:run
> [INFO] Scanning for projects...
> [INFO]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building demo 0.0.1-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) > 
> test-compile @ demo >>>
> [INFO]
> [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ demo 
> ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 1 resource
> [INFO] Copying 0 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ demo ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 1 source file to 
> C:\ws\workingDirectoryForTest\test-project-generated-from-start-spring-io\demo\target\classes
> [INFO]
> [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) 
> @ demo ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory 
> C:\ws\workingDirectoryForTest\test-project-generated-from-start-spring-io\demo\src\test\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ 
> demo ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 1 source file to 
> C:\ws\workingDirectoryForTest\test-project-generated-from-start-spring-io\demo\target\test-classes
> [INFO]
> [INFO] <<< spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) < 
> test-compile @ demo <<<
> [INFO]
> [INFO] --- spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) @ demo ---
>   .   ____          _            __ _ _
>  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
> ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
>  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
>   '  |____| .__|_| |_|_| |_\__, | / / / /
>  =========|_|==============|___/=/_/_/_/
>  :: Spring Boot ::        (v2.0.5.RELEASE)
> 2018-10-08 16:25:13.240  INFO 18328 --- [           main] 
> com.example.demo.DemoApplication         : Starting DemoApplication on 
> DESKTOP-9NT300B with PID 18328 
> (C:\ws\workingDirectoryForTest\test-project-generated-from-start-spring-io\demo\target\classes
>  started by Aurelien Pupier in 
> C:\ws\workingDirectoryForTest\test-project-generated-from-start-spring-io\demo)
> 2018-10-08 16:25:13.243  INFO 18328 --- [           main] 
> com.example.demo.DemoApplication         : No active profile set, falling back
> to default profiles: default
> 2018-10-08 16:25:13.283  INFO 18328 --- [           main] 
> s.c.a.AnnotationConfigApplicationContext : Refreshing 
> org.springframework.context.annotation.AnnotationConfigApplicationContext@5fc55560:
>  startup date [Mon Oct 08 16:25:13 CEST 2018]; root of context hierarchy
> 2018-10-08 16:25:14.102  INFO 18328 --- [           main] 
> trationDelegate$BeanPostProcessorChecker : Bean 
> 'org.apache.camel.spring.boot.CamelAutoConfiguration' of type 
> [org.apache.camel.spring.boot.CamelAutoConfiguration$$EnhancerBySpringCGLIB$$cae74b74]
>  is not eligible for getting processed by all BeanPostProcessors (for 
> example: not eligible for auto-proxying)
> 2018-10-08 16:25:14.283  INFO 18328 --- [           main] 
> o.a.c.i.converter.DefaultTypeConverter   : Type converters loaded (core: 195, 
> classpath: 1)
> 2018-10-08 16:25:14.788  INFO 18328 --- [           main] 
> o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure 
> on startup
> 2018-10-08 16:25:14.804  INFO 18328 --- [           main] 
> o.a.camel.spring.boot.RoutesCollector    : Loading additional Camel XML routes
> from: classpath:camel/*.xml
> 2018-10-08 16:25:14.805  INFO 18328 --- [           main] 
> o.a.camel.spring.boot.RoutesCollector    : Loading additional Camel XML rests 
> from: classpath:camel-rest/*.xml
> 2018-10-08 16:25:14.814  INFO 18328 --- [           main] 
> o.a.camel.spring.SpringCamelContext      : Apache Camel 2.22.1 (CamelContext: 
> camel-1) is starting
> 2018-10-08 16:25:14.817  INFO 18328 --- [           main] 
> o.a.c.m.ManagedManagementStrategy        : JMX is enabled
> 2018-10-08 16:25:14.981  INFO 18328 --- [           main] 
> o.a.camel.spring.SpringCamelContext      : StreamCaching is not in use. If 
> using streams then its recommended to enable stream caching. See more details 
> at http://camel.apache.org/stream-caching.html
> 2018-10-08 16:25:14.983  INFO 18328 --- [           main] 
> o.a.camel.spring.SpringCamelContext      : Total 0 routes, of which 0 are 
> started
> 2018-10-08 16:25:14.984  INFO 18328 --- [           main] 
> o.a.camel.spring.SpringCamelContext      : Apache Camel 2.22.1 (CamelContext: 
> camel-1) started in 0.169 seconds
> 2018-10-08 16:25:14.988  INFO 18328 --- [           main] 
> com.example.demo.DemoApplication         : Started DemoApplication in 2.083 
> seconds (JVM running for 8.856)
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 6.266 s
> [INFO] Finished at: 2018-10-08T16:25:14+02:00
> [INFO] Final Memory: 48M/575M
> [INFO] 
> ------------------------------------------------------------------------
> 2018-10-08 16:25:15.274  INFO 18328 --- [       Thread-2] 
> s.c.a.AnnotationConfigApplicationContext : Closing 
> org.springframework.context.annotation.AnnotationConfigApplicationContext@5fc55560:
>  startup date [Mon Oct 08 16:25:13 CEST 2018]; root of context hierarchy
> 2018-10-08 16:25:15.277  INFO 18328 --- [       Thread-2] 
> o.s.c.support.DefaultLifecycleProcessor  : Stopping beans in phase 2147483647
> 2018-10-08 16:25:15.278  INFO 18328 --- [       Thread-2] 
> o.a.camel.spring.SpringCamelContext      : Apache Camel 2.22.1 (CamelContext: 
> camel-1) is shutting down
> 2018-10-08 16:25:15.300  INFO 18328 --- [       Thread-2] 
> o.a.camel.spring.SpringCamelContext      : Apache Camel 2.22.1 (CamelContext: 
> camel-1) uptime 0.486 seconds
> 2018-10-08 16:25:15.301  INFO 18328 --- [       Thread-2] 
> o.a.camel.spring.SpringCamelContext      : Apache Camel 2.22.1 (CamelContext: 
> camel-1) is shutdown in 0.022 seconds
> 2018-10-08 16:25:15.301  INFO 18328 --- [       Thread-2] 
> o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on 
> shutdown
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to