Re: [Dev] Error establishing data source connection, Communications link failure

2014-10-15 Thread Supun Muthutantrige
Hi Manoj, The error occurred when I attempt to link to a mysql database using the CEP. The following error message was shown when the connection was tested. Error-- Error establishing data source connection: Communications link failure The last packet sent successfully

Re: [Dev] Session Doesn't timeout when SSO is Enabled

2014-10-15 Thread Yasassri Ratnayake
Hi, The issue is the Session validation is broken in IS 4.6 and a patch has being applied for this. Its fixed in the Latest IS pack. The session duration will be determined by the value set in the web.xml file. With Regards, On Wed, Oct 15, 2014 at 11:01 AM, Manoj Gunawardena man...@wso2.com

Re: [Dev] Exception handling in CEP Siddhi Extensions

2014-10-15 Thread Rajeevan Vimalanathan
Thanks Sachini. On Tue, Oct 14, 2014 at 5:10 PM, Sachini Jayasekara sachi...@wso2.com wrote: Hi Vimalanathan, You can throw a QueryCreationException if the erroneous conditions are checked at the time of query creation. Make sure you throw the exception with context information. Some other

Re: [Dev] Session Doesn't timeout when SSO is Enabled

2014-10-15 Thread Manoj Gunawardena
Hi, not clear the issue. First you set the time out in web.xml (AS). But after enabled SSO, it's not worked. After set session time out in identity.xml (IS) still not work as expected? Thanks On Wed, Oct 15, 2014 at 11:52 AM, Yasassri Ratnayake yasas...@wso2.com wrote: Hi, The issue is the

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
[adding dev@] Just to add some context, the user store supports limited functionality. They are In super tenant mode - add/edit/delete user - add/edit/delete role - attach user to role - attach role to user - view users - view roles On Wed, Oct 15, 2014 at 12:22 PM, Shani

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Hi Prabath, Actually this is quite urgent as this needs to be shared to two customers. Hence shared the code in this manner. I just scheduled the code review for today. On Wed, Oct 15, 2014 at 12:26 PM, Shani Ranasinghe sh...@wso2.com wrote: [adding dev@] Just to add some context, the user

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Prabath Abeysekera
If that's the case please get Deep/Bhathiya to do a quick review on the Cassandra related aspects of this. We can probably go for a much organized code review later. Cheers, Prabath On Wed, Oct 15, 2014 at 12:32 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi Prabath, Actually this is quite

Re: [Dev] [SS] Is there a way to get the value of DbmsType via RSSAdmin?

2014-10-15 Thread Dimuthu Leelarathne
Hi Amalka, When we move to the latest SS we can get it from backend. For now we only support MySQL so lets put it as MySQL. thanks, dimuthu On Wed, Oct 15, 2014 at 9:52 AM, Harsha Kumara hars...@wso2.com wrote: Hi Amalka, So this would ideally be the database provider configured in the

[Dev] [APP Factory] What is the best way to load the database information to the DataBases landing page?

2014-10-15 Thread Amalka Subasinghe
Hi, I have developed the new Databases landing page as follows ​ Here, except Database Type I can get all other information from App Factory DB. Is there a way to get the Database Type except getting it via RSSAdmin? Thanks Amalka ___ Dev mailing

Re: [Dev] [APP Factory] What is the best way to load the database information to the DataBases landing page?

2014-10-15 Thread Amalka Subasinghe
OR is there a specific requirement to show the Database Type here? if not, we can get rid of this RSSAdmin backend call On Wed, Oct 15, 2014 at 12:41 PM, Amalka Subasinghe ama...@wso2.com wrote: Hi, I have developed the new Databases landing page as follows ​ Here, except Database Type I

Re: [Dev] [APP Factory] What is the best way to load the database information to the DataBases landing page?

2014-10-15 Thread Dimuthu Leelarathne
On Wed, Oct 15, 2014 at 11:17 AM, Amalka Subasinghe ama...@wso2.com wrote: OR is there a specific requirement to show the Database Type here? if not, we can get rid of this RSSAdmin backend call +1. Lets get rid of the call and make it MySQL always. When we are supporting other types we'll be

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Hi Prabath, Sure will reschedule the formal code review for tomorrow then. On Wed, Oct 15, 2014 at 12:37 PM, Prabath Abeysekera praba...@wso2.com wrote: If that's the case please get Deep/Bhathiya to do a quick review on the Cassandra related aspects of this. We can probably go for a much

Re: [Dev] [ES] Workflow extensions support - Approval task pages or app ?

2014-10-15 Thread Manoj Gunawardena
Hi, +1 for develop as separate app and more clean and logical way . But I think user point of view, its more applicable to view and function with in publisher. Cant we implement as separate Jaggery app and included to publisher as a carbon feature. Then this workflow support app is available as

[Dev] Using an External Library in writing Siddhi Extention - Need clarifications

2014-10-15 Thread Lahiru Cooray
Hi, We are writing some extensions to Siddhi (eg: TopK, Cardinality, etc) and we are using an external library (Stream Lib[1]) to reuse its already implemented algorithms and same library is used in many functions. We need to know what is the standard way to deploy a third party library? is it

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Prabath Abeysekera
Great. Thanks! On Wed, Oct 15, 2014 at 1:15 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi Prabath, Sure will reschedule the formal code review for tomorrow then. On Wed, Oct 15, 2014 at 12:37 PM, Prabath Abeysekera praba...@wso2.com wrote: If that's the case please get Deep/Bhathiya to do

Re: [Dev] Session Doesn't timeout when SSO is Enabled

2014-10-15 Thread Yasassri Ratnayake
Hi Manoj, Yes even after changing the identity.xml in IS the session didn't get timed out, a patch has being issued for this. As per the discussion I had with the IS team the timeout is only set in the AS side. I observed this wile testing the SP, I will update the thread if the problem pertains

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Deependra Ariyadewa
@Shani Please share the user mgt schema. On Wed, Oct 15, 2014 at 12:37 PM, Prabath Abeysekera praba...@wso2.com wrote: If that's the case please get Deep/Bhathiya to do a quick review on the Cassandra related aspects of this. We can probably go for a much organized code review later.

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Please find the keyspace schema for the user store. CREATE TABLE UM_USER ( KEY blob PRIMARY KEY ) WITH comment='' AND comparator=blob AND read_repair_chance=0.00 AND gc_grace_seconds=0 AND default_validation=blob AND min_compaction_threshold=4 AND max_compaction_threshold=32

[Dev] Recommended approach to adapt 3rd party dependencies

2014-10-15 Thread Prabath Abeysekera
Hi Folks, I've got a 3rd party dependency (i.e Hadoop/HDFS) to be adapted into GIT and wondering where exactly I should do the initial developments, etc with the newly introduced GIT model? I do realize that I could have simply used a private repository or something and do the initial forking and

Re: [Dev] Using an External Library in writing Siddhi Extention - Need clarifications

2014-10-15 Thread Rajeev Sampath
Hi, On Wed, Oct 15, 2014 at 1:25 PM, Lahiru Cooray lahi...@wso2.com wrote: Hi, We are writing some extensions to Siddhi (eg: TopK, Cardinality, etc) and we are using an external library (Stream Lib[1]) to reuse its already implemented algorithms and same library is used in many functions.

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Hi, I have also attached the full source of the jar. On Wed, Oct 15, 2014 at 2:17 PM, Shani Ranasinghe sh...@wso2.com wrote: Please find the keyspace schema for the user store. CREATE TABLE UM_USER ( KEY blob PRIMARY KEY ) WITH comment='' AND comparator=blob AND

[Dev] Removing JPA fron RSS Manager and Migrate to native SQL

2014-10-15 Thread Harsha Kumara
Hi, I'm looking through the feasibility and complexity of migrating rss manager data access from JPA to native SQL. This is due to inconsistencies cause by the JPA in the rss manager core. With the JPA most of the internal data access APIs use object mode to perform CRUD operations. With the

Re: [Dev] What is the standard way of handling exceptions

2014-10-15 Thread Udara Liyanage
Hi, Logging and throwing is considered an anti pattern in some places since same exception will be logged in multiple locations. They recommend to wrap the exception and throw. catch(LowLevelException e){ throw new HighlevelException(Highlevel operation failed etc , e) } Then

Re: [Dev] [APP Factory] What is the best way to load the database information to the DataBases landing page?

2014-10-15 Thread Danushka Fernando
+1 for let it be MySQL for now. But we need to get this feature in to SS roadmap. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Oct 15, 2014 at 1:01 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: On Wed, Oct 15, 2014 at 11:17

Re: [Dev] Recommended approach to adapt 3rd party dependencies

2014-10-15 Thread Afkham Azeez
Sanjiva/Shankar/Srinath/Isabelle et al, What do you guys feel about forking Hadoop? IMO, its going to be a major maintenance overhead. On Wed, Oct 15, 2014 at 2:19 PM, Prabath Abeysekera praba...@wso2.com wrote: Hi Folks, I've got a 3rd party dependency (i.e Hadoop/HDFS) to be adapted into

Re: [Dev] Sample Carbon Registry Client for Shared Data

2014-10-15 Thread Danushka Fernando
Hi Roshan Can you explain your use case. AFAIK this is not facilitated in carbon. Tenants are totally isolated and they cannot access each other's tenant. By going through the problem you are trying to solve we may be able to find a solution. Thanks Regards Danushka Fernando Software Engineer

Re: [Dev] Removing JPA fron RSS Manager and Migrate to native SQL

2014-10-15 Thread Prabath Abeysekera
I do understand that we'd already spent considerable amount of time rewriting the DAO layers implemented as part of RSS Manager to use JPA. However, some of the inconsistencies/issues observed in JPA provider implementations such as OpenJPA, etc got me thinking we should probably try to make

Re: [Dev] Sample Carbon Registry Client for Shared Data

2014-10-15 Thread Roshan Deniyage
Hi Danushka, The use case is that, we use a event listener to get newly spawned catridges's information (public IP, dns etc) and keep the data inside the app-factory side. These are runtime data and time to time get updated. There is no tenant related info in these data. When user, request for

Re: [Dev] Sample Carbon Registry Client for Shared Data

2014-10-15 Thread Danushka Fernando
1. If these are runtime data don't store in registry. Registry is only for metadata not runtime data. 2. AFAIU this urls are strickly mapped to the application which is inside a tenant. So data are tenant related. Correct me if I am wrong. Thanks Regards Danushka Fernando Software Engineer WSO2

Re: [Dev] Sample Carbon Registry Client for Shared Data

2014-10-15 Thread Gayan Dhanushka
Hi Roshan, Since this is not metadata IMO it is better to use the runtime data DB that we already have. It is not good to store constantly changing dynamic data into the registry. Thanks GayanD On Wed, Oct 15, 2014 at 3:39 PM, Danushka Fernando danush...@wso2.com wrote: 1. If these are

[Dev] Configurable SAML SSO elements

2014-10-15 Thread Hasintha Indrajee
Hi all, Following configurable elements and improvements were added to SAML sso Idp side. Configurations can be done through UI. - Signature Algorithm is configurable. It only supports RSA algorithms. - Authentication Context Class is configurable - Request Authentication Comparison

[Dev] [DEV][APIM] Please commit the patch

2014-10-15 Thread Abimaran Kugathasan
Hi Nuwan, Please commit the attached patch for JIRA [1] [1] : https://wso2.org/jira/browse/APIMANAGER-2536 -- Thanks Abimaran Kugathasan Software Engineer | WSO2 Inc Data APIs Technologies Team Mobile : +94 77 1708229 http://stackoverflow.com/users/515034 http://lk.linkedin.com/in/abimaran

Re: [Dev] Sample Carbon Registry Client for Shared Data

2014-10-15 Thread Roshan Deniyage
Hi, Thanks for the comments. Yes the data is runtime and better to store in the DB. And the data is actually, mapping of clusterId, and endpoint public IP (cartridge IP or LB IP). In this point, no knowledge of which clusterId maps to which tenant. Hence, this is a tenant unaware data set. But,

Re: [Dev] Recommended approach to adapt 3rd party dependencies

2014-10-15 Thread Paul Fremantle
Prabath Does HDFS support MT via multiple namenodes? Paul On 15 October 2014 09:49, Prabath Abeysekera praba...@wso2.com wrote: Hi Folks, I've got a 3rd party dependency (i.e Hadoop/HDFS) to be adapted into GIT and wondering where exactly I should do the initial developments, etc with the

Re: [Dev] [DEV][APIM] Please commit the patch

2014-10-15 Thread Lalaji Sureshika
Committed with r208364. On Wed, Oct 15, 2014 at 6:27 AM, Abimaran Kugathasan abima...@wso2.com wrote: Hi Nuwan, Please commit the attached patch for JIRA [1] [1] : https://wso2.org/jira/browse/APIMANAGER-2536 -- Thanks Abimaran Kugathasan Software Engineer | WSO2 Inc Data APIs

Re: [Dev] Issue in writing a Custom function as Siddhi Extension

2014-10-15 Thread Lasantha Fernando
Hi Lahiru, Looking at the code segment given above, everything seems correct. Can you attach the complete class of the Siddhi extension and the exact query used, so that we can dig into it deeper? Thanks, Lasantha On 14 October 2014 21:54, Lahiru Cooray lahi...@wso2.com wrote: Hi, When

Re: [Dev] Recommended approach to adapt 3rd party dependencies

2014-10-15 Thread Prabath Abeysekera
Hi Paul, We indeed tried using namenode federation as an alternative and IMO, it doesn't really fit in. One of the issues with that approach is, one namenode is only capable of handling just one namespace in it. Therefore, if we are to map tenants with those namespaces, then the deployment would

