Re: [Dev] Adding Mediators after the Send Mediator

2014-06-18 Thread Jasintha Dasanayake
small correction ! .ideally flow should not continue after the send mediator ... /Jasintha On Wed, Jun 18, 2014 at 11:22 AM, Jasintha Dasanayake jasin...@wso2.com wrote: Send mediator consider as leaf node of a particular mediation flow so ideally flow should not continue after send

Re: [Dev] Adding Mediators after the Send Mediator

2014-06-18 Thread Sohani Weerasinghe
Thanks all for the responses. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Wed, Jun 18, 2014 at 11:32 AM, Jasintha Dasanayake

Re: [Dev] Adding Mediators after the Send Mediator

2014-06-18 Thread Gayan Yalpathwala
Hi all, Quoting Nirmal.. AFAIK in a send mediator you can specify a receiving sequence, which will get invoked after receiving the response from the endpoint. So, the only reason I can imagine is to handle a scenario where the mediation goes to a receiving sequence and come back to the sequence

[Dev] [CEP] Error while dispatching events java.lang.NullPointerException

2014-06-18 Thread Gayashan Amarasinghe
Hi all, I've been using the CEP to do some time batch processing with a query similar to this, from in_stream#window.timeBatch(5 min) select var1, avg(var2) as avg, count(*) as frequency group by var1 having frequency 2 insert into out_stream; And then log the contents of the out stream using

Re: [Dev] [CEP] Error while dispatching events java.lang.NullPointerException

2014-06-18 Thread Mohanadarshan Vivekanandalingam
Hi Gayashan, Can you meet me Now.. We'll debug and see what went wrong.. Thanks, Mohan On Wed, Jun 18, 2014 at 12:06 PM, Gayashan Amarasinghe gayas...@wso2.com wrote: Hi all, I've been using the CEP to do some time batch processing with a query similar to this, from

Re: [Dev] [CEP] Error while dispatching events java.lang.NullPointerException

2014-06-18 Thread Mohanadarshan Vivekanandalingam
Oh i see.. No issue we'll chat later.. Hmm, Is it not reproducible in your local environment?? On Wed, Jun 18, 2014 at 12:26 PM, Gayashan Amarasinghe gayas...@wso2.com wrote: Hi Mohan, Thanks a lot. I'm having lunch at the moment. Shall we meet after lunch? Btw cep is deployed in an EC2

Re: [Dev] [CEP] Error while dispatching events java.lang.NullPointerException

2014-06-18 Thread Gayashan Amarasinghe
​The input event stream that is fed to the CEP is not available outside. On Wed, Jun 18, 2014 at 12:28 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Oh i see.. No issue we'll chat later.. Hmm, Is it not reproducible in your local environment?? On Wed, Jun 18, 2014 at 12:26 PM,

[Dev] ESB Security Exception(SSL) | Invoking proxy service

2014-06-18 Thread Gagani Amarathunga
Hi All, I'm invoking the SoundCloud API as a connector through the ESB. When I invoke https urls I get a security exception in the ESB console as shown below [1]. I tried importing the SoundCloud certificate as in the attachment to WSO2 Carbon Keystore. But it gives same exception still. But I

Re: [Dev] ESB Security Exception(SSL) | Invoking proxy service

2014-06-18 Thread Chanaka Fernando
Hi Gagani, Can you try adding the certificate to client-truststore and check? If that is not working, you can change the axis2.xml to allow all hosts. HostNameVerifierAllowAll/HostNameVerifier Thanks, Chanaka On Wed, Jun 18, 2014 at 7:20 AM, Gagani Amarathunga gagani.amarathu...@gmail.com

[Dev] Jaggery WS Module Integration Test Failure

2014-06-18 Thread Sameera Medagammaddegedara
Hi, We have encountered an issue with one of integration tests failing as a result of the discontinuation of Stratos Live. This is due to the fact that we were using a Stratos Live endpoint [1] for our WS module integration tests. Is there an alternative endpoint that can be used for our

Re: [Dev] Jaggery WS Module Integration Test Failure

2014-06-18 Thread Krishantha Samaraweera
Is it possible to use jaggery itself to host aar file. I see verson.aar and echo.aar files at jaggery/jaggery-0.9.0-SNAPSHOT/carbon/repository/deployment/server/axis2services Thanks, Krishantha. On Wed, Jun 18, 2014 at 5:08 PM, Sameera Medagammaddegedara samee...@wso2.com wrote: Hi, We

Re: [Dev] [CEP] Error while dispatching events java.lang.NullPointerException

2014-06-18 Thread Mohanadarshan Vivekanandalingam
Hi All, I have gone through the configurations with Gayashan and found there are no issues with that.. After enabling tracer found-out Siddhi returns some null events when using having clause as mentioned below. Event{streamId='load15_high_hosts_toalert', timeStamp=1403082054008,

Re: [Dev] [CEP] Error while dispatching events java.lang.NullPointerException

2014-06-18 Thread Gayashan Amarasinghe
Hi Mohan, Thanks a lot for spending time and lots of effort to fix this without the capability to remote debug. I've applied the patch and the issue is fixed now. /Gayashan On Wed, Jun 18, 2014 at 6:46 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Hi All, I have gone through

Re: [Dev] Adding Mediators after the Send Mediator

2014-06-18 Thread Udara Liyanage
As Gayan mentioned send is async and if a mediator like log mediator is placed after send it will be invoked. However if we log something like body of the message we might see unexpected result in case message is already sent. Touched, not typed. Erroneous words are a feature, not a typo.

Re: [Dev] Thrift python client for CEP

2014-06-18 Thread Mohanadarshan Vivekanandalingam
Thanks Dinesh for sharing it and good work indeed.. Regards, Mohan On Wed, Jun 18, 2014 at 12:16 AM, Dinesh Bandara dine...@wso2.com wrote: Hi Mohan, Please find the sample client code [1] [1] https://github.com/dineshbandara/thrift-python-client Thanks On Tue, Jun 17, 2014 at 4:47

[Dev] Error gets when executing sql query in UES data-api.jag

2014-06-18 Thread Sajini De Silva
Hi, I created a new gadget using a data source which worked fine. After creating the gadget I edited the sql query in data-api.jag like below. var queryData = JSON.parse('{SELECT * FROM `multiGraphTable2` limit 10}'); I run this query in mysql database and it gave me the correct results, but

Re: [Dev] Error gets when executing sql query in UES data-api.jag

2014-06-18 Thread Sajini De Silva
Hi Udara, I copied mysql connector lib and this is the error I got. NetworkError: 500 Internal Server Error - https://localhost:9443/monitoring-tool/gadgets/_9c7f9a50-f167-46bc-9e60-2fedd19e6b6f/data-api.jag Thank you. On Wed, Jun 18, 2014 at 9:21 PM, Udara Rathnayake uda...@wso2.com wrote:

Re: [Dev] Error gets when executing sql query in UES data-api.jag

2014-06-18 Thread Kalpa Welivitigoda
Hi Sajini, Try, var queryData = JSON.parse('{SQL Statement : SELECT * FROM `multiGraphTable2` limit 10}'); On Wed, Jun 18, 2014 at 9:25 PM, Sajini De Silva saj...@wso2.com wrote: Hi Udara, I copied mysql connector lib and this is the error I got. NetworkError: 500 Internal Server Error -

Re: [Dev] Error gets when executing sql query in UES data-api.jag

2014-06-18 Thread Sajini De Silva
HI Kalpa, Yp it works fine with that query, but again there is an error with this query, var queryData = JSON.parse('{SQL Statement : SELECT * FROM `multiGraphTable2` where `hostName` = 'nameOftheHost' limit 10}'); In the backend i get the following error. js:

[Dev] Passing UserPref in rendering gadgets with UESContainer

2014-06-18 Thread Kalpa Welivitigoda
Hi, How can I send user pref to a gadget with UESContainer? I tried the following but it doesn't work for me. UESContainer.renderGadget('gadget1', ' https://localhost:9443/portal/gadgets/line-chart/line-chart.xml', '{dataSource:data.jag}'); -- Best Regards, Kalpa Welivitigoda Software

Re: [Dev] Passing UserPref in rendering gadgets with UESContainer

2014-06-18 Thread Tanya Madurapperuma
Hi Kalpa, User pref are used to allow the user to set the his preference to the gadget once its loaded. I am not clear why do you set the preference via the code. Usual behavior we use is as follows. *In you gadget.xml file * UserPref name=dataSource display_name=Data Source

Re: [Dev] Error gets when executing sql query in UES data-api.jag

2014-06-18 Thread Tanya Madurapperuma
Hi Sajini, Did you also change the mappings as well? Because the generated jag file has the mappings as for your initial query. So processing of the data in to the format that flot accepts happens according to that mapping. Thanks, Tanya On Wed, Jun 18, 2014 at 9:48 AM, Sajini De Silva

Re: [Dev] Student Introduction, GSoC-2014 project: UI Testing Framework for Developer Studio

2014-06-18 Thread Nila
I've added hamcrest-all.org 1.3 to the pom.xml thus now the kepler support is there. The repository [1] has the pom.xml (removed the Developer Studio Dependencies). When building the pom.xml Developer Studio bundle dependencies I confronted errors that are attached in the previous mail in this

Re: [Dev] Student Introduction, GSoC-2014 project: UI Testing Framework for Developer Studio

2014-06-18 Thread Nila
I've tried with adding a single dependency that is org.wso2.developerstudio.eclipse.esb.core. The p2 repositories used in the pom [1] SWTBot (with Kepler support): http://download.eclipse.org/technology/swtbot/releases/latest/ Eclipse (Kepler) : http://download.eclipse.org/releases/kepler

Re: [Dev] Student Introduction, GSoC-2014 project: UI Testing Framework for Developer Studio

2014-06-18 Thread Nila
And the build error is described as flows by the Maven [1]. //This error is reported in case the execution of a plugin failed due to some unforeseen event. For example, uncatched runtime exceptions caused by the plugin will raise this error. You should report this problem to the maintainer of the

[Dev] Reg UDDI Support for Services

2014-06-18 Thread FIXED-TERM Nishath Arshia (CI/WBI-NA)
Hi, I am trying to create a application that searches and updates the attributes of services in Governance registry. I was able to do it using ServiceManager and Service classes. Now I wanted to search a Service using its UDDI Id but to be able to do that I need to know the Organization name

[Dev] Basic Auth on jaggery ES 1.1.0 API

2014-06-18 Thread Dakshika Jayathilaka
Hi, I need to set API permission to* internal/store* user role defined in Carbon User Mgt. I found some related config on jaggery.conf as below. loginConfig: { authMethod: BASIC }, securityConstraints: [ { securityConstraint: {

Re: [Dev] Error gets when executing sql query in UES data-api.jag

2014-06-18 Thread Sajini De Silva
Hi, It worked after changing the statement like below. var queryData = JSON.parse({\SQL Statement\ : \SELECT * FROM multiGraphTable2 where hostName = '41304041432.dmz.mgt.platformelb1.wso2.com' limit 10\}); Thank you. Sajini. On Wed, Jun 18, 2014 at 11:48 PM, Tanya Madurapperuma

Re: [Dev] Error gets when executing sql query in UES data-api.jag

2014-06-18 Thread Chathura Dilan
Hi Sajini, Yes it should be a valid JSON string to get JSON.parse method to work, you can get more info about JSON.parse from [1][2] [1] - http://www.w3schools.com/json/json_eval.asp [2] - http://msdn.microsoft.com/en-us/library/ie/cc836466(v=vs.94).aspx On Thu, Jun 19, 2014 at 9:04 AM, Sajini

Re: [Dev] Basic Auth on jaggery ES 1.1.0 API

2014-06-18 Thread Dakshika Jayathilaka
Hi, Finally i got the solution. Step 01 = Default ES *store app* contains jaggery.conf with below configurations. authRoles: [ admin, store ] in my case i need to give API permission to store default user, *Internal/store.

[Dev] [EMM] Adding Oracle database support to EMM

2014-06-18 Thread Inosh Perera
Hi all, I was looking into adding Oracle database support to EMM and wrote the scripts to create tables in Oracle. Since auto increment and is not available in Oracle, I wrote sequences and triggers. Afterwards, I started checking the SQL queries, that we use in the back end with Oracle, and came

Re: [Dev] [EMM] Adding Oracle database support to EMM

2014-06-18 Thread Harshan Liyanage
Hi, We could categorize the sql queries under each database type in db.js file. IMO we need a mechanism to detect the database type (mysql, h2, oracle etc) return appropriate sql query based on the db type. WDYT? Thanks, Best Regards, Lakshitha Harshan Software Engineer Mobile: