You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Harrison Tarr <ha...@connexta.com> on 2018/02/13 00:41:56 UTC

"Gave up waiting for BlueprintContainer" when using camel-test-blueprint

Hi,

I just heard about "camel-test-blueprint" today and I started using it. I was able to get a feel for it by using a contrived Camel route in a blueprint.xml and everything worked as expected. I'm now trying to test "real" camel routes in my products blueprint.xml, but I'm getting a RuntimeException: "Gave up waiting for BlueprintContainer". Any ideas what causes that? I'm at a loss, even after Google.

Best Regards,

Harrison Tarr

Re: "Gave up waiting for BlueprintContainer" when using camel-test-blueprint

Posted by Claus Ibsen <cl...@gmail.com>.
Also as we say on the support page, try with newer versions etc.
What version of Camel do you use?


On Tue, Feb 13, 2018 at 3:17 PM, Claus Ibsen <cl...@gmail.com> wrote:
> And you have camel-jackson on the classpath when testing
>
> On Tue, Feb 13, 2018 at 1:10 PM, Harrison Tarr
> <ha...@connexta.com> wrote:
>> It looks like (one of) the block of code in the route that is causing the BlueprintContainer to not start is
>>
>>         <unmarshal>
>>                 <json library="Jackson"
>>                       unmarshalTypeName="<my-class-name> "/>
>>             </unmarshal>
>>
>> Does unmarshalling require some import that I'm not including? Again, the works when running in a real Karaf container, but it does not work when I'm using the "camel-test-blueprint"
>>
>> Harrison
>>
>> -----Original Message-----
>> From: Tadayoshi Sato [mailto:sato.tadayoshi@gmail.com]
>> Sent: Monday, February 12, 2018 6:08 PM
>> To: users@camel.apache.org
>> Subject: Re: "Gave up waiting for BlueprintContainer" when using camel-test-blueprint
>>
>> Hi,
>>
>> Typically it happens on CamelBlueprintTestSupport when you omit some OSGi dependencies in pom.xml: It's not just Maven dependencies but also OSGi bundle imports/exports. Typically a successful camel blueprint test has a felix maven-bundle-plugin configuration and the import/export packages declarations like these:
>> https://github.com/apache/camel/blob/master/parent/pom.xml#L5287-L5334
>> https://github.com/apache/camel/blob/master/examples/camel-example-servlet-rest-blueprint/pom.xml#L40-L45
>>
>> Hope this helps.
>>
>> On Tue, Feb 13, 2018 at 9:41 AM, Harrison Tarr <ha...@connexta.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I just heard about "camel-test-blueprint" today and I started using
>>> it. I was able to get a feel for it by using a contrived Camel route
>>> in a blueprint.xml and everything worked as expected. I'm now trying
>>> to test "real" camel routes in my products blueprint.xml, but I'm
>>> getting a
>>> RuntimeException: "Gave up waiting for BlueprintContainer". Any ideas
>>> what causes that? I'm at a loss, even after Google.
>>>
>>> Best Regards,
>>>
>>> Harrison Tarr
>>>
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Re: "Gave up waiting for BlueprintContainer" when using camel-test-blueprint

Posted by Claus Ibsen <cl...@gmail.com>.
And you have camel-jackson on the classpath when testing

