Discussion:
o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext defined yet so cannot inject into bean:
Wang Yan
2018-10-10 07:50:49 UTC
Permalink
Hello All,

I am running Apache Camel as SpringBoot application

Everything is ok. but when i start it, I saw a warning No CamelContext
defined yet

but actually in my Route i could get it , and it is also initialized, i
used log to check and trace it

Then Version
<camel.version>2.22.0</camel.version>
<springboot.version>2.0.4.RELEASE</springboot.version>
JDK i used is 1.8, it is the only different with example of
camel springboot

* o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext defined yet so
cannot inject into bean:
org.apache.camel.converter.jaxb.FallbackTypeConverter*

*Then I add **CamelContext camelContext as below shown, but it does not
help, still have same warning message*

*Any idea or suggestion? *

*@SpringBootApplication*
*public class SpringbootCameApplication {*


* @Autowired*
* CamelContext camelContext;*
Zoran Regvart
2018-10-11 11:39:45 UTC
Permalink
Hi,
this was recently fixed with CAMEL-12087[1]

zoran

[1] https://issues.apache.org/jira/browse/CAMEL-12087
Post by Wang Yan
Hello All,
I am running Apache Camel as SpringBoot application
Everything is ok. but when i start it, I saw a warning No CamelContext
defined yet
but actually in my Route i could get it , and it is also initialized, i
used log to check and trace it
Then Version
<camel.version>2.22.0</camel.version>
<springboot.version>2.0.4.RELEASE</springboot.version>
JDK i used is 1.8, it is the only different with example of
camel springboot
* o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext defined yet so
org.apache.camel.converter.jaxb.FallbackTypeConverter*
*Then I add **CamelContext camelContext as below shown, but it does not
help, still have same warning message*
*Any idea or suggestion? *
*public class SpringbootCameApplication {*
* CamelContext camelContext;*
--
Zoran Regvart
Wang Yan
2018-10-11 13:03:48 UTC
Permalink
when i tried use to fixed version for example 2.22.2 i got below problem
also same problem with other version 2.23.0 . which maven repo should i use
to get but fix version

2.22.2, org.apache.camel:camel-test-spring:jar:2.22.2: Could not find
artifact org.apache.camel:camel-spring-boot-starter:jar:2.22.2 in central (
https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]

On Thu, Oct 11, 2018 at 1:40 PM Zoran Regvart-2 [via Camel] <
Post by Zoran Regvart
Hi,
this was recently fixed with CAMEL-12087[1]
zoran
[1] https://issues.apache.org/jira/browse/CAMEL-12087
On Wed, Oct 10, 2018 at 9:50 AM, Wang Yan <[hidden email]
Post by Wang Yan
Hello All,
I am running Apache Camel as SpringBoot application
Everything is ok. but when i start it, I saw a warning No CamelContext
defined yet
but actually in my Route i could get it , and it is also initialized, i
used log to check and trace it
Then Version
<camel.version>2.22.0</camel.version>
<springboot.version>2.0.4.RELEASE</springboot.version>
JDK i used is 1.8, it is the only different with example of
camel springboot
* o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext defined yet
so
Post by Wang Yan
org.apache.camel.converter.jaxb.FallbackTypeConverter*
*Then I add **CamelContext camelContext as below shown, but it does not
help, still have same warning message*
*Any idea or suggestion? *
*public class SpringbootCameApplication {*
* CamelContext camelContext;*
--
Zoran Regvart
------------------------------
If you reply to this email, your message will be added to the discussion
http://camel.465427.n5.nabble.com/o-a-c-i-DefaultCamelBeanPostProcessor-No-CamelContext-defined-yet-so-cannot-inject-into-bean-tp5824553p5824590.html
To unsubscribe from o.a.c.i.DefaultCamelBeanPostProcessor : No
CamelContext defined yet so cannot inject into bean:, click here
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5824553&code=d3lhbmJveEBnbWFpbC5jb218NTgyNDU1M3wxMTU1MzAzODM=>
.
NAML
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
Zoran Regvart
2018-10-11 14:12:04 UTC
Permalink
Hi,
none of those versions are released, you can grab a -SNAPSHOT version
from the Apache repository at:

https://repository.apache.org/content/groups/public/

zoran
Post by Wang Yan
when i tried use to fixed version for example 2.22.2 i got below problem
also same problem with other version 2.23.0 . which maven repo should i use
to get but fix version
2.22.2, org.apache.camel:camel-test-spring:jar:2.22.2: Could not find
artifact org.apache.camel:camel-spring-boot-starter:jar:2.22.2 in central (
https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
--
Zoran Regvart
Wang Yan
2018-10-12 11:14:45 UTC
Permalink
Could you please suggest which release could fix this problem? i dont want
to use snapshot version.

thanks and rgds
nono

---------- Forwarded message ---------
From: Zoran Regvart-2 [via Camel] <ml+***@n5.nabble.com>
Date: Thu, Oct 11, 2018 at 4:12 PM
Subject: Re: o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext
defined yet so cannot inject into bean:
To: nono <***@gmail.com>


Hi,
none of those versions are released, you can grab a -SNAPSHOT version
from the Apache repository at:

https://repository.apache.org/content/groups/public/

zoran

On Thu, Oct 11, 2018 at 3:03 PM, Wang Yan <[hidden email]
Post by Wang Yan
when i tried use to fixed version for example 2.22.2 i got below problem
also same problem with other version 2.23.0 . which maven repo should i use
to get but fix version
2.22.2, org.apache.camel:camel-test-spring:jar:2.22.2: Could not find
artifact org.apache.camel:camel-spring-boot-starter:jar:2.22.2 in central (
https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
--
Zoran Regvart


------------------------------
If you reply to this email, your message will be added to the discussion
below:
http://camel.465427.n5.nabble.com/o-a-c-i-DefaultCamelBeanPostProcessor-No-CamelContext-defined-yet-so-cannot-inject-into-bean-tp5824553p5824592.html
To unsubscribe from o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext
defined yet so cannot inject into bean:, click here
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5824553&code=d3lhbmJveEBnbWFpbC5jb218NTgyNDU1M3wxMTU1MzAzODM=>
.
NAML
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
Zoran Regvart
2018-10-14 15:11:04 UTC
Permalink
Hello,
the versions are listed in the issue[1], until we release if you need
this fix the only way you can get it is if you use the snapshot
versions.

Mixing two different versions of Camel will probably lead to more issues.

zoran
Post by Wang Yan
Could you please suggest which release could fix this problem? i dont want
to use snapshot version.
[1] https://issues.apache.org/jira/browse/CAMEL-12087
--
Zoran Regvart
Luca Burgazzoli
2018-10-15 05:58:50 UTC
Permalink
Hello,

can you open a new issue with a reproducer ? There may be more
condition that lead to such warning.

---
Luca Burgazzoli
Post by Zoran Regvart
Hello,
the versions are listed in the issue[1], until we release if you need
this fix the only way you can get it is if you use the snapshot
versions.
Mixing two different versions of Camel will probably lead to more issues.
zoran
Post by Wang Yan
Could you please suggest which release could fix this problem? i dont want
to use snapshot version.
[1] https://issues.apache.org/jira/browse/CAMEL-12087
--
Zoran Regvart
Wang Yan
2018-10-15 06:25:04 UTC
Permalink
sure the problem could be reproduce with project at this github
https://github.com/wangyan100/springboot-camel-esb

---------- Forwarded message ---------
From: lburgazzoli [via Camel] <ml+***@n5.nabble.com>
Date: Mon, Oct 15, 2018 at 7:59 AM
Subject: Re: o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext
defined yet so cannot inject into bean:
To: nono <***@gmail.com>


Hello,

can you open a new issue with a reproducer ? There may be more
condition that lead to such warning.

---
Luca Burgazzoli

On Sun, Oct 14, 2018 at 5:11 PM Zoran Regvart <[hidden email]
Post by Zoran Regvart
Hello,
the versions are listed in the issue[1], until we release if you need
this fix the only way you can get it is if you use the snapshot
versions.
Mixing two different versions of Camel will probably lead to more issues.
zoran
On Fri, Oct 12, 2018 at 1:14 PM, Wang Yan <[hidden email]
Post by Wang Yan
Could you please suggest which release could fix this problem? i dont want
to use snapshot version.
[1] https://issues.apache.org/jira/browse/CAMEL-12087
--
Zoran Regvart
------------------------------
If you reply to this email, your message will be added to the discussion
below:
http://camel.465427.n5.nabble.com/o-a-c-i-DefaultCamelBeanPostProcessor-No-CamelContext-defined-yet-so-cannot-inject-into-bean-tp5824553p5824740.html
To unsubscribe from o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext
defined yet so cannot inject into bean:, click here
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5824553&code=d3lhbmJveEBnbWFpbC5jb218NTgyNDU1M3wxMTU1MzAzODM=>
.
NAML
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
Wang Yan
2018-10-12 12:22:56 UTC
Permalink
the wired thing is that i tried with 2.23.0 snapshot version and 2.22.2
snapshot version,same error still
but i tried some combition with 23.0 release and 2.22.2 release , then it
works

<camel.version>2.23.0</camel.version> <camel.bug.version>2.22.0</camel.bug.version>

<!-- Camel -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
<version>${camel.bug.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-stream-starter</artifactId>
<version>${camel.bug.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf</artifactId>
<version>${camel.bug.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf-transport</artifactId>
<version>${camel.bug.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>3.2.5</version>
</dependency>
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-saxon</artifactId>
<version>${camel.bug.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jackson</artifactId>
<version>${camel.bug.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jaxb</artifactId>
<version>${camel.bug.version}</version>
</dependency>

---------- Forwarded message ---------
From: Zoran Regvart-2 [via Camel] <ml+***@n5.nabble.com>
Date: Thu, Oct 11, 2018 at 1:40 PM
Subject: Re: o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext
defined yet so cannot inject into bean:
To: nono <***@gmail.com>


Hi,
this was recently fixed with CAMEL-12087[1]

zoran

[1] https://issues.apache.org/jira/browse/CAMEL-12087

On Wed, Oct 10, 2018 at 9:50 AM, Wang Yan <[hidden email]
Post by Wang Yan
Hello All,
I am running Apache Camel as SpringBoot application
Everything is ok. but when i start it, I saw a warning No CamelContext
defined yet
but actually in my Route i could get it , and it is also initialized, i
used log to check and trace it
Then Version
<camel.version>2.22.0</camel.version>
<springboot.version>2.0.4.RELEASE</springboot.version>
JDK i used is 1.8, it is the only different with example of
camel springboot
* o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext defined yet so
org.apache.camel.converter.jaxb.FallbackTypeConverter*
*Then I add **CamelContext camelContext as below shown, but it does not
help, still have same warning message*
*Any idea or suggestion? *
*public class SpringbootCameApplication {*
* CamelContext camelContext;*
--
Zoran Regvart


------------------------------
If you reply to this email, your message will be added to the discussion
below:
http://camel.465427.n5.nabble.com/o-a-c-i-DefaultCamelBeanPostProcessor-No-CamelContext-defined-yet-so-cannot-inject-into-bean-tp5824553p5824590.html
To unsubscribe from o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext
defined yet so cannot inject into bean:, click here
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5824553&code=d3lhbmJveEBnbWFpbC5jb218NTgyNDU1M3wxMTU1MzAzODM=>
.
NAML
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
Loading...