Re: [Dev] Tenant Aware LoadBalance Endpoint failure in Chunk 08

2014-02-10 Thread Ushani Balasooriya
Hi Venura, I took a svn up from service-stubs and then built it and chunk 08. But still the SCIM - UI Component gets failed. [ERROR] Failed to execute goal on project org.wso2.carbon.identity.scim.ui: Could not resolve dependencies for project

Re: [Dev] Tenant Aware LoadBalance Endpoint failure in Chunk 08

2014-02-10 Thread Venura Kahawala
Hi, Fixed with r196514. Please update chunk8. Regards, Venura On Mon, Feb 10, 2014 at 1:23 PM, Ushani Balasooriya ush...@wso2.com wrote: Hi Venura, I took a svn up from service-stubs and then built it and chunk 08. But still the SCIM - UI Component gets failed. [ERROR] Failed to

Re: [Dev] Tenant Aware LoadBalance Endpoint failure in Chunk 08

2014-02-10 Thread Ushani Balasooriya
Hi Venura, Took a up and could build successfully. Thanks! Regards, Ushani On Mon, Feb 10, 2014 at 2:32 PM, Venura Kahawala ven...@wso2.com wrote: Hi, Fixed with r196514. Please update chunk8. Regards, Venura On Mon, Feb 10, 2014 at 1:23 PM, Ushani Balasooriya ush...@wso2.comwrote:

[Dev] Guidelines on Scoping Bundles - How to decide the size of a bundle and the number of bundles?

2014-02-10 Thread Sameera Jayasoma
There were some on going discussions on the subject in the recent past. Thats why I wanted to bring up this discussion. We were talking about the correct number of bundles, correct size of a bundle, etc. I heard a decision to make Carbon kernel a single bundle as well. Before coming to a

[Dev] [ WSO2 IS - IS Profile Generation] Exception in building Chunk 08

2014-02-10 Thread Shani Ranasinghe
Hi, I am getting the following exception when building chunk 08. Any help is appreciated. Installation failed. Cannot complete the install because one or more required items could not be found. Software being installed: Trusted Identity Provider Management Feature 4.2.3

[Dev] Jaggery : fires a NullpointerException when fetching an OSGi Service

2014-02-10 Thread Kavith Lokuhewage
Hi, I am developing several gadgets for a WSO2 UES Dashboard and I need call a custom OSGi service bundle that I developed, within the jaggery code. When I try to do that using Jaggery carbon module, it gives me the following fault output. I copied the generated bundles to the drop-ins folder

[Dev] Integration Tests with JSON Responses

2014-02-10 Thread Chanaka Dharmarathna
Hi All, I'm trying to write integration test for PPal connector. PPal API is accepting REST calls with JSON body and return JSON objects as the response. Currently I have proxy [0] which accept JSON payload. I'm using SoapUI to send REST request with JSON body [1] to ESB. The code snippet [2] is

[Dev] [DEV][DSS]Last Inserted Id of the Database.

2014-02-10 Thread Maduranga Siriwardena
Hi all, I'm using a data service and I want to get the last inserted id of a auto incremented column from the database. After executing the insert query, I call a get resource that execute the following query in the data service server. query id=get_last_inserted_id useConfig=default

[Dev] Cluster Management feature

2014-02-10 Thread Susinda Perera
Hi All $subject is there in 3.2.3 p2-repo[1] but this has been left in carbon4.0.0 repo [2]. What is the alternative which supports this feature. [1] http://dist.wso2.org/p2/carbon/releases/3.2.2 [2] http://dist.wso2.org/p2/carbon/releases/4.0.0 -- *Susinda Perera* Software Engineer

Re: [Dev] Integration Tests with JSON Responses

2014-02-10 Thread Nuwan Wimalasekara
Hi Chanaka, You can use a http client to invoke the service instead of Axis2 client. Then you can get JSON response without any issue. Please refer sample code[1] for JSON messages over http transport [1]

Re: [Dev] [DEV][DSS]Last Inserted Id of the Database.

