How do I removed the lower bundle? It seems it is coming from a different
bundle camel-aws.

On Jun 29, 2016 10:54 AM, "Christian Schneider" <[email protected]>
wrote:

Yes. Having two versions of a bundle is a problem if both are exposed to
the same top level bundle. This is what the error you get is telling you.
Can you try to remove for example the bundle with the lower version and
check if it works then?

Christian


2016-06-28 15:47 GMT+02:00 Debraj Manna <[email protected]>:

> I checked from web-console:-
>
> basecomponent
> Export-Package - ---
>
>
> camel-aws
> Export-Package -
> org.apache.camel.component.aws.cw,version=2.16.1
> org.apache.camel.component.aws.ddb,version=2.16.1
> org.apache.camel.component.aws.ec2,version=2.16.1
> org.apache.camel.component.aws.s3,version=2.16.1
> org.apache.camel.component.aws.sdb,version=2.16.1
> org.apache.camel.component.aws.ses,version=2.16.1
> org.apache.camel.component.aws.sns,version=2.16.1
> org.apache.camel.component.aws.sqs,version=2.16.1
> org.apache.camel.component.aws.swf,version=2.16.1
>
> But I am having two versions of jackson-annotations in my Karaf (3.0.5) -
> 2.6.2 and 2.7.1 Is that creating problem?
>
> http://sc-qa:8181/system/console/bundles
>
>
>
> On Tue, Jun 28, 2016 at 6:22 PM, Jean-Baptiste Onofré <[email protected]>
> wrote:
>
>> Can you check with package:export if you don't have two bundles providing
>> the same jackson package (jackson itself and amazon for instance) ?
>>
>> Regards
>> JB
>>
>> On 06/28/2016 01:17 PM, Debraj Manna wrote:
>>
>>> Hi
>>>
>>> Some time while starting a bundle (basecomponent) I am getting the below
>>> error. It seems it is because of the two different versions of
>>> fasterxml.jackson.annotations . basecomponent bundle is using
>>> fasterxml.jackson.annotations 2.7.4 . basecomponent bundle is also using
>>> camel-aws which may be using jackson 2.5.0.
>>>
>>> Can some one let me know
>>>
>>>  1. How can I get rid of this error?
>>>  2. Why is this error not coming always?
>>>
>>>
>>> smx@root>bundle:start 277
>>> Error executing command: Error executing command on bundles:
>>>      Unable to execute command on bundle 277: Uses constraint violation.
>>> Unable to resolve bundle revision basecomponent [277.0] because it is
>>> exposed to package 'com.fasterxml.jackson.annotation' from bundle
>>> revisions com.fasterxml.jackson.core.jackson-annotations [284.0] and
>>> com.fasterxml.jackson.core.jackson-annotations [125.0] via two
>>> dependency chains.
>>>
>>> Chain 1:
>>>    basecomponent [277.0]
>>>      import:
>>>
>>> (&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.7.0)(!(version>=3.0.0)))
>>>       |
>>>      export: osgi.wiring.package=com.fasterxml.jackson.annotation
>>>    com.fasterxml.jackson.core.jackson-annotations [284.0]
>>>
>>> Chain 2:
>>>    basecomponent [277.0]
>>>      import: (osgi.wiring.package=com.amazonaws)
>>>       |
>>>      export: osgi.wiring.package=com.amazonaws;
>>> uses:=com.fasterxml.jackson.annotation
>>>    org.apache.servicemix.bundles.aws-java-sdk [254.0]
>>>      import:
>>>
>>> (&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.5.0)(!(version>=3.0.0)))
>>>       |
>>>      export: osgi.wiring.package=com.fasterxml.jackson.annotation
>>>    com.fasterxml.jackson.core.jackson-annotations [125.0]
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> [email protected]
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
>


-- 
-- 
Christian Schneider
http://www.liquid-reality.de
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>

Open Source Architect
http://www.talend.com
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>

Reply via email to