Re: [Dev] [IS] Generate token with auth code grant - Using same code twice
Many thanks Omindu..!!! On Sun, Dec 24, 2017 at 2:23 PM, Omindu Rathnaweera <omi...@wso2.com> wrote: > Hi Mahesh, > > This issue was fixed with a WUM update. > > Regards, > Omindu. > > On Sun, Dec 24, 2017 at 5:47 PM, Mahesh Chinthaka <mahe...@wso2.com> > wrote: > >> Hi Maduranga/ Danushka, >> >> I got the same NPE error while doing the same. After setting >> EnableOAuthCache to true in identity.xml, error disappeared. >> According to IDENTITY-5830 seems like it got fixed in 5.4.0-M1, here Im >> using 5.3.0 >> >> Do we have a backported fix for this ? Or is it ok if I keep that change >> as it is (EnableOAuthCache=true) >> Note this is for a production setup. >> >> Please advise. >> >> On Thu, Mar 23, 2017 at 5:06 AM, Danushka Fernando <danush...@wso2.com> >> wrote: >> >>> Createed https://wso2.org/jira/browse/IDENTITY-5830 to track this >>> >>> Thanks & Regards >>> Danushka Fernando >>> Senior Software Engineer >>> WSO2 inc. http://wso2.com/ >>> Mobile : +94716332729 <+94%2071%20633%202729> >>> >>> On Thu, Mar 23, 2017 at 9:22 AM, Maduranga Siriwardena < >>> madura...@wso2.com> wrote: >>> >>>> Sorry the code line should be [1]. Previous line I pointed [2] has the >>>> same issue. >>>> >>>> [1] https://github.com/wso2-extensions/identity-inbound-auth >>>> -oauth/blob/v5.3.4/components/org.wso2.carbon.identity.oauth >>>> /src/main/java/org/wso2/carbon/identity/oauth2/token/handler >>>> s/grant/AuthorizationCodeGrantHandler.java#L121 >>>> [2] https://github.com/wso2-extensions/identity-inbound-auth >>>> -oauth/blob/v5.3.4/components/org.wso2.carbon.identity.oauth >>>> /src/main/java/org/wso2/carbon/identity/oauth2/token/handler >>>> s/grant/AuthorizationCodeGrantHandler.java#L184 >>>> >>>> Thanks, >>>> >>>> On Wed, Mar 22, 2017 at 10:49 PM, Maduranga Siriwardena < >>>> madura...@wso2.com> wrote: >>>> >>>>> Hi Danushka, >>>>> >>>>> The problem seems to be oauthCache is only initialized when >>>>> EnableOAuthCache is set to true in identity.xml. Default value is false. >>>>> So >>>>> oauthCache is null and when we try to clear the cache entry [1] it gives >>>>> NPE. >>>>> >>>>> [1] https://github.com/wso2-extensions/identity-inbound-auth >>>>> -oauth/blob/v5.3.4/components/org.wso2.carbon.identity.oauth >>>>> /src/main/java/org/wso2/carbon/identity/oauth2/token/handler >>>>> s/grant/AuthorizationCodeGrantHandler.java#L184 >>>>> >>>>> Thanks, >>>>> >>>>> On Wed, Mar 22, 2017 at 10:41 PM, Danushka Fernando < >>>>> danush...@wso2.com> wrote: >>>>> >>>>>> Hi All >>>>>> I generated an auth code and used that code to issue an access token. >>>>>> In second time as expected its not giving me an access token if I use >>>>>> same >>>>>> code. But there is a null pointer. >>>>>> >>>>>> TID: [-1234] [] [2017-03-23 08:46:21,034] INFO >>>>>> {org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration} - >>>>>> The default Identity OAuth token issuer will be used. No custom token >>>>>> generator is set. >>>>>> TID: [-1234] [] [2017-03-23 08:47:12,696] WARN >>>>>> {org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint} >>>>>> - No session state found for the received Session ID : >>>>>> afbb08c6-d832-4154-9e68-116cc02b7b94 >>>>>> TID: [-1234] [] [2017-03-23 08:50:59,399] ERROR >>>>>> {org.wso2.carbon.identity.oauth2.OAuth2Service} - Error occurred >>>>>> while issuing the access token for Client ID : >>>>>> jF2udC5fHAZwglHYuYVt9rXdgrIa, User ID null, Scope : [] and Grant Type : >>>>>> authorization_code >>>>>> java.lang.NullPointerException >>>>>> at org.wso2.carbon.identity.oauth2.token.handlers.grant.Authori >>>>>> zationCodeGrantHandler.validateGrant(AuthorizationCodeGrantH >>>>>> andler.java:121) >>>>>> at org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issu >>>>>
Re: [Dev] [IS] Generate token with auth code grant - Using same code twice
Valve.java:116) >>>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd >>>> apter.java:452) >>>> at org.apache.coyote.http11.AbstractHttp11Processor.process(Abs >>>> tractHttp11Processor.java:1087) >>>> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler >>>> .process(AbstractProtocol.java:637) >>>> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun >>>> (NioEndpoint.java:1756) >>>> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(N >>>> ioEndpoint.java:1715) >>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >>>> Executor.java:1142) >>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >>>> lExecutor.java:617) >>>> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.r >>>> un(TaskThread.java:61) >>>> at java.lang.Thread.run(Thread.java:745) >>>> >>>> >>>> Thanks & Regards >>>> Danushka Fernando >>>> Senior Software Engineer >>>> WSO2 inc. http://wso2.com/ >>>> Mobile : +94716332729 <+94%2071%20633%202729> >>>> >>>> ___ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Maduranga Siriwardena >>> Software Engineer >>> WSO2 Inc; http://wso2.com/ >>> >>> Email: madura...@wso2.com >>> Mobile: +94718990591 <+94%2071%20899%200591> >>> Blog: *https://madurangasiriwardena.wordpress.com/ >>> <https://madurangasiriwardena.wordpress.com/>* >>> <http://wso2.com/signature> >>> >> >> >> >> -- >> Maduranga Siriwardena >> Software Engineer >> WSO2 Inc; http://wso2.com/ >> >> Email: madura...@wso2.com >> Mobile: +94718990591 <+94%2071%20899%200591> >> Blog: *https://madurangasiriwardena.wordpress.com/ >> <https://madurangasiriwardena.wordpress.com/>* >> <http://wso2.com/signature> >> > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Mahesh Chinthaka Vidanagama* | Senior Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?
Hi, Thanks. It means in order to get this fix I will need to update it to version 0.9.0.ALPHA4.wso2*v4*. On Thu, Feb 2, 2017 at 10:39 AM, madhuka udantha <madhukaudan...@gmail.com> wrote: > Hi, > > It is fixed some years ago. (on 0.9.0.ALPHA4.wso2v4). > > Thanks > > On Wed, Jan 25, 2017 at 9:10 PM, Mahesh Chinthaka <mahe...@wso2.com> > wrote: > >> Hi Manu, >> Thanks for the help. >> I found the jira[1] related to this. And it has been fixed with the >> commit[2]. >> >> [1] - https://wso2.org/jira/browse/JAGGERY-359 >> [2] - https://github.com/wso2/jaggery/commit/a5fa00957e6686c9469 >> 00e38ab5561c30f45f58a >> >> On Wed, Jan 25, 2017 at 7:54 PM, Manuranga Perera <m...@wso2.com> wrote: >> >>> I think it's fixed in latest. Old one doesn't have a null check [1] but >>> the new one [2] does. Can you please back port the fixed line, build, patch >>> and try? >>> >>> [1] https://github.com/wso2/jaggery/blob/0.9.0.ALPHA4.wso2v1/com >>> ponents/hostobjects/org.jaggeryjs.hostobjects.xhr/src/main/ >>> java/org/jaggeryjs/hostobjects/xhr/XMLHttpRequestHostObject.java#L527 >>> [2] https://github.com/wso2/jaggery/blob/master/components/hosto >>> bjects/org.jaggeryjs.hostobjects.xhr/src/main/java/org/ >>> jaggeryjs/hostobjects/xhr/XMLHttpRequestHostObject.java#L561 >>> >>> On Wed, Jan 25, 2017 at 2:10 PM, Mahesh Chinthaka <mahe...@wso2.com> >>> wrote: >>> >>>> Hi Jaggery Team, >>>> >>>> Actually the reason is, >>>> the endpoint im calling doesnt return anything as response. Just '204 >>>> No Content' >>>> >>>> Since the response is empty/null, it returns a null pointer exception. >>>> IMO no content responses also should be handled by hostobject. >>>> Is this fixed now? >>>> Im using *org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar* >>>> >>>> On Wed, Jan 25, 2017 at 7:00 PM, Mahesh Chinthaka <mahe...@wso2.com> >>>> wrote: >>>> >>>>> Even though this error occurs, http call happens succesfully. That is >>>>> weird. >>>>> >>>>> On Wed, Jan 25, 2017 at 6:58 PM, Mahesh Chinthaka <mahe...@wso2.com> >>>>> wrote: >>>>> >>>>>> >>>>>> Hi all, >>>>>> >>>>>> Im using jaggery post to a http post call. >>>>>> I dont need to set the headers, type and data as per my use case >>>>>> when I use like below, >>>>>> >>>>>> var result = post(url); >>>>>> >>>>>> It throws following error. >>>>>> >>>>>> Caused by: java.lang.NullPointerException >>>>>> >>>>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.execu >>>>>> teRequest(XMLHttpRequestHostObject.java:527) >>>>>> >>>>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send( >>>>>> XMLHttpRequestHostObject.java:515) >>>>>> >>>>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFun >>>>>> ction_send(XMLHttpRequestHostObject.java:279) >>>>>> >>>>>> at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source) >>>>>> >>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >>>>>> thodAccessorImpl.java:43) >>>>>> >>>>>> at java.lang.reflect.Method.invoke(Method.java:606) >>>>>> >>>>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) >>>>>> >>>>>> Any idea please ? >>>>>> >>>>>> -- >>>>>> *Mahesh Chinthaka Vidanagama* | Software Engineer >>>>>> WSO2, Inc | lean. enterprise. middleware. >>>>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >>>>>> Email: mahe...@wso2.com | Web: www.wso2.com >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> *Mahesh Chinthaka Vidanagama* | Software Engineer >>>>> WSO2, Inc | lean. enterprise. middleware. >>>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >>>>> Email: mahe...@wso2.com | Web: www.wso2.com >>>>> >>>> >>>> >>>> >>>> -- >>>> *Mahesh Chinthaka Vidanagama* | Software Engineer >>>> WSO2, Inc | lean. enterprise. middleware. >>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >>>> Email: mahe...@wso2.com | Web: www.wso2.com >>>> >>> >>> >>> >>> -- >>> With regards, >>> *Manu*ranga Perera. >>> >>> phone : 071 7 70 20 50 >>> mail : m...@wso2.com >>> >> >> >> >> -- >> *Mahesh Chinthaka Vidanagama* | Software Engineer >> WSO2, Inc | lean. enterprise. middleware. >> #20, Palm Grove, Colombo 03, Sri Lanka >> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >> Email: mahe...@wso2.com | Web: www.wso2.com >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Cheers, > Madhuka Udantha > http://madhukaudantha.blogspot.com > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?
Hi Manu, Thanks for the help. I found the jira[1] related to this. And it has been fixed with the commit[2]. [1] - https://wso2.org/jira/browse/JAGGERY-359 [2] - https://github.com/wso2/jaggery/commit/a5fa00957e6686c946900e38ab5561c30f45f58a On Wed, Jan 25, 2017 at 7:54 PM, Manuranga Perera <m...@wso2.com> wrote: > I think it's fixed in latest. Old one doesn't have a null check [1] but > the new one [2] does. Can you please back port the fixed line, build, patch > and try? > > [1] https://github.com/wso2/jaggery/blob/0.9.0.ALPHA4. > wso2v1/components/hostobjects/org.jaggeryjs.hostobjects.xhr/ > src/main/java/org/jaggeryjs/hostobjects/xhr/XMLHttpRequestHostObject.java# > L527 > [2] https://github.com/wso2/jaggery/blob/master/ > components/hostobjects/org.jaggeryjs.hostobjects.xhr/src/ > main/java/org/jaggeryjs/hostobjects/xhr/XMLHttpRequestHostObject.java#L561 > > On Wed, Jan 25, 2017 at 2:10 PM, Mahesh Chinthaka <mahe...@wso2.com> > wrote: > >> Hi Jaggery Team, >> >> Actually the reason is, >> the endpoint im calling doesnt return anything as response. Just '204 No >> Content' >> >> Since the response is empty/null, it returns a null pointer exception. >> IMO no content responses also should be handled by hostobject. >> Is this fixed now? >> Im using *org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar* >> >> On Wed, Jan 25, 2017 at 7:00 PM, Mahesh Chinthaka <mahe...@wso2.com> >> wrote: >> >>> Even though this error occurs, http call happens succesfully. That is >>> weird. >>> >>> On Wed, Jan 25, 2017 at 6:58 PM, Mahesh Chinthaka <mahe...@wso2.com> >>> wrote: >>> >>>> >>>> Hi all, >>>> >>>> Im using jaggery post to a http post call. >>>> I dont need to set the headers, type and data as per my use case >>>> when I use like below, >>>> >>>> var result = post(url); >>>> >>>> It throws following error. >>>> >>>> Caused by: java.lang.NullPointerException >>>> >>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.execu >>>> teRequest(XMLHttpRequestHostObject.java:527) >>>> >>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send( >>>> XMLHttpRequestHostObject.java:515) >>>> >>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFun >>>> ction_send(XMLHttpRequestHostObject.java:279) >>>> >>>> at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source) >>>> >>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >>>> thodAccessorImpl.java:43) >>>> >>>> at java.lang.reflect.Method.invoke(Method.java:606) >>>> >>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) >>>> >>>> Any idea please ? >>>> >>>> -- >>>> *Mahesh Chinthaka Vidanagama* | Software Engineer >>>> WSO2, Inc | lean. enterprise. middleware. >>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >>>> Email: mahe...@wso2.com | Web: www.wso2.com >>>> >>> >>> >>> >>> -- >>> *Mahesh Chinthaka Vidanagama* | Software Engineer >>> WSO2, Inc | lean. enterprise. middleware. >>> #20, Palm Grove, Colombo 03, Sri Lanka >>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >>> Email: mahe...@wso2.com | Web: www.wso2.com >>> >> >> >> >> -- >> *Mahesh Chinthaka Vidanagama* | Software Engineer >> WSO2, Inc | lean. enterprise. middleware. >> #20, Palm Grove, Colombo 03, Sri Lanka >> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >> Email: mahe...@wso2.com | Web: www.wso2.com >> > > > > -- > With regards, > *Manu*ranga Perera. > > phone : 071 7 70 20 50 > mail : m...@wso2.com > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?
Hi Jaggery Team, Actually the reason is, the endpoint im calling doesnt return anything as response. Just '204 No Content' Since the response is empty/null, it returns a null pointer exception. IMO no content responses also should be handled by hostobject. Is this fixed now? Im using *org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar* On Wed, Jan 25, 2017 at 7:00 PM, Mahesh Chinthaka <mahe...@wso2.com> wrote: > Even though this error occurs, http call happens succesfully. That is > weird. > > On Wed, Jan 25, 2017 at 6:58 PM, Mahesh Chinthaka <mahe...@wso2.com> > wrote: > >> >> Hi all, >> >> Im using jaggery post to a http post call. >> I dont need to set the headers, type and data as per my use case >> when I use like below, >> >> var result = post(url); >> >> It throws following error. >> >> Caused by: java.lang.NullPointerException >> >> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.execu >> teRequest(XMLHttpRequestHostObject.java:527) >> >> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send( >> XMLHttpRequestHostObject.java:515) >> >> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFun >> ction_send(XMLHttpRequestHostObject.java:279) >> >> at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source) >> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >> thodAccessorImpl.java:43) >> >> at java.lang.reflect.Method.invoke(Method.java:606) >> >> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) >> >> Any idea please ? >> >> -- >> *Mahesh Chinthaka Vidanagama* | Software Engineer >> WSO2, Inc | lean. enterprise. middleware. >> #20, Palm Grove, Colombo 03, Sri Lanka >> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >> Email: mahe...@wso2.com | Web: www.wso2.com >> > > > > -- > *Mahesh Chinthaka Vidanagama* | Software Engineer > WSO2, Inc | lean. enterprise. middleware. > #20, Palm Grove, Colombo 03, Sri Lanka > Mobile: +94 71 63 63 083 | Work: +94 112 145 345 > Email: mahe...@wso2.com | Web: www.wso2.com > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?
Even though this error occurs, http call happens succesfully. That is weird. On Wed, Jan 25, 2017 at 6:58 PM, Mahesh Chinthaka <mahe...@wso2.com> wrote: > > Hi all, > > Im using jaggery post to a http post call. > I dont need to set the headers, type and data as per my use case > when I use like below, > > var result = post(url); > > It throws following error. > > Caused by: java.lang.NullPointerException > > at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.executeRequest( > XMLHttpRequestHostObject.java:527) > > at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send( > XMLHttpRequestHostObject.java:515) > > at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFunction_send( > XMLHttpRequestHostObject.java:279) > > at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:606) > > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) > > Any idea please ? > > -- > *Mahesh Chinthaka Vidanagama* | Software Engineer > WSO2, Inc | lean. enterprise. middleware. > #20, Palm Grove, Colombo 03, Sri Lanka > Mobile: +94 71 63 63 083 | Work: +94 112 145 345 > Email: mahe...@wso2.com | Web: www.wso2.com > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?
Hi all, Im using jaggery post to a http post call. I dont need to set the headers, type and data as per my use case when I use like below, var result = post(url); It throws following error. Caused by: java.lang.NullPointerException at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.executeRequest(XMLHttpRequestHostObject.java:527) at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(XMLHttpRequestHostObject.java:515) at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFunction_send(XMLHttpRequestHostObject.java:279) at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) Any idea please ? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Password Policy in WSO2 Identity Server
Hi Hanen, Which IS version are you using ? this is for 5.0.0 https://docs.wso2.com/display/IS500/Password+Policies On Mon, Nov 21, 2016 at 10:10 AM, Hanen Ben Rhouma <hanen...@gmail.com> wrote: > Hello, > > Does WSO2 IS support password policy definition per tenant ? If so, is > there any documentation about it ? > > > Regards, > Hanen > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Cloud] "When createAppInDataBase failed, adding addAppCreationEvent also getting failed"
Yes adding a failure pop up message would be enough IMO. I forgot to mention that in my previous reply. Thanks Danushka On Mon, Jul 18, 2016 at 9:13 AM, Danushka Fernando <danush...@wso2.com> wrote: > To be specific, AFAIK even we name these as events, This is not for data > publishing kind of a thing. This is only to render the ui. Then there is an > issue of UI when its broken in earlier stages it don't show the msg box > with msg of application creation failed. So before showing that it should > show a red 'X' mark in-front of particular action. eg: Building Docker > Image. > IIRC when the all events got removed from DB, UI keep spinning with empty > table. So lets not add the entry of failed event. And then when there are > no events in event table for configured time lets popup failure message. > @Manjula: WDYT? > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > > On Mon, Jul 18, 2016 at 8:50 AM, Mahesh Chinthaka <mahe...@wso2.com> > wrote: > >> Hi All, >> >> Isnt it better to avoid adding an event at this point ? >> Since nothing has been created related to application , no need of adding >> an event right ? >> >> WDYT ? >> >> On Sat, Jul 9, 2016 at 8:19 AM, Amalka Subasinghe <ama...@wso2.com> >> wrote: >> >>> Hi, >>> >>> In our app creation logic, we have number of steps and when each step >>> failed/succeeded, we add a event to a event table. >>> >>> We found a situation, where the createAppInDataBase step failed, then >>> the addAppCreationEvent also getting failed. >>> That's because, in createAppInDataBase we add application and version >>> data to the database and then in addAppCreationEvent we query the >>> AC_VERSION table to get the application version. >>> >>> How we fix this issue? although the createAppInDataBase step failed, >>> addAppCreationEvent cannot be failed. >>> >>> [1] https://wso2.org/jira/browse/APPCLOUD-206 >>> >>> Thanks >>> Amalka >>> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Mahesh Chinthaka Vidanagama* | Software Engineer >> WSO2, Inc | lean. enterprise. middleware. >> #20, Palm Grove, Colombo 03, Sri Lanka >> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >> Email: mahe...@wso2.com | Web: www.wso2.com >> > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Cloud] "When createAppInDataBase failed, adding addAppCreationEvent also getting failed"
Hi All, Isnt it better to avoid adding an event at this point ? Since nothing has been created related to application , no need of adding an event right ? WDYT ? On Sat, Jul 9, 2016 at 8:19 AM, Amalka Subasinghe <ama...@wso2.com> wrote: > Hi, > > In our app creation logic, we have number of steps and when each step > failed/succeeded, we add a event to a event table. > > We found a situation, where the createAppInDataBase step failed, then the > addAppCreationEvent also getting failed. > That's because, in createAppInDataBase we add application and version data > to the database and then in addAppCreationEvent we query the AC_VERSION > table to get the application version. > > How we fix this issue? although the createAppInDataBase step failed, > addAppCreationEvent cannot be failed. > > [1] https://wso2.org/jira/browse/APPCLOUD-206 > > Thanks > Amalka > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] log user events to audit.log file via Jaggery block layer
Hi Amalka, All the requests/actions go through it (router.jag). On Sun, Jul 3, 2016 at 7:16 AM, Amalka Subasinghe <ama...@wso2.com> wrote: > Hi, > > We can log adding following to the jaggery. > > var audit = org.wso2.carbon.CarbonConstants.AUDIT_LOG; > audit.info("User : " + jagg.getUser() + ", Action : " + action); > > Here. I want to log who is the user logged in and what action he called. > Would it be ok to add this code to the router jag in app cloud? As I know > all requests/actions go through it. am I right? > > Thanks > Amalka > > On Fri, Jul 1, 2016 at 12:13 PM, Amalka Subasinghe <ama...@wso2.com> > wrote: > >> Hi, >> >> I have a Jaggery app deployed in WSO2AS, I want to log user activities >> via block layer to a separate file (to audit.log). >> Please help. >> >> Thanks >> Amalka >> >> > > > -- > Amalka Subasinghe > > WSO2 Inc. > Mobile: +94 77 9401267 > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Test Automation] How can we attach a file with post request in a test case
Hi, I want to attach a file for a post request along with some other parameters and values. What is the usual practice we follow in wso2 test automation framework ? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Installing IBM Websphere MQ
Thanks Aruna On Wed, Mar 9, 2016 at 2:23 PM, Aruna Karunarathna <ar...@wso2.com> wrote: > > > On Wed, Mar 9, 2016 at 2:18 PM, Mahesh Chinthaka <mahe...@wso2.com> wrote: > >> Hi, >> >> Has anybody tried $subject. >> Im trying to do [1]. But facing some issues on installing IBM MQ on my >> machine. >> Im using a Mac with Os X. >> > > I tried to install in Ubuntu, but unable to do so. But installed in > Windows without issues. > >> >> >> [1] - >> https://docs.wso2.com/display/ESB481/Configure+with+IBM+WebSphere+MQ >> >> -- >> *Mahesh Chinthaka Vidanagama* | Software Engineer >> WSO2, Inc | lean. enterprise. middleware. >> #20, Palm Grove, Colombo 03, Sri Lanka >> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >> Email: mahe...@wso2.com | Web: www.wso2.com >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > *Aruna Sujith Karunarathna * > WSO2, Inc | lean. enterprise. middleware. > #20, Palm Grove, Colombo 03, Sri Lanka > Mobile: +94 71 9040362 | Work: +94 112145345 > Email: ar...@wso2.com | Web: www.wso2.com > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Installing IBM Websphere MQ
Hi, Has anybody tried $subject. Im trying to do [1]. But facing some issues on installing IBM MQ on my machine. Im using a Mac with Os X. [1] - https://docs.wso2.com/display/ESB481/Configure+with+IBM+WebSphere+MQ -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [EMM] Error while starting EMM 1.1.0 fresh pack
I cloned it from git repository and built it. Still im having the issue. Anyway server get started , even though the issue occurs. Can I just ignore that error and carry on ?? On Fri, Nov 27, 2015 at 11:37 AM, Mahesh Chinthaka <mahe...@wso2.com> wrote: > Adding some EMM team members. > > On Fri, Nov 27, 2015 at 11:22 AM, Mahesh Chinthaka <mahe...@wso2.com> > wrote: > >> Guys, >> >> What was the solution for this ?? >> Me too getting the same error when starting a fresh pack of EMM 1.1.0. >> >> >> On Fri, Jun 5, 2015 at 11:25 AM, Dilan Udara Ariyaratne <dil...@wso2.com> >> wrote: >> >>> Hi Amalka, >>> >>> This log is questionable as username & password prints "null". >>> If you go to the JAGH2 data-source configuration in >>> master-data-source.xml, correct username is "sa" and password is simply >>> empty string, "". >>> It seems that there is an issue in reading the configurations properly. >>> >>> Adding SameeraM & Manu to the thread... >>> >>> >>> >>> *Dilan U. Ariyaratne* >>> Software Engineer >>> WSO2 Inc. <http://wso2.com/> >>> Mobile: +94775149066 >>> lean . enterprise . middleware >>> >>> On Thu, Jun 4, 2015 at 4:59 PM, Amalka Subasinghe <ama...@wso2.com> >>> wrote: >>> >>>> logs >>>> >>>> [2015-06-04 16:53:44,694] INFO {JAGGERY.config.app:js} - Emitting >>>> event : tenantLoad >>>> [2015-06-04 16:53:44,846] INFO {debugging} - >>>> : config {"dataSource" : "JAGH2"} >>>> [2015-06-04 16:53:44,846] INFO {debugging} - >>>> : username null >>>> [2015-06-04 16:53:44,846] INFO {debugging} - >>>> : password null >>>> [2015-06-04 16:53:45,275] ERROR >>>> {org.jaggeryjs.hostobjects.db.DatabaseHostObject} - Failed to get >>>> connection >>>> org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-140] >>>> >>>> >>>> On Thu, Jun 4, 2015 at 4:39 PM, Dilan Udara Ariyaratne <dil...@wso2.com >>>> > wrote: >>>> >>>>> Hi Amalka, >>>>> >>>>> Can you update your EMM server pack with following file, restart the >>>>> server and send the startup logs to see >>>>> what is going on in this specific case. >>>>> >>>>> File to replace (with attached driver.js) : >>>>> wso2emm-1.1.0/repository/deployment/server/jaggeryapps/publisher/modules/data/driver.js >>>>> >>>>> Cheers, >>>>> Dilan. >>>>> >>>>> >>>>> >>>>> *Dilan U. Ariyaratne* >>>>> Software Engineer >>>>> WSO2 Inc. <http://wso2.com/> >>>>> Mobile: +94775149066 >>>>> lean . enterprise . middleware >>>>> >>>>> On Thu, Jun 4, 2015 at 2:52 PM, Amalka Subasinghe <ama...@wso2.com> >>>>> wrote: >>>>> >>>>>> I downloaded the pack from product page and started. didn't do any >>>>>> configuration changes. >>>>>> >>>>>> On Thu, Jun 4, 2015 at 2:33 PM, Dilan Udara Ariyaratne < >>>>>> dil...@wso2.com> wrote: >>>>>> >>>>>>> Hi Amalka, >>>>>>> >>>>>>> Did you do any configuration changes or this is just a >>>>>>> newly-unzipped-pack of EMM 1.1.0. >>>>>>> If it was a newly-unzipped-pack of EMM 1.1.0, this is unlikely to >>>>>>> happen. >>>>>>> >>>>>>> Cheers, >>>>>>> Dilan. >>>>>>> >>>>>>> >>>>>>> >>>>>>> *Dilan U. Ariyaratne* >>>>>>> Software Engineer >>>>>>> WSO2 Inc. <http://wso2.com/> >>>>>>> Mobile: +94775149066 >>>>>>> lean . enterprise . middleware >>>>>>> >>>>>>> On Wed, Jun 3, 2015 at 4:41 PM, Amalka Subasinghe <ama...@wso2.com> >>>>>>> wrote: >>>>>>> >>>>>>>> >>>>&g
Re: [Dev] [EMM] Error while starting EMM 1.1.0 fresh pack
(NativeArray.java:1584) >>>>>> at >>>>>> org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:318) >>>>>> at >>>>>> org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) >>>>>> at >>>>>> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) >>>>>> at >>>>>> org.mozilla.javascript.gen._event__event_js_17._c_anonymous_6([event]/event.js:69) >>>>>> at >>>>>> org.mozilla.javascript.gen._event__event_js_17.call([event]/event.js) >>>>>> at >>>>>> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) >>>>>> at org.mozilla.javascript.gen.wso2js_33._c_script_0(wso2js:75) >>>>>> at org.mozilla.javascript.gen.wso2js_33.call(wso2js) >>>>>> at >>>>>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) >>>>>> at >>>>>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) >>>>>> at org.mozilla.javascript.gen.wso2js_33.call(wso2js) >>>>>> at org.mozilla.javascript.gen.wso2js_33.exec(wso2js) >>>>>> at >>>>>> org.mozilla.javascript.Context.evaluateString(Context.java:1079) >>>>>> at >>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:557) >>>>>> at >>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) >>>>>> at >>>>>> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.executeScripts(TomcatJaggeryWebappsDeployer.java:463) >>>>>> at >>>>>> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.access$500(TomcatJaggeryWebappsDeployer.java:60) >>>>>> at >>>>>> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:283) >>>>>> at >>>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) >>>>>> at >>>>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) >>>>>> at >>>>>> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) >>>>>> at >>>>>> org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347) >>>>>> at >>>>>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5350) >>>>>> at >>>>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >>>>>> at >>>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) >>>>>> at >>>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) >>>>>> at >>>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) >>>>>> at >>>>>> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:280) >>>>>> at >>>>>> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:202) >>>>>> at >>>>>> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:204) >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:213) >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:139) >>>>>> at >>>>>> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:109) >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:140) >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:90) >>>>>> at >>>>>> org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59) >>>>>> at >>>>>> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) >>>>>> at >>>>>> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807) >>>>>> at >>>>>> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) >>>>>> at >>>>>> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377) >>>>>> at >>>>>> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) >>>>>> at >>>>>> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135) >>>>>> at >>>>>> org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:464) >>>>>> at >>>>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95) >>>>>> at >>>>>> org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65) >>>>>> at >>>>>> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398) >>>>>> at >>>>>> org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219) >>>>>> at >>>>>> org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77) >>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>> at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>>>> at java.lang.reflect.Method.invoke(Method.java:606) >>>>>> at >>>>>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) >>>>>> at >>>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >>>>>> at >>>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) >>>>>> at >>>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) >>>>>> at >>>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) >>>>>> at >>>>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) >>>>>> at >>>>>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) >>>>>> at >>>>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) >>>>>> at >>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >>>>>> at >>>>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >>>>>> at >>>>>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >>>>>> at >>>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >>>>>> at >>>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >>>>>> at >>>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >>>>>> at >>>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >>>>>> at >>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >>>>>> at >>>>>> org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81) >>>>>> at >>>>>> org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60) >>>>>> at >>>>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40) >>>>>> at >>>>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38) >>>>>> at >>>>>> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1267) >>>>>> at >>>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1186) >>>>>> at >>>>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081) >>>>>> at >>>>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027) >>>>>> at >>>>>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314) >>>>>> at >>>>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >>>>>> at >>>>>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) >>>>>> at >>>>>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) >>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >>>>>> at >>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>>>>> at >>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>>>>> at java.lang.Thread.run(Thread.java:745) >>>>>> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 >>>>>> at >>>>>> org.jaggeryjs.hostobjects.db.DatabaseHostObject.jsConstructor(DatabaseHostObject.java:94) >>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>> at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>>>> at java.lang.reflect.Method.invoke(Method.java:606) >>>>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) >>>>>> ... 141 more >>>>>> >>>>>> Thanks >>>>>> Amalka >>>>>> >>>>>> ___ >>>>>> Dev mailing list >>>>>> Dev@wso2.org >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Amalka Subasinghe >>>> Senior Software Engineer >>>> WSO2 Inc. >>>> Mobile: +94 77 9401267 >>>> >>> >>> >> >> >> -- >> Amalka Subasinghe >> Senior Software Engineer >> WSO2 Inc. >> Mobile: +94 77 9401267 >> > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [EMM] Error while starting EMM 1.1.0 fresh pack
Adding some EMM team members. On Fri, Nov 27, 2015 at 11:22 AM, Mahesh Chinthaka <mahe...@wso2.com> wrote: > Guys, > > What was the solution for this ?? > Me too getting the same error when starting a fresh pack of EMM 1.1.0. > > > On Fri, Jun 5, 2015 at 11:25 AM, Dilan Udara Ariyaratne <dil...@wso2.com> > wrote: > >> Hi Amalka, >> >> This log is questionable as username & password prints "null". >> If you go to the JAGH2 data-source configuration in >> master-data-source.xml, correct username is "sa" and password is simply >> empty string, "". >> It seems that there is an issue in reading the configurations properly. >> >> Adding SameeraM & Manu to the thread... >> >> >> >> *Dilan U. Ariyaratne* >> Software Engineer >> WSO2 Inc. <http://wso2.com/> >> Mobile: +94775149066 >> lean . enterprise . middleware >> >> On Thu, Jun 4, 2015 at 4:59 PM, Amalka Subasinghe <ama...@wso2.com> >> wrote: >> >>> logs >>> >>> [2015-06-04 16:53:44,694] INFO {JAGGERY.config.app:js} - Emitting >>> event : tenantLoad >>> [2015-06-04 16:53:44,846] INFO {debugging} - >>> : config {"dataSource" : "JAGH2"} >>> [2015-06-04 16:53:44,846] INFO {debugging} - >>> : username null >>> [2015-06-04 16:53:44,846] INFO {debugging} - >>> : password null >>> [2015-06-04 16:53:45,275] ERROR >>> {org.jaggeryjs.hostobjects.db.DatabaseHostObject} - Failed to get >>> connection >>> org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-140] >>> >>> >>> On Thu, Jun 4, 2015 at 4:39 PM, Dilan Udara Ariyaratne <dil...@wso2.com> >>> wrote: >>> >>>> Hi Amalka, >>>> >>>> Can you update your EMM server pack with following file, restart the >>>> server and send the startup logs to see >>>> what is going on in this specific case. >>>> >>>> File to replace (with attached driver.js) : >>>> wso2emm-1.1.0/repository/deployment/server/jaggeryapps/publisher/modules/data/driver.js >>>> >>>> Cheers, >>>> Dilan. >>>> >>>> >>>> >>>> *Dilan U. Ariyaratne* >>>> Software Engineer >>>> WSO2 Inc. <http://wso2.com/> >>>> Mobile: +94775149066 >>>> lean . enterprise . middleware >>>> >>>> On Thu, Jun 4, 2015 at 2:52 PM, Amalka Subasinghe <ama...@wso2.com> >>>> wrote: >>>> >>>>> I downloaded the pack from product page and started. didn't do any >>>>> configuration changes. >>>>> >>>>> On Thu, Jun 4, 2015 at 2:33 PM, Dilan Udara Ariyaratne < >>>>> dil...@wso2.com> wrote: >>>>> >>>>>> Hi Amalka, >>>>>> >>>>>> Did you do any configuration changes or this is just a >>>>>> newly-unzipped-pack of EMM 1.1.0. >>>>>> If it was a newly-unzipped-pack of EMM 1.1.0, this is unlikely to >>>>>> happen. >>>>>> >>>>>> Cheers, >>>>>> Dilan. >>>>>> >>>>>> >>>>>> >>>>>> *Dilan U. Ariyaratne* >>>>>> Software Engineer >>>>>> WSO2 Inc. <http://wso2.com/> >>>>>> Mobile: +94775149066 >>>>>> lean . enterprise . middleware >>>>>> >>>>>> On Wed, Jun 3, 2015 at 4:41 PM, Amalka Subasinghe <ama...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I got the following error when starting the EMM 1.1.0 fresh pack >>>>>>> >>>>>>> [2015-06-03 16:38:57,592] ERROR >>>>>>> {org.jaggeryjs.hostobjects.db.DatabaseHostObject} - Failed to get >>>>>>> connection >>>>>>> org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-140] >>>>>>> at >>>>>>> org.h2.message.DbException.getJdbcSQLException(DbException.java:327) >>>>>>> at org.h2.message.DbException.get(DbException.java:167) >>>>>>> at org.
Re: [Dev] [EMM] Error while starting EMM 1.1.0 fresh pack
Hi Dilshan, Yes , I replaced that file. I got the same log as Amalka. username and password is null. And I checked master-datasources.xml file, there username is "sa" password is empty for JAGH2 datasource. Thanks On Fri, Nov 27, 2015 at 12:21 PM, Dilshan Edirisuriya <dils...@wso2.com> wrote: > Hi Mahesh, > > DId you try the instruction provided by Dilan at the top of the thread? > > Regards, > > Dilshan > > On Fri, Nov 27, 2015 at 12:20 PM, Mahesh Chinthaka <mahe...@wso2.com> > wrote: > >> I cloned it from git repository and built it. Still im having the issue. >> Anyway server get started , even though the issue occurs. >> Can I just ignore that error and carry on ?? >> >> On Fri, Nov 27, 2015 at 11:37 AM, Mahesh Chinthaka <mahe...@wso2.com> >> wrote: >> >>> Adding some EMM team members. >>> >>> On Fri, Nov 27, 2015 at 11:22 AM, Mahesh Chinthaka <mahe...@wso2.com> >>> wrote: >>> >>>> Guys, >>>> >>>> What was the solution for this ?? >>>> Me too getting the same error when starting a fresh pack of EMM 1.1.0. >>>> >>>> >>>> On Fri, Jun 5, 2015 at 11:25 AM, Dilan Udara Ariyaratne < >>>> dil...@wso2.com> wrote: >>>> >>>>> Hi Amalka, >>>>> >>>>> This log is questionable as username & password prints "null". >>>>> If you go to the JAGH2 data-source configuration in >>>>> master-data-source.xml, correct username is "sa" and password is simply >>>>> empty string, "". >>>>> It seems that there is an issue in reading the configurations properly. >>>>> >>>>> Adding SameeraM & Manu to the thread... >>>>> >>>>> >>>>> >>>>> *Dilan U. Ariyaratne* >>>>> Software Engineer >>>>> WSO2 Inc. <http://wso2.com/> >>>>> Mobile: +94775149066 >>>>> lean . enterprise . middleware >>>>> >>>>> On Thu, Jun 4, 2015 at 4:59 PM, Amalka Subasinghe <ama...@wso2.com> >>>>> wrote: >>>>> >>>>>> logs >>>>>> >>>>>> [2015-06-04 16:53:44,694] INFO {JAGGERY.config.app:js} - Emitting >>>>>> event : tenantLoad >>>>>> [2015-06-04 16:53:44,846] INFO {debugging} - >>>>>> : config {"dataSource" : "JAGH2"} >>>>>> [2015-06-04 16:53:44,846] INFO {debugging} - >>>>>> : username null >>>>>> [2015-06-04 16:53:44,846] INFO {debugging} - >>>>>> : password null >>>>>> [2015-06-04 16:53:45,275] ERROR >>>>>> {org.jaggeryjs.hostobjects.db.DatabaseHostObject} - Failed to get >>>>>> connection >>>>>> org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-140] >>>>>> >>>>>> >>>>>> On Thu, Jun 4, 2015 at 4:39 PM, Dilan Udara Ariyaratne < >>>>>> dil...@wso2.com> wrote: >>>>>> >>>>>>> Hi Amalka, >>>>>>> >>>>>>> Can you update your EMM server pack with following file, restart the >>>>>>> server and send the startup logs to see >>>>>>> what is going on in this specific case. >>>>>>> >>>>>>> File to replace (with attached driver.js) : >>>>>>> wso2emm-1.1.0/repository/deployment/server/jaggeryapps/publisher/modules/data/driver.js >>>>>>> >>>>>>> Cheers, >>>>>>> Dilan. >>>>>>> >>>>>>> >>>>>>> >>>>>>> *Dilan U. Ariyaratne* >>>>>>> Software Engineer >>>>>>> WSO2 Inc. <http://wso2.com/> >>>>>>> Mobile: +94775149066 >>>>>>> lean . enterprise . middleware >>>>>>> >>>>>>> On Thu, Jun 4, 2015 at 2:52 PM, Amalka Subasinghe <ama...@wso2.com> >>>>>>> wrote: >>>>>>> >>>>>>>> I downloaded the pack from product page and started. didn't do any >>>>>>>> configuration changes. >>>>>>>> >>>>>>>>
Re: [Dev] [EMM] Error while starting EMM 1.1.0 fresh pack
Hi all, I changed the url for JAGH2 datasource in master-datasources.xml file to the same path as others. jdbc:h2:repository/database/test ;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6 Then the error got vanished. Early the file got created in root jdbc:h2:~/test;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=6 Anyway I will carry on my work with this setting. On Fri, Nov 27, 2015 at 12:27 PM, Mahesh Chinthaka <mahe...@wso2.com> wrote: > Hi Dilshan, > Yes , I replaced that file. I got the same log as Amalka. username and > password is null. > And I checked master-datasources.xml file, there username is "sa" > password is empty for JAGH2 datasource. > > Thanks > > On Fri, Nov 27, 2015 at 12:21 PM, Dilshan Edirisuriya <dils...@wso2.com> > wrote: > >> Hi Mahesh, >> >> DId you try the instruction provided by Dilan at the top of the thread? >> >> Regards, >> >> Dilshan >> >> On Fri, Nov 27, 2015 at 12:20 PM, Mahesh Chinthaka <mahe...@wso2.com> >> wrote: >> >>> I cloned it from git repository and built it. Still im having the issue. >>> Anyway server get started , even though the issue occurs. >>> Can I just ignore that error and carry on ?? >>> >>> On Fri, Nov 27, 2015 at 11:37 AM, Mahesh Chinthaka <mahe...@wso2.com> >>> wrote: >>> >>>> Adding some EMM team members. >>>> >>>> On Fri, Nov 27, 2015 at 11:22 AM, Mahesh Chinthaka <mahe...@wso2.com> >>>> wrote: >>>> >>>>> Guys, >>>>> >>>>> What was the solution for this ?? >>>>> Me too getting the same error when starting a fresh pack of EMM 1.1.0. >>>>> >>>>> >>>>> On Fri, Jun 5, 2015 at 11:25 AM, Dilan Udara Ariyaratne < >>>>> dil...@wso2.com> wrote: >>>>> >>>>>> Hi Amalka, >>>>>> >>>>>> This log is questionable as username & password prints "null". >>>>>> If you go to the JAGH2 data-source configuration in >>>>>> master-data-source.xml, correct username is "sa" and password is simply >>>>>> empty string, "". >>>>>> It seems that there is an issue in reading the configurations >>>>>> properly. >>>>>> >>>>>> Adding SameeraM & Manu to the thread... >>>>>> >>>>>> >>>>>> >>>>>> *Dilan U. Ariyaratne* >>>>>> Software Engineer >>>>>> WSO2 Inc. <http://wso2.com/> >>>>>> Mobile: +94775149066 >>>>>> lean . enterprise . middleware >>>>>> >>>>>> On Thu, Jun 4, 2015 at 4:59 PM, Amalka Subasinghe <ama...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> logs >>>>>>> >>>>>>> [2015-06-04 16:53:44,694] INFO {JAGGERY.config.app:js} - Emitting >>>>>>> event : tenantLoad >>>>>>> [2015-06-04 16:53:44,846] INFO {debugging} - >>>>>>> : config {"dataSource" : "JAGH2"} >>>>>>> [2015-06-04 16:53:44,846] INFO {debugging} - >>>>>>> : username null >>>>>>> [2015-06-04 16:53:44,846] INFO {debugging} - >>>>>>> : password null >>>>>>> [2015-06-04 16:53:45,275] ERROR >>>>>>> {org.jaggeryjs.hostobjects.db.DatabaseHostObject} - Failed to get >>>>>>> connection >>>>>>> org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-140] >>>>>>> >>>>>>> >>>>>>> On Thu, Jun 4, 2015 at 4:39 PM, Dilan Udara Ariyaratne < >>>>>>> dil...@wso2.com> wrote: >>>>>>> >>>>>>>> Hi Amalka, >>>>>>>> >>>>>>>> Can you update your EMM server pack with following file, restart >>>>>>>> the server and send the startup logs to see >>>>>>>> what is going on in this specific case. >>>>>>>> >>>>>>>> File to replace (with attached driver.js) : >>>>>>>> wso2emm-1.1.0/repository/deployment/server/jaggeryapps/publisher/modules/data/driver.js >>>>>>>> >>&g
Re: [Dev] Error in BAM 2.5.0 startup
Got it resolved after restarting mu machine. assume that there was a problem with thrift server on localhost : 9160. Thanks On Tue, Oct 20, 2015 at 12:40 PM, Mahesh Chinthaka <mahe...@wso2.com> wrote: > Hi all, > > I got an error when running a freshpack. > > ERROR {me.prettyprint.cassandra.connection.HConnectionManager} - Could > not start connection pool for host localhost():9160 > [2015-10-20 12:34:06,755] WARN > {me.prettyprint.cassandra.connection.CassandraHostRetryService} - Downed > localhost():9160 host still appears to be down: Unable to open > transport to localhost(10.100.5.156):9160 , java.net.ConnectException: > Connection refused > [2015-10-20 12:34:06,758] ERROR > {org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent} > - All host pools marked down. Retry burden pushed out to client. > me.prettyprint.hector.api.exceptions.HectorException: All host pools > marked down. Retry burden pushed out to client. > at > me.prettyprint.cassandra.connection.HConnectionManager.getClientFromLBPolicy(HConnectionManager.java:390) > at > me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:244) > at > me.prettyprint.cassandra.service.ThriftCluster.addKeyspace(ThriftCluster.java:168) > at > org.wso2.carbon.bam.datasource.BAMDataSourceService.createKeyspaceIfNotExist(BAMDataSourceService.java:277) > at > org.wso2.carbon.bam.datasource.BAMDataSourceService.getClusterKeyspaceFromCassandraConfig(BAMDataSourceService.java:294) > at > org.wso2.carbon.bam.datasource.BAMDataSourceService.getClusterKeyspaceFromCassandraDataSource(BAMDataSourceService.java:300) > at > org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent.initRecordStore(NotificationDispatchComponent.java:87) > at > org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent.activate(NotificationDispatchComponent.java:78) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) > at > org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) > at > org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) > at > org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) > at > org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) > at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) > at > org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) > at > org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) > at > org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) > at > org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) > at > org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) > at > org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) > at > org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) > at > org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) > at > org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:105) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) > at > org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) > at > org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) > at
[Dev] Error in BAM 2.5.0 startup
(ServiceComponentProp.java:347) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81) at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1267) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1186) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) However server get started and shut down automatically just after the start. WARN {me.prettyprint.cassandra.connection.CassandraHostRetryService} - Downed localhost():9160 host still appears to be down: Unable to open transport to localhost():9160 , java.net.ConnectException: Connection refused [2015-10-20 12:34:58,378] ERROR {org.apache.cassandra.service.CassandraDaemon} - Exception encountered during startup java.lang.IllegalStateException: Unable to contact any seeds! at org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:981) at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:749) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:590) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:483) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:348) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:447) at org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:67) at java.lang.Thread.run(Thread.java:695) java.lang.IllegalStateException: Unable to contact any seeds! at org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:981) at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:749) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:590) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:483) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:348) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:447) at org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:67) at java.lang.Thread.run(Thread.java:695) Exception encountered during startup: Unable to contact any seeds! When I tried *sh bin/wso2server.sh -Ddisable.notification.task* Server get started without any erros but doest stay long, no more than 10 seconds and automatically shuts it down. Any idea ? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com
Re: [Dev] How to make mySQL DB case sensitive
Hi Hasitha, AFAIK you can set collation at both the database creation and table creation level. And you can set individual tables treated as case sensitive if you want. Please refer[1] [1] - http://stackoverflow.com/questions/4879846/how-to-configure-mysql-to-be-case-sensitive On Thu, Oct 15, 2015 at 5:43 PM, Hasitha Hiranya <hasit...@wso2.com> wrote: > Hi Devs, > > How can we do the subject? Are we doing this in registry/user store DBs? > > Thanks > > -- > *Hasitha Abeykoon* > Senior Software Engineer; WSO2, Inc.; http://wso2.com > *cell:* *+94 719363063* > *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com> > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to make mySQL DB case sensitive
Hi Hasitha, Did you try with collation 'utf8_bin' ? CREATE DATABASE test_database CHARACTER SET utf8 COLLATE utf8_bin; On Thu, Oct 15, 2015 at 5:53 PM, Hasitha Hiranya <hasit...@wso2.com> wrote: > Hi Mahesh, > > Already tried it. > Gives me following error > > > [image: Inline image 1] > > I am using mysql Ver 14.14 Distrib 5.6.23, for osx10.8 (x86_64) > > Thanks > > On Thu, Oct 15, 2015 at 5:48 PM, Mahesh Chinthaka <mahe...@wso2.com> > wrote: > >> Hi Hasitha, >> >> AFAIK you can set collation at both the database creation and table >> creation level. >> And you can set individual tables treated as case sensitive if you want. >> >> Please refer[1] >> >> [1] - >> http://stackoverflow.com/questions/4879846/how-to-configure-mysql-to-be-case-sensitive >> >> On Thu, Oct 15, 2015 at 5:43 PM, Hasitha Hiranya <hasit...@wso2.com> >> wrote: >> >>> Hi Devs, >>> >>> How can we do the subject? Are we doing this in registry/user store DBs? >>> >>> Thanks >>> >>> -- >>> *Hasitha Abeykoon* >>> Senior Software Engineer; WSO2, Inc.; http://wso2.com >>> *cell:* *+94 719363063* >>> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com> >>> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Mahesh Chinthaka Vidanagama* | Software Engineer >> WSO2, Inc | lean. enterprise. middleware. >> #20, Palm Grove, Colombo 03, Sri Lanka >> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >> Email: mahe...@wso2.com | Web: www.wso2.com >> > > > > -- > *Hasitha Abeykoon* > Senior Software Engineer; WSO2, Inc.; http://wso2.com > *cell:* *+94 719363063* > *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com> > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Can we pass a variable from TestManagerListener to a TestCase?
Hi Amalka, What is the use case ? Why do you want to pass a value from onStart method to a test case. Configuring the value in automation.xml and reading it inside the test case wont help ? Thanks On Tue, Oct 13, 2015 at 2:16 PM, Amalka Subasinghe <ama...@wso2.com> wrote: > Hi, > > I want to set a value to a variable in TestManagerListener.onStart() > method and use it in a test case. How can I do it? > > Thanks > Amalka > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Clarification on tenant creation workflow configuration.
Hi Lahiru, This seems perfectly fine for me as well. So +1 If you put the selected default class in the log message, that would be more convenient for the user. Thanks On Fri, Oct 9, 2015 at 11:04 AM, Samith Dassanayake <sam...@wso2.com> wrote: > Hi Lahiru, > > I'm +1 for the above approach. But If you are proceeding with the above > approach, you have to provide the workflow type in the warn message as > well. On the other hand since this is a mandatory field, It is better to > add detailed description about this field in appfactory.xml as a comment. > > Regards, > Samith > > On Fri, Oct 9, 2015 at 10:48 AM, Lahiru Manohara <lahir...@wso2.com> > wrote: > >> Hi All, >> >> In Appfactory, user can configure either default workflow (in jvm) or >> external workflow (BPS server) from the appfactory.xml file within >> following element. >> >> >> >> >> >> https://process.appfactory.private.wso2.com:9543/services/ >> >> >> > name="ClassName">org.wso2.carbon.appfactory.core.workflow.TenantCreationExternalWorkflowExecutor >> >> >> >> But in case user forget to configure a class inside the "Property" >> element, null value is getting. Current implementation this was handled by >> giving a warning and assigning default workflow. >> >> if (StringUtils.isBlank(executorClass)) { >> executorClass = WorkflowConstant.DEFAULT_WORKFLOW_CLASS; >> String message = "The executor class is not define in >> appfactory.xml because default workflow is " >> + "executing. The default workflow class is : " + >> executorClass; >> log.warn(message); >> } >> >> Is this approach confusing the user? WDYT ? >> >> Thanks >> -- >> Best regards, >> >> *Lahiru Manohara* >> *Software Engineer* >> Mobile: +94716561576 >> WSO2 Inc. | http://wso2.com >> lean.enterprise.middleware >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Best Regards > > Samith Dassanayake > Software Engineer | Cloud TG > WSO2, Inc. | http://wso2.com > lean. enterprise. middleware > > Mobile : +947 76207351 > Blog : buddycode.blogspot.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Cloud] AF Datasource API takes a long time to respond
Hi Kavith, I had a quick run through this rest API and the flow. We haven't done any modifications /code changes with our latest release. Anyway I will check this and get back to you. Thanks On Thu, Sep 3, 2015 at 12:58 PM, Kavith Lokuhewage <kav...@wso2.com> wrote: > Hi all, > > While testing DevStudio with latest app cloud, I could notice that > following API takes a very long time to respond. > > API : > https://apps.cloud.wso2.com/appmgt/site/blocks/resources/datasource/get/ajax/list.jag?action=getDatasources=testapplicationone > <https://www.google.com/url?q=https%3A%2F%2Fapps.cloud.wso2.com%2Fappmgt%2Fsite%2Fblocks%2Fresources%2Fdatasource%2Fget%2Fajax%2Flist.jag%3Faction%3DgetDatasources%26applicationKey%3Dtestapplicationone=D=1=AFQjCNHctFf9DNqjTLffEQGxHyCPlZja4g> > > This is invoked (along with three other APIs) once a user opens an > application from AF Application List View in DevStudio. However, due to > this application open doesn't work smoothly. > > Just wanted to know whether this is something temporary. FYI, this was not > experienced in previous testing round with App Cloud ( old version). > > Thanks, > > *Kavith Lokuhewage* > Software Engineer > WSO2 Inc. - http://wso2.com > lean . enterprise . middleware > Mobile - +9477-9-145-123 | +9471-455-6-401 > Linkedin <http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419> > Twitter <https://twitter.com/KavithThiranga> > > _______ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] API to get the name of the user
Hi Kavith, No, AF dont have a jaggery API to get the user. Hope this is for logged in user. Cant you get the logged in user from your side with out calling AF. On Wed, Sep 2, 2015 at 12:11 PM, Kavith Lokuhewage <kav...@wso2.com> wrote: > > Hi, > > We need to get the name of the user in order to use it as the author name > for commits (This is achieve [1]) > > Is there a jaggery API available for this? Or should we use use an admin > service? > > Thanks, > > [1] https://wso2.org/jira/browse/TOOLS-2728 > -- > *Kavith Lokuhewage* > Software Engineer > WSO2 Inc. - http://wso2.com > lean . enterprise . middleware > Mobile - +9477-9-145-123 | +9471-455-6-401 > Linkedin <http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419> > Twitter <https://twitter.com/KavithThiranga> > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] API to get the name of the user
Hi Kavith, What I meant was after user provide username and password, if login is successfull ; you can keep username somewhere in your side. Then whenever you need username, you can get it from there. No need to invoke a AF api. Thanks On Wed, Sep 2, 2015 at 2:14 PM, Kavith Lokuhewage <kav...@wso2.com> wrote: > Hi Mahesh, > > I am not clear what you meant by "without calling AF". We only take > username and password from users. Then we invoke this api - > "/appmgt/site/blocks/user/login/ajax/login.jag" - with username and > password to get the authenticated cookie. This API only returns true or > false to indicate login status. We store the cookie returned form it and > use it for other API calls during the session. Other-than that, we don't > have any details about the logged in user. > > However, seems there is an alternative. "getUsersOfApplication" returns > all the users of a particular app along with their usernames + First Names > and Last names. Since we already have the username of logged in user, we > can iterate through the users returned by above API to get the First Name > and Last Name of current user. > > > Thanks, > > On Wed, Sep 2, 2015 at 12:40 PM, Mahesh Chinthaka <mahe...@wso2.com> > wrote: > >> Hi Kavith, >> >> No, AF dont have a jaggery API to get the user. >> >> Hope this is for logged in user. Cant you get the logged in user from >> your side with out calling AF. >> >> On Wed, Sep 2, 2015 at 12:11 PM, Kavith Lokuhewage <kav...@wso2.com> >> wrote: >> >>> >>> Hi, >>> >>> We need to get the name of the user in order to use it as the author >>> name for commits (This is achieve [1]) >>> >>> Is there a jaggery API available for this? Or should we use use an admin >>> service? >>> >>> Thanks, >>> >>> [1] https://wso2.org/jira/browse/TOOLS-2728 >>> -- >>> *Kavith Lokuhewage* >>> Software Engineer >>> WSO2 Inc. - http://wso2.com >>> lean . enterprise . middleware >>> Mobile - +9477-9-145-123 | +9471-455-6-401 >>> Linkedin <http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419> >>> Twitter <https://twitter.com/KavithThiranga> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Mahesh Chinthaka Vidanagama* | Software Engineer >> WSO2, Inc | lean. enterprise. middleware. >> #20, Palm Grove, Colombo 03, Sri Lanka >> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >> Email: mahe...@wso2.com | Web: www.wso2.com >> > > > > -- > *Kavith Lokuhewage* > Software Engineer > WSO2 Inc. - http://wso2.com > lean . enterprise . middleware > Mobile - +9477-9-145-123 | +9471-455-6-401 > Linkedin <http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419> > Twitter <https://twitter.com/KavithThiranga> > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF] - What is the best place to check permissions
Hi , In appfactory appmgt jaggery app we check permissions like whether a particular user is allowed to read resources of a particular stage / update resources in a particular stage etc. What is the most suitable place to check these kind of permissions. In block layer or module layer ? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] UX/UI Incorporation
Adding Anuruddha and Samith On Mon, Jul 27, 2015 at 5:48 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added custom URL mapping pages to git. 1. custom_url_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/custom_url_initial.html 2. custom_url_listing.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/custom_url_listing.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jul 24, 2015 at 5:32 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added another page to git. 4. database_permission_listing.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/database_permission_listing.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jul 17, 2015 at 6:03 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added few other pages into git. 1. database_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/database_initial.html 2. database_initial_listing.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/database_initial_listing.html 3. database_new.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/database_new.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Tue, Jul 14, 2015 at 10:10 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added content loading methods to cloud_app_details_initial_content_load.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/cloud_app_details_initial_content_load.html . you can select any div and call 'show'/ 'hide' method. *Sample: * *$('selector').loading('show/hide');* *Preview: * https://cdn.rawgit.com/wso2-dev-ux/product-cloud/master/Markup/cloud_app_details_initial_content_load.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Mon, Jul 13, 2015 at 5:00 PM, Mahesh Chinthaka mahe...@wso2.com wrote: adding RoshanD. He is doing 009_cloud_app_details_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/009_cloud_app_details_initial.html page. On Mon, Jul 13, 2015 at 3:53 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added notification updates on below pages. 1. form_notification.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/form_notification.html 2. block type notification - 009_cloud_app_details_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/009_cloud_app_details_initial.html please be kind enough to merge above changes. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jul 8, 2015 at 6:19 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added application notification pane to overview page(009_cloud_app_details_initial.html). please check. https://raw.githubusercontent.com/wso2-dev-ux/product-cloud/master/Markup/009_cloud_app_details_initial.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jul 8, 2015 at 10:50 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dakshika , I remember the wireframes. Actually 2 things, 1. Where can I find the markup for issues_initial_blank page (Actually for the button Report an Issue)? 2. Last time when I took a git pull (before sending my last mail) create issue button was not there in the issues_initial page. Now its there :) thank you. On Wed, Jul 8, 2015 at 6:19 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi, this is the updated listing page.. https://cdn.rawgit.com/wso2-dev-ux/product-cloud/master/Markup/issues_initial.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jul 8, 2015 at 6:15 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi Mahesh, Its already there..(issues_initial_blank) seems you missed important points that we discussed on the meeting.. :). I have attached wireframes for further reference. please be kind enough to check. We usually update markup pages everyday. so please take pull and continue your work. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Tue, Jul 7, 2015 at 7
Re: [Dev] [App Factory] UX/UI Incorporation
adding RoshanD. He is doing 009_cloud_app_details_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/009_cloud_app_details_initial.html page. On Mon, Jul 13, 2015 at 3:53 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added notification updates on below pages. 1. form_notification.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/form_notification.html 2. block type notification - 009_cloud_app_details_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/009_cloud_app_details_initial.html please be kind enough to merge above changes. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jul 8, 2015 at 6:19 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added application notification pane to overview page(009_cloud_app_details_initial.html). please check. https://raw.githubusercontent.com/wso2-dev-ux/product-cloud/master/Markup/009_cloud_app_details_initial.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jul 8, 2015 at 10:50 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dakshika , I remember the wireframes. Actually 2 things, 1. Where can I find the markup for issues_initial_blank page (Actually for the button Report an Issue)? 2. Last time when I took a git pull (before sending my last mail) create issue button was not there in the issues_initial page. Now its there :) thank you. On Wed, Jul 8, 2015 at 6:19 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi, this is the updated listing page.. https://cdn.rawgit.com/wso2-dev-ux/product-cloud/master/Markup/issues_initial.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jul 8, 2015 at 6:15 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi Mahesh, Its already there..(issues_initial_blank) seems you missed important points that we discussed on the meeting.. :). I have attached wireframes for further reference. please be kind enough to check. We usually update markup pages everyday. so please take pull and continue your work. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Tue, Jul 7, 2015 at 7:00 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dakshika, In issue_initial.html we dont have a Create Issue button. In our early UI we had a create issue (New Issue) button in index page of the issue tracker. With new UI where are we going to have that button or link for a user to create an issue ? In new UI if there are issues created , then those issues will be shown in the data table. When there are no issues, data table will be empty. IMO we should have a button in index page to create issues. Otherwise how the user going to add an issue ? This is the initial landing page for a user when he clicks on the issue tracker link in the left side panel. Thanks. On Fri, Jul 3, 2015 at 4:41 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added issues_new.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/issues_new.html and issues_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/issues_initial.html pages to git repo. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jun 19, 2015 at 9:13 AM, Manisha Gayathri mani...@wso2.com wrote: Thanks Dakshika, Hasitha will carry on the work regarding app home page Thanks Manisha On Thu, Jun 18, 2015 at 5:04 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, I have added 009_cloud_app_details_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/009_cloud_app_details_initial.html to git repo. Please be kind enough to merge changes. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Tue, Jun 16, 2015 at 10:00 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, I have added 012_cloud_listing.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/012_cloud_listing.html to git repo. Please be kind enough to merge changes. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jun 10, 2015 at 2:33 PM, Danushka Fernando danush...@wso2.com wrote: Hi Dakshika In Resource / Runtime Config pages we need some
Re: [Dev] [App Factory] UX/UI Incorporation
Hi Dakshika, In issue_initial.html we dont have a Create Issue button. In our early UI we had a create issue (New Issue) button in index page of the issue tracker. With new UI where are we going to have that button or link for a user to create an issue ? In new UI if there are issues created , then those issues will be shown in the data table. When there are no issues, data table will be empty. IMO we should have a button in index page to create issues. Otherwise how the user going to add an issue ? This is the initial landing page for a user when he clicks on the issue tracker link in the left side panel. Thanks. On Fri, Jul 3, 2015 at 4:41 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added issues_new.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/issues_new.html and issues_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/issues_initial.html pages to git repo. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jun 19, 2015 at 9:13 AM, Manisha Gayathri mani...@wso2.com wrote: Thanks Dakshika, Hasitha will carry on the work regarding app home page Thanks Manisha On Thu, Jun 18, 2015 at 5:04 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, I have added 009_cloud_app_details_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/009_cloud_app_details_initial.html to git repo. Please be kind enough to merge changes. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Tue, Jun 16, 2015 at 10:00 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, I have added 012_cloud_listing.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/012_cloud_listing.html to git repo. Please be kind enough to merge changes. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jun 10, 2015 at 2:33 PM, Danushka Fernando danush...@wso2.com wrote: Hi Dakshika In Resource / Runtime Config pages we need some changes to be done refer to [1] architecture@. [1] [AF] Removing Registry Mounts for the Dev, Test, Prod Registries Thanks Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Jun 10, 2015 at 2:04 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Dakshika, When can we expect the next batch? On Fri, Jun 5, 2015 at 6:50 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi, Yes, we do have context based help on separate block. Also we are planning to use placeholder text and tooltips within the context. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jun 5, 2015 at 6:38 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Dakshika, In current UI,we have context sensitive help tips. Is there a way to address them in new UIs? On Fri, Jun 5, 2015 at 10:54 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Manisha/Hasitha, Please clone [1] which contains the UX/UI changes done by UX team. I have incorporated UX/UI changes to User home, Application creation/update process and committed to GitHub. Please proceed with the rest of the pages once they are completed by UX team. [1]https://github.com/wso2-dev-ux/product-cloud -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- ~Regards *Manisha Eleperuma* Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise
Re: [Dev] [App Factory] UX/UI Incorporation
Hi Dakshika , I remember the wireframes. Actually 2 things, 1. Where can I find the markup for issues_initial_blank page (Actually for the button Report an Issue)? 2. Last time when I took a git pull (before sending my last mail) create issue button was not there in the issues_initial page. Now its there :) thank you. On Wed, Jul 8, 2015 at 6:19 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi, this is the updated listing page.. https://cdn.rawgit.com/wso2-dev-ux/product-cloud/master/Markup/issues_initial.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jul 8, 2015 at 6:15 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi Mahesh, Its already there..(issues_initial_blank) seems you missed important points that we discussed on the meeting.. :). I have attached wireframes for further reference. please be kind enough to check. We usually update markup pages everyday. so please take pull and continue your work. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Tue, Jul 7, 2015 at 7:00 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dakshika, In issue_initial.html we dont have a Create Issue button. In our early UI we had a create issue (New Issue) button in index page of the issue tracker. With new UI where are we going to have that button or link for a user to create an issue ? In new UI if there are issues created , then those issues will be shown in the data table. When there are no issues, data table will be empty. IMO we should have a button in index page to create issues. Otherwise how the user going to add an issue ? This is the initial landing page for a user when he clicks on the issue tracker link in the left side panel. Thanks. On Fri, Jul 3, 2015 at 4:41 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added issues_new.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/issues_new.html and issues_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/issues_initial.html pages to git repo. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jun 19, 2015 at 9:13 AM, Manisha Gayathri mani...@wso2.com wrote: Thanks Dakshika, Hasitha will carry on the work regarding app home page Thanks Manisha On Thu, Jun 18, 2015 at 5:04 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, I have added 009_cloud_app_details_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/009_cloud_app_details_initial.html to git repo. Please be kind enough to merge changes. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Tue, Jun 16, 2015 at 10:00 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, I have added 012_cloud_listing.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/012_cloud_listing.html to git repo. Please be kind enough to merge changes. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jun 10, 2015 at 2:33 PM, Danushka Fernando danush...@wso2.com wrote: Hi Dakshika In Resource / Runtime Config pages we need some changes to be done refer to [1] architecture@. [1] [AF] Removing Registry Mounts for the Dev, Test, Prod Registries Thanks Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Jun 10, 2015 at 2:04 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Dakshika, When can we expect the next batch? On Fri, Jun 5, 2015 at 6:50 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi, Yes, we do have context based help on separate block. Also we are planning to use placeholder text and tooltips within the context. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jun 5, 2015 at 6:38 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Dakshika, In current UI,we have context sensitive help tips. Is there a way to address them in new UIs? On Fri, Jun 5, 2015 at 10:54 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Manisha/Hasitha, Please clone [1] which contains the UX/UI changes done by UX team. I have incorporated UX/UI changes to User home, Application creation/update process and committed to GitHub. Please proceed with the rest of the pages once they are completed by UX team. [1]https://github.com/wso2-dev-ux/product-cloud -- Thanks
Re: [Dev] Rest API used by Dev Studio
Hi Dev Studio team, Please note that *buildinfobyappid *is no longer used by appfactory. instead of that you can use *getBuildAndRepoDataForVersion* in same jagg file. Please raise if you have any concerns. Thanks On Wed, Apr 29, 2015 at 10:13 AM, Jasintha Dasanayake jasin...@wso2.com wrote: Hi Dimuthu /Manisha FYI, following is the list of API calls are used by Developer Studio App Factory tools. *List of Jag files* - /appmgt/site/blocks/application/get/ajax/list.jag - /appmgt/site/blocks/user/login/ajax/login.jag - /appmgt/site/blocks/build/list/ajax/list.jag - /appmgt/site/blocks/build/get/ajax/get.jag - /appmgt/site/blocks/buildandrepo/list/ajax/list.jag - /appmgt/site/blocks/lifecycle/add/ajax/add.jag - /appmgt/site/blocks/application/users/get/ajax/list.jag - /appmgt/site/blocks/rssmanager/add/ajax/add.jag - /appmgt/site/blocks/resources/datasource/get/ajax/list.jag - /appmgt/site/blocks/buildandrepo/list/ajax/list.jag *List of Actions* - getApplicationsOfUser - getAppVersionsInStage - buildinfobyappid - getBuildLogsUrl - getbuildandrepodata - getbuildandrepodataforkedrepo - createArtifact - getUsersOfApplication - getDbUserTemplateInfoForStages - getDataSourceInfoUrl Thanks and Regards /Jasintha On Wed, Apr 29, 2015 at 9:34 AM, Manisha Gayathri mani...@wso2.com wrote: On Wed, Apr 29, 2015 at 5:24 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi all, Could we have a list of methods used by the dev studio? Please note the following methods are proposed to be removed from the code. When I checked the code, found that only below actions are being used in DevS according to org.wso2.developerstudio.appfactory.core.jag.api.JagApiProperties class public static final String USER_APP_LIST__ACTION = getApplicationsOfUser; public static final String App_NIFO_ACTION = getAppVersionsInStage; public static final String App_BUILD_NUMBER_ACTION = buildinfobyappid; public static final String App_BUILD_URL_ACTIONL = getBuildLogsUrl; public static final String App_BUILD_INFO_ACTION =getbuildandrepodata; public static final String FORKED_REPO_INFO_ACTION = getbuildandrepodataforkedrepo; public static final String App_BUILD_ACTION =createArtifact; public static final String App_USERS_ROLES_ACTION =getUsersOfApplication; public static final String App_DB_INFO_ACTION = getDbUserTemplateInfoForStages; public static final String App_DS_INFO_ACTION = getDatasources; Only 2 out of the following list in used in DevS. checkSystemStatus newKey getUniqueAppVersions initAppVersion containsApplication getAppCountInStage getApplicationsOfUser - this is used in devS getAllAppVersionsInStage getAppVersionsInStage - this is used in devS getAllAppVersionsInStages getAppVersionsInStagesWithMetaData getMetaDataForAppVersion getRetiredVersions getLatestBuildSuccessInfo getBuildableStages thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- ~Regards *Manisha Eleperuma* Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* -- *Jasintha Dasanayake* *Senior Software EngineerWSO2 Inc. | http://wso2.com http://wso2.com/lean . enterprise . middleware* *mobile :- 0711368118* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Integration Tests] Running test cases one by one
Hi all, Suppose I have declared some test cases in testng.xml file , is there a way that I could run one by one with each time i run mvn clean install. At the moment what we do is comment out rest of the test cases leaving required one enabled. Then run mvn clean install. Repeat the same for all the cases. Is there an another way to do without commenting out test cases in testng.xnl file ? May be giving a parameter or something. mvn clean install -Dsome_parameter_to_specify_test_case thanks. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Integration Tests] Running test cases one by one
Hi Nuwan, Thats exactly I wanted. Thank you. On Mon, Jun 29, 2015 at 6:49 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Mahesh, You can use -Dtest parameter to define the test classes which need to run. mvn clean install -Dtest=TestClassName Thanks, Nuwanw On Mon, Jun 29, 2015 at 6:13 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Suppose I have declared some test cases in testng.xml file , is there a way that I could run one by one with each time i run mvn clean install. At the moment what we do is comment out rest of the test cases leaving required one enabled. Then run mvn clean install. Repeat the same for all the cases. Is there an another way to do without commenting out test cases in testng.xnl file ? May be giving a parameter or something. mvn clean install -Dsome_parameter_to_specify_test_case thanks. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF][Jaggery] Error while calling java method from jaggery
Hi danushka, Thanks for the info. I did a normal java call, not a osgi service call. This has happened because jar was not it the server repository location. bundle was not copied to repository/components/dropins folder. Once I copied it, it worked. On Fri, Jun 12, 2015 at 2:29 PM, danush...@wso2.com wrote: Hi Mahesh When we register an osgi service to a bundle, Any component can retrieve it. Usually we do it in Service Component where we write the scr references. And we keep reference to an object of the service and we use only inside the given component. If we need it in another component we retrieve same from there too. That's how its done in java components. But when it comes to a web application (or jiggery application) since they are not running in osgi framework they cannot refer to the osgi services in the same manner. So we retrieve it from carbon context. We have done this call every where in our application. CarbonContext.getThreadlocalCarbonContext().getOSGIService(“service name”) You have to retrieve the service in the above manner in your code. Hope the explanation is clear to you. Thanks Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 *From:* Mahesh Chinthaka mahe...@wso2.com *Sent:* Friday, June 12, 2015 10:36 AM *To:* WSO2 Developers' List dev@wso2.org Hi , Im trying to call a java method from a jaggery module. We have called same method from java side like follows AppFactoryS4ListenersUtil.getTenantRegistryLoader().loadTenantRegistry(tenantId); my jaggery code is like follows var tenantId=getTenantId(); var s4util = Packages.org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil; s4util.getTenantRegistryLoader().loadTenantRegistry(tenantId); And Im getting following error TID: [0] [AF] [2015-06-12 10:22:05,387] ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} - org.mozilla.javascript.EcmaError: TypeError: Cannot call property getTenantRegistryLoader in object [JavaPackage org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil]. It is not a function, it is object. (/appmgt/modules/manager/manager.jag#331) {org.jaggeryjs.jaggery.core.manager.WebAppManager} org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.EcmaError: TypeError: Cannot call property getTenantRegistryLoader in object [JavaPackage org.wso2.carbon.appfactory.stratos.util.AppFactoryS4ListenersUtil]. It is not a function, it is object. (/appmgt/modules/manager/manager.jag#331) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541) at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936
[Dev] [AF][Jaggery] Error while calling java method from jaggery
) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2269) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2251) at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:83) at org.jaggeryjs.rhino.appmgt.modules.manager.c1._c_anonymous_17(/appmgt/modules/manager/manager.jag:331) at org.jaggeryjs.rhino.appmgt.modules.manager.c1.call(/appmgt/modules/manager/manager.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.appmgt.modules.manager.c0._c_anonymous_14(/appmgt/modules/manager/module.jag:61) at org.jaggeryjs.rhino.appmgt.modules.manager.c0.call(/appmgt/modules/manager/module.jag) at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85) at org.jaggeryjs.rhino.appmgt.jagg.c5._c_anonymous_1(/appmgt/jagg/jaggery_acs.jag:52) at org.jaggeryjs.rhino.appmgt.jagg.c5.call(/appmgt/jagg/jaggery_acs.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.appmgt.jagg.c5._c_script_0(/appmgt/jagg/jaggery_acs.jag:23) at org.jaggeryjs.rhino.appmgt.jagg.c5.call(/appmgt/jagg/jaggery_acs.jag) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.appmgt.jagg.c5.call(/appmgt/jagg/jaggery_acs.jag) at org.jaggeryjs.rhino.appmgt.jagg.c5.exec(/appmgt/jagg/jaggery_acs.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) Any idea on resolving this ?? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF] Why are we having JDBCApplicationDAOTest and JDBCAppVersionDAOTest
Hi all, In addition to integration tests we are having JDBCApplicationDAOTest.java and JDBCAppVersionDAOTest.java in org.wso2.carbon.appfactory.core (under src/test). Other org.wso2.carbon.appfactory bundles dont have such test classes. If this is a test case why dont we have it as a integration test case , why is it inside the same bundle ? Or is this some another test thing ? What is the purpose of having it theres ? Can somebody explain to me ? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF] Error while creating a app
$SocketProcessor.run(NioEndpoint.java:1653) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Error while creating a app
On Mon, Jun 1, 2015 at 1:35 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, I did a new setup (2.2.0-M1) and created a app. App creation fails due to following error, Any idea why this is happenning ? Jenkins is up and running. TID: [0] [AF] [2015-06-01 07:57:15,258] ERROR {org.wso2.carbon.appfactory.jenkins.build.RestBasedJenkinsCIConnector} - Unable to create the job : app111-trunk-default. jenkins returned, http status : 404 {org.wso2.carbon.appfactory.jenkins.build.RestBasedJenkinsCIConnector} TID: [0] [AF] [2015-06-01 07:57:15,259] ERROR {org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService} - Error while executing onCreation method of ApplicationEventsListener : org.wso2.carbon.appfactory.jenkins.build.JenkinsApplicationEventsListener@75ce19c7 {org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService} org.wso2.carbon.appfactory.common.AppFactoryException: Unable to create the job : app111-trunk-default. jenkins returned, http status : 404 at org.wso2.carbon.appfactory.jenkins.build.RestBasedJenkinsCIConnector.createJob(RestBasedJenkinsCIConnector.java:489) at org.wso2.carbon.appfactory.jenkins.build.JenkinsCISystemDriver.createJob(JenkinsCISystemDriver.java:119) at org.wso2.carbon.appfactory.jenkins.build.JenkinsApplicationEventsListener.onCreation(JenkinsApplicationEventsListener.java:95) at org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService.publishApplicationCreation(ApplicationManagementService.java:213) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process
Re: [Dev] [AF] Error while creating a app
Hi, Restarting the build server resolved the issue. On Mon, Jun 1, 2015 at 1:40 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, I checked buildserver logs. Seems like tenant creation has been failed in buildserver. TID: [0] [AS] [2015-06-01 07:45:58,476] ERROR {org.wso2.carbon.appfactory.tenant.build.integration.AppServerBasedBuildServerManager} - Error while creating tenant in build server. {org.wso2.carbon.appfactory.tenant.build.integration.AppServerBasedBuildServerManager} java.io.IOException: Cannot run program jar: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) at java.lang.Runtime.exec(Runtime.java:617) at java.lang.Runtime.exec(Runtime.java:450) at java.lang.Runtime.exec(Runtime.java:347) at org.wso2.carbon.appfactory.tenant.build.integration.buildserver.JenkinsBuildSeverApp.updateWebApp(JenkinsBuildSeverApp.java:242) at org.wso2.carbon.appfactory.tenant.build.integration.buildserver.JenkinsBuildSeverApp.getModifiedAppPath(JenkinsBuildSeverApp.java:106) at org.wso2.carbon.appfactory.tenant.build.integration.AppServerBasedBuildServerManager.createTenant(AppServerBasedBuildServerManager.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.helper.FilterServletAdaptor$FilterChainImpl.doFilter(FilterServletAdaptor.java:56) at org.wso2.carbon.mashup.jsservices.custom.ui.CustomUIServletFilter.doFilter(CustomUIServletFilter.java:233) at org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43) at org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52
Re: [Dev] [AF] Error while creating a app
) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.io.IOException: Cannot run program jar: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) at java.lang.Runtime.exec(Runtime.java:617) at java.lang.Runtime.exec(Runtime.java:450) at java.lang.Runtime.exec(Runtime.java:347) at org.wso2.carbon.appfactory.tenant.build.integration.buildserver.JenkinsBuildSeverApp.updateWebApp(JenkinsBuildSeverApp.java:242) at org.wso2.carbon.appfactory.tenant.build.integration.buildserver.JenkinsBuildSeverApp.getModifiedAppPath(JenkinsBuildSeverApp.java:106) at org.wso2.carbon.appfactory.tenant.build.integration.AppServerBasedBuildServerManager.createTenant(AppServerBasedBuildServerManager.java:57) ... 49 more Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.init(UNIXProcess.java:135) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) ... 55 more On Mon, Jun 1, 2015 at 1:36 PM, Mahesh Chinthaka mahe...@wso2.com wrote: On Mon, Jun 1, 2015 at 1:35 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, I did a new setup (2.2.0-M1) and created a app. App creation fails due to following error, Any idea why this is happenning ? Jenkins is up and running. TID: [0] [AF] [2015-06-01 07:57:15,258] ERROR {org.wso2.carbon.appfactory.jenkins.build.RestBasedJenkinsCIConnector} - Unable to create the job : app111-trunk-default. jenkins returned, http status : 404 {org.wso2.carbon.appfactory.jenkins.build.RestBasedJenkinsCIConnector} TID: [0] [AF] [2015-06-01 07:57:15,259] ERROR {org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService} - Error while executing onCreation method of ApplicationEventsListener : org.wso2.carbon.appfactory.jenkins.build.JenkinsApplicationEventsListener@75ce19c7 {org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService} org.wso2.carbon.appfactory.common.AppFactoryException: Unable to create the job : app111-trunk-default. jenkins returned, http status : 404 at org.wso2.carbon.appfactory.jenkins.build.RestBasedJenkinsCIConnector.createJob(RestBasedJenkinsCIConnector.java:489) at org.wso2.carbon.appfactory.jenkins.build.JenkinsCISystemDriver.createJob(JenkinsCISystemDriver.java:119) at org.wso2.carbon.appfactory.jenkins.build.JenkinsApplicationEventsListener.onCreation(JenkinsApplicationEventsListener.java:95) at org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService.publishApplicationCreation(ApplicationManagementService.java:213) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
Re: [Dev] Where can I find source code/git repo of org.wso2.carbon.social.core.service.SocialActivityService
thanks Harsha On Tue, May 26, 2015 at 11:08 PM, Harsha Kumara hars...@wso2.com wrote: Hi Mahesh, You should be able to find it in [1]. [1] - https://github.com/wso2/carbon-store/tree/master/components/social/org.wso2.carbon.social.core Thanks, Harsha On Tue, May 26, 2015 at 11:06 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, $subject or could anyone tell me the git repo location of org.wso2.carbon.social.core bundle. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Where can I find source code/git repo of org.wso2.carbon.social.core.service.SocialActivityService
Hi, $subject or could anyone tell me the git repo location of org.wso2.carbon.social.core bundle. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF] [Integration Tests] - How to login to appmgt for calling block layer functions.
Hi, In Appfactory Integration Tests, how can we login. Basically my requirement is, I have a block layer method to call, inside that method its checking whether user is logged in or not. How to make user logged in when it comes to this point. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] [Integration Tests] - How to login to appmgt for calling block layer functions.
Hi, Found the solution. When calling a test case we should be having a test client which is extended by BaseClient. In the constructor of base client it calls the login method. Which means inside the test case when we are initializing the test client, login will happen. On Fri, May 15, 2015 at 3:14 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, In Appfactory Integration Tests, how can we login. Basically my requirement is, I have a block layer method to call, inside that method its checking whether user is logged in or not. How to make user logged in when it comes to this point. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Jaggery] get request to jenkins API fails due to 403 (forbidden)
Hi all, Im trying to do a GET request from my jaggery template page and get some data from jenkins. The URL [1] is the one I need to call and It works fine when I just paste it in my browser. I followed jaggery documentation[2]. In my browser developer console It gives the error as follows. XMLHttpRequest cannot load https://jenkins.appfactory.private.wso2.com:9674/t/five.com/webapps/jenkins/job/app1x-trunk-default/1/logText/progressiveText?start=0. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://apps.appfactory.private.wso2.com:9443' is therefore not allowed access. The response had HTTP status code 403. [1] - https://jenkins.appfactory.private.wso2.com:9674/t/five.com/webapps/jenkins/job/app1x-trunk-default/1/logText/progressiveText?start=0 [2] - http://jaggeryjs.org/documentation.jag?api=get What I'm missing here ?? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Get tenant id in mediation initializer
Hi Priyadarssini, You have to check the place where the relavant tenant flow starts in your process and see there whether tenant id has been set or not. If its not been set you can set it by passing true when setting the tenant domain. context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain, *true*); On Tue, May 12, 2015 at 10:48 AM, Isuru Ranawaka isu...@wso2.com wrote: Hi Priyadarssini, This can be happened when tenants were not initialize at the time you called the above code . On Tue, May 12, 2015 at 10:45 AM, Priyadarssini Kishokumar priyadarss...@wso2.com wrote: Hi, I need to get tenant id in the mediation initializer . When I'm trying to get it through PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(), it always returning -1. What is the correct way to get tenant details in initializer? -- Priya Kishok Software Engineer WSO2, Inc : http://wso2.com Mob : +94774457404 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards Isuru Ranawaka M: +94714629880 Blog : http://isurur.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Why is the activate method of an OSGi bundle called more than once?
; version=1.2.0org.eclipse.osgi.services_3.3.100.v20120522-1822 [133] org.wso2.carbon.context; version=4.2.0org.wso2.carbon.utils_4.2.0 [462] org.wso2.carbon.governance.api.exception; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.governance.api.generic; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.governance.api.generic.dataobjects; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.governance.api.util; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.registry.core; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.registry.core.config; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.registry.core.exceptions; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.registry.core.jdbc.realm; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.registry.core.pagination; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.registry.core.service; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.registry.core.session; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.registry.core.utils; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.user.api; version=1.0.1org.wso2.carbon.user.api_4.2.0 [456] org.wso2.carbon.user.core; version=4.2.0org.wso2.carbon.user.core_4.2.0 [457] org.wso2.carbon.user.core.service; version=4.2.0org.wso2.carbon.user.core_4.2.0 [457] org.wso2.carbon.user.core.tenant; version=4.2.0org.wso2.carbon.user.core_4.2.0 [457] org.wso2.carbon.utils; version=4.2.0org.wso2.carbon.utils_4.2.0 [462] org.wso2.carbon.utils.multitenancy; version=4.2.0org.wso2.carbon.utils_4.2.0 [462] No fragment bundles Named class space org.wso2.carbon.forum; bundle-version=1.2.0.SNAPSHOT[provided] No required bundles Appreciate some help on this. [1] https://github.com/wso2/carbon-apimgt/tree/master/components/forum Thanks, Bhathiya -- *Bhathiya Jayasekara* *Senior Software Engineer,* *WSO2 inc., http://wso2.com http://wso2.com* *Phone: +94715478185 %2B94715478185* *LinkedIn: http://www.linkedin.com/in/bhathiyaj http://www.linkedin.com/in/bhathiyaj* *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax* *Blog: http://movingaheadblog.blogspot.com http://movingaheadblog.blogspot.com/* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Sinthuja Rajendran* Associate Technical Lead WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Error during Tenant Creation in Jenkins
(CarbonDeploymentSchedulerTask.java:124) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.Exception: Webapp failed to deploy, Lifecycle state is STOPPED at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:284) ... 25 more -- ~Regards *Manisha Eleperuma* Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFac] Access AppFactory REST API
Hi Fathima, Hope this helps. *1) Login * curl -v -X POST -c cookies -k https://apps.appfactory.private.wso2.com:9443/appmgt/site/blocks/user/login/ajax/login.jag -d 'action=loginuserName=ad...@black.compassword=12345' *2) Rest client execution command* eg :- DatabaseRestClient.getDatabases() curl -v -X POST -b cookies -k https://apps.appfactory.private.wso2.com:9443/appmgt/site/blocks/resources/database/add/ajax/add.jag -d 'action=getDatabasesapplicationKey=ja001' On Fri, May 1, 2015 at 8:11 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I am trying to do $subject. Can someone share curl commands that I can use to access the REST API for App Factory? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS] Component Version Conflict
Damith, If you want to know the exact reason for bundle activation issue,You can do following. Start the server in osgi console (./wso2server.sh -DosgiConsole) Then type ss org.wso2.carbon.identity.application then you will see the bundle id of this particular bundle. then type start *bundle_id* Then the console will display the reason for not getiing started. For more details please see[1] [1] - http://techpsyche.net/troubleshooting-using-osgi-commands/ On Thu, Apr 23, 2015 at 10:58 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Damith I hope you will be able to test your changes by renaming the build jar and putting it to repository/components/dropings Rename your jar exactly in to this org.wso2.carbon.identity. application.mgt-4.3.4.SNAPSHOT please note it has . not _ before SNAPSHOT keyword. If you put your own log saying something inside your fix you can surely know that your changes are applied. On Thu, Apr 23, 2015 at 10:50 AM, Damith Senanayake dami...@wso2.com wrote: Hi Rajith, I have done that already, but that is when I got the said conflict which hangs at starting up the server. I think it is because of some OSGI dependencies that have conflicts when the new version is built. Any work around it? On Thu, Apr 23, 2015 at 10:44 AM, Rajith Vitharana raji...@wso2.com wrote: Hi Damith, Since you only need to test this, change 4.4.1 SNAPSHOT name to 4.3.4 SNAPSHOT in you pom xml, build it and put it into patch folder. Thanks, On Thu, Apr 23, 2015 at 10:41 AM, Damith Senanayake dami...@wso2.com wrote: Hi all, I have been trying to fix a bug caused by some issue in the component org.wso2.carbon.identity.application.mgt in carbon-identity build. The latest version here is version 4.4.1_SNAPSHOT however the version in use in the IS is the version 4.3.4_SNAPSHOT. I have tried changing the version name but with that, when I patch the IS run, it gets hung at startup giving the following Warning messages. And it doesn't go beyond it. [2015-04-23 10:31:42,385] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items: [2015-04-23 10:31:42,387] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.identity.application.mgt-4.3.4.SNAPSHOT Is there a way I can test out the changes I have made ? -- *-Damith Senanayake-* +94712205272 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- *-Damith Senanayake-* +94712205272 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS] Component Version Conflict
Hi Damith I hope you will be able to test your changes by renaming the build jar and putting it to repository/components/dropings Rename your jar exactly in to this org.wso2.carbon.identity. application.mgt-4.3.4.SNAPSHOT please note it has . not _ before SNAPSHOT keyword. If you put your own log saying something inside your fix you can surely know that your changes are applied. On Thu, Apr 23, 2015 at 10:50 AM, Damith Senanayake dami...@wso2.com wrote: Hi Rajith, I have done that already, but that is when I got the said conflict which hangs at starting up the server. I think it is because of some OSGI dependencies that have conflicts when the new version is built. Any work around it? On Thu, Apr 23, 2015 at 10:44 AM, Rajith Vitharana raji...@wso2.com wrote: Hi Damith, Since you only need to test this, change 4.4.1 SNAPSHOT name to 4.3.4 SNAPSHOT in you pom xml, build it and put it into patch folder. Thanks, On Thu, Apr 23, 2015 at 10:41 AM, Damith Senanayake dami...@wso2.com wrote: Hi all, I have been trying to fix a bug caused by some issue in the component org.wso2.carbon.identity.application.mgt in carbon-identity build. The latest version here is version 4.4.1_SNAPSHOT however the version in use in the IS is the version 4.3.4_SNAPSHOT. I have tried changing the version name but with that, when I patch the IS run, it gets hung at startup giving the following Warning messages. And it doesn't go beyond it. [2015-04-23 10:31:42,385] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items: [2015-04-23 10:31:42,387] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.identity.application.mgt-4.3.4.SNAPSHOT Is there a way I can test out the changes I have made ? -- *-Damith Senanayake-* +94712205272 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- *-Damith Senanayake-* +94712205272 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF][Jaggery] - How to handle exceptions in jaggery block layer ?
And also IMO it should be reponse.*message* = msg; instead of reponse.*content* = msg; On Mon, Mar 30, 2015 at 6:03 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im working on [1] What is the best way to handle exceptions in jaggery block layer. Specially when its a block layer-ajax Is following way correct ? catch (e) { var msg = Error while getting database info for the application : + applicationKey ; log.error(msg); log.error(e) response.status = 500 reponse.content = msg; } Dont we need to throw the error here ?? [1] - https://wso2.org/jira/browse/APPFAC-2724 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF][Jaggery] - How to handle exceptions in jaggery block layer ?
Hi all, Im working on [1] What is the best way to handle exceptions in jaggery block layer. Specially when its a block layer-ajax Is following way correct ? catch (e) { var msg = Error while getting database info for the application : + applicationKey ; log.error(msg); log.error(e) response.status = 500 reponse.content = msg; } Dont we need to throw the error here ?? [1] - https://wso2.org/jira/browse/APPFAC-2724 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Remove the OSGIness of ApplicationManagementService
Hi Asanka, we cannot just deprecate that service at the moment since BPELs are using it. If we do, we have to change BPELs and other stuff where its going to be a huge refactoring :) On Sat, Mar 28, 2015 at 11:28 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi, And of course the BPELs will invoke the methods in ApplicationManagementService. Hi Asanka, Think of a scenario where jenkins plugin or other service which is hosted outside AF runtime wanted to perform Application operations; then exposing them as a web service is the way. I think that's the rationale behind making ApplicationManagementService a SOAP one. Regards, Anuruddha. On Sat, Mar 28, 2015 at 10:37 AM, Asanka Dissanayake asan...@wso2.com wrote: Yes ,Punnadi. I get the point that all the methods are moved to ApplicationInfoService.Given that all the methods are moved to ApplicationInfoService and whoever wants to consume those methods can use ApplicationInfoService. But why ApplicationManagementService is going to be a SOAP service, if all the methods were in this class moved to another class why can't it cannot just deprecated ? What is the goal trying to achieve by making it only a SOAP service. On Sat, Mar 28, 2015 at 1:27 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Asanka, Yes, ApplicationManagementService will become a simple axis2 device and it's osginess will be removed. Why we needed this refactoring is, currently it contains large number of the methods despite their actual place. We have a separate class called ApplicationInfoService, which should contain all the application specific methods and ApplicationUserMgtService which should contain the user specific methods. Those classes are OSGi services. On Mar 28, 2015 9:25 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Asanka, This is not reverting back what was done early. These methods will be called via OSGI calls in future too. Only change will be these methods will be moved from ApplicationManagementService to ApplicationInfoService. So no osgi methods will be available in ApplicationManagementService. Instead all application related osgi methods will be in ApplicationInfoService. Did I clear your doubt ? On Sat, Mar 28, 2015 at 9:13 PM, Asanka Dissanayake asan...@wso2.com wrote: Hi Mahesh, Please find my comments inline. On Wed, Mar 18, 2015 at 10:58 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im working on [a] At the moment we have 1. ApplicationManagementService 2. ApplicationInfoService 3. ApplicationUserMgtService All the tasks/methods that UI needs to do related with users will be in ApplicationUserMgtService (IMO ideally this service should be renamed as UserManagementService). All the tasks/methods that UI needs to related with applications will be in ApplicationInfoService. +1 for refactoring the names At the moment ApplicationManagementService has both user related tasks as well as application related tasks. What I'm going to do is identify those methods and move accordingly to either ApplicationUserMgtService or ApplicationInfoService. In that way ApplicationManagementService will no longer be a osgi service and it will only be a soap service. Could you please explain the rationale behind the decision of removing the OSGInes ? AFAIK, these services are called by Jaggery App and some other components too. AFAIR, we did a refactoring once in Jaggery App , removing all the web service calls and made them OSGI service calls .Reason behind that was, when there is a web service call it consumes a 1 thread in the connection pool just to call to a service in the same server. So we did that to save some connections and call something that is available during the runtime. What is the reason to revert that back ? Is that something related to clustering? Here are the methods that I have identified, [1] - getApplication(applicationKey) [2] - deleteApplication(applicationKey) [3] - getApplicationUrl(applicationKey, version, stage, tenantDomain); [4] - getApplicationStatus(applicationKey, version, stage, tenantDomain); [5] - getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey, userName); [6] - getAllVersionsOfApplication(tenantDomain, applicationKey); [7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version); [8] - updateRxtWithPromoteState(appKey,nextStage,version,Promote,state); [9] - publishSetApplicationAutoBuild(applicationKey, stageName, version, isBuild); [10] - publishSetApplicationAutoDeploy(applicationKey, stageName, version, isDeploy); IMO all above methods should be moved to ApplicationInfoService. WDYT ? [a] - https://wso2.org/jira/browse/APPFAC-3011 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web
Re: [Dev] [AF] Remove the OSGIness of ApplicationManagementService
Hi Asanka, This is not reverting back what was done early. These methods will be called via OSGI calls in future too. Only change will be these methods will be moved from ApplicationManagementService to ApplicationInfoService. So no osgi methods will be available in ApplicationManagementService. Instead all application related osgi methods will be in ApplicationInfoService. Did I clear your doubt ? On Sat, Mar 28, 2015 at 9:13 PM, Asanka Dissanayake asan...@wso2.com wrote: Hi Mahesh, Please find my comments inline. On Wed, Mar 18, 2015 at 10:58 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im working on [a] At the moment we have 1. ApplicationManagementService 2. ApplicationInfoService 3. ApplicationUserMgtService All the tasks/methods that UI needs to do related with users will be in ApplicationUserMgtService (IMO ideally this service should be renamed as UserManagementService). All the tasks/methods that UI needs to related with applications will be in ApplicationInfoService. +1 for refactoring the names At the moment ApplicationManagementService has both user related tasks as well as application related tasks. What I'm going to do is identify those methods and move accordingly to either ApplicationUserMgtService or ApplicationInfoService. In that way ApplicationManagementService will no longer be a osgi service and it will only be a soap service. Could you please explain the rationale behind the decision of removing the OSGInes ? AFAIK, these services are called by Jaggery App and some other components too. AFAIR, we did a refactoring once in Jaggery App , removing all the web service calls and made them OSGI service calls .Reason behind that was, when there is a web service call it consumes a 1 thread in the connection pool just to call to a service in the same server. So we did that to save some connections and call something that is available during the runtime. What is the reason to revert that back ? Is that something related to clustering? Here are the methods that I have identified, [1] - getApplication(applicationKey) [2] - deleteApplication(applicationKey) [3] - getApplicationUrl(applicationKey, version, stage, tenantDomain); [4] - getApplicationStatus(applicationKey, version, stage, tenantDomain); [5] - getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey, userName); [6] - getAllVersionsOfApplication(tenantDomain, applicationKey); [7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version); [8] - updateRxtWithPromoteState(appKey,nextStage,version,Promote,state); [9] - publishSetApplicationAutoBuild(applicationKey, stageName, version, isBuild); [10] - publishSetApplicationAutoDeploy(applicationKey, stageName, version, isDeploy); IMO all above methods should be moved to ApplicationInfoService. WDYT ? [a] - https://wso2.org/jira/browse/APPFAC-3011 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Asanka DissanayakeSoftware Engineer* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com/* *email: asan...@wso2.com ruch...@wso2.com, blog: cyberwaadiya.blogspot.com http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com http://asankastechtalks.wordpress.com mobile: +94 71 8373821* -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] Error while starting server MB v 2.2.0
Hi all, This has happened due to some kind of a crash in the server. There were some left overs in the registry. This got resolved by deleting cassandra and deleting topic n topic subscription related data from the registry. Thanks everyone for the helps. On Thu, Mar 26, 2015 at 11:46 AM, Asanka Vithanage asan...@wso2.com wrote: Hi Mahesh, As per provided logs some connections has created on the MB side . Can you check from where those are coming. [2015-03-25 22:24:10,396] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:83a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreAssetUpdate._system.governance.connections.twitter.1.0.0 [2015-03-25 22:24:10,701] INFO {org.wso2.andes.server.protocol.AMQProtocolEngine} - Closing channel due to: Cannot subscribe to queue carbon:3e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b as it already has an existing exclusive consumer [2015-03-25 22:24:10,702] INFO {org.wso2.andes.server.protocol.AMQProtocolEngine} - Cannot subscribe to queue carbon:3e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b as it already has an existing exclusive consumer whilst processing:[BasicConsumeBodyImpl: ticket=0, queue=carbon:3e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b, consumerTag=1, noLocal=false, noAck=false, exclusive=true, nowait=false, arguments=null] On Thu, Mar 26, 2015 at 11:32 AM, Danushka Fernando danush...@wso2.com wrote: Mahesh I hope this is regarding what we discussed. So that wont solve your problem. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Mar 26, 2015 at 11:28 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Nop. embedded cassandra. Found it. Just deleleting repository/databases/cassandra folder will do the needful. isnt it ? On Thu, Mar 26, 2015 at 11:26 AM, Sajini De Silva saj...@wso2.com wrote: Are you using an externel cassandra? On Thu, Mar 26, 2015 at 11:25 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Asanka, All other servers are down ATM. Trying to start the MB server solely. On Thu, Mar 26, 2015 at 11:23 AM, Asanka Vithanage asan...@wso2.com wrote: Hi Mahesh In MB we only allow to create a single durable subscription with single SubId against a topic. So if you want to reuse the same ID and create a durable subscription, you have to stop the previously created JMS connection. If you are trying out ESB, MB scenarios first shutdown the ESB and then restart the MB. On Thu, Mar 26, 2015 at 11:15 AM, Sajini De Silva saj...@wso2.com wrote: Hi Mahesh, You can try cleaning the cassandra database and start again. Thank you, Sajini On Thu, Mar 26, 2015 at 11:05 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im getting following error while starting the server. Any idea on resolving this ? Is there any way that I could delete existing durable topic subscriptions and topics ? That option is not available in UI in this version (2.2.0) Log is attached below. [2015-03-25 22:23:58,501] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:b338fddd07574deb886f29e2c97b31923aa364b8b8652e66 for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.Send_Searched_Tweets [2015-03-25 22:23:58,581] INFO {org.wso2.andes.server.cassandra.QueueDeliveryWorker} - Queue worker started for queue: carbon:b338fddd07574deb886f29e2c97b31923aa364b8b8652e66 with on flight message checks [2015-03-25 22:23:59,541] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:3e71a8984895669bf94f0334a876bfcc11b1dfde6e90d39b for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendSearchedTweets [2015-03-25 22:24:01,138] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:a3a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreAssetUpdate._system.governance.connections.gmail.1.0.0 [2015-03-25 22:24:02,472] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:fcbae9c4f1945632b616ef7b39ae30be40058f01d370aabb for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendTweets [2015-03-25 22:24:03,944] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:9938fddd07574deb5bb5a9e2c97b31925ba364b8b8652e66 for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendSearchedTweest [2015-03-25 22:24:05,339] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:ecbae9c4f1945632b616ef7b39ae30be40058f01d370aabb for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.SendTweets [2015-03-25 22:24:06,241] INFO {org.wso2
Re: [Dev] [MB] Error while starting server MB v 2.2.0
Nop. embedded cassandra. Found it. Just deleleting repository/databases/cassandra folder will do the needful. isnt it ? On Thu, Mar 26, 2015 at 11:26 AM, Sajini De Silva saj...@wso2.com wrote: Are you using an externel cassandra? On Thu, Mar 26, 2015 at 11:25 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Asanka, All other servers are down ATM. Trying to start the MB server solely. On Thu, Mar 26, 2015 at 11:23 AM, Asanka Vithanage asan...@wso2.com wrote: Hi Mahesh In MB we only allow to create a single durable subscription with single SubId against a topic. So if you want to reuse the same ID and create a durable subscription, you have to stop the previously created JMS connection. If you are trying out ESB, MB scenarios first shutdown the ESB and then restart the MB. On Thu, Mar 26, 2015 at 11:15 AM, Sajini De Silva saj...@wso2.com wrote: Hi Mahesh, You can try cleaning the cassandra database and start again. Thank you, Sajini On Thu, Mar 26, 2015 at 11:05 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im getting following error while starting the server. Any idea on resolving this ? Is there any way that I could delete existing durable topic subscriptions and topics ? That option is not available in UI in this version (2.2.0) Log is attached below. [2015-03-25 22:23:58,501] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:b338fddd07574deb886f29e2c97b31923aa364b8b8652e66 for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.Send_Searched_Tweets [2015-03-25 22:23:58,581] INFO {org.wso2.andes.server.cassandra.QueueDeliveryWorker} - Queue worker started for queue: carbon:b338fddd07574deb886f29e2c97b31923aa364b8b8652e66 with on flight message checks [2015-03-25 22:23:59,541] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:3e71a8984895669bf94f0334a876bfcc11b1dfde6e90d39b for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendSearchedTweets [2015-03-25 22:24:01,138] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:a3a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreAssetUpdate._system.governance.connections.gmail.1.0.0 [2015-03-25 22:24:02,472] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:fcbae9c4f1945632b616ef7b39ae30be40058f01d370aabb for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendTweets [2015-03-25 22:24:03,944] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:9938fddd07574deb5bb5a9e2c97b31925ba364b8b8652e66 for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendSearchedTweest [2015-03-25 22:24:05,339] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:ecbae9c4f1945632b616ef7b39ae30be40058f01d370aabb for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.SendTweets [2015-03-25 22:24:06,241] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:2e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.SendSearchedTweets [2015-03-25 22:24:06,910] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:a338fddd07574deb886f29e2c97b31923aa364b8b8652e66 for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.Send_Searched_Tweets [2015-03-25 22:24:07,750] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:e938fddd07574deb5bb5a9e2c97b31925ba364b8b8652e66 for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.SendSearchedTweest [2015-03-25 22:24:08,341] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:b3a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreLifecycleStateChange._system.governance.connections.gmail.1.0.0 [2015-03-25 22:24:08,784] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:1c761f5aa45b646570c289a9d046936473e314f178a49c85 for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.a [2015-03-25 22:24:09,302] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:0c761f5aa45b646570c289a9d046936473e314f178a49c85 for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.a [2015-03-25 22:24:09,685] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:93a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreLifecycleStateChange
[Dev] [MB] Error while starting server MB v 2.2.0
.andes.AMQSecurityException: Cannot subscribe to queue carbon:3e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b as it already has an existing exclusive consumer [error code 403: access refused] at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2087) at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2030) at org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:315) at org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:621) at org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102) at org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2028) at org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1024) at org.wso2.andes.client.AMQSession.createDurableSubscriber(AMQSession.java:1173) at org.wso2.andes.client.AMQSession.createDurableSubscriber(AMQSession.java:1073) at org.wso2.andes.client.AMQTopicSessionAdaptor.createDurableSubscriber(AMQTopicSessionAdaptor.java:73) at org.wso2.carbon.event.core.internal.delivery.jms.JMSDeliveryManager.subscribe(JMSDeliveryManager.java:129) ... 89 more Caused by: org.wso2.andes.AMQSecurityException: Cannot subscribe to queue carbon:3e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b as it already has an existing exclusive consumer [error code 403: access refused] at org.wso2.andes.client.handler.ConnectionCloseMethodHandler.methodReceived(ConnectionCloseMethodHandler.java:85) at org.wso2.andes.client.handler.ClientMethodDispatcherImpl.dispatchConnectionClose(ClientMethodDispatcherImpl.java:192) at org.wso2.andes.framing.amqp_0_91.ConnectionCloseBodyImpl.execute(ConnectionCloseBodyImpl.java:140) at org.wso2.andes.client.state.AMQStateManager.methodReceived(AMQStateManager.java:111) at org.wso2.andes.client.protocol.AMQProtocolHandler.methodBodyReceived(AMQProtocolHandler.java:515) at org.wso2.andes.client.protocol.AMQProtocolSession.methodFrameReceived(AMQProtocolSession.java:456) at org.wso2.andes.framing.AMQMethodBodyImpl.handle(AMQMethodBodyImpl.java:96) at org.wso2.andes.client.protocol.AMQProtocolHandler$2.run(AMQProtocolHandler.java:466) at org.wso2.andes.pool.Job.processAll(Job.java:109) at org.wso2.andes.pool.Job.run(Job.java:157) ... 3 more [2015-03-25 22:24:10,722] INFO {org.wso2.andes.server.handler.ConnectionCloseOkMethodHandler} - Received Connection-close-ok [2015-03-25 22:24:10,718] ERROR {org.wso2.andes.client.AMQConnection} - Throwable Received but no listener set: org.wso2.andes.AMQException: Cannot subscribe to queue carbon:3e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b as it already has an existing exclusive consumer [error code 403: access refused] -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] Error while starting server MB v 2.2.0
Hi, Could you please tell me how to do that ? On Thu, Mar 26, 2015 at 11:15 AM, Sajini De Silva saj...@wso2.com wrote: Hi Mahesh, You can try cleaning the cassandra database and start again. Thank you, Sajini On Thu, Mar 26, 2015 at 11:05 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im getting following error while starting the server. Any idea on resolving this ? Is there any way that I could delete existing durable topic subscriptions and topics ? That option is not available in UI in this version (2.2.0) Log is attached below. [2015-03-25 22:23:58,501] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:b338fddd07574deb886f29e2c97b31923aa364b8b8652e66 for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.Send_Searched_Tweets [2015-03-25 22:23:58,581] INFO {org.wso2.andes.server.cassandra.QueueDeliveryWorker} - Queue worker started for queue: carbon:b338fddd07574deb886f29e2c97b31923aa364b8b8652e66 with on flight message checks [2015-03-25 22:23:59,541] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:3e71a8984895669bf94f0334a876bfcc11b1dfde6e90d39b for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendSearchedTweets [2015-03-25 22:24:01,138] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:a3a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreAssetUpdate._system.governance.connections.gmail.1.0.0 [2015-03-25 22:24:02,472] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:fcbae9c4f1945632b616ef7b39ae30be40058f01d370aabb for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendTweets [2015-03-25 22:24:03,944] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:9938fddd07574deb5bb5a9e2c97b31925ba364b8b8652e66 for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendSearchedTweest [2015-03-25 22:24:05,339] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:ecbae9c4f1945632b616ef7b39ae30be40058f01d370aabb for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.SendTweets [2015-03-25 22:24:06,241] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:2e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.SendSearchedTweets [2015-03-25 22:24:06,910] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:a338fddd07574deb886f29e2c97b31923aa364b8b8652e66 for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.Send_Searched_Tweets [2015-03-25 22:24:07,750] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:e938fddd07574deb5bb5a9e2c97b31925ba364b8b8652e66 for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.SendSearchedTweest [2015-03-25 22:24:08,341] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:b3a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreLifecycleStateChange._system.governance.connections.gmail.1.0.0 [2015-03-25 22:24:08,784] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:1c761f5aa45b646570c289a9d046936473e314f178a49c85 for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.a [2015-03-25 22:24:09,302] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:0c761f5aa45b646570c289a9d046936473e314f178a49c85 for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.a [2015-03-25 22:24:09,685] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:93a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreLifecycleStateChange._system.governance.connections.twitter.1.0.0 [2015-03-25 22:24:10,396] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:83a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreAssetUpdate._system.governance.connections.twitter.1.0.0 [2015-03-25 22:24:10,701] INFO {org.wso2.andes.server.protocol.AMQProtocolEngine} - Closing channel due to: Cannot subscribe to queue carbon:3e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b as it already has an existing exclusive consumer [2015-03-25 22:24:10,702] INFO {org.wso2.andes.server.protocol.AMQProtocolEngine} - Cannot subscribe to queue carbon:3e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b as it already has
Re: [Dev] [MB] Error while starting server MB v 2.2.0
Hi Asanka, All other servers are down ATM. Trying to start the MB server solely. On Thu, Mar 26, 2015 at 11:23 AM, Asanka Vithanage asan...@wso2.com wrote: Hi Mahesh In MB we only allow to create a single durable subscription with single SubId against a topic. So if you want to reuse the same ID and create a durable subscription, you have to stop the previously created JMS connection. If you are trying out ESB, MB scenarios first shutdown the ESB and then restart the MB. On Thu, Mar 26, 2015 at 11:15 AM, Sajini De Silva saj...@wso2.com wrote: Hi Mahesh, You can try cleaning the cassandra database and start again. Thank you, Sajini On Thu, Mar 26, 2015 at 11:05 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im getting following error while starting the server. Any idea on resolving this ? Is there any way that I could delete existing durable topic subscriptions and topics ? That option is not available in UI in this version (2.2.0) Log is attached below. [2015-03-25 22:23:58,501] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:b338fddd07574deb886f29e2c97b31923aa364b8b8652e66 for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.Send_Searched_Tweets [2015-03-25 22:23:58,581] INFO {org.wso2.andes.server.cassandra.QueueDeliveryWorker} - Queue worker started for queue: carbon:b338fddd07574deb886f29e2c97b31923aa364b8b8652e66 with on flight message checks [2015-03-25 22:23:59,541] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:3e71a8984895669bf94f0334a876bfcc11b1dfde6e90d39b for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendSearchedTweets [2015-03-25 22:24:01,138] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:a3a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreAssetUpdate._system.governance.connections.gmail.1.0.0 [2015-03-25 22:24:02,472] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:fcbae9c4f1945632b616ef7b39ae30be40058f01d370aabb for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendTweets [2015-03-25 22:24:03,944] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:9938fddd07574deb5bb5a9e2c97b31925ba364b8b8652e66 for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.SendSearchedTweest [2015-03-25 22:24:05,339] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:ecbae9c4f1945632b616ef7b39ae30be40058f01d370aabb for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.SendTweets [2015-03-25 22:24:06,241] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:2e71a8984895669b7c4f0334a876bfccd0b1dfde6e90d39b for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.SendSearchedTweets [2015-03-25 22:24:06,910] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:a338fddd07574deb886f29e2c97b31923aa364b8b8652e66 for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.Send_Searched_Tweets [2015-03-25 22:24:07,750] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:e938fddd07574deb5bb5a9e2c97b31925ba364b8b8652e66 for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.SendSearchedTweest [2015-03-25 22:24:08,341] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:b3a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreLifecycleStateChange._system.governance.connections.gmail.1.0.0 [2015-03-25 22:24:08,784] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:1c761f5aa45b646570c289a9d046936473e314f178a49c85 for Topic registry.notifications.StoreLifecycleStateChange._system.governance.recipes.a [2015-03-25 22:24:09,302] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:0c761f5aa45b646570c289a9d046936473e314f178a49c85 for Topic registry.notifications.StoreAssetUpdate._system.governance.recipes.a [2015-03-25 22:24:09,685] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:93a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreLifecycleStateChange._system.governance.connections.twitter.1.0.0 [2015-03-25 22:24:10,396] INFO {org.wso2.andes.server.store.CassandraMessageStore} - Registered Subscription carbon:83a52b5bff0a5e34db46793d11ec1a51984a9b057d5f71fc for Topic registry.notifications.StoreAssetUpdate._system.governance.connections.twitter.1.0.0
Re: [Dev] [MB]Error when trying to run the Durable subscriber sample
No, just one subscriber. On Thu, Mar 26, 2015 at 8:59 AM, Pranavan Theivendram pranav...@wso2.com wrote: Hi Mahesh, Do you have two or more subscribers to the durable topic? On Wed, Mar 25, 2015 at 11:23 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Megala, Can you explain how did you get this one sorted out ?? Im also getting the same error im using MB2.2.0 Others, any idea on resolving this ?? On Mon, Feb 9, 2015 at 11:17 AM, Megala Uthayakumar meg...@wso2.com wrote: Hi all, Thanks for the help. The issue has been resolved now. On Mon, Feb 9, 2015 at 11:11 AM, Pamod Sylvester pa...@wso2.com wrote: Hi Megala, For the log trace it seems like two subscribers with the same id are attempting to subscribe. Thanks, Pamod On Mon, Feb 9, 2015 at 11:08 AM, Shiva Balachandran sh...@wso2.com wrote: Hi All, I think the issue must have popped up after the new fixes. Looping Pamod in. Thank you. Regards, Shiva Balachandran On Mon, Feb 9, 2015 at 10:11 AM, Pranavan Theivendram pranav...@wso2.com wrote: Hi Megala, Please use 2.5 version snapshot. For me it is working. On Sat, Feb 7, 2015 at 5:43 PM, Megala Uthayakumar meg...@wso2.com wrote: Hi, Thanks for the info. But I am using the MB 3.0. On Fri, Feb 6, 2015 at 6:12 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Megala, What is the version of MB you are currently using? This was issue was experienced in 2.0.1 and was fixed in the later version, refer to [1]. [1] - http://stackoverflow.com/questions/16107685/wso2-messagebrokerthrowing-org-wso2-andes-amqtimeoutexception-error-when-creati Thank you. Regards, Shiva Balachandran On Fri, Feb 6, 2015 at 3:28 PM, Megala Uthayakumar meg...@wso2.com wrote: Hi all, When I try to run the Durable subscriber sample in the MB I got the following error. [ *java] javax.jms.JMSException: Error registering consumer: org.wso2.andes.AMQSecurityException: Cannot subscribe to queue carbon:mySub1234567 as it already has an existing exclusive consumer [error code 403: access refused] [java] at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2089) [java] at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2032) [java] at org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:315) [java] at org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:620) [java] at org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102) [java] at org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2030) [java] at org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1028) [java] at org.wso2.andes.client.AMQSession.createDurableSubscriber(AMQSession.java:1182) [java] at org.wso2.andes.client.AMQSession.createDurableSubscriber(AMQSession.java:1077) [java] at org.wso2.andes.client.AMQTopicSessionAdaptor.createDurableSubscriber(AMQTopicSessionAdaptor.java:73) [java] at org.sample.jms.DurableTopicSubscriber.subscribe(Unknown Source) [java] at org.sample.jms.Main.main(Unknown Source)* Same exception is thrown when trying to run the integration test for the durable subscribers. What may be the possible reason for this? Thanks Megala Uthayakumar *Software Engineering Intern *| *WSO2 Lanka* Mobile : +94 779 967 122 Tel : +94 112 733 667 E-mail : meg...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Shiva Balachandran Software Engineer WSO2 Inc. Mobile - +94 774445788 Blog - https://shivabalachandran.wordpress.com/ -- Megala Uthayakumar *Software Engineering Intern *| *WSO2 Lanka* Mobile : +94 779 967 122 Tel : +94 112 733 667 E-mail : meg...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Regards,* *T.Pranavan* *Software Engineering intern, WSO2* *Mobile - +94775136836 %2B94775136836* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Shiva Balachandran Software Engineer WSO2 Inc. Mobile - +94 774445788 Blog - https://shivabalachandran.wordpress.com/ -- *Pamod Sylvester * *Senior Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 -- Megala Uthayakumar *Software Engineering Intern *| *WSO2 Lanka* Mobile : +94 779 967 122 Tel : +94 112 733 667 E-mail : meg...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo
Re: [Dev] Get tenant Id for a given tenant name.
Hi Lakshani, you can use either UserRealmService.getTenantManager().getTenantId(tenantDomain) or TenantManager tenantManager = TenantMgtCoreServiceComponent.getTenantManager(); int tenantId = tenantManager.getTenantId(tenantDomain); On Wed, Mar 25, 2015 at 11:14 AM, Lakshani Gamage laksh...@wso2.com wrote: Hi, I want to get tenant Id for a given tenant name.Can someone please tell me how can I do that? Thanks. -- Lakshani Gamage *Software Engineer* Mobile : +94 (0) 71 5478184 %2B94%20%280%29%20773%20451194 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Enabling ghost mode in test environment
Hi Shashika, You can enable Ghost mode deployment from setting the value 'true' in repository/conf/carbon.xml GhostDeployment Enabled*true*/Enabled PartialUpdatefalse/PartialUpdate /GhostDeployment And to set the webapp unloading time u can do following, open wso2server.sh in vim editor ( sudo vi wso2server.sh) Add following line in the bottom section ( inside do while ) -Dwebapp.idle.time=1 \ Thanks On Tue, Mar 24, 2015 at 7:44 PM, Shashika Karunatilaka shashi...@wso2.com wrote: Hi, I need to write a test case to get the first request to a deployed web app after the web app went to ghost mode or unloaded. how should i enable ghost mode, web app idle time in test environment? Thank you. -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Thread.sleep() equivalent in Jaggery
Hi Senduran, What are the difficulties u faced with using setTimeOut() ? AFAIK this should work since we have the Rhino support in jaggery, java.lang.Thread.sleep(timeInMilliseconds); Thanks On Tue, Mar 24, 2015 at 10:27 PM, Senduran Balasubramaniyam sendu...@wso2.com wrote: Hi What is a best option for $subject ? I tried the setTimeout() http://www.w3schools.com/jsref/met_win_settimeout.asp but doesn't seem much helpful Thanks Senduran -- *Senduran * Software Engineer, WSO2, Inc.; http://wso2.com/ http://wso2.com/ Mobile: +94 77 952 6548 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Remove the OSGIness of ApplicationManagementService
Hi all, I found that following two methods are being used by BPELs we have in App Factory deleteApplication - CreateApplication.bpel updateRxtWithPromoteState - GovernanceBPEL.bpel These two methods will be added to ApplicationInfoService and will not be removed from ApplicationMgtService Except these two other methods will be moved from ApplicationMgtService to ApplicationInfoService. On Wed, Mar 18, 2015 at 8:28 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im working on [a] At the moment we have 1. ApplicationManagementService 2. ApplicationInfoService 3. ApplicationUserMgtService All the tasks/methods that UI needs to do related with users will be in ApplicationUserMgtService (IMO ideally this service should be renamed as UserManagementService). All the tasks/methods that UI needs to related with applications will be in ApplicationInfoService. At the moment ApplicationManagementService has both user related tasks as well as application related tasks. What I'm going to do is identify those methods and move accordingly to either ApplicationUserMgtService or ApplicationInfoService. In that way ApplicationManagementService will no longer be a osgi service and it will only be a soap service. Here are the methods that I have identified, [1] - getApplication(applicationKey) [2] - deleteApplication(applicationKey) [3] - getApplicationUrl(applicationKey, version, stage, tenantDomain); [4] - getApplicationStatus(applicationKey, version, stage, tenantDomain); [5] - getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey, userName); [6] - getAllVersionsOfApplication(tenantDomain, applicationKey); [7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version); [8] - updateRxtWithPromoteState(appKey,nextStage,version,Promote,state); [9] - publishSetApplicationAutoBuild(applicationKey, stageName, version, isBuild); [10] - publishSetApplicationAutoDeploy(applicationKey, stageName, version, isDeploy); IMO all above methods should be moved to ApplicationInfoService. WDYT ? [a] - https://wso2.org/jira/browse/APPFAC-3011 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [GSoC-2015][Proposal 10]
Hi Dinanjana, Hope its Google Wallet based Billing System for WSO2 Private PaaS. Thank you for the interest and we will update you ASAP. Please keep in touch. Thanks. On Sun, Mar 22, 2015 at 6:10 PM, Dinanjana Gunaratne dinanjanagunara...@gmail.com wrote: Hello everyone, I am a 3rd year Computer engineering student from Faculty of Engineering,University of Peradeniya. I like to contribute to above project.I have done some researches about above project. Thank you. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF][Jaggery] - NullPointerException after routing ajax calls.
(/appmgt//router.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) ... 35 more Caused by: org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/appmgt/modules/events/listen/listen.jag#39) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.executeScript(WebAppManager.java:284) at org.jaggeryjs.jaggery.core.manager.WebAppManager.include(WebAppManager.java:133) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) ... 44 more Caused by: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/appmgt/modules/events/listen/listen.jag#39) at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.appmgt.modules.events.listen.c0._c_anonymous_1(/appmgt/modules/events/listen/listen.jag:39) at org.jaggeryjs.rhino.appmgt.modules.events.listen.c0.call(/appmgt/modules/events/listen/listen.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.appmgt.modules.events.c0._c_anonymous_2(/appmgt/modules/events/module.jag:26) at org.jaggeryjs.rhino.appmgt.modules.events.c0.call(/appmgt/modules/events/module.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0._c_anonymous_1(/appmgt/site/blocks/events/listen/ajax/listen.jag:58) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.call(/appmgt/site/blocks/events/listen/ajax/listen.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0._c_script_0(/appmgt/site/blocks/events/listen/ajax/listen.jag:24) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.call(/appmgt/site/blocks/events/listen/ajax/listen.jag) at org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.exec(/appmgt/site/blocks/events/listen/ajax/listen.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) ... 51 more Caused by: java.lang.NullPointerException at org.wso2.carbon.social.core.ActivityBrowser.getConnection(ActivityBrowser.java:162) at org.wso2.carbon.social.core.ActivityBrowser.listActivities(ActivityBrowser.java:65) at org.wso2.carbon.social.core.ActivityBrowser.listActivitiesChronologically(ActivityBrowser.java:123) at org.wso2.carbon.social.core.SocialActivityServiceImpl.listActivities(SocialActivityServiceImpl.java:28) at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) ... 69 more Any thoughts on the root cause ? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Which Git Repository belongs, org.wso2.carbon.transport.mgt.feature
Hi Dhanuka, Isnt it in carbon-commons ? In [1] I can see org.wso2.carbon.transport.mgt.feature If so, I think carbon team manages this. [1] - https://github.com/wso2/carbon-commons/tree/master/features/transport-mgt On Thu, Mar 19, 2015 at 5:43 PM, Dhanuka Ranasinghe dhan...@wso2.com wrote: Hi, When I tried to build product-apim with carbon 4.4.0 I am getting following error. So could you please let us know, exactly which Git repository has/maintain org.wso2.carbon.transport.mgt.feature [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-repo-gen (2-p2-repo-generation) on project am-p2-profile: Error occured when processing the Feature Artifact: org.wso2.carbon.commons:org.wso2.carbon.transport.mgt.feature:4.3.6: ERROR: Could not find artifact org.wso2.carbon.commons:org.wso2.carbon.transport.mgt.feature:zip:4.3.6 in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) Cheers, *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF] Remove the OSGIness of ApplicationManagementService
Hi all, Im working on [a] At the moment we have 1. ApplicationManagementService 2. ApplicationInfoService 3. ApplicationUserMgtService All the tasks/methods that UI needs to do related with users will be in ApplicationUserMgtService (IMO ideally this service should be renamed as UserManagementService). All the tasks/methods that UI needs to related with applications will be in ApplicationInfoService. At the moment ApplicationManagementService has both user related tasks as well as application related tasks. What I'm going to do is identify those methods and move accordingly to either ApplicationUserMgtService or ApplicationInfoService. In that way ApplicationManagementService will no longer be a osgi service and it will only be a soap service. Here are the methods that I have identified, [1] - getApplication(applicationKey) [2] - deleteApplication(applicationKey) [3] - getApplicationUrl(applicationKey, version, stage, tenantDomain); [4] - getApplicationStatus(applicationKey, version, stage, tenantDomain); [5] - getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey, userName); [6] - getAllVersionsOfApplication(tenantDomain, applicationKey); [7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version); [8] - updateRxtWithPromoteState(appKey,nextStage,version,Promote,state); [9] - publishSetApplicationAutoBuild(applicationKey, stageName, version, isBuild); [10] - publishSetApplicationAutoDeploy(applicationKey, stageName, version, isDeploy); IMO all above methods should be moved to ApplicationInfoService. WDYT ? [a] - https://wso2.org/jira/browse/APPFAC-3011 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory
Hi, Is this 'createProject' method implemented by you inside IssueTrackerService ?? Because in my code I cannot see such a method in IssueTrackerService. You can debug the backend code to find out the place where NP occurs. On Wed, Mar 18, 2015 at 11:40 AM, Fathima Dilhasha dilha...@wso2.com wrote: Hi, I tried logging in between the steps. * tenantId and tenantDomain are not null * The null pointer exception takes place in the following line. server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName, issueTrackerConfig); Is it because the server cannot track the OSGI service I'm referring to? (The service is listed in the OSGI cosole) How can I figure it out? Thanks. Regards, Dilhasha *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Lanka* email : *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321 On Wed, Mar 18, 2015 at 11:14 AM, Fathima Dilhasha dilha...@wso2.com wrote: Hi Mahesh, Thanks for the points. I'll work on those and see. Regards, Dilhasha *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Lanka* email : *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321 On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Sorry I missed this, getting modManager varialbe , put this befor getting the tenant domain. var modManager = jagg.module(manager); On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dilhasha, I think you havent got the tenant domain properly. you may use following to get tenant domain. var tenantDomain = modManager.getTenantDomain(); you may use following to set tenant domain n id context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true); in between the steps you can put info logs to see values, in that way you may be able to see whats null here. On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando danush...@wso2.com wrote: Few points 1. Did you check whether your osgi bundle is activated or not? May be that's the issue. Seems it cannot find the osgi service. 2. When start tenant flow in setTenantDomain method there is a another signature which will take in tenantDomain (String) and resolveTenantID (boolean) parameters. You can use that instead of setting tenantID manually. 3. The way you have included the module, AFAIR that's not the way to refer to a module. Refer to other places that we have done such a thing. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha dilha...@wso2.com wrote: Hi Mahesh, Thanks for the response. Following is the code in saveConfig.jag include(/jagg/jagg.jag); include(/jagg/constants.jag); include(/jagg/config_reader.jag); include(/modules/manager/manager.jag); (function () { var carbon = require('carbon'); var log = new Log(module/issuetracker/saveConfig.jag); var multitenancy = carbon.multitenancy; var server = carbon.server; var context=multitenancy.getPrivilegedCarbonContext(); var tenantDomain = getTenantDomain(); var tenantId=getTenantId(); var issueTrackerConfig = Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations; var issueConfig=new issueTrackerConfig(); issueConfig.setIssueTrackerinstanceUrl(some url); try{ context.startTenantFlow(); context.getThreadLocalCarbonContext().setTenantId(tenantId); context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain); server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName, issueTrackerConfig); }catch(e){ log.error(e); }finally{ context.endTenantFlow(); } }()); The getTenantDomain,getTenantId functions are in a different jag file, which I have included (manager.jag). *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Lanka* email : *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321 On Wed, Mar 18, 2015 at 10:35 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dilhasha, This could be either not setting tenant domain/ id properly or, issueTrackerConfig parameter might be null at that moment. can you share the code segment of whole function please. So we can see the reason for NPE. On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha dilha...@wso2.com wrote: Hi, I'm trying to access an osgi service available in WSO2 Appfactory, from the 'appmgt' jaggery app. In this process I get the following exception in the server. *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR {module/issuetracker/saveConfig.jag} - org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (osgi#8
Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory
)* * at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)* * at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)* * at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)* * at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)* * at java.lang.Thread.run(Thread.java:744)* *Caused by: java.lang.NullPointerException* * at org.wso2.carbon.context.PrivilegedCarbonContext.getOSGiService(PrivilegedCarbonContext.java:448)* * at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)* * at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)* * at java.lang.reflect.Method.invoke(Method.java:606)* * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)* * ... 50 more* * {module/issuetracker/saveConfig.jag}* Following is the code segment in saveConfig.jag, which is responsible for calling the osgi service. try{ context.startTenantFlow(); context.getThreadLocalCarbonContext().setTenantId(tenantId); context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain); server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName, issueTrackerConfig); }catch(e){ log.error(e); }finally{ context.endTenantFlow(); } It would be really helpful, if someone can help me to overcome this problem. Thanks. Regards, Dilhasha *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Lanka* email : *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory
Hi Dilhasha, I think you havent got the tenant domain properly. you may use following to get tenant domain. var tenantDomain = modManager.getTenantDomain(); you may use following to set tenant domain n id context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true); in between the steps you can put info logs to see values, in that way you may be able to see whats null here. On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando danush...@wso2.com wrote: Few points 1. Did you check whether your osgi bundle is activated or not? May be that's the issue. Seems it cannot find the osgi service. 2. When start tenant flow in setTenantDomain method there is a another signature which will take in tenantDomain (String) and resolveTenantID (boolean) parameters. You can use that instead of setting tenantID manually. 3. The way you have included the module, AFAIR that's not the way to refer to a module. Refer to other places that we have done such a thing. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha dilha...@wso2.com wrote: Hi Mahesh, Thanks for the response. Following is the code in saveConfig.jag include(/jagg/jagg.jag); include(/jagg/constants.jag); include(/jagg/config_reader.jag); include(/modules/manager/manager.jag); (function () { var carbon = require('carbon'); var log = new Log(module/issuetracker/saveConfig.jag); var multitenancy = carbon.multitenancy; var server = carbon.server; var context=multitenancy.getPrivilegedCarbonContext(); var tenantDomain = getTenantDomain(); var tenantId=getTenantId(); var issueTrackerConfig = Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations; var issueConfig=new issueTrackerConfig(); issueConfig.setIssueTrackerinstanceUrl(some url); try{ context.startTenantFlow(); context.getThreadLocalCarbonContext().setTenantId(tenantId); context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain); server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName, issueTrackerConfig); }catch(e){ log.error(e); }finally{ context.endTenantFlow(); } }()); The getTenantDomain,getTenantId functions are in a different jag file, which I have included (manager.jag). *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Lanka* email : *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321 On Wed, Mar 18, 2015 at 10:35 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dilhasha, This could be either not setting tenant domain/ id properly or, issueTrackerConfig parameter might be null at that moment. can you share the code segment of whole function please. So we can see the reason for NPE. On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha dilha...@wso2.com wrote: Hi, I'm trying to access an osgi service available in WSO2 Appfactory, from the 'appmgt' jaggery app. In this process I get the following exception in the server. *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR {module/issuetracker/saveConfig.jag} - org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (osgi#8)* * at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)* * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)* * at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)* * at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)* * at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)* * at org.mozilla.javascript.gen.osgi_11.call(osgi)* * at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_anonymous_1(/appmgt/modules/issuetracker/get/saveConfig.jag:49)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)* * at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_script_0(/appmgt/modules/issuetracker/get/saveConfig.jag:26)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)* * at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)* * at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.exec(/appmgt/modules/issuetracker/get/saveConfig.jag)* * at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567
Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory
Sorry I missed this, getting modManager varialbe , put this befor getting the tenant domain. var modManager = jagg.module(manager); On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dilhasha, I think you havent got the tenant domain properly. you may use following to get tenant domain. var tenantDomain = modManager.getTenantDomain(); you may use following to set tenant domain n id context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true); in between the steps you can put info logs to see values, in that way you may be able to see whats null here. On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando danush...@wso2.com wrote: Few points 1. Did you check whether your osgi bundle is activated or not? May be that's the issue. Seems it cannot find the osgi service. 2. When start tenant flow in setTenantDomain method there is a another signature which will take in tenantDomain (String) and resolveTenantID (boolean) parameters. You can use that instead of setting tenantID manually. 3. The way you have included the module, AFAIR that's not the way to refer to a module. Refer to other places that we have done such a thing. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha dilha...@wso2.com wrote: Hi Mahesh, Thanks for the response. Following is the code in saveConfig.jag include(/jagg/jagg.jag); include(/jagg/constants.jag); include(/jagg/config_reader.jag); include(/modules/manager/manager.jag); (function () { var carbon = require('carbon'); var log = new Log(module/issuetracker/saveConfig.jag); var multitenancy = carbon.multitenancy; var server = carbon.server; var context=multitenancy.getPrivilegedCarbonContext(); var tenantDomain = getTenantDomain(); var tenantId=getTenantId(); var issueTrackerConfig = Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations; var issueConfig=new issueTrackerConfig(); issueConfig.setIssueTrackerinstanceUrl(some url); try{ context.startTenantFlow(); context.getThreadLocalCarbonContext().setTenantId(tenantId); context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain); server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName, issueTrackerConfig); }catch(e){ log.error(e); }finally{ context.endTenantFlow(); } }()); The getTenantDomain,getTenantId functions are in a different jag file, which I have included (manager.jag). *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Lanka* email : *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321 On Wed, Mar 18, 2015 at 10:35 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dilhasha, This could be either not setting tenant domain/ id properly or, issueTrackerConfig parameter might be null at that moment. can you share the code segment of whole function please. So we can see the reason for NPE. On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha dilha...@wso2.com wrote: Hi, I'm trying to access an osgi service available in WSO2 Appfactory, from the 'appmgt' jaggery app. In this process I get the following exception in the server. *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR {module/issuetracker/saveConfig.jag} - org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (osgi#8)* * at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)* * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)* * at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)* * at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)* * at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)* * at org.mozilla.javascript.gen.osgi_11.call(osgi)* * at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_anonymous_1(/appmgt/modules/issuetracker/get/saveConfig.jag:49)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)* * at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0._c_script_0(/appmgt/modules/issuetracker/get/saveConfig.jag:26)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)* * at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)* * at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag
Re: [Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg
Hi Samith, Yes you are correct, we can make the end user oriented message in another layer other than the module layer. So throwing e is fine i guess. Thanks everyone! On Mon, Mar 16, 2015 at 5:45 PM, Samith Dassanayake sam...@wso2.com wrote: Hi Mahesh, IMHO I think from the module layer, we should throw the exception with required additional details along with the exception. In block layer, we should log it and set the response with the correct error code and content(content should be a simple end user oriented message)[1], before return to the user. If you set it correctly then it will be directed to OnFailure callback of the caller and you can do what ever client level exception handling over there [1] http://jaggeryjs.org/documentation.jag?api=response Thanks, Samith On Mon, Mar 16, 2015 at 2:50 AM, Gayan Dhanushka gay...@wso2.com wrote: Hi Mahesh, +1 for throwing an error message. A message of the format mentioned above would be good for logging. IMO throwing a simple message is enough to be displayed to the user. Regards Gayan On Mon, Mar 16, 2015 at 3:00 PM, Danushka Fernando danush...@wso2.com wrote: We dont need to give that detailed error message to the user. But having an error message saying what has been failed like jenkins job creation failed or git repo creation failed would be good IMO. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Mar 16, 2015 at 2:53 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, +1 for throwing the message. But another question, At the moment we have put all details possible for the message. eg: tenant domain, username ,application type etc. But when it comes to user (front end) i think message should be simple. For an example. Lets say an error occurred while creating an application. should the message diplayed on the UI be like , var msg = Application creation failed!! or var msg = Error while creating application : + applicationName + with application key : + applicationKey + of application type : + applicationType + and version : + version + for the user : + userName + of tenant domain : + tenantDomain + . On Mon, Mar 16, 2015 at 2:44 PM, Danushka Fernando danush...@wso2.com wrote: Since this is about sending an error message for front end IMO both ways are ok for me. And since we are showing the error message we are throwing I guess we need to throw the message. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Mar 16, 2015 at 2:40 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, In AF appmgt module layer, when we catch a exception what is the correct way to handle it. var msg = Some error msg; log.error(msg); log.error(e); *throw e; * or *throw msg;* In appfactory we get the error message thrown in the module layer to front and display it in UI in the top section of the page with a red bar. So if we thew e, the GUI will get a big error message displayed with all the stack trace details. Whats the best way ?? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards Samith Dassanayake Software Engineer | Cloud TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +947 76207351 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg
Hi all, In AF appmgt module layer, when we catch a exception what is the correct way to handle it. var msg = Some error msg; log.error(msg); log.error(e); *throw e; * or *throw msg;* In appfactory we get the error message thrown in the module layer to front and display it in UI in the top section of the page with a red bar. So if we thew e, the GUI will get a big error message displayed with all the stack trace details. Whats the best way ?? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg
Hi, +1 for throwing the message. But another question, At the moment we have put all details possible for the message. eg: tenant domain, username ,application type etc. But when it comes to user (front end) i think message should be simple. For an example. Lets say an error occurred while creating an application. should the message diplayed on the UI be like , var msg = Application creation failed!! or var msg = Error while creating application : + applicationName + with application key : + applicationKey + of application type : + applicationType + and version : + version + for the user : + userName + of tenant domain : + tenantDomain + . On Mon, Mar 16, 2015 at 2:44 PM, Danushka Fernando danush...@wso2.com wrote: Since this is about sending an error message for front end IMO both ways are ok for me. And since we are showing the error message we are throwing I guess we need to throw the message. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Mar 16, 2015 at 2:40 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, In AF appmgt module layer, when we catch a exception what is the correct way to handle it. var msg = Some error msg; log.error(msg); log.error(e); *throw e; * or *throw msg;* In appfactory we get the error message thrown in the module layer to front and display it in UI in the top section of the page with a red bar. So if we thew e, the GUI will get a big error message displayed with all the stack trace details. Whats the best way ?? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Jaggery] Try finally blocks with out a catch block
Hi all , I have been working on [1] and I found some codes written with try and finally blocks without a catch block in the module layer of a jaggery app. try { } finally { } Is this ok ? If so how the errors are caught and thrown, when it comes to exception handling ? [1] - https://wso2.org/jira/browse/APPFAC-2725 Thoughts are much appreciated. Thanks. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AS][AF] Error while invoking AppFactoryNDataSourceAdmim service via SOAP UI
And I had to add some parameters to carbon.xml Under JNDI tag DefaultInitialContextFactory org.wso2.carbon.appfactory.ext.jndi.ApplicationAwareCarbonJavaURLContextFactory /DefaultInitialContextFactory CarbonInitialJNDIContextFactory org.wso2.carbon.appfactory.ext.jndi.ApplicationAwareCarbonInitialJNDIContextFactory /CarbonInitialJNDIContextFactory And NameApplication Server/Name CarbonDataSourceRepositoryClass org.wso2.carbon.appfactory.ext.datasource.ApplicationAwareDataSourceRepository /CarbonDataSourceRepositoryClass On Tue, Mar 10, 2015 at 11:15 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, this got resolved! The reason for getting that error in SOAP UI was.. I was sending the request with authentication headers of carbon super admin. (admin ,admin). After invoking this service with authentication headers of my tenant. (tenant username and password) this worked fine. Thanks On Mon, Mar 9, 2015 at 4:34 PM, Mahesh Chinthaka mahe...@wso2.com wrote: When I tried to create datasource from carbon console.I got following error in the backend. java.lang.NullPointerException at java.io.File.init(File.java:222) at org.wso2.carbon.core.util.KeyStoreManager.getRegistryKeyStore(KeyStoreManager.java:353) at org.wso2.carbon.core.util.CryptoUtil.encrypt(CryptoUtil.java:123) at org.wso2.carbon.core.util.CryptoUtil.encryptAndBase64Encode(CryptoUtil.java:148) at org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.secureSaveElement(DataSourceUtils.java:200) at org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.secureSaveElement(DataSourceUtils.java:212) at org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.secureSaveElement(DataSourceUtils.java:212) at org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.secureSaveElement(DataSourceUtils.java:212) at org.wso2.carbon.ndatasource.core.DataSourceRepository.persistDataSource(DataSourceRepository.java:314) at org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:471) at org.wso2.carbon.ndatasource.core.services.NDataSourceAdminService.addDataSource(NDataSourceAdminService.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminStub.addDataSource(NDataSourceAdminStub.java:1968) at org.wso2.carbon.ndatasource.ui.NDataSourceAdminServiceClient.addDataSource(NDataSourceAdminServiceClient.java:72) at org.apache.jsp.ndatasource.savedatasource_jsp._jspService(org.apache.jsp.ndatasource.savedatasource_jsp:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61
Re: [Dev] CarbonContext data are null while trying to run a webapp for the first time, second time onwards it works fine.
Hi all, According to the findings up to now I presume that, whenever or whoever tries to validate the request by checking whether its coming from a webapp or not will face this issue. So this needs to be fixed I think (from the platform level). WDYT ? On Tue, Mar 10, 2015 at 7:45 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Kasun, Yes sure, I will debug the flow and see. Thanks On Tue, Mar 10, 2015 at 7:44 PM, Mahesh Chinthaka mahe...@wso2.com wrote: I talked with KasunG and he said that this might be due to a problem in the process we load the webapp and check whether its loaded. I have explained in below sketch as I understood it. @kasunG please correct me if I've misunderstood anything here. According to the above flow, if the webapp is unloaded at the time of request comes, this kind of a issue can occur. On Tue, Mar 10, 2015 at 7:18 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, I think I found the root cause here. Actually there are two scenarios, scenario1 - webapp is loaded scenario2 - webapp is unloaded (Reason for getting this reproduced when the tenant is unloaded; is that when tenant is unloaded , the webapp gets unloaded too.But actual effect is unloading the webapp) Simply the cause is InitialContext not being set properly. In *ApplicationAwareCarbonJavaURLContextFactory* class, before we get the initial context we check whether the request coming from a webapp. If yes we return the *CarbonServerSelectorContext* else we just send the *NamingContext.* We have used following code to check whether the request is coming from a webapp or not, As I can see its checking with class loader. *if (ContextBindings.isClassLoaderBound())* when the webapp is unloaded above code returns false. values of contexts are as follows, *CarbonServerSelectorContext* - org.wso2.carbon.appfactory.ext.jndi.Context.CarbonServerSelectorContext *NamingContext* - org.apache.naming.NamingContext Our datasource is available only in *CarbonServerSelectorContext. *So whenever the *NamingContext* is returned , datasource appears to be null. So application is unable to show data. Thats pretty much the case. I have one question. *Is there any other way to check the request whether its coming from a webapp or not ?* If yes we can easily solve this issue. On Mon, Mar 9, 2015 at 12:12 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Harsha, Frankly I dont have much idea why its happenning like that, and this happens in that way after the fix for APPFAC -2195 [1] This is the exact code segment im talking about. try { context.startTenantFlow(); context.getThreadLocalCarbonContext().setTenantId(tenantManager.getTenantId(tenantDomain)); context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain); context.getThreadLocalCarbonContext().setUsername(userName); accessUrl = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationUrl(applicationKey, version, stage, tenantDomain); status = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationStatus(applicationKey, version, stage, tenantDomain); if(!status){ //fix for APPFAC-2195 //load the tenant if(accessUrl){ var xhr = new XMLHttpRequest(); xhr.open(GET,accessUrl + ,false); xhr.send(); } status = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationStatus(applicationKey, version, stage, tenantDomain); } if(status){ url=accessUrl; } } finally { context.endTenantFlow(); } [1] - https://wso2.org/jira/browse/APPFAC-2195 On Mon, Mar 9, 2015 at 11:59 AM, Harsha Thirimanna hars...@wso2.com wrote: Hi Mahesh, One question, What is the meaning of deploy status false and why it try to retrieve URl if it is not deploy ? Is that the behavior we are doing or are there any logic behind the seen ? If it is required then, I think you suggestion may be good. But how it load the tenant ? *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770 , +94 * *774617784twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimannlinked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* *Lean . Enterprise . Middleware* On Sun, Mar 8, 2015 at 11:21 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Found that when the Launch button is clicked in Repos n builds page it checks for the application deployed status, If deployed status
Re: [Dev] CarbonContext data are null while trying to run a webapp for the first time, second time onwards it works fine.
Hi Kasun, Yes sure, I will debug the flow and see. Thanks On Tue, Mar 10, 2015 at 7:44 PM, Mahesh Chinthaka mahe...@wso2.com wrote: I talked with KasunG and he said that this might be due to a problem in the process we load the webapp and check whether its loaded. I have explained in below sketch as I understood it. @kasunG please correct me if I've misunderstood anything here. According to the above flow, if the webapp is unloaded at the time of request comes, this kind of a issue can occur. On Tue, Mar 10, 2015 at 7:18 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, I think I found the root cause here. Actually there are two scenarios, scenario1 - webapp is loaded scenario2 - webapp is unloaded (Reason for getting this reproduced when the tenant is unloaded; is that when tenant is unloaded , the webapp gets unloaded too.But actual effect is unloading the webapp) Simply the cause is InitialContext not being set properly. In *ApplicationAwareCarbonJavaURLContextFactory* class, before we get the initial context we check whether the request coming from a webapp. If yes we return the *CarbonServerSelectorContext* else we just send the *NamingContext.* We have used following code to check whether the request is coming from a webapp or not, As I can see its checking with class loader. *if (ContextBindings.isClassLoaderBound())* when the webapp is unloaded above code returns false. values of contexts are as follows, *CarbonServerSelectorContext* - org.wso2.carbon.appfactory.ext.jndi.Context.CarbonServerSelectorContext *NamingContext* - org.apache.naming.NamingContext Our datasource is available only in *CarbonServerSelectorContext. *So whenever the *NamingContext* is returned , datasource appears to be null. So application is unable to show data. Thats pretty much the case. I have one question. *Is there any other way to check the request whether its coming from a webapp or not ?* If yes we can easily solve this issue. On Mon, Mar 9, 2015 at 12:12 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Harsha, Frankly I dont have much idea why its happenning like that, and this happens in that way after the fix for APPFAC -2195 [1] This is the exact code segment im talking about. try { context.startTenantFlow(); context.getThreadLocalCarbonContext().setTenantId(tenantManager.getTenantId(tenantDomain)); context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain); context.getThreadLocalCarbonContext().setUsername(userName); accessUrl = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationUrl(applicationKey, version, stage, tenantDomain); status = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationStatus(applicationKey, version, stage, tenantDomain); if(!status){ //fix for APPFAC-2195 //load the tenant if(accessUrl){ var xhr = new XMLHttpRequest(); xhr.open(GET,accessUrl + ,false); xhr.send(); } status = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationStatus(applicationKey, version, stage, tenantDomain); } if(status){ url=accessUrl; } } finally { context.endTenantFlow(); } [1] - https://wso2.org/jira/browse/APPFAC-2195 On Mon, Mar 9, 2015 at 11:59 AM, Harsha Thirimanna hars...@wso2.com wrote: Hi Mahesh, One question, What is the meaning of deploy status false and why it try to retrieve URl if it is not deploy ? Is that the behavior we are doing or are there any logic behind the seen ? If it is required then, I think you suggestion may be good. But how it load the tenant ? *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770 , +94 * *774617784twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimannlinked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* *Lean . Enterprise . Middleware* On Sun, Mar 8, 2015 at 11:21 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Found that when the Launch button is clicked in Repos n builds page it checks for the application deployed status, If deployed status is false, then it loads the tenant again and get access url for the app. If deployed status is true, then it just access the app url without loading the tenant. When I tried with removing the if statement and tried loading the tenant each time fixed the issue. What are the bad/good effects of solving this issue with above
Re: [Dev] CarbonContext data are null while trying to run a webapp for the first time, second time onwards it works fine.
Hi all, I think I found the root cause here. Actually there are two scenarios, scenario1 - webapp is loaded scenario2 - webapp is unloaded (Reason for getting this reproduced when the tenant is unloaded; is that when tenant is unloaded , the webapp gets unloaded too.But actual effect is unloading the webapp) Simply the cause is InitialContext not being set properly. In *ApplicationAwareCarbonJavaURLContextFactory* class, before we get the initial context we check whether the request coming from a webapp. If yes we return the *CarbonServerSelectorContext* else we just send the *NamingContext.* We have used following code to check whether the request is coming from a webapp or not, As I can see its checking with class loader. *if (ContextBindings.isClassLoaderBound())* when the webapp is unloaded above code returns false. values of contexts are as follows, *CarbonServerSelectorContext* - org.wso2.carbon.appfactory.ext.jndi.Context.CarbonServerSelectorContext *NamingContext* - org.apache.naming.NamingContext Our datasource is available only in *CarbonServerSelectorContext. *So whenever the *NamingContext* is returned , datasource appears to be null. So application is unable to show data. Thats pretty much the case. I have one question. *Is there any other way to check the request whether its coming from a webapp or not ?* If yes we can easily solve this issue. On Mon, Mar 9, 2015 at 12:12 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Harsha, Frankly I dont have much idea why its happenning like that, and this happens in that way after the fix for APPFAC -2195 [1] This is the exact code segment im talking about. try { context.startTenantFlow(); context.getThreadLocalCarbonContext().setTenantId(tenantManager.getTenantId(tenantDomain)); context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain); context.getThreadLocalCarbonContext().setUsername(userName); accessUrl = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationUrl(applicationKey, version, stage, tenantDomain); status = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationStatus(applicationKey, version, stage, tenantDomain); if(!status){ //fix for APPFAC-2195 //load the tenant if(accessUrl){ var xhr = new XMLHttpRequest(); xhr.open(GET,accessUrl + ,false); xhr.send(); } status = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationStatus(applicationKey, version, stage, tenantDomain); } if(status){ url=accessUrl; } } finally { context.endTenantFlow(); } [1] - https://wso2.org/jira/browse/APPFAC-2195 On Mon, Mar 9, 2015 at 11:59 AM, Harsha Thirimanna hars...@wso2.com wrote: Hi Mahesh, One question, What is the meaning of deploy status false and why it try to retrieve URl if it is not deploy ? Is that the behavior we are doing or are there any logic behind the seen ? If it is required then, I think you suggestion may be good. But how it load the tenant ? *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770 , +94 * *774617784twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimannlinked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* *Lean . Enterprise . Middleware* On Sun, Mar 8, 2015 at 11:21 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Found that when the Launch button is clicked in Repos n builds page it checks for the application deployed status, If deployed status is false, then it loads the tenant again and get access url for the app. If deployed status is true, then it just access the app url without loading the tenant. When I tried with removing the if statement and tried loading the tenant each time fixed the issue. What are the bad/good effects of solving this issue with above mentioned change ? On Sat, Mar 7, 2015 at 10:08 AM, Harsha Thirimanna hars...@wso2.com wrote: Hi Mahesh, You can set tenant unloading time for few minutes. And check that. *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770 , +94 * *774617784twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimannlinked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
Re: [Dev] [AS][AF] Error while invoking AppFactoryNDataSourceAdmim service via SOAP UI
(ApplicationDispatcher.java:339) at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30) at org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:156) at org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43) at org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:62) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) On Mon, Mar 9, 2015 at 3:09 PM, Mahesh Chinthaka mahe...@wso2.com wrote: How to overcome this and create a datasource ? On Mon, Mar 9, 2015 at 3:09 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, I copied org.wso2.carbon.appfactory.ext-2.1.0-SNAPSHOT.jar to dropins of a fresh AS pack and tried to invoke AppFactoryNDataSourceAdmim service using SOAP UI. I sent a request to addDataSource. when the request was sent with parameters, I got a faultstring as the response. But no back end errors in the log. faultstring org.wso2.carbon.ndatasource.core.DataSourceRepository cannot be cast to org.wso2.carbon.appfactory.ext.datasource.ApplicationAwareDataSourceRepository /faultstring How to -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AS][AF] Error while invoking AppFactoryNDataSourceAdmim service via SOAP UI
Hi, this got resolved! The reason for getting that error in SOAP UI was.. I was sending the request with authentication headers of carbon super admin. (admin ,admin). After invoking this service with authentication headers of my tenant. (tenant username and password) this worked fine. Thanks On Mon, Mar 9, 2015 at 4:34 PM, Mahesh Chinthaka mahe...@wso2.com wrote: When I tried to create datasource from carbon console.I got following error in the backend. java.lang.NullPointerException at java.io.File.init(File.java:222) at org.wso2.carbon.core.util.KeyStoreManager.getRegistryKeyStore(KeyStoreManager.java:353) at org.wso2.carbon.core.util.CryptoUtil.encrypt(CryptoUtil.java:123) at org.wso2.carbon.core.util.CryptoUtil.encryptAndBase64Encode(CryptoUtil.java:148) at org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.secureSaveElement(DataSourceUtils.java:200) at org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.secureSaveElement(DataSourceUtils.java:212) at org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.secureSaveElement(DataSourceUtils.java:212) at org.wso2.carbon.ndatasource.core.utils.DataSourceUtils.secureSaveElement(DataSourceUtils.java:212) at org.wso2.carbon.ndatasource.core.DataSourceRepository.persistDataSource(DataSourceRepository.java:314) at org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:471) at org.wso2.carbon.ndatasource.core.services.NDataSourceAdminService.addDataSource(NDataSourceAdminService.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminStub.addDataSource(NDataSourceAdminStub.java:1968) at org.wso2.carbon.ndatasource.ui.NDataSourceAdminServiceClient.addDataSource(NDataSourceAdminServiceClient.java:72) at org.apache.jsp.ndatasource.savedatasource_jsp._jspService(org.apache.jsp.ndatasource.savedatasource_jsp:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749
Re: [Dev] CarbonContext data are null while trying to run a webapp for the first time, second time onwards it works fine.
Hi Harsha, Frankly I dont have much idea why its happenning like that, and this happens in that way after the fix for APPFAC -2195 [1] This is the exact code segment im talking about. try { context.startTenantFlow(); context.getThreadLocalCarbonContext().setTenantId(tenantManager.getTenantId(tenantDomain)); context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain); context.getThreadLocalCarbonContext().setUsername(userName); accessUrl = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationUrl(applicationKey, version, stage, tenantDomain); status = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationStatus(applicationKey, version, stage, tenantDomain); if(!status){ //fix for APPFAC-2195 //load the tenant if(accessUrl){ var xhr = new XMLHttpRequest(); xhr.open(GET,accessUrl + ,false); xhr.send(); } status = server.osgiService('org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService') .getApplicationStatus(applicationKey, version, stage, tenantDomain); } if(status){ url=accessUrl; } } finally { context.endTenantFlow(); } [1] - https://wso2.org/jira/browse/APPFAC-2195 On Mon, Mar 9, 2015 at 11:59 AM, Harsha Thirimanna hars...@wso2.com wrote: Hi Mahesh, One question, What is the meaning of deploy status false and why it try to retrieve URl if it is not deploy ? Is that the behavior we are doing or are there any logic behind the seen ? If it is required then, I think you suggestion may be good. But how it load the tenant ? *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770 , +94 * *774617784twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimannlinked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* *Lean . Enterprise . Middleware* On Sun, Mar 8, 2015 at 11:21 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Found that when the Launch button is clicked in Repos n builds page it checks for the application deployed status, If deployed status is false, then it loads the tenant again and get access url for the app. If deployed status is true, then it just access the app url without loading the tenant. When I tried with removing the if statement and tried loading the tenant each time fixed the issue. What are the bad/good effects of solving this issue with above mentioned change ? On Sat, Mar 7, 2015 at 10:08 AM, Harsha Thirimanna hars...@wso2.com wrote: Hi Mahesh, You can set tenant unloading time for few minutes. And check that. *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770 , +94 * *774617784twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimannlinked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* *Lean . Enterprise . Middleware* On Fri, Mar 6, 2015 at 8:35 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Danushka, Tenant domain and tenant Id are set properly at everytime. other parameters are null. ok, lets see on Monday. @Harsha, Could be, have any idea of overcoming that ?? On Fri, Mar 6, 2015 at 10:08 PM, Danushka Fernando danush...@wso2.com wrote: May be this is due to some missing patch. Lets discuss this monday. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Mar 6, 2015 at 9:43 PM, Harsha Thirimanna hars...@wso2.com wrote: Hi Mahesh, Is this may be tenant loading delay for the first time ? On Mar 6, 2015 6:51 AM, Danushka Fernando danush...@wso2.com wrote: When you say CarbonContext data are empty are they null or are they not tenant data? What's the value of tenant domain and tenant id of carbon context? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Mar 6, 2015 at 8:10 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi All, Im working on [1]. This is regarding appfactory sample Customer Portal. We have a webapp that uses a datasource/database. When we deploy it and access for the first time , context data doesn't get loaded. When refreshed the browser or try to access the app for the second time (click again in 'open' url) it works fine. When I analyzed and debugged the code I found
Re: [Dev] [AS][AF] Error while invoking AppFactoryNDataSourceAdmim service via SOAP UI
How to overcome this and create a datasource ? On Mon, Mar 9, 2015 at 3:09 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, I copied org.wso2.carbon.appfactory.ext-2.1.0-SNAPSHOT.jar to dropins of a fresh AS pack and tried to invoke AppFactoryNDataSourceAdmim service using SOAP UI. I sent a request to addDataSource. when the request was sent with parameters, I got a faultstring as the response. But no back end errors in the log. faultstring org.wso2.carbon.ndatasource.core.DataSourceRepository cannot be cast to org.wso2.carbon.appfactory.ext.datasource.ApplicationAwareDataSourceRepository /faultstring How to -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AS][AF] Error while invoking AppFactoryNDataSourceAdmim service via SOAP UI
Hi, I copied org.wso2.carbon.appfactory.ext-2.1.0-SNAPSHOT.jar to dropins of a fresh AS pack and tried to invoke AppFactoryNDataSourceAdmim service using SOAP UI. I sent a request to addDataSource. when the request was sent with parameters, I got a faultstring as the response. But no back end errors in the log. faultstring org.wso2.carbon.ndatasource.core.DataSourceRepository cannot be cast to org.wso2.carbon.appfactory.ext.datasource.ApplicationAwareDataSourceRepository /faultstring How to -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] TestApp creation for App factory
Hi Dulitha, AFAIK you have to promote your app. Since we dont have pre deployed sample apps comes with your App cloud account. Before promoting you have to create a branch of you app (got to Repos and Builds and create a branch). Then got to Lifecycle management and promote it. Thanks On Sat, Mar 7, 2015 at 9:06 PM, Dulitha Kularathne dulithameth...@gmail.com wrote: Hi!! I am trying to do the command line app for App factory as a GSOC project. So I tried some API calls using the REST API given with the documentation ( https://docs.wso2.com/display/AF200/REST+APIs) So as the response what I got was the following message. This URL is currently not mapped to any branch and will be assigned to a branch once it is promoted to production. If you have any questions or need help, please contact us at cl...@wso2.com. So I thought that was because the app I created in the App cloud is not yet promoted to the production stage. If that's the case, should I promote my app up to production stage or is there are another way to do this using some demo app which is used for this purpose. Thank you. On Sat, Mar 7, 2015 at 5:03 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dulitha, Im sorry, what you are trying to do is bit unclear to me. Are you using our cloud[1] or are you using a local setup. In the cloud you can create an app, go to Lifecycle management of that app. (select from left side menu bar). Then promote the app up to production stage. You can find some samples related with APIs in [2]. Hope that would help. If not please feel free to ask any question. [1] - https://cloud.wso2.com/ [2] - https://docs.wso2.com/display/AF200/Samples On Sat, Mar 7, 2015 at 9:31 AM, Dulitha Kularathne dulithameth...@gmail.com wrote: Hi !! As I said in the previous mails,I tried some API calls by creating my own test app. But it looks like it is necessary for it to be in the production stage to do API calls and get something that makes sense for testing purposes.Otherwise it says that it needs to be in the production stage. So, is there a way to get a demo test app that is already in the production stage so that I can verify the results that I receive without difficulty. Thanks. On Fri, Mar 6, 2015 at 1:53 PM, Dulitha Kularathne dulithameth...@gmail.com wrote: Hi !! As I said in the previous mails,I tried some API calls by creating my own test app. But it looks like it is necessary for it to be in the production stage to do API calls and get something that makes sense for testing purposes.Otherwise it says that it needs to be in the production stage. So, is there a way to get a demo test app that is already in the production stage so that I can verify the results that I receive without difficulty. Thanks. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] TestApp creation for App factory
Hi Dulitha, Im sorry, what you are trying to do is bit unclear to me. Are you using our cloud[1] or are you using a local setup. In the cloud you can create an app, go to Lifecycle management of that app. (select from left side menu bar). Then promote the app up to production stage. You can find some samples related with APIs in [2]. Hope that would help. If not please feel free to ask any question. [1] - https://cloud.wso2.com/ [2] - https://docs.wso2.com/display/AF200/Samples On Sat, Mar 7, 2015 at 9:31 AM, Dulitha Kularathne dulithameth...@gmail.com wrote: Hi !! As I said in the previous mails,I tried some API calls by creating my own test app. But it looks like it is necessary for it to be in the production stage to do API calls and get something that makes sense for testing purposes.Otherwise it says that it needs to be in the production stage. So, is there a way to get a demo test app that is already in the production stage so that I can verify the results that I receive without difficulty. Thanks. On Fri, Mar 6, 2015 at 1:53 PM, Dulitha Kularathne dulithameth...@gmail.com wrote: Hi !! As I said in the previous mails,I tried some API calls by creating my own test app. But it looks like it is necessary for it to be in the production stage to do API calls and get something that makes sense for testing purposes.Otherwise it says that it needs to be in the production stage. So, is there a way to get a demo test app that is already in the production stage so that I can verify the results that I receive without difficulty. Thanks. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] CarbonContext data are null while trying to run a webapp for the first time, second time onwards it works fine.
Hi All, Im working on [1]. This is regarding appfactory sample Customer Portal. We have a webapp that uses a datasource/database. When we deploy it and access for the first time , context data doesn't get loaded. When refreshed the browser or try to access the app for the second time (click again in 'open' url) it works fine. When I analyzed and debugged the code I found that CarbonContext data are empty. But in ApplicationAwareDataSourceRepository.java class and in CarbonContextCreatorValve.java class those context details are being set properly. When our sample webapp tries to read those values it returns null for the first time. What can be the reason for this ? [1] - https://wso2.org/jira/browse/APPFAC-2998 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] CarbonContext data are null while trying to run a webapp for the first time, second time onwards it works fine.
Hi Danushka, Tenant domain and tenant Id are set properly at everytime. other parameters are null. ok, lets see on Monday. @Harsha, Could be, have any idea of overcoming that ?? On Fri, Mar 6, 2015 at 10:08 PM, Danushka Fernando danush...@wso2.com wrote: May be this is due to some missing patch. Lets discuss this monday. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Mar 6, 2015 at 9:43 PM, Harsha Thirimanna hars...@wso2.com wrote: Hi Mahesh, Is this may be tenant loading delay for the first time ? On Mar 6, 2015 6:51 AM, Danushka Fernando danush...@wso2.com wrote: When you say CarbonContext data are empty are they null or are they not tenant data? What's the value of tenant domain and tenant id of carbon context? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Mar 6, 2015 at 8:10 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi All, Im working on [1]. This is regarding appfactory sample Customer Portal. We have a webapp that uses a datasource/database. When we deploy it and access for the first time , context data doesn't get loaded. When refreshed the browser or try to access the app for the second time (click again in 'open' url) it works fine. When I analyzed and debugged the code I found that CarbonContext data are empty. But in ApplicationAwareDataSourceRepository.java class and in CarbonContextCreatorValve.java class those context details are being set properly. When our sample webapp tries to read those values it returns null for the first time. What can be the reason for this ? [1] - https://wso2.org/jira/browse/APPFAC-2998 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Jaggery] TypeError: org.mozilla.javascript.Undefined@50464b2a is not a function, it is undefined.
Hi Danushka, No I didnt write a function in block. Function was written in utils.jag Thanks On Wed, Feb 18, 2015 at 8:55 PM, Danushka Fernando danush...@wso2.com wrote: Hi Mahesh I am not sure whether u r doing the correct thing. AFAIU you are adding a function in block. Which means you are writing some business logic in block. Which is not good I think. You should write all business logic in module layer. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Feb 18, 2015 at 11:19 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Thanks Ruchira, The mistake I had done was keeping variable name and calling function name same. i.e :var deleteButtonVisible = deleteButtonVisible(currentStage); This leads to a confusion, therefore we need to keep variable name and the function name different I got it fixed doing like this. var isDeleteButtonVisible = deleteButtonVisible(currentStage); On Wed, Feb 18, 2015 at 10:55 AM, Ruchira Wageesha ruch...@wso2.com wrote: On Wed, Feb 18, 2015 at 10:51 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, After adding new method in a block.jag file im getting following error. Need helps please. TID: [0] [AF] [2015-02-18 10:49:56,109] ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} - org.mozilla.javascript.EcmaError: TypeError: org.mozilla.javascript.Undefined@50464b2a is not a function, it is undefined. (/appmgt/site/blocks/resources/externalapi/add/block.jag#36) {org.jaggeryjs.jaggery.core.manager.WebAppManager} org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.EcmaError: TypeError: org.mozilla.javascript.Undefined@50464b2a is not a function, it is undefined. (/appmgt/site/blocks/resources/externalapi/add/block.jag#36) This explains the error, i.e. You expect a variable to be a function and try to call it. But, it hasn't actually got assigned a value. at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541) at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653
[Dev] [Jaggery] TypeError: org.mozilla.javascript.Undefined@50464b2a is not a function, it is undefined.
(/appmgt/jagg/jagg.jag:217) at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.appmgt.jagg.c0._c_anonymous_27(/appmgt/jagg/jagg.jag:277) at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.appmgt.jagg.c0._c_anonymous_26(/appmgt/jagg/jagg.jag:212) at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.appmgt.jagg.c0._c_anonymous_27(/appmgt/jagg/jagg.jag:277) at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.appmgt.jagg.c0._c_anonymous_26(/appmgt/jagg/jagg.jag:212) at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) at org.jaggeryjs.rhino.appmgt.jagg.c0._c_anonymous_39(/appmgt/jagg/jagg.jag:446) at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.appmgt.site.pages.c4._c_anonymous_1(/appmgt/site/pages/externalapi.jag:26) at org.jaggeryjs.rhino.appmgt.site.pages.c4.call(/appmgt/site/pages/externalapi.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.appmgt.site.pages.c4._c_script_0(/appmgt/site/pages/externalapi.jag:24) at org.jaggeryjs.rhino.appmgt.site.pages.c4.call(/appmgt/site/pages/externalapi.jag) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.appmgt.site.pages.c4.call(/appmgt/site/pages/externalapi.jag) at org.jaggeryjs.rhino.appmgt.site.pages.c4.exec(/appmgt/site/pages/externalapi.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) ... 35 more -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Jaggery] TypeError: org.mozilla.javascript.Undefined@50464b2a is not a function, it is undefined.
Thanks Ruchira, The mistake I had done was keeping variable name and calling function name same. i.e :var deleteButtonVisible = deleteButtonVisible(currentStage); This leads to a confusion, therefore we need to keep variable name and the function name different I got it fixed doing like this. var isDeleteButtonVisible = deleteButtonVisible(currentStage); On Wed, Feb 18, 2015 at 10:55 AM, Ruchira Wageesha ruch...@wso2.com wrote: On Wed, Feb 18, 2015 at 10:51 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, After adding new method in a block.jag file im getting following error. Need helps please. TID: [0] [AF] [2015-02-18 10:49:56,109] ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} - org.mozilla.javascript.EcmaError: TypeError: org.mozilla.javascript.Undefined@50464b2a is not a function, it is undefined. (/appmgt/site/blocks/resources/externalapi/add/block.jag#36) {org.jaggeryjs.jaggery.core.manager.WebAppManager} org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.EcmaError: TypeError: org.mozilla.javascript.Undefined@50464b2a is not a function, it is undefined. (/appmgt/site/blocks/resources/externalapi/add/block.jag#36) This explains the error, i.e. You expect a variable to be a function and try to call it. But, it hasn't actually got assigned a value. at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541) at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.mozilla.javascript.EcmaError: TypeError: org.mozilla.javascript.Undefined@50464b2a is not a function, it is undefined. (/appmgt/site/blocks/resources/externalapi/add/block.jag#36) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665) at org.mozilla.javascript.ScriptRuntime.typeError
Re: [Dev] [MB]Multi tenant topic and queue creation and subscription
And this too... :) https://docs.wso2.com/display/MB220/JMS+Client+Samples On Thu, Feb 12, 2015 at 11:09 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Megala, You may find these samples useful. https://docs.wso2.com/display/MB220/Creating+a+Durable+Topic+Subscription https://docs.wso2.com/display/MB220/Receiving+Messages+with+JMS+Message+Listener https://docs.wso2.com/display/MB220/Sending+and+Receiving+Messages+Using+Topics On Thu, Feb 12, 2015 at 10:55 AM, Megala Uthayakumar meg...@wso2.com wrote: Hi All, Is there are any sample codes in the existing documentation regarding the multi tenant topic and queue creation and subscription? I can not find the codes in the existing documentation[1]. Can someone help me on this please? [1]https://docs.wso2.com/display/MB220/WSO2+Message+Broker+Documentation Thanks. Regards Megala Uthayakumar *Software Engineering Intern *| *WSO2 Lanka* Mobile : +94 779 967 122 Tel : +94 112 733 667 E-mail : meg...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB]Multi tenant topic and queue creation and subscription
Hi Megala, You may find these samples useful. https://docs.wso2.com/display/MB220/Creating+a+Durable+Topic+Subscription https://docs.wso2.com/display/MB220/Receiving+Messages+with+JMS+Message+Listener https://docs.wso2.com/display/MB220/Sending+and+Receiving+Messages+Using+Topics On Thu, Feb 12, 2015 at 10:55 AM, Megala Uthayakumar meg...@wso2.com wrote: Hi All, Is there are any sample codes in the existing documentation regarding the multi tenant topic and queue creation and subscription? I can not find the codes in the existing documentation[1]. Can someone help me on this please? [1]https://docs.wso2.com/display/MB220/WSO2+Message+Broker+Documentation Thanks. Regards Megala Uthayakumar *Software Engineering Intern *| *WSO2 Lanka* Mobile : +94 779 967 122 Tel : +94 112 733 667 E-mail : meg...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Read values in user-mgt.xml
Hi all, Is there any way to do $subject. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Read values in user-mgt.xml
Thanks Godwin. That helped. On Tue, Feb 10, 2015 at 3:40 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi Mahesh, AFIK you can use RealmConfiguration from RealmService to read the data in user-mgt.xml. Thanks Godwin On Tue, Feb 10, 2015 at 3:24 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Is there any way to do $subject. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev