Re: [Dev] Fix for Lifecycle Action[promote/demote] is not properly works in Enterprise Store

2015-11-19 Thread Rajeenthini Satkunam
Adding waruna. On Thu, Nov 19, 2015 at 2:15 PM, Rajeenthini Satkunam wrote: > Hi All, > > I have fixed this issue [1] in the Pull Request [2] .We have merged the > PR to jaggery-extensions master SNAPSHOT version now.To include this fix in > GREG, update the

[Dev] Fix for Lifecycle Action[promote/demote] is not properly works in Enterprise Store

2015-11-19 Thread Rajeenthini Satkunam
Hi All, I have fixed this issue [1] in the Pull Request [2] .We have merged the PR to jaggery-extensions master SNAPSHOT version now.To include this fix in GREG, update the jaggery-extensions before next release of GREG. [1] - https://wso2.org/jira/browse/STORE-720 [2] -

Re: [Dev] Issue in carbon logs after changing carbon.kernel.version from 4.4.1 to 4.4.2

2015-11-19 Thread Sajith Ariyarathna
Hi Malithi, Seems that when you log.error(message, e); the stack trace does not get sanitized, but if you do log.error(e); then the stack trace get sanitized. Currently we are developing Jaggery app; when an exception occurred in Jaggery code, Rhino engine logs the stack trace and that stack

[Dev] [Automation][DS] Build is not getting fail since the find-bug finds bugs in the code

