Re: [Dev] Jaggery NullPointerException when a Database is instantiated.

2014-08-29 Thread Dunith Dhanushka
Hi Ishara, When creating a Database object, you have to pass the JDBC URL and the database credentials as follows. var db = new Database(jdbc:h2:tmp/demo, admin, admin); Please follow the Jaggery documentation on Databases at [1] [1] http://jaggeryjs.org/documentation.jag?api=rdb Regards,

[Dev] Please commit CARBON-14929

2014-08-29 Thread Chamil Jeewantha
$subject. https://wso2.org/jira/browse/CARBON-14929 -- K.D. Chamil Jeewantha Associate Technical Lead WSO2, Inc.; http://wso2.com http://kdchamil.blogspot.com Mobile: +94716813892 ___ Dev mailing list Dev@wso2.org

Re: [Dev] Please commit CARBON-14929

2014-08-29 Thread Supun Malinga
Hi Chamil, As discussed let's add the entries to include the built jar into patch zip as well. thanks, On Fri, Aug 29, 2014 at 12:29 PM, Chamil Jeewantha cha...@wso2.com wrote: $subject. https://wso2.org/jira/browse/CARBON-14929 -- K.D. Chamil Jeewantha Associate Technical Lead WSO2,

[Dev] Set a desired value to HazelCast Cache Timeout

2014-08-29 Thread Subash Chaturanga
Hi Azeez, In turing kernel, can we do $subject. We found setExpiry in your blog post and following is the code we use, but we noticed it still timeouts in 15mins. Is there new API to do this or are we missing something ? CacheManager manager =

Re: [Dev] Jaggery NullPointerException when a Database is instantiated.

2014-08-29 Thread Ishara Cooray
Hi Dunith, Thanks for the reply. jdbc url , UN and PW are configured in a xml. This works for many queries but exception is thrown in few cases only. Regards, Ishara Cooray Senior Software Engineer Mobile : +9477 262 9512 WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware On Fri,

Re: [Dev] Please commit CARBON-14929

2014-08-29 Thread Chamil Jeewantha
Hi Supun, org.wso2.carbon.bootstrap*.jar does not go into the plugin directory. it goes to the CARBON_HOME/bin directory. Do we still need to add it to the patch zip? Regards, Chamil On Fri, Aug 29, 2014 at 12:34 PM, Supun Malinga sup...@wso2.com wrote: Hi Chamil, As discussed let's add

Re: [Dev] Tutorial on building a carbon feature

2014-08-29 Thread Amal Gunatilake
Hi Lochana, According to the explanation I have done in the following link[1], Download and put the feature.properties http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/samples/student-manager/features/feature.properties file into the student-manager-features folder. Notice that in

Re: [Dev] Please commit CARBON-14929

2014-08-29 Thread Chamil Jeewantha
Hi All, I'm adding org.wso2.carbon.bootstrap*.jar into patch0009. This jar should go into CARBON_HOME/bin So I think we can add a bin folder to the patch.zip and copy this jar to that folder. Theadd a step in README to copy it manually to CARBON_HOME/bin WDYT? Is there a better way of doing

Re: [Dev] Adding user to a tenant using admin services

2014-08-29 Thread Chamila Adhikarinayake
Hi Shariq, I modified according to the way you mentioned and was able to create users for tenants with default configuration (Internal/identity). But when I created the registry entry for tenants as the way you described in the architecture thread, I get the following error. My registry entry in

Re: [Dev] Please commit CARBON-14929

2014-08-29 Thread Chamil Jeewantha
Hi Supun, I have re-attached the patch to the issue. Please proceed. Regards, Chamil On Fri, Aug 29, 2014 at 2:57 PM, Supun Malinga sup...@wso2.com wrote: Hi Chamil, I had a chat with Sameera as well. Let's go ahead with the above approach. thanks, On Fri, Aug 29, 2014 at 2:37 PM,

Re: [Dev] Retrieving the IP/IPs for single tenant cartridge intances

2014-08-29 Thread Dimuthu Leelarathne
Hi Madhawa and All, I have discussed with the Stratos team and provided a PR for master in Apache. Meanwhile I have done the same fix in this GitHub branch[1] for Stratos 4.0.0. So now you can retrieve the end point. Here are the steps. 1) Build the GitHub branch with branch id STRATOS762. 2)

Re: [Dev] Set a desired value to HazelCast Cache Timeout

2014-08-29 Thread Afkham Azeez
setExpiry should work. AFAIK, the IS team is also using this. On Fri, Aug 29, 2014 at 12:38 PM, Subash Chaturanga sub...@wso2.com wrote: Hi Azeez, In turing kernel, can we do $subject. We found setExpiry in your blog post and following is the code we use, but we noticed it still timeouts in

Re: [Dev] [jira] (IDENTITY-2496) java.lang.InterruptedException and com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance is not active - during the Saml SSO load test

2014-08-29 Thread Afkham Azeez
Most probably the test is unreasonable, as we concluded the other day during the load testing. Please talk to Prabath Asela. On Thu, Aug 28, 2014 at 3:31 PM, Pavithra Madurangi pavit...@wso2.com wrote: Yes we didn't find any issues with the test and as Ushani has mentioned in the last

Re: [Dev] Set a desired value to HazelCast Cache Timeout

2014-08-29 Thread Subash Chaturanga
Hi Azeez, Yes I also noticed identity components also uses this. But the prob is I am not sure whether they have tested this cache invalidation timeout specifically or they have a use case as such. But for us we do have. For resource/path caches we have NOT used the proper way of building the

Re: [Dev] [jira] (IDENTITY-2496) java.lang.InterruptedException and com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance is not active - during the Saml SSO load test

2014-08-29 Thread Pavithra Madurangi
Sure I'll talk to them and will rerun it with the corrections. On Fri, Aug 29, 2014 at 4:25 PM, Afkham Azeez az...@wso2.com wrote: Most probably the test is unreasonable, as we concluded the other day during the load testing. Please talk to Prabath Asela. On Thu, Aug 28, 2014 at 3:31 PM,

Re: [Dev] Error when creating a feature from WSO2 Carbon Component

2014-08-29 Thread Senduran Balasubramaniyam
Hi Sithumini, I think you have to add plugin repository in your pom.xml pluginRepositories pluginRepository idwso2-maven-repo/id urlhttp://maven.wso2.org/nexus/content/repositories/wso2maven2/url /pluginRepository /pluginRepositories Regards, Senduran

[Dev] Please merge pull request #14 for carbon-governance

2014-08-29 Thread Denuwanthi De Silva
Hi, please review merge pull req [1], which is a fix for issue [2]. [1]https://github.com/wso2-dev/carbon-governance/pull/14 [2]https://wso2.org/jira/browse/REGISTRY-2266 Thanks, -- Denuwanthi De Silva Software Engineer; WSO2 Inc.; http://wso2.com, Email: denuwan...@wso2.com

Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-29 Thread Abimaran Kugathasan
Congrats Rajith! On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: congratulations rajith...!! On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera nira...@wso2.com wrote: Congrats Rajith! On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara ma...@wso2.com wrote:

Re: [Dev] Set a desired value to HazelCast Cache Timeout

2014-08-29 Thread Afkham Azeez
There is also a test case CachingTestCase#testCacheExpiry that specifically tests that cache expiry is working. Azeez On Fri, Aug 29, 2014 at 4:27 PM, Subash Chaturanga sub...@wso2.com wrote: Hi Azeez, Yes I also noticed identity components also uses this. But the prob is I am not sure

Re: [Dev] [Issue] Jaggery post() method

2014-08-29 Thread Tishan Dahanayakage
Hi Jerad, Does your end point URL has a service to serve your HTTP post? Since Jaggery post is a wrapper for XMLHTTPRequest post as per jaggery documentation, make sure your URL (http://localhost:8280/) can handle your post and return a response. And I think your JSON data does not need apostrophe

[Dev] BAM Gadget server - can't display XML in a table

2014-08-29 Thread Sandamal Weerasinghe
Hi, I'm trying to display a SOAP body and its header inside a table. e.g. soapenv:Body xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;ns:getVersionResponse xmlns:ns=http://version.services.core.carbon.wso2.org;returnWSO2 Enterprise Service

Re: [Dev] BAM Gadget server - can't display XML in a table

2014-08-29 Thread Chamil Jeewantha
Hi Sandamal, It seems the UI renders the xml tags. You have to escape the html sensitive characters to avoid that. i.e. replace soap with lt;soap. If the UI gets the xml, you can use javascripts to do the modification at the client side. On Fri, Aug 29, 2014 at 6:01 PM, Sandamal Weerasinghe

Re: [Dev] Jaggery NullPointerException when a Database is instantiated.

2014-08-29 Thread Ishara Cooray
hi, The issue was resolved by changing the execution order of the statements. Ex: first execute db queries and then context.startTenantFlow(); .. but i still have a doubt, what is the actual cause for this. Thanks. Ishara Cooray Senior Software

Re: [Dev] BAM Gadget server - can't display XML in a table

2014-08-29 Thread Senduran Balasubramaniyam
Hi Sandamal, I think even when the soap message is coming to the UI, the soapenv:Body or ns:getVersionResponse tags are not recognized by the browser (you can check the raw xml by pressing F12 in Chrome) to show the soap message as it is, put the entire message inside a ' *textarea*' tag. eg:

Re: [Dev] BAM Gadget server - can't display XML in a table

2014-08-29 Thread Senduran Balasubramaniyam
Hi Sandamal, I think even when the soap message is coming to the UI, the soapenv:Body or ns:getVersionResponse tags are not recognized by the browser (you can check the raw xml by pressing F12 in Chrome) to show the soap message as it is, put the entire message inside a ' *textarea*' tag. eg:

Re: [Dev] BAM Gadget server - can't display XML in a table

2014-08-29 Thread Senduran Balasubramaniyam
Hi Sandamal, I think even when the soap message is coming to the UI, the soapenv:Body or ns:getVersionResponse tags are not recognized by the browser (you can check the raw xml by pressing F12 in Chrome) to show the soap message as it is, put the entire message inside a ' *textarea*' tag. eg:

Re: [Dev] Retrieving the IP/IPs for single tenant cartridge intances

2014-08-29 Thread Madhawa Bandara
Hi Dimuthu, Thanks, I will follow the instructions. Sent from Windows phone -Original Message- From: Dimuthu Leelarathne dimut...@wso2.com Sent: ‎8/‎29/‎2014 15:25 To: Madhawa Bandara madh...@wso2.com Cc: WSO2 Developers' List dev@wso2.org; Lakmal Warusawithana lak...@wso2.com; Sajith