On Tue, Feb 13, 2018 at 1:10 PM, Harrison Tarr
<ha...@connexta.com> wrote:
> It looks like (one of) the block of code in the route that is causing the BlueprintContainer to not start is
>
>         <unmarshal>
>                 <json library="Jackson"
>                       unmarshalTypeName="<my-class-name> "/>
>             </unmarshal>
>
> Does unmarshalling require some import that I'm not including? Again, the works when running in a real Karaf container, but it does not work when I'm using the "camel-test-blueprint"
>
> Harrison
>
> -----Original Message-----
> From: Tadayoshi Sato [mailto:sato.tadayoshi@gmail.com]
> Sent: Monday, February 12, 2018 6:08 PM
> To: users@camel.apache.org
> Subject: Re: "Gave up waiting for BlueprintContainer" when using camel-test-blueprint
>
> Hi,
>
> Typically it happens on CamelBlueprintTestSupport when you omit some OSGi dependencies in pom.xml: It's not just Maven dependencies but also OSGi bundle imports/exports. Typically a successful camel blueprint test has a felix maven-bundle-plugin configuration and the import/export packages declarations like these:
> https://github.com/apache/camel/blob/master/parent/pom.xml#L5287-L5334
> https://github.com/apache/camel/blob/master/examples/camel-example-servlet-rest-blueprint/pom.xml#L40-L45
>
> Hope this helps.
>
> On Tue, Feb 13, 2018 at 9:41 AM, Harrison Tarr <ha...@connexta.com>
> wrote:
>
>> Hi,
>>
>> I just heard about "camel-test-blueprint" today and I started using
>> it. I was able to get a feel for it by using a contrived Camel route
>> in a blueprint.xml and everything worked as expected. I'm now trying
>> to test "real" camel routes in my products blueprint.xml, but I'm
>> getting a
>> RuntimeException: "Gave up waiting for BlueprintContainer". Any ideas
>> what causes that? I'm at a loss, even after Google.
>>
>> Best Regards,
>>
>> Harrison Tarr
>>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

RE: "Gave up waiting for BlueprintContainer" when using camel-test-blueprint

Posted by Harrison Tarr <ha...@connexta.com>.
It looks like (one of) the block of code in the route that is causing the BlueprintContainer to not start is
 
	<unmarshal>
                <json library="Jackson"
                      unmarshalTypeName="<my-class-name> "/>
            </unmarshal>

Does unmarshalling require some import that I'm not including? Again, the works when running in a real Karaf container, but it does not work when I'm using the "camel-test-blueprint"

Harrison

-----Original Message-----
From: Tadayoshi Sato [mailto:sato.tadayoshi@gmail.com] 
Sent: Monday, February 12, 2018 6:08 PM
To: users@camel.apache.org
Subject: Re: "Gave up waiting for BlueprintContainer" when using camel-test-blueprint

Hi,

Typically it happens on CamelBlueprintTestSupport when you omit some OSGi dependencies in pom.xml: It's not just Maven dependencies but also OSGi bundle imports/exports. Typically a successful camel blueprint test has a felix maven-bundle-plugin configuration and the import/export packages declarations like these:
https://github.com/apache/camel/blob/master/parent/pom.xml#L5287-L5334
https://github.com/apache/camel/blob/master/examples/camel-example-servlet-rest-blueprint/pom.xml#L40-L45

Hope this helps.

On Tue, Feb 13, 2018 at 9:41 AM, Harrison Tarr <ha...@connexta.com>
wrote:

> Hi,
>
> I just heard about "camel-test-blueprint" today and I started using 
> it. I was able to get a feel for it by using a contrived Camel route 
> in a blueprint.xml and everything worked as expected. I'm now trying 
> to test "real" camel routes in my products blueprint.xml, but I'm 
> getting a
> RuntimeException: "Gave up waiting for BlueprintContainer". Any ideas 
> what causes that? I'm at a loss, even after Google.
>
> Best Regards,
>
> Harrison Tarr
>

Re: "Gave up waiting for BlueprintContainer" when using camel-test-blueprint

Posted by Tadayoshi Sato <sa...@gmail.com>.
Hi,

Typically it happens on CamelBlueprintTestSupport when you omit some OSGi
dependencies in pom.xml: It's not just Maven dependencies but also OSGi
bundle imports/exports. Typically a successful camel blueprint test has a
felix maven-bundle-plugin configuration and the import/export packages
declarations like these:
https://github.com/apache/camel/blob/master/parent/pom.xml#L5287-L5334
https://github.com/apache/camel/blob/master/examples/camel-example-servlet-rest-blueprint/pom.xml#L40-L45

Hope this helps.

On Tue, Feb 13, 2018 at 9:41 AM, Harrison Tarr <ha...@connexta.com>
wrote:

> Hi,
>
> I just heard about "camel-test-blueprint" today and I started using it. I
> was able to get a feel for it by using a contrived Camel route in a
> blueprint.xml and everything worked as expected. I'm now trying to test
> "real" camel routes in my products blueprint.xml, but I'm getting a
> RuntimeException: "Gave up waiting for BlueprintContainer". Any ideas what
> causes that? I'm at a loss, even after Google.
>
> Best Regards,
>
> Harrison Tarr
>