Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 802DD11186 for ; Mon, 21 Jul 2014 03:38:49 +0000 (UTC) Received: (qmail 8481 invoked by uid 500); 21 Jul 2014 03:38:49 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 8430 invoked by uid 500); 21 Jul 2014 03:38:48 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 8420 invoked by uid 99); 21 Jul 2014 03:38:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2014 03:38:48 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_RHS_DOB X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of udara@wso2.com designates 209.85.192.177 as permitted sender) Received: from [209.85.192.177] (HELO mail-pd0-f177.google.com) (209.85.192.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2014 03:38:45 +0000 Received: by mail-pd0-f177.google.com with SMTP id p10so8358379pdj.36 for ; Sun, 20 Jul 2014 20:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ueibbcjn6W+Y0fN8HcKYCCYu4OWXRHJSHcNY9mSr3oU=; b=ZJxsTXL36/lHp9/jvhjRobMh4iqTJmVEvAHrzj6leq8fBiBlqV6Ir/Z4zCXYK7xT7q E42QgUK5bqBqXzkxiDOqmqT6C2UFkTAY9C0mDMG3KepxrSKzkYcw7v7oeieiAPS1O9R2 S4M0jpqsxUX8HqToMVvVnZnQh2vzKjMvdSjhw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=ueibbcjn6W+Y0fN8HcKYCCYu4OWXRHJSHcNY9mSr3oU=; b=JGYpBYeF9luYRiuq9T7zqd9bHGpynRAcKT9cbJLckAY/VvZOsb+jSQjI+Qx+Oy0HRb 2JzcaHkcHZqEx0lJDeEKYvvTBs2GU7YbRnAvTfKEYnoR8XVqFlAGPQHIx+3Kk6wKU1Jy kp0CuF7FlD0LH/RzJDISvqMGQqVdLYR2yqrKuuZhsqxp7mRVZvs8jak6T+w34Cuynknx iLoiIw3WYvAb46s3ssy8jNBaZVqereIXX+ZIUwODuo2kV3iJfzaTV/wCtME1ioY6vcX5 9G7u9hpTFeP3RQ6jYBX2WNtI3q9nKnyUds/fsTLjVg+uoPMoFWB5fBmett5bIaw/G6Vg o+nw== X-Gm-Message-State: ALoCoQmpMk8dUGT6HISnqptiW4A57LX5yAFzgoTyIEFtjpP8IY/x7c2o6g5YOkxDIvJTzToA9PKv X-Received: by 10.68.114.65 with SMTP id je1mr5337614pbb.124.1405913899210; Sun, 20 Jul 2014 20:38:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.15.33 with HTTP; Sun, 20 Jul 2014 20:37:39 -0700 (PDT) In-Reply-To: References: From: Udara Liyanage Date: Mon, 21 Jul 2014 09:07:39 +0530 Message-ID: Subject: Re: Multiple versions of slf4j used in Stratos To: dev Content-Type: multipart/alternative; boundary=047d7b6d82448c400104feabd619 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6d82448c400104feabd619 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Jeffrey, yes, push the changes. Btw what branch you are working on? On Mon, Jul 21, 2014 at 8:04 AM, Isuru Haththotuwa wrote: > > > > On Sat, Jul 19, 2014 at 3:07 AM, Jeffrey Nguyen (jeffrngu) < > jeffrngu@cisco.com> wrote: > >> >> Thank you Isuru P. and Isuru H. for the additional clarifications. >> What you said makes sense. We'll exclude the wso2 version of slf4j fro= m >> cartridge agent. >> Should I also push this change upstream to 4.0.0 branch? >> > +1 > >> >> Thanks, >> -Jeffrey >> >> From: Isuru Haththotuwa >> Reply-To: "dev@stratos.apache.org" >> Date: Thursday, July 17, 2014 11:19 PM >> >> To: dev >> Subject: Re: Multiple versions of slf4j used in Stratos >> >> >> >> >> On Fri, Jul 18, 2014 at 2:51 AM, Isuru Perera wrote: >> >>> WSO2 maintains a separate version for slf4j to make it an OSGi bundle. >>> See [1]. Since Carbon runs on OSGi container, all JARs need to be OSGi >>> bundles. >>> >>> Cartridge Agent is just a simple Java program and it's okay to exclude >>> the wso2 version of slf4j. >>> >> Exactly. So this should be fine. >> >>> >>> I hope this helps. >>> >>> Thanks! >>> >>> [1] >>> http://maven.wso2.org/nexus/content/repositories/wso2maven2/slf4j/wso2/= slf4j/1.5.10.wso2v1/slf4j-1.5.10.wso2v1.pom >>> >>> >>> On Thu, Jul 17, 2014 at 10:52 AM, Jeffrey Nguyen (jeffrngu) < >>> jeffrngu@cisco.com> wrote: >>> >>>> >>>> Thank you Isuru for the pointer. I was able to modify the file you >>>> mentioned and confirmed cartridge agent zip file doesn't have the wso2 >>>> version of slf4j. >>>> >>>> When we removed this jar file, we fixed the issue of spawned VM not >>>> converging to active. However, logging for cartridge agent stopped >>>> working. Martin in our team seems to have found a work-around to get >>>> logging working again. However, given you mentioned this jar file is= part >>>> of core carbon components, is it safe to remove it from cartridge agen= t? >>>> I suppose the wso2 version of slf4j was customized for some good reas= on >>>> right? >>>> We just want to make sure nothing within cartridge agent depends on >>>> wso2 slf4j. >>>> >>>> -Jeffrey >>>> >>>> From: Isuru Haththotuwa >>>> Reply-To: "dev@stratos.apache.org" >>>> Date: Wednesday, July 16, 2014 9:27 PM >>>> To: dev >>>> Subject: Re: Multiple versions of slf4j used in Stratos >>>> >>>> Hi Jeffrey, >>>> >>>> The slf4j 1.5.10.wso2v1 jar seems to be coming from the core carbon >>>> kernel components. Therefore, its not possible to remove it from the b= uild. >>>> Since you have mentioned that manually removing it resolved the issue,= you >>>> can exclude it from the cartridge agent build and test if the issue is >>>> resolved. To do this, please add an exclusion condition to [1], in the >>>> dependencySets element in your local build. There are some existing >>>> exclusions that you can refer to. >>>> >>>> [1]. >>>> products/cartridge-agent/modules/distribution/src/main/assembly/bin.xm= l >>>> >>>> >>>> On Tue, Jul 15, 2014 at 8:51 PM, Jeffrey Nguyen (jeffrngu) < >>>> jeffrngu@cisco.com> wrote: >>>> >>>>> Changed subject=E2=80=A6 >>>>> >>>>> Hi Devs, >>>>> >>>>> Anybody has any pointers/suggestions on how to fix this issue with >>>>> multiple versions of slf4j library? We found this dependency proble= m in >>>>> cartridge agent. Not sure if this affects any other components in St= ratos. >>>>> >>>>> Thanks, >>>>> -Jeffrey >>>>> >>>>> From: jeffrngu >>>>> Reply-To: "dev@stratos.apache.org" >>>>> Date: Monday, July 14, 2014 7:21 PM >>>>> To: "dev@stratos.apache.org" >>>>> Subject: Re: cartridge agent startup error (4.0.0 based source, local >>>>> build) >>>>> >>>>> Hi Devs, >>>>> >>>>> Just wanted to follow up on this issue. We've confirmed that >>>>> removing >>>>> apache-stratos-cartridge-agent-4.0.0/lib/slf4j-1.5.10.wso2v1.jar fixe= d >>>>> this issue. We're trying to see where this dependency is configured.= I >>>>> found the references to slf4j in [1], [2], and [3] in our code base. = I >>>>> assume [1] and [2] are auto-generated during maven build. >>>>> >>>>> Any idea which config file controls contents of [1] and [2]? >>>>> >>>>> I also see that Stratos CLI code uses slf4j version 1.7.6 while >>>>> cloud controller, load balancer and the rest uses version 1.6.4. Sh= ould >>>>> we try to ensure all Stratos components references the same version o= f >>>>> sl4j? If so, how? >>>>> >>>>> >>>>> 1/- >>>>> products/stratos/modules/p2-profile-gen/target/wso2carbon-core-4.2.0/= repository/components/default/configuration/org.eclipse.equinox.simpleconfi= gurator/ >>>>> bundles.info >>>>> slf4j,1.5.10.wso2v1,../plugins/slf4j_1.5.10.wso2v1.jar,4,true >>>>> >>>>> 2/- >>>>> components/org.apache.stratos.cartridge.agent/target/maven-shared-arc= hive-resources/META-INF/DEPENDENCIES >>>>> - slf4j.wso2 (http://wso2.org) slf4j.wso2:slf4j:bundle:1.5.10.wso2v= 1 >>>>> >>>>> 3/- components/org.apache.stratos.cartridge.agent/pom.xml >>>>> >>>>> org.slf4j >>>>> slf4j-log4j12 >>>>> 1.7.5 >>>>> >>>>> >>>>> Thanks, >>>>> -Jeffrey >>>>> >>>>> From: "Martin Eppel (meppel)" >>>>> Reply-To: "dev@stratos.apache.org" >>>>> Date: Sunday, July 13, 2014 12:03 PM >>>>> To: "dev@stratos.apache.org" >>>>> Cc: "dev@stratos.incubator.apache.org" < >>>>> dev@stratos.incubator.apache.org> >>>>> Subject: RE: cartridge agent startup error (4.0.0 based source, local >>>>> build) >>>>> >>>>> We merged our local changes which (were working and based on rc4), >>>>> with 4.0.0 and now we are seeing this issue. Did we change library ve= rsions >>>>> (used by cartridge agent) between rc4 and 4.0.0 ? Which pom files def= ine >>>>> all the cartridge agent dependencies ? >>>>> >>>>> >>>>> >>>>> Thanks >>>>> >>>>> >>>>> >>>>> Martin >>>>> >>>>> >>>>> >>>>> *From:*isuruh@wso2.com [mailto:isuruh@wso2.com ] *On >>>>> Behalf Of *Isuru Haththotuwa >>>>> *Sent:* Sunday, July 13, 2014 7:21 AM >>>>> *To:* dev >>>>> *Cc:* dev@stratos.incubator.apache.org >>>>> *Subject:* Re: cartridge agent startup error (4.0.0 based source, >>>>> local build) >>>>> >>>>> >>>>> >>>>> Hi Martin, >>>>> >>>>> I have not seen this, but a Google search tells me what you thought i= s >>>>> correct. There are different versions of API and Integration librarie= s. Do >>>>> you have any local changes? If so, please check in those classes if t= here >>>>> are any imports related to a different version of SL4J. >>>>> >>>>> >>>>> >>>>> On Sun, Jul 13, 2014 at 3:46 PM, Martin Eppel (meppel) < >>>>> meppel@cisco.com> wrote: >>>>> >>>>> We are getting an error when the cartridge agent is starting, looks >>>>> like the (local) build it is pulling 2 different versions of SLF4J (s= ee >>>>> exception below) when the cartridge zip file is generated which cause= s an >>>>> incompatibility, has anyone else seen this ? >>>>> >>>>> Any idea what's causing it and how to resolve it ? >>>>> >>>>> Thanks >>>>> >>>>> Martin >>>>> >>>>> >>>>> log4j:WARN Please initialize the log4j system properly. >>>>> SLF4J: Class path contains multiple SLF4J bindings. >>>>> SLF4J: Found binding in >>>>> [jar:file:/opt/apache-stratos-cartridge-agent-4.0.0/lib/slf4j-1.5.10.= wso2v1.jar!/org/slf4j/impl/StaticLoggerBinder.class] >>>>> SLF4J: Found binding in >>>>> [jar:file:/opt/apache-stratos-cartridge-agent-4.0.0/lib/slf4j-log4j12= -1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] >>>>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an >>>>> explanation. >>>>> log4j:WARN Please initialize the log4j system properly. >>>>> SLF4J: Class path contains multiple SLF4J bindings. >>>>> SLF4J: Found binding in >>>>> [jar:file:/opt/apache-stratos-cartridge-agent-4.0.0/lib/slf4j-1.5.10.= wso2v1.jar!/org/slf4j/impl/StaticLoggerBinder.class] >>>>> SLF4J: Found binding in >>>>> [jar:file:/opt/apache-stratos-cartridge-agent-4.0.0/lib/slf4j-log4j12= -1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] >>>>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an >>>>> explanation. >>>>> "/var/log/apache-stratos/cartridge-agent.log" 48L, 5449C >>>>> 1,1 Top >>>>> at >>>>> org.apache.activemq.transport.AbstractInactivityMonitor.onException(A= bstractInactivityMonitor.java:310) >>>>> at >>>>> org.apache.activemq.transport.TransportSupport.onException(TransportS= upport.java:96) >>>>> at >>>>> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:= 200) >>>>> at java.lang.Thread.run(Thread.java:745) >>>>> Exception in thread "Thread-3" java.lang.NoSuchMethodError: >>>>> org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lan= g/Object;Ljava/lang/Object;)Ljava/lang/String; >>>>> at >>>>> org.slf4j.impl.Log4jLoggerAdapter.debug(Log4jLoggerAdapter.java:246) >>>>> at >>>>> org.apache.activemq.thread.TaskRunnerFactory.init(TaskRunnerFactory.j= ava:91) >>>>> at >>>>> org.apache.activemq.thread.TaskRunnerFactory.execute(TaskRunnerFactor= y.java:149) >>>>> at >>>>> org.apache.activemq.thread.TaskRunnerFactory.execute(TaskRunnerFactor= y.java:145) >>>>> at >>>>> org.apache.activemq.transport.tcp.TcpTransport.doStop(TcpTransport.ja= va:538) >>>>> at >>>>> org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:71) >>>>> at >>>>> org.apache.activemq.transport.tcp.TcpTransport.stop(TcpTransport.java= :582) >>>>> at >>>>> org.apache.activemq.transport.AbstractInactivityMonitor.stop(Abstract= InactivityMonitor.java:145) >>>>> at >>>>> org.apache.activemq.transport.TransportFilter.stop(TransportFilter.ja= va:65) >>>>> at >>>>> org.apache.activemq.transport.WireFormatNegotiator.stop(WireFormatNeg= otiator.java:91) >>>>> at >>>>> org.apache.activemq.transport.TransportFilter.stop(TransportFilter.ja= va:65) >>>>> at >>>>> org.apache.activemq.transport.TransportFilter.stop(TransportFilter.ja= va:65) >>>>> at >>>>> org.apache.activemq.transport.ResponseCorrelator.stop(ResponseCorrela= tor.java:132) >>>>> at >>>>> org.apache.activemq.util.ServiceSupport.dispose(ServiceSupport.java:4= 3) >>>>> at >>>>> org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:= 725) >>>>> at >>>>> org.apache.stratos.messaging.broker.connect.TopicConnector.close(Topi= cConnector.java:86) >>>>> at >>>>> org.apache.stratos.messaging.broker.subscribe.TopicSubscriber.run(Top= icSubscriber.java:157) >>>>> at java.lang.Thread.run(Thread.java:745) >>>>> >>>>> -- >>>>> >>>>> Thanks and Regards, >>>>> >>>>> Isuru H. >>>>> >>>>> +94 716 358 048 >>>>> >>>>> -- >>>>> <%2B94%20716%20358%20048> >>>>> <%2B94%20716%20358%20048> >>>>> Thanks and Regards, >>>>> >>>>> Isuru H. >>>>> <%2B94%20716%20358%20048> >>>>> +94 716 358 048* * >>>>> >>>>> >>>>> * * >>>>> >>>>> >>>>> >>> >>> >>> -- >>> Isuru Perera >>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/ >>> Lean . Enterprise . Middleware >>> >>> about.me/chrishantha >>> >>> -- >>> >>> Thanks and Regards, >>> >>> Isuru H. >>> >>> +94 716 358 048 >>> >>> -- >>> >>> Thanks and Regards, >>> >>> Isuru H. >>> >>> +94 716 358 048 * * >>> >>> >>> * * >>> >>> >>> --=20 Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 --047d7b6d82448c400104feabd619 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Jeffrey,

yes, push the changes. Btw = what branch you are working on?

<= br>
On Mon, Jul 21, 2014 at 8:04 AM, Isuru Hathth= otuwa <isuruh@apache.org> wrote:



On Sat, Jul 19, 2014= at 3:07 AM, Jeffrey Nguyen (jeffrngu) <jeffrngu@cisco.com>= wrote:

Thank you Isuru P. and Isuru H. =C2=A0for the additional clarification= s. =C2=A0What you said makes sense. =C2=A0We'll exclude the wso2 versio= n of slf4j from cartridge agent.=C2=A0
Should I also push this change upstream to 4.0.0 branch?
+1

Thanks,
-Jeffrey

From: Isuru Haththotuwa <isuruh@apache.org> Reply-To: "dev@stratos.apache.org" &= lt;dev@stratos.= apache.org>
Date: Thursday, July 17, 2014= 11:19 PM

To: dev <dev@stratos.apache.org>
Subject: Re: Multiple versions of s= lf4j used in Stratos




On Fri, Jul 18, 2014 at 2:51 AM, Isuru Perera <isurup@wso2.com> wrote:
WSO2 maintains a separate version for slf4j to make it an OSGi bundle.= See [1]. Since Carbon runs on OSGi container, all JARs need to be OSGi bun= dles.

Cartridge Agent is just a simple Java program and it's okay to exc= lude the wso2 version of slf4j.
Exactly. So this should be fine.

I hope this helps.

Thanks!

[1]
http://maven.wso2.org/nexus/content/repositories/wso2maven2/slf4j/wso2/slf4= j/1.5.10.wso2v1/slf4j-1.5.10.wso2v1.pom


On Thu, Jul 17, 2014 at 10:52 AM, Jeffrey Nguyen= (jeffrngu) <jeffrngu@cisco.com> wrote:

Thank you Isuru for the pointer. =C2=A0 I was able to modify the file = you mentioned and confirmed cartridge agent zip file doesn't have the w= so2 version of slf4j.

When we removed this jar file, we fixed the issue of spawned VM not co= nverging to active. =C2=A0 However, logging for cartridge agent stopped wor= king. =C2=A0 Martin in our team seems to have found a work-around to get lo= gging working again. =C2=A0 However, given you mentioned this jar file is part of core carbon components, is it safe to r= emove it from cartridge agent? =C2=A0 =C2=A0I suppose the wso2 version of s= lf4j was customized for some good reason right?
We just want to make sure nothing within cartridge agent depends on ws= o2 slf4j.

-Jeffrey

From: Isuru Haththotuwa <isuruh@apache.org> Reply-To: "dev@stratos.apache.org" &= lt;dev@stratos.= apache.org>
Date: Wednesday, July 16, 2014 9:27= PM
To: dev <dev@stratos.apache.org>
Subject: Re: Multiple versions of s= lf4j used in Stratos

Hi Jeffrey,

The slf4j 1.5.10.wso2v1 jar seems to be coming from the core carbon k= ernel components. Therefore, its not possible to remove it from the build. = Since you have mentioned that manually removing it resolved the issue, you = can exclude it from the cartridge agent build and test if the issue is resolved. To do this, please add an e= xclusion condition to [1], in the dependencySets element in your local buil= d. There are some existing exclusions that you can refer to.

[1]. products/cartridge-agent/modules/distribution/src/main/assembly/bin.xm= l


On Tue, Jul 15, 2014 at 8:51 PM, Jeffrey Nguyen = (jeffrngu) <jeffrngu@cisco.com> wrote:
Changed subject=E2=80=A6

Hi Devs,

Anybody has any pointers/suggestions on how to fix this issue with mul= tiple versions of slf4j library? =C2=A0 We found this dependency problem in= cartridge agent. =C2=A0Not sure if this affects any other components in St= ratos.

Thanks,
-Jeffrey

From: jeffrngu <jeffrngu@cisco.com>
Reply-To: "dev@stratos.apache.org" &= lt;dev@stratos.= apache.org>
Date: Monday, July 14, 2014 7:21 PM=
To: "dev@stratos.apache.org" <dev@stratos.apache= .org>
Subject: Re: cartridge agent startu= p error (4.0.0 based source, local build)

Hi Devs,

Just wanted to follow up on this issue. =C2=A0 We've confirmed tha= t removing apache-stratos-cartridge-agent-4.0.0/lib/slf4j-1.5.10.wso2v1.jar=C2=A0fixed this issue. =C2=A0We're trying to see where this dependency is = configured. =C2=A0 I found the references to slf4j in [1], [2], and [3] in = our code base. =C2=A0 I assume [1] and [2] are auto-generated during maven build. =C2=A0=C2=A0

Any idea which config file controls contents of [1] and [2]?=C2=A0

I also see that Stratos CLI code uses slf4j version 1.7.6 while cloud = controller, load balancer and the rest uses version 1.6.4. =C2=A0 Should we= try to ensure all Stratos components references the same version of sl4j? = =C2=A0If so, how?


1/- products/stratos/modules/p2-profile-gen/target/wso2carbon-core-4.2= .0/repository/components/default/configuration/org.eclipse.equinox.simpleco= nfigurator/bundles.info
slf4j,1.5.10.wso2v1,../plugins/slf4j_1.5.10.wso2v1.jar,4,true


3/-=C2=A0components/org.apache.stratos.cartridge.agent/pom.xml
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <dependency>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <groupId>org.slf4j<= /groupId>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <artifactId>slf4j-log4= j12</artifactId>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <version>1.7.5</ver= sion>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 </dependency>

Thanks,
-Jeffrey

From: "Martin Eppel (meppel)&q= uot; <meppel@cisco= .com>
Reply-To: "dev@stratos.apache.org" &= lt;dev@stratos.= apache.org>
Date: Sunday, July 13, 2014 12:03 P= M
To: "dev@stratos.apache.org" <dev@stratos.apache= .org>
Cc: "dev@stratos.incubator.apache.o= rg" <dev@stratos.incubator.apache.org>
Subject: RE: cartridge agent startu= p error (4.0.0 based source, local build)

We merged our local changes which (were work= ing and based on rc4), with 4.0.0 and now we are seeing this issue. Did we = change library versions (used by cartridge agent) between rc4 and 4.0.0 ? Which pom files define all the= cartridge agent dependencies ?

=C2=A0

Thanks

=C2=A0

Martin

=C2=A0

From:isuruh@w= so2.com [mailto:is= uruh@wso2.com] On Behalf Of Isuru Haththotuwa
Sent: Sunday, July 13, 2014 7:21 AM
To: dev
Cc: dev@stratos.incubator.apache.org
Subject: Re: cartridge agent startup error (4.0.0 based source, loca= l build)

=C2=A0

Hi Martin,

I have not seen this, but a Google search tells me w= hat you thought is correct. There are different versions of API and Integra= tion libraries. Do you have any local changes? If so, please check in those= classes if there are any imports related to a different version of SL4J.

=C2=A0

On Sun, Jul 13, 2014 at 3:46 PM, Martin Eppel (meppe= l) <meppel@cisco.c= om> wrote:

We are getting an error when the cartridge agent is = starting, looks like the (local) build it is pulling 2 different versions o= f SLF4J (see exception below) when the cartridge zip file is generated whic= h causes an incompatibility, has anyone else seen this ?

Any idea what's causing it and how to resolve it ?

Thanks

Martin


log4j:WARN Please initialize the log4j system properly.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/apache-stratos-cartridge-agent-4.0.0= /lib/slf4j-1.5.10.wso2v1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/apache-stratos-cartridge-agent-4.0.0= /lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. log4j:WARN Please initialize the log4j system properly.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/apache-stratos-cartridge-agent-4.0.0= /lib/slf4j-1.5.10.wso2v1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/apache-stratos-cartridge-agent-4.0.0= /lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. "/var/log/apache-stratos/cartridge-agent.log" 48L, 5449C =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1,1 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 Top
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.AbstractInacti= vityMonitor.onException(AbstractInactivityMonitor.java:310)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.TransportSuppo= rt.onException(TransportSupport.java:96)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.tcp.TcpTranspo= rt.run(TcpTransport.java:200)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.lang.Thread.run(Thread.java:745)
Exception in thread "Thread-3" java.lang.NoSuchMethodError: org.s= lf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Lj= ava/lang/Object;)Ljava/lang/String;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.slf4j.impl.Log4jLoggerAdapter.debug(Log4= jLoggerAdapter.java:246)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.thread.TaskRunnerFactory= .init(TaskRunnerFactory.java:91)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.thread.TaskRunnerFactory= .execute(TaskRunnerFactory.java:149)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.thread.TaskRunnerFactory= .execute(TaskRunnerFactory.java:145)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.tcp.TcpTranspo= rt.doStop(TcpTransport.java:538)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.util.ServiceSupport.stop= (ServiceSupport.java:71)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.tcp.TcpTranspo= rt.stop(TcpTransport.java:582)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.AbstractInacti= vityMonitor.stop(AbstractInactivityMonitor.java:145)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.TransportFilte= r.stop(TransportFilter.java:65)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.WireFormatNego= tiator.stop(WireFormatNegotiator.java:91)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.TransportFilte= r.stop(TransportFilter.java:65)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.TransportFilte= r.stop(TransportFilter.java:65)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.transport.ResponseCorrel= ator.stop(ResponseCorrelator.java:132)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.util.ServiceSupport.disp= ose(ServiceSupport.java:43)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.activemq.ActiveMQConnection.close= (ActiveMQConnection.java:725)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.stratos.messaging.broker.connect.= TopicConnector.close(TopicConnector.java:86)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.stratos.messaging.broker.subscrib= e.TopicSubscriber.run(TopicSubscriber.java:157)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.lang.Thread.run(Thread.java:745)

--




--
=
<= /div>



--

Udara Liyanage
Software Engineer
WSO2, Inc.:=C2=A0http://wso2.com
le= an. enterprise. middleware

phone:=C2=A0+94 71 443 6897
--047d7b6d82448c400104feabd619--