2015-11-19 Thread Rajeenthini Satkunam
Hi all, I would like to integrate find-bug plugin with a maven build of product DS Integration test module(Dashboard Server).So I have added the plugin maven find-bug under plugins in POM of integration module of product DS. Here is the code I have added in POM. org.codehaus.mojo

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Nipuni Perera
Hi Amila, Thanks for the clarification. We are testing if products can use carbon-commons 4.5.0, without rewriting data publishers in carbon-deployment and carbon-multitenancy (as we don't have a requirement atm). Hence we will not updating usage.agent bundle in carbon-multitenancy as mentioned.

Re: [Dev] [ESB] Caching with Service Chaining Pattern

2015-11-19 Thread Viraj Senevirathne
Hi Ruwan, I was able to use the cache mediator for above scenario by using a separate sequence for state 2 of the use case. So If there is a cache hit, response will be taken from the memory and passed to the *reqCredit* Sequence. If there is no cache hit it will follow the same way and go it

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Rukshan Premathunga
Hi Nipuni, APIM Still use the carbon-multitenancy like below. org.wso2.carbon.multitenancy org.wso2.carbon.tenant.usage.agent can you lokking to this? Thanks and Regards. On Thu, Nov 19, 2015 at 2:39 PM, Nipuni Perera wrote: > Hi Amila, > > Thanks for the

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Amila Maha Arachchi
Are org.wso2.carbon.usage.agent and org.wso2.carbon.tenant.usage.agent the same? On Thu, Nov 19, 2015 at 3:26 PM, Rukshan Premathunga wrote: > Hi Nipuni, > > APIM Still use the carbon-multitenancy like below. > > > org.wso2.carbon.multitenancy >

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Sanjeewa Malalgoda
In our APIMgtUsageHandler we use publisherUtils(org.wso2.carbon.usage.agent.util.PublisherUtils) class to publish events. So we have dependency to org.wso2.carbon.usage.agent(2.1.2) jar. At this point our commons version is 4.4.8 for APIM 1.10 release. So do you suggest to move commons 4.5.0 and

Re: [Dev] [BRS] Error in CacheCleanupTask in BRS clustered setup when one node goes OOM

2015-11-19 Thread Milinda Perera
Hi Azeez, Actually we analyzed the OOM issue and figured out that it's from BRS side [1] and at the moment we fixed it for stateless rule sessions. But there are limitations for stateful rule sessions. When request is received by BRS, It creates knowledgeSession from KnowledgeBase and feed facts

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Nipuni Perera
Hi Rukshan, Can you try to update APIM to use carbon-commons 4.5.0 and see if any issue raise due to this dependency. We can keep usage.agent bundle if needed without updating to carbon-commons 4.5.0 changes. According to the pom configurations, the only export package is

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Amila Maha Arachchi
Please check with Sanjeewa on whether APIM is using the old usage.agent component or is this a new one. I was under the impression that old agent is not used anywhere anymore. On Thu, Nov 19, 2015 at 4:58 PM, Rukshan Premathunga wrote: > Hi Amila, > > I think yes. I think both

Re: [Dev] Issue in carbon logs after changing carbon.kernel.version from 4.4.1 to 4.4.2

2015-11-19 Thread Malithi Edirisinghe
Hi Jagath, So as I said before this fix affects to CarbonConsoleAppender, CarbonDailyRollingFileAppender and MemoryAppender. So if this to be changed, either a new appender could be configured in log4j.properties or the appender class of the CARBON_CONSOLE appender could be changed to a in built

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Rukshan Premathunga
Hi, @Nipuni, we have compiling code at here[1] and there was no any issues. @Sanjeewa, we are moved from org.wso2.carbon.usage.agent to org.wso2.carbon.tenant.usage.agent right? Also, does it satisfied "DataPublisherUtil.isEnabledMetering()" at here[2] and reached to here [1]? [1]

[Dev] Fwd: [Automation][DS] Build is not getting fail since the find-bug finds bugs in the code

2015-11-19 Thread Chamara Philips
-- Forwarded message -- From: Chamara Philips Date: Fri, Nov 20, 2015 at 8:15 AM Subject: Re: [Dev] [Automation][DS] Build is not getting fail since the find-bug finds bugs in the code To: Rajeenthini Satkunam Hi Rajeenthini, It is not

Re: [Dev] [IS] Logout on secondary IDP - LogoutRequestProcessor says session index not in Logout request but it is?

2015-11-19 Thread Chamara Philips
Hi John, It is actually not that problem in finding SessionIndex value from the request. Apparently there is a problem of finding the Session Index from SSOTokenID cookie. I will analyze the trace and get back to you as quickly as possible. Thanks. On Thu, Nov 19, 2015 at 9:38 PM, John Lee

Re: [Dev] [IS] "hostname in certificate didn't match:" issue when accessing IS dashboard

2015-11-19 Thread Malintha Adikari
Hi Aprana, I am getting the same issue while accessing APIM distributed cluster nodes fronted through loadbalancer(nginx) instance. Did you able to solve this issue ? If so how did you solve it ? Regards, Malintha On Wed, Oct 28, 2015 at 2:09 PM, Isuru Udana wrote: > Hi

Re: [Dev] Output directory for maven-bundle-plugin

2015-11-19 Thread Chamara Philips
Hi Geesara, Can you please try with the absolute path to the project.outputDirectory? It worked for me. As I remember, there was a problem with having spaces in the path, for folders. But not sure whether it was for this plugin. Thanks. On Tue, Nov 10, 2015 at 9:16 PM, Geesara Prathap

Re: [Dev] Output directory for maven-bundle-plugin

2015-11-19 Thread Geesara Prathap
Hi Chamara, Nope, it didn't work either. Thanks, On Fri, Nov 20, 2015 at 8:38 AM, Chamara Philips wrote: > Hi Geesara, > > Can you please try with the absolute path to the project.outputDirectory? > It worked for me. > As I remember, there was a problem with having spaces

Re: [Dev] US Election 2016 Tweet Analyze System

2015-11-19 Thread Srinath Perera
Hi Yudhanjaya, On Thu, Nov 19, 2015 at 3:40 PM, Yudhanjaya Wijeratne wrote: > Hi Srinath, > > Regarding Dinali's graph, we had a chat and realized that using the width > of the edge makes the graph harder to read as smaller connections are > hidden. What if we did it this

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Nipuni Perera
Hi Sanjeewa, I checked the imports of the mentioned classes. As per my last reply " org.wso2.carbon.tenant.usage.agent" is the artifact id while package name is "org.wso2.carbon.usage.agent" (Note: no "tenant" part). So org.wso2.carbon.tenant.usage.agent exports "org.wso2.carbon.usage.agent.api"

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Rukshan Premathunga
Hi Nipuni, Normally we are publishing event using org.wso2.carbon.databridge.agent.thrift.lb.LoadBalancingDataPublisher like this[1] and it worked without any problems. And i'm not sure about this line[2] and it is special scenario. And i'm not had a chance to use that scenario. i'll try to use

Re: [Dev] Improvements to metrics datasource configurations

2015-11-19 Thread Isuru Perera
Hi Sinthuja, I have already fixed these issues with commit [1]. These additional datasource configurations were added as commented lines in metrics-datasources.xml and I added those just before Carbon Metrics v1.1.1 release, which is used in MB and DAS products. We found the issues only after

Re: [Dev] Improvements to metrics datasource configurations

2015-11-19 Thread Dilini Gunatilake
Hi Isuru, Since this a common feature which will be incorporated in other products, shall we move this bug from MB? Then we can make sure that this fix will be included in the next release. Do you have any idea where to move this? Regards, Dilini On Fri, Nov 20, 2015 at 10:38 AM, Isuru Perera

Re: [Dev] [IS] "hostname in certificate didn't match:" issue when accessing IS dashboard

2015-11-19 Thread Aparna Karunarathna
Actually I have used another Nginx to resolve my issue, not a permanent solution. AFAIU this is getting due to httpclient 4.3.1 doesn't support SNI. @IsuruU, Shouldn't it upgrade to httpclient 4.3.2 ? Regards, Aparna. On Fri, Nov 20, 2015 at 11:24 AM, Malintha Adikari

Re: [Dev] [ES 2.0.0] Issue about creating and editing Unbounded Tables

2015-11-19 Thread Ayesha Dissanayaka
Hi Luca, I have updated the versions of product-es repository[1] dependencies and commit in the pull request[2]. I havent merge the changes to master branch yet, since we are still working on updating test cases and other fixes. In order to build a wso2es product with above fixes, follow the

[Dev] [DEV] [Jaggery]How to convert/cast an exception stachtrace to a string

2015-11-19 Thread Ishara Cooray
Hi, In Jaggerry If an exception is concatenated to a string it will concatenate only the message part but the stacktrace is omited. ex: var exceptionString = "Custom Message" + e; This exceptionString does not have the stacktrace. How can i get the exception with the stacktrace as a string in

Re: [Dev] [DEV] [Jaggery]How to convert/cast an exception stachtrace to a string

2015-11-19 Thread Lalanke Athauda
Hi Ishara, Try this one. var exceptionString = "Custom Message" + *stringify*(e); Hope this solve your problem. On Fri, Nov 20, 2015 at 11:57 AM, Ishara Cooray wrote: > Hi, > > In Jaggerry If an exception is concatenated to a string it will > concatenate only the message

[Dev] [ESB][Property Mediators] An Error occurred while using the property mediators.

2015-11-19 Thread Lakmini Chathurika
Hi all, I have written a proxy service to get the product list. For each of the product in this product list I need to get its versions. I used a property mediator for this. Source view of the Proxy service is as follows , http://ws.apache.org/ns/synapse;>

Re: [Dev] [Automation][DS] Build is not getting fail since the find-bug finds bugs in the code

2015-11-19 Thread Rajeenthini Satkunam
Hi chamara, I have already tried the way you have mentioned that removing testOnFailure as well as change to compile. Even when I changed the phase to compile, it does not produce findbugxml file.And I have version specification in a Parent POM as below. org.apache.maven.plugins

[Dev] [DEV][Jaggery][javascript] jagg.post() returns to the error function while post fuction implements properly.

2015-11-19 Thread Ishara Cooray
I have the following code implemented in a jaggery app. In the reInvite function sends an email and returns email. The issue is though the email is sent successfully it throws an error. jagg.post("../blocks/tenant/register/invite/ajax/invite.jag", { action:"reInvite",

Re: [Dev] [DEV] [Jaggery]How to convert/cast an exception stachtrace to a string

2015-11-19 Thread Ishara Cooray
Thanks for the reply Lalanke. But *stringify() * results the same. Ishara Cooray Senior Software Engineer Mobile : +9477 262 9512 WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware On Fri, Nov 20, 2015 at 12:22 PM, Lalanke Athauda wrote: > Hi Ishara, > Try this one.

Re: [Dev] Issue in carbon logs after changing carbon.kernel.version from 4.4.1 to 4.4.2

2015-11-19 Thread Ruwan Abeykoon
Hi All, I think sanitizing the log it not the correct remedy for the "log forging" issue. We need to provide a utility to the developers to sanitize the user inputs before appending to the logs IMO. Developers should able to log with any formatted (even with CRLF) for visibility purposes. Also

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Sanjeewa Malalgoda
On Thu, Nov 19, 2015 at 8:39 PM, Rukshan Premathunga wrote: > Hi, > > @Nipuni, we have compiling code at here[1] and there was no any issues. > > @Sanjeewa, we are moved from org.wso2.carbon.usage.agent to > org.wso2.carbon.tenant.usage.agent > right? Also, does it satisfied

Re: [Dev] [ES 2.0.0] Issue about creating and editing Unbounded Tables

2015-11-19 Thread Luca Mastrangelo
Hi Udara, thank you for the useful information about this fix. We have tried to compile the last version in github of the ES 2.0.1-SNAPSHOT but does not contain the fix to the unbounded table. So we tried to compile the Jaggery and to set in the ES 2.0.1 the jaggery.feature.version property

Re: [Dev] [EMM] java.lang.VerifyError after adding few features

2015-11-19 Thread Ayyoob Hamza
Hi Charitha, We got the same issue on IoT Server and I sent a email regarding this([DEV][DAS][ESB] Failed to initialise synapse after installing DAS features). This issue was raised due to a bundle that has packed with the DAS feature. Thanks *Ayyoob Hamza* *Software Engineer* WSO2 Inc.;

[Dev] Improvements to metrics datasource configurations

2015-11-19 Thread Sinthuja Ragendran
Hi IsuruP, There are two issues we saw in the metrics-datasource configurations for other datasources such as MySQL, MSSQL than H2. 1) The JNDI config is mentioned as below. As there is already default configurations provided for the database, the jndi config also needed to be default. If we

Re: [Dev] [ESB] Caching with Service Chaining Pattern

2015-11-19 Thread Ruwan Abeykoon
Hi VIraj, Thank you for your response. This method works, since it implement "Service Proxy" pattern. But I want to adopt the cache in the "Service Chaining" pattern, where I call more than one backend services in sequence, make some decisions in between, enriching the content etc. I want to

[Dev] [EMM] java.lang.VerifyError after adding few features

2015-11-19 Thread Charitha Goonetilleke
Hi All, I'm getting following error on MDM-2.0.0-SNAPSHOT after adding *org.wso2.carbon.analytics.core.server.feature* (1.0.4), *org.wso2.carbon.analytics.api.feature* (1.0.4) and *org.wso2.carbon.databridge.core.server.feature* (5.0.7-SNAPSHOT) along with

Re: [Dev] [EMM] java.lang.VerifyError after adding few features

2015-11-19 Thread Charitha Goonetilleke
Hi Ayyoob, Thanks for the update On Thu, Nov 19, 2015 at 7:13 PM, Ayyoob Hamza wrote: > Hi Charitha, > We got the same issue on IoT Server and I sent a email regarding > this([DEV][DAS][ESB] Failed to initialise synapse after installing DAS > features). This issue was raised

Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Nipuni Perera
Hi all, I have listed the osgi bundles in a APIM-1.10 pack and could observe that (refer [1 for the result from osgi console]) it is using org.wso2.carbon.tenant.usage.agent_4.5.0. (which is release with carbon-multitenancy 4.5.0. I could not find a 2.1.2 jar from the osgi bundle list). According