Re: [Dev] Configurable SAML SSO elements

2014-10-15 Thread Johann Nallathamby
Great Job. Let's include this also to the next code review you are doing. Thanks, Johann. On Wed, Oct 15, 2014 at 3:51 PM, Hasintha Indrajee hasin...@wso2.com wrote: Hi all, Following configurable elements and improvements were added to SAML sso Idp side. Configurations can be done through

Re: [Dev] Issue in writing a Custom function as Siddhi Extension

2014-10-15 Thread Lahiru Cooray
Hi, Please refer the attached java class. And the siddhi query is as follows: from InputStream1 select custom:abs(para1) as p1 insert into OutStream1 As per the code, when we call abs() function with no parameters it should fire the validation. But it wont give the expected result. Thanks..

Re: [Dev] Recommended approach to adapt 3rd party dependencies

2014-10-15 Thread Deependra Ariyadewa
On Wed, Oct 15, 2014 at 4:54 PM, Prabath Abeysekera praba...@wso2.com wrote: Hi Paul, We indeed tried using namenode federation as an alternative and IMO, it doesn't really fit in. One of the issues with that approach is, one namenode is only capable of handling just one namespace in it.

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Hi All, I have made some improvements to the cassandra queries in the class. Attached is the modified version. Basically I got rid of RangeSliceQueries and used other types of queries in instances when I could. On Wed, Oct 15, 2014 at 2:20 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi, I have

[Dev] Custome Function in siddhi query

2014-10-15 Thread Shashika Karunatilaka
Hi, I'm in the process of creating siddhi custom function, its like an aggregate function which inputs a set of data returns a single value. Is there a way i can send data array to my custom function or else can i handle that inside my custom function? As an example there is a stream called A,

Re: [Dev] Custome Function in siddhi query

2014-10-15 Thread Mohanadarshan Vivekanandalingam
On Wed, Oct 15, 2014 at 5:52 PM, Shashika Karunatilaka shashi...@wso2.com wrote: Hi, Hi Shashika, I'm in the process of creating siddhi custom function, its like an aggregate function which inputs a set of data returns a single value. Is there a way i can send data array to my custom

[Dev] ESB property - FAULTS_AS_HTTP_200 Not returning to client with status code 200

2014-10-15 Thread Dimuthu De Lanerolle
Hi, I am getting HTTP 500 once trying with soap-ui. As per the definition it should return status code 200. Refer the JIRA link [1]. [1] https://wso2.org/jira/browse/ESBJAVA-3384 Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. :

[Dev] Fix for IDENTITY-2611(UsernameWithEmailJavaScriptRegEx missing in default user-mgt.xml)

2014-10-15 Thread Malithi Edirisinghe
Hi All, I have fixed the JIRA[1] as below. The bug description suggests to add UsernameWithEmailJavaScriptRegEx property to the default user-mgt.xml. As per the offline discussions I had with Darshana, instead of adding UsernameWithEmailJavaScriptRegEx to the user-mgt.xml the following fix was

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Hi, The Schema Structure is as follows. UM_USER_ATTRIBUTE is not used (claim handling is not supported in this version of the user store), but the column family is created. CF Name Description Composite key columns example UM_USER Stores users userName,tenantID e.g(�user5��-1234�)

Re: [Dev] Removing JPA fron RSS Manager and Migrate to native SQL

2014-10-15 Thread Dhanuka Ranasinghe
IMHO, whether we go ahead with JPA or not depend on the developers (we) who gonna use it. If it's not gonna make our life easier then I am +1 for this. You only have to change DAO layer from org.wso2.carbon.rssmanager.core.dao.util.EntityManager.java to bottom. It would be great if we can do a

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Pushpalanka Jayawardhana
Hi Shani, Ideally custom user store manager should be get appeared in the User Store Configuration UI of the Mgt-console. For this you should properly pack it into an OSGI bundle. You can refer [1] to capture how to do this. Please also note that we should define what are expected properties

[Dev] Incorrect Permissions for methods in org.wso2.carbon.tenant.mgt

2014-10-15 Thread Tharindu Edirisinghe
Hi, I noticed following in the permissions defined in services.xml [1] in tenant-mgt component. (Highlighted in red) operation name=addTenant parameter name=superTenantService locked=truetrue/parameter parameter name=AuthorizationAction

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Deependra Ariyadewa
It looks batch operations are atomic after Cassandra 1.2 but not isolated. http://www.datastax.com/dev/blog/atomic-batches-in-cassandra-1-2 On Wed, Oct 15, 2014 at 6:17 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi, The Schema Structure is as follows. UM_USER_ATTRIBUTE is not used (claim