2014-02-10 Thread Anjana Fernando
Hi Maduranga, That is not a correct approach in doing that. If you separate those two calls between two data service calls, you will not be in the same session for it to return the last inserted id, for example, another insert could have been done between the two calls and so on. So you've to

Re: [Dev] [DEV][DSS]Last Inserted Id of the Database.

2014-02-10 Thread Amila Maha Arachchi
You don't need a separate query to get the last inserted id. Have a look at this http://docs.wso2.org/display/DSS311/Returning+Generated+Keys On Mon, Feb 10, 2014 at 4:51 PM, Maduranga Siriwardena madura...@wso2.comwrote: Hi all, I'm using a data service and I want to get the last inserted

Re: [Dev] Jaggery : fires a NullpointerException when fetching an OSGi Service

2014-02-10 Thread Ruchira Wageesha
Hi Kavith, Starting order comes into place if and only if you are accessing OSGI service from a init script. According to the source, it seems you access it from a *.jag file. Hence, can you first start the server with OSGI console and check whether you OSGI service has been properly registered.

Re: [Dev] Integration Tests with JSON Responses

2014-02-10 Thread Chanaka Dharmarathna
Hi Nuwan, Thanks for your quick response. I'll try this approach. Regards ! On Mon, Feb 10, 2014 at 4:59 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Chanaka, You can use a http client to invoke the service instead of Axis2 client. Then you can get JSON response without any issue.

Re: [Dev] Jaggery : fires a NullpointerException when fetching an OSGi Service

2014-02-10 Thread Kavith Lokuhewage
Hi Ruchira, Thanks for pointing me the right direction. :) Yup, my service is at the installed state. Itz not started due to some unresolved dependencies. Thanks again. On Mon, Feb 10, 2014 at 5:25 PM, Ruchira Wageesha ruch...@wso2.com wrote: Hi Kavith, Starting order comes into place if

Re: [Dev] [ WSO2 IS - IS Profile Generation] Exception in building Chunk 08

2014-02-10 Thread Darshana Gunawardana
Hi Shani, This issue is fixed with r196519. Seems like you are using a previous revision to r196519. However i have fixed another issue, so please take a svn up and try to build again. Thanks, On Mon, Feb 10, 2014 at 4:24 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi, I am getting the

Re: [Dev] [DEV][DSS]Last Inserted Id of the Database.

2014-02-10 Thread Maduranga Siriwardena
Hi all, I created the query as explained in the tutorial. When I call the resource created from that query, if I capture the packets from the TCPMon, I can see the result correctly. But when I try to get that response from my jaggery code I don't get any response. This the code I use to call the

[Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Chamila Wijayarathna
Hello all, I have a BAM instance running on a remote server with port offset of 1. I'm sending a stream of wso2 events to it using an external publisher[1]. After about 1.5 hours, I am getting the following error. *[2014-02-10 18:12:08,721] ERROR

Re: [Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Chamila Wijayarathna
I ran BAM without sending events to it and then it don't give any exeption. On Mon, Feb 10, 2014 at 6:53 PM, Chamila Wijayarathna cham...@wso2.comwrote: Hello all, I have a BAM instance running on a remote server with port offset of 1. I'm sending a stream of wso2 events to it using an

Re: [Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Mohanadarshan Vivekanandalingam
Hi Chamila, I can see below exception before the timeoutException, where openjdk is used but we normally recommend to use oracle jdk.. Please see link [1].. I am doubt whether below issue leads to unstable situation.. Can you please use the recommended jdk and see.. BAM team, any more input on

[Dev] ESB Connector: REST bad endpoint response issue

2014-02-10 Thread wchinthakaps
I am developing connector on WSO2 ESB (REST service) and when end point is wrong, I get HTTP 200 Ok response with WSO2 error code. ex: HTTP/1.1 200 OK Authorization: Host: cd-iranathunga:8280 Accept-Encoding: gzip,deflate Content-Type:

Re: [Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Chamila Wijayarathna
Hi Mohan, I'll check that. Thank you On Mon, Feb 10, 2014 at 9:30 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Hi Chamila, I can see below exception before the timeoutException, where openjdk is used but we normally recommend to use oracle jdk.. Please see link [1].. I am

[Dev] posting to mailing list

2014-02-10 Thread Chinthaka Senanayaka
posting -- It's all about attitude and moral, trust yourself and always be confident !!! W. Chinthaka Senanayaka, Mobile: +94 71 844 39 72 Facebook http://www.facebook.com/ChinthakaSenanayaka, Twitterhttp://twitter.com/#%21/WChinthakaPS, LinkedIn

Re: [Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Chamila Wijayarathna
Hi, I again ran BAM with my custom producer sending events to it. For more than 2 hours it didn't gave me above mentioned exception. Then I started CEP and sent netflow records to BAM through CEP. After about 5 minutes it began to give above mentioned error continuously.(nohup.out[1]). I also

[Dev] Link to download Application Server Cartridge

2014-02-10 Thread Quang Cường Vũ
Hi dev. Could you show show me link to download Application Server cartridge? Thanks -- *V uQ u a n g C u o n g * *Software developer and Trainer* Mobile: 0988.397.448 Email: vucuon...@gmail.com http://www.wisestamp.com/

Re: [Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Mohanadarshan Vivekanandalingam
Hi Chamila, On Mon, Feb 10, 2014 at 11:19 PM, Chamila Wijayarathna cham...@wso2.comwrote: Hi, I again ran BAM with my custom producer sending events to it. For more than 2 hours it didn't gave me above mentioned exception. Then I started CEP and sent netflow records to BAM through CEP.

Re: [Dev] [ WSO2 IS - IS Profile Generation] Exception in building Chunk 08

2014-02-10 Thread Shani Ranasinghe
Hi, Thanks Dharshana, the previous issue is fixed, however I am encountering another issue as stated below. I am on At revision 196569.I am getting the following error when building chunk 08. An error occurred while configuring the installed items session context was:(profile=default,

Re: [Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Chamila Wijayarathna
Hi Mohan, I checked output by CEP which I forwarded to BAM [1]. This is for 8.59 minute and it has 95 requests per 1 minute. Since at this time there are less crowd in office, this can be increased for about 10 times larger than this value. But yesterday I got the error when I tested it at about

Re: [Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Chamila Wijayarathna
Sorry, wrong Link. Correct one at [1]. 1. https://gist.github.com/cdwijayarathna/8928949 Thank You. On Tue, Feb 11, 2014 at 9:14 AM, Chamila Wijayarathna cham...@wso2.comwrote: Hi Mohan, I checked output by CEP which I forwarded to BAM [1]. This is for 8.59 minute and it has 95 requests

Re: [Dev] [ WSO2 IS - IS Profile Generation] Exception in building Chunk 08

2014-02-10 Thread Darshana Gunawardana
Hi Shani, Did you continue the build from products level? If so you would need to build the features too. The issue i fixed earlier was in the features/identity/application-authentication-framework/org.wso2.carbon. identity.application.authentication.framework.server.feature/4.2.2/. So either you

Re: [Dev] [ WSO2 IS - IS Profile Generation] Exception in building Chunk 08

2014-02-10 Thread Shani Ranasinghe
Hi Dharshana, I triggered the build from Chunk08 base. /platform/branches/turing/product-releases/chunk-08 to be exact. Am i missing something else? On Tue, Feb 11, 2014 at 9:26 AM, Darshana Gunawardana darsh...@wso2.comwrote: Hi Shani, Did you continue the build from products level? If so

Re: [Dev] Exception handling on REST call

2014-02-10 Thread Krishantha Dinesh
Hi Dushan/Dev I tried ur solution and its work. but i have other question. when it catch FAULT (500 error) on return message of client http code is 200 OK for example let say endpoint is fail the it catch that fault. but in client point of view http respond code of his response is 200 other than

Re: [Dev] Exception handling on REST call

2014-02-10 Thread Dushan Abeyruwan
Hi, No its wrong, we shouldn't response with 200 OK for exceptions. IMO ideal way as I think, to do this by keep the catalog of connector specific error code and embedded in the error message and explain those _ _connector specific error _ _ catalog in documentation more specifically, and

Re: [Dev] Link to download Application Server Cartridge

2014-02-10 Thread Quang Cường Vũ
I have google, and search WSO2 library for a long time but did't find anything. I don't understand with documentation: http://docs.wso2.org/display/Stratos200/Cartridge+Development+Guide#CartridgeDevelopmentGuide-CarbonCartridges Could some one give some direction? thanks On Tue, Feb 11, 2014 at

[Dev] Fwd: Does CQL support dynamic columns / wide rows?

2014-02-10 Thread Dhanuka Ranasinghe
*Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 -- Forwarded message -- From: Dhanuka Ranasinghe dhan...@wso2.com Date: Mon, Feb 10, 2014 at 5:43 PM Subject: Does CQL support dynamic columns / wide

Re: [Dev] [ WSO2 IS - IS Profile Generation] Exception in building Chunk 08

2014-02-10 Thread Shani Ranasinghe
Hi, With help of Dharshana, the issue was solved. The problem was that the p2.inf in the /platform/branches/turing/features/identity/application-authentication-framework/org.wso2.carbon.identity.application.authentication.framework.server.feature/4.2.2/ was not getting updated properly. Deleting

Re: [Dev] Exception handling on REST call

2014-02-10 Thread Krishantha Dinesh
Hi Dushan, Thanks for prompt reply. I do agree with you. my concern is http response got which client get on transport headers. pls refer below This is what client get as exception Response xmlns=http://cd-rhettige/services/paypal_lookupSale; error_code101503/error_code

Re: [Dev] Exception handling on REST call

2014-02-10 Thread Dushan Abeyruwan
Hi You can setup HTTP_SC in axis2 context set 400 (which represents bad Request) On Tue, Feb 11, 2014 at 10:42 AM, Krishantha Dinesh kr...@krishantha.comwrote: Hi Dushan, Thanks for prompt reply. I do agree with you. my concern is http response got which client get on transport headers.

Re: [Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Dunith Dhanushka
Hi Chamila, This usually happens when BAM tries to write large number of records into Cassandra and waits to read the result back. If Cassandra write operation takes long time, client request will be timed out before writing is completed. There can be many reasons for the write latency such as

[Dev] Applying changes for Kernel

2014-02-10 Thread Pushpalanka Jayawardhana
Hi, We have patched the Kernel as attached(removing final) to have the freedom at implementing the OTUserStoreManager to override the two methods, updateUserListOfRole getUserListOfRole This is not yet committed to Kernel, but used as a custom patch. Are we ok to go ahead and commit this?

Re: [Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Anjana Fernando
Hi, We must first find out, why Cassandra takes that much of time to insert data, normally it should support very high write speeds, please check if Cassandra is tuned properly. Check here [1] for more information. [1] http://docs.wso2.org/display/BAM240/Performance+Tuning+Recommendations

Re: [Dev] [BAM] me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() in BAM

2014-02-10 Thread Chamila Wijayarathna
Hi Anjana, I tuned my cassandra according to recommendations given on that documents. As we observed there is high server load average.. It may be the reason for cassandra to take large time to insert data. Thank You. On Tue, Feb 11, 2014 at 11:53 AM, Anjana Fernando anj...@wso2.com wrote:

[Dev] Assigning user roles via EMM MDM console and EMM carbon management console

2014-02-10 Thread Suneth Ranasinghe
Hi, I have tried to assign a role to an user in both ways as in the $subject. Though the recommended way of assigning user configuration is via EMM MDM console, once the user do it through EMM carbon console, it's throwing Unique index or primary key violation exception. So how are we going to

[Dev] Fwd: Migrate bps security tests from the old test framework to new test framework

2014-02-10 Thread Amal Gunatilake
Hi All, There are 3 test scenarios to cover. 1. Security with service descriptor test case 2. Security with policy files test case 3. Partner service security test case I was able to successfully complete migrating the code for 1st scenario and attached the code to BPS-429