Re: [Dev] Hazelcast error while shutting down server

2014-10-15 Thread Sameera Jayasoma
How about ignoring this exception for the moment. This is an harmless error log it seems. Until we find a proper way to fix this we can ignore this exception. This exception occurs during the server shutdown and it does not do any harm. ILock lock =

[Dev] Google Spreadsheet connector OAuth2 Authorization support

2014-10-15 Thread Ravindra Ranwala
Hi All, I have added OAuth 2 Authorization support for Google spreadsheet connector. Using that now we can create a proxy/recipe which filters out set of tweets from the twitter connector and writes back to a Google spreadsheet via Google spreadsheet OAuth 2 connector support. I have given the

Re: [Dev] Using an External Library in writing Siddhi Extention - Need clarifications

2014-10-15 Thread Inosh Perera
Hi Lahiru, Yes, its Ok. Make sure to check for lib licence, prior to start using them, when you are using 3rd party libraries. Regards, Inosh On Wed, Oct 15, 2014 at 2:20 PM, Rajeev Sampath raje...@wso2.com wrote: Hi, On Wed, Oct 15, 2014 at 1:25 PM, Lahiru Cooray lahi...@wso2.com wrote:

Re: [Dev] Hazelcast error while shutting down server

2014-10-15 Thread Afkham Azeez
There is a method to check in CarbonKernel if the server is shutting down. It sets the SHUTTING_DOWN status or something like that. So what we could do is this; * try {* *lock.unlock();* *} catch (HazelcastInstanceNotActiveException e) {* *

Re: [Dev] Using an External Library in writing Siddhi Extention - Need clarifications

2014-10-15 Thread Lahiru Cooray
Thanks a lot.. On Thu, Oct 16, 2014 at 9:15 AM, Inosh Perera ino...@wso2.com wrote: Hi Lahiru, Yes, its Ok. Make sure to check for lib licence, prior to start using them, when you are using 3rd party libraries. Regards, Inosh On Wed, Oct 15, 2014 at 2:20 PM, Rajeev Sampath

Re: [Dev] Issue in Kafka producer load testing

2014-10-15 Thread Kasun Indrasiri
Hi Kathees, Can you please share the performance stats for consumer and producer side of the Kafka inbound and connector please. On Mon, Oct 6, 2014 at 10:29 AM, Kathees Rajendram kath...@wso2.com wrote: Hi Dushan, Yes I set it. Reason for this issue is that producer connection was not

[Dev] Invitation: Http Inbound Endpoint Code Review @ Fri Oct 17, 2014 1:30pm - 2:30pm (Isuru Ranawaka)

2014-10-15 Thread Isuru Ranawaka
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20141017T08Z DTEND:20141017T09Z DTSTAMP:20141016T044524Z ORGANIZER;CN=Isuru Ranawaka:mailto:isu...@wso2.com UID:rog7agkbi305sev7rb7k543...@google.com

Re: [Dev] Issue in writing a Custom function as Siddhi Extension

2014-10-15 Thread Aiyadurai Rajeevan
Hi Lahiru, Looks like, Its default attribute type is set to LONG if no parameter passed, That's why even if you don't pass any value its assigning the default attribute type and returns that. Even i got the same case. Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail:

Re: [Dev] Using an External Library in writing Siddhi Extention - Need clarifications

2014-10-15 Thread Rajeevan Vimalanathan
Hi, There are no problem with licence since stream-lib library is licensed with Apache Software Foundation. On Thu, Oct 16, 2014 at 9:26 AM, Lahiru Cooray lahi...@wso2.com wrote: Thanks a lot.. On Thu, Oct 16, 2014 at 9:15 AM, Inosh Perera ino...@wso2.com wrote: Hi Lahiru, Yes, its Ok.

Re: [Dev] Hazelcast error while shutting down server

2014-10-15 Thread Sameera Jayasoma
Hi Azeez, This exception does not get logged in the coordinator node, only in all other nodes. So this error happens when they are blocked to get the distributed lock. Yeah we can implement your suggestion for the unlock scenario, but for the lock scenario we still don't have a solution other

Re: [Dev] Hazelcast error while shutting down server

2014-10-15 Thread Afkham Azeez
Can do the same thing, and catch the exception on lock as well, and ignore if the status is SHUTTING_DOWN On Thu, Oct 16, 2014 at 11:06 AM, Sameera Jayasoma same...@wso2.com wrote: Hi Azeez, This exception does not get logged in the coordinator node, only in all other nodes. So this error