Re: [Dev] [DEV] UI Test fail - Unrecognized Selenium driver URI

2014-10-26 Thread Kasun Dissanayake
Hi Akalanka, What is your current FF version ? On Mon, Oct 27, 2014 at 11:47 AM, Akalanka Pagoda Arachchi < darsha...@wso2.com> wrote: > Hi, > > We are getting the following error when running the UI tests on Jenkins. > > Stacktrace > > java.lang.IllegalArgumentException: Unrecognized Selenium d

[Dev] How to use custom script with address endpoint?

2014-10-26 Thread Ishara Cooray
say, we have a use case to write a file from a WSO2 ESB that is installed in a Linux machine to a shared windows folder, by using VFS transport. we have a VFS endpoint looks like this to write a file from a linux machin to a windows machin: http://ws.apache.org/ns/synapse";> where {}

[Dev] [DEV] UI Test fail - Unrecognized Selenium driver URI

2014-10-26 Thread Akalanka Pagoda Arachchi
Hi, We are getting the following error when running the UI tests on Jenkins. Stacktrace java.lang.IllegalArgumentException: Unrecognized Selenium driver URI 'embedded-rc:'. Make sure you got the proper driver jars in your classpath, or increase the logging level to get more information.

Re: [Dev] Service that returns a json object

2014-10-26 Thread Dimuthu De Lanerolle
Hi, We have a JSON client inside ESB [1]. You can get JSON messages over http transport . [1] https://github.com/wso2-dev/product-esb/blob/master/modules/integration/test-common/integration-test-utils/src/main/java/org/wso2/esb/integration/common/utils/clients/JSONClient.java Regards On Mon, Oc

Re: [Dev] is this a valid Siddhi query

2014-10-26 Thread Chamin Nalinda
Hi Saneth, Thanks, it seems better I create db and tables and check the validity. Appreciate your help. On Mon, Oct 27, 2014 at 11:18 AM, Saneth Dharmakeerthi wrote: > HI Chamin, > > Try this and see.. [assuming that rejectedCount is a table] > > from inputStream [(pan == rejectedCount.pan and

[Dev] IS Integration Test Automation - Status Update

2014-10-26 Thread Thanuja Jayasinghe
Hi All, Following is the status update of ongoing integration test hackathon for IS. We have completed the following areas, *OAuth Flow* - Authorization Code - Implicit - Client Credentials - Resource Owner *OpenID Flow* - Smart/Dumb consumer with attribute exchange for user adm

Re: [Dev] Service that returns a json object

2014-10-26 Thread Isuru Ranawaka
Hi kalpa, I think that you can write a proxy that returns a JSON Object by specifying property which will convert receiving object to JSON . thanks isurur On Mon, Oct 27, 2014 at 10:59 AM, Kalpa Welivitigoda wrote: > Hi, > > I need $subject to write an integration test for ESB. Do we alrea

Re: [Dev] is this a valid Siddhi query

2014-10-26 Thread Saneth Dharmakeerthi
HI Chamin, Try this and see.. [assuming that rejectedCount is a table] from inputStream [(pan == rejectedCount.pan and rejectedCount. rejected_count>=3) in rejectedCount)] select inputStream.pan insert into rejectedThreeTimesStream; Thanks and Best Regards, Saneth Dharmakeerthi Senior Software

Re: [Dev] Service that returns a json object

2014-10-26 Thread Ishara Cooray
Hi Kalpa, Article [1] has a working sample, related to HTTP Endpoint and JSON Payload Factory [1] http://wso2.com/library/articles/2013/12/restful-integration-with-wso2-esb/ Regards, Ishara Cooray Senior Software Engineer Mobile : +9477 262 9512 WSO2, Inc. | http://wso2.com/ Lean . Enterprise .

Re: [Dev] is this a valid Siddhi query

2014-10-26 Thread Chamin Nalinda
follow the following query // check pan count>=3 if yes rejectedThreeTimesStream from inputStream join rejectedCount[rejected_count>=3] on inputStream.pan = rejectedCount.pan select inputStream.pan insert into rejectedThreeTimesStream //else from inputStream join rejectedCount[rejectedCount

Re: [Dev] Deploy Web App to Tomcat issue

2014-10-26 Thread Godwin Amila Shrimal
Hi Supun, I am working on writing test integration for IS OAuth flow. for that I need to start a tomcat instance and deploy playground webapp. On Mon, Oct 27, 2014 at 11:00 AM, Supun Malinga wrote: > Hi, > > AFAIK IS ships with webapp mgt features. What's the requirement to use > tomcat separat

[Dev] is this a valid Siddhi query

2014-10-26 Thread Chamin Nalinda
Hi All, What I need from the below query to check, if the rejected_count >= 3, forward stream to rejectedThreeTimesStream else forward to outStream Here, rejectedCount table is a mysql table. Is this valid (below query) ? from inputStream join rejectedCount[rejected_count>=3

[Dev] Service that returns a json object

2014-10-26 Thread Kalpa Welivitigoda
Hi, I need $subject to write an integration test for ESB. Do we already have such a service in the test automation framework? -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215

Re: [Dev] Deploy Web App to Tomcat issue

2014-10-26 Thread Supun Malinga
Hi, AFAIK IS ships with webapp mgt features. What's the requirement to use tomcat separately ?. thanks, On Mon, Oct 27, 2014 at 10:46 AM, Godwin Amila Shrimal wrote: > Hi Dimuthu, > > Thanks, I'll try this and get back to you. > > > On Fri, Oct 24, 2014 at 7:18 PM, Dimuthu De Lanerolle > wrot

Re: [Dev] Handling Concurrency with Jaggery Scripts

2014-10-26 Thread Dilan Udara Ariyaratne
Hi Milinda, Thanks and yes, we can use application variable too. But, yet it needs to be accessed in a synchronized manner, so that we are not leading into race conditions, :) *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. Mobile: +94775149066 lean . enterprise . middleware

Re: [Dev] Deploy Web App to Tomcat issue

2014-10-26 Thread Godwin Amila Shrimal
Hi Dimuthu, Thanks, I'll try this and get back to you. On Fri, Oct 24, 2014 at 7:18 PM, Dimuthu De Lanerolle wrote: > We have embedded TomcatServerManager extension class in TAF. [1] Hope > this helps. > > [1] > https://github.com/wso2-dev/carbon-platform-integration/tree/master/test-automati

Re: [Dev] BAM 2.5.0 Release testing

2014-10-26 Thread Sewmini Jayaweera
Hi Aparna, I tested following issues, [1] https://wso2.org/jira/browse/BAM-1611 [2] https://wso2.org/jira/browse/BAM-1515 [3] https://redmine.wso2.com/issues/3186 Issue [1] and [2] were fixed. in order to test issue [3] I created an email adaptor and when sending a email contains text as e-mail

Re: [Dev] [DEV] Jenkins build error - the trustAnchors parameter must be non-empty

2014-10-26 Thread Akalanka Pagoda Arachchi
HI Krishantha, The issue is now resolved. Thanks. On Fri, Oct 24, 2014 at 8:12 PM, Krishantha Samaraweera wrote: > Fixed the failures, you have to build following repos in case if updated > jars are not available in nexus repo yet. > > https://github.com/wso2/carbon-platform-integration-utils >

Re: [Dev] [BAM][API-Manager] issue in updating API Manager statistics dashboard with BAM

2014-10-26 Thread Lakshman Udayakantha
Hi All, As per the offline discussion with Lakmali, The reason for this issue is when one end point is down, It will fail to go to the bam mediator(which is responsible for publishing event to destination statistics table in BAM cassandra database)which is added after send mediator in synapse con

Re: [Dev] Handling Concurrency with Jaggery Scripts

2014-10-26 Thread Milinda Perera
Hi, If you need to keep count shared to all connections, as a simple solution you can store it in application variable [1] which makes count accessible anywhere in the jag app. [1] http://jaggeryjs.org/documentation.jag?api=application Thanks Milinda On Mon, Oct 27, 2014 at 10:20 AM, Dilan Udar

Re: [Dev] Unable to see API Statistics in API Manager with BAM configured.

2014-10-26 Thread Hemika Kodikara
Hi all, Thank you for the respond on this issue. I was able to figure out the issue as well. In the guide, it mentions to generate some traffic. I was using the https store site of api manager to send api calls. But the calls were sent as http. So they were blocked as I was using the https site. W

Re: [Dev] Handling Concurrency with Jaggery Scripts

2014-10-26 Thread Dilan Udara Ariyaratne
Thanks, Ishara. :) And for Udara's feedback, Here we need to keep the counter as a shared value to all connections and since the session is local to one connection, we cannot keep the counter inside a session, right. *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. Mobile:

Re: [Dev] Invalid content in APIM documentation

2014-10-26 Thread Nirdesha Munasinghe
JIRA: https://wso2.org/jira/browse/DOCUMENTATION-1209 On Mon, Oct 27, 2014 at 9:22 AM, Nirdesha Munasinghe wrote: > Will look into this. > > Thanks, > -Nirdesha > > On Sat, Oct 25, 2014 at 7:04 AM, Shamika Ariyawansa > wrote: > >> Hi all, >> >> Writing custom authenticate handlers as described

Re: [Dev] Gateway Log

2014-10-26 Thread Dinusha Senanayaka
On Mon, Oct 27, 2014 at 9:46 AM, Vanjikumaran Sivajothy wrote: > Hi APIM team, > > I followed the blog written by Dinusha [3] and did some analysis. > > Based on log, I notice that log [2] contain the wrong property name. Isn't > that should be named as response Time? > > > > [1] > *TID: [0] [AM

Re: [Dev] Handling Concurrency with Jaggery Scripts

2014-10-26 Thread Udara Liyanage
Hi Dilan, You can keep the counter as a session variable and increment and write to the file in every request. On Mon, Oct 27, 2014 at 9:56 AM, Dilan Udara Ariyaratne wrote: > Thanks, Roshan. > > This was exactly what I was looking for. > > Highly appreciate your feedback. > > > *Dilan U. Ariya

Re: [Dev] Handling Concurrency with Jaggery Scripts

2014-10-26 Thread Ishara Cooray
I think blog post [1] will better explain you how you can use sync function with jaggery. [1] http://madhukaudantha.blogspot.com/2014/02/jaggery-sync-function.html Regards, Ishara Cooray Senior Software Engineer Mobile : +9477 262 9512 WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware

Re: [Dev] Handling Concurrency with Jaggery Scripts

2014-10-26 Thread Dilan Udara Ariyaratne
Thanks, Roshan. This was exactly what I was looking for. Highly appreciate your feedback. *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. Mobile: +94775149066 lean . enterprise . middleware On Mon, Oct 27, 2014 at 9:07 AM, Roshan Deniyage wrote: > Hi Dilan, >You can

Re: [Dev] Building artifacts for different property files via maven

2014-10-26 Thread Prasad Tissera
Creating several war files with different properties files dynamically may work. You can keep the property files in artifacts. But there can be a better way. Thanks. Regards, Prasad. On Fri, Oct 24, 2014 at 5:01 PM, Malithi Edirisinghe wrote: > > Hi All, > > I'm writing test cases using the tra

[Dev] Gateway Log

2014-10-26 Thread Vanjikumaran Sivajothy
Hi APIM team, I followed the blog written by Dinusha [3] and did some analysis. Based on log, I notice that log [2] contain the wrong property name. Isn't that should be named as response Time? [1] *TID: [0] [AM] [2014-10-27 10:59:16,869]* DEBUG {org.wso2.carbon.apimgt.gateway.handlers.ext.AP

Re: [Dev] Invalid content in APIM documentation

2014-10-26 Thread Nirdesha Munasinghe
Will look into this. Thanks, -Nirdesha On Sat, Oct 25, 2014 at 7:04 AM, Shamika Ariyawansa wrote: > Hi all, > > Writing custom authenticate handlers as described in [1] seems to be no > longer valid. With APIM 1.7.0 on-wards we have to introduce custom > authentication handlers by editing the t

Re: [Dev] Handling Concurrency with Jaggery Scripts

2014-10-26 Thread Roshan Deniyage
Hi Dilan, You can you the "sync(function)" function provided by the Rhino engine. Try the blog post [1]. [1] http://madhukaudantha.blogspot.com/2014/02/rhino-js-sync.html ​Thanks,​ Roshan Deniyage Associate Technical Lead ​​ WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter

[Dev] Merge PR to kernel

2014-10-26 Thread Supun Malinga
Hi, $subject pls for [1] to fix [2] [1] https://github.com/wso2/carbon4-kernel/pull/62 [2] https://wso2.org/jira/browse/WSAS-1701 thanks, -- Supun Malinga, Senior Software Engineer, WSO2 Inc. http://wso2.com email: sup...@wso2.com mobile: +94 (0)71 56 91 321 __

Re: [Dev] How to get WSO2 Carbon Log to UI?

2014-10-26 Thread Jerad Rutnam
Hi Udara, Thanks a lot for the reply. Yes I wanted to get stratos log to the front-end, but this requirement has been taken out as this is no longer needed. But I will buzz you if I need this. Thanks & Regards, On Sat, Oct 18, 2014 at 11:53 AM, Udara Liyanage wrote: > Hi Jerad, > > Seems you a

Re: [Dev] Integration tests for Hazelcast Session Replication feature

2014-10-26 Thread Krishantha Samaraweera
Running four nodes in single server is not recommended at integration tests phase, so killing a worker node at integration tests run time is not possible (Even no admin services exposed in worker nodes to forcefully shutdown the instance) I'm not sure whether upcoming operation center will facilita

Re: [Dev] [IS] Open Id Test Automation varying Consumer Type and Attribute Exchange

2014-10-26 Thread Krishantha Samaraweera
Hi Malithi, We normally recommend to keep all test artefacts under integration module and build them before all test modules. In this case, if you copy travelocity sample code to integration module then it will introduce code duplication. So the best approach would be to modify the war file at tes

Re: [Dev] Two carbonapps directories are available in the Carbon 4.2.0 packs

2014-10-26 Thread Manoj Kumara
Hi Sameera, This seems to be caused by regression issue introduced by the issue [1] and the commit [2]. Currently we are not using */carbonapps* directory for any purpose. I think we can remove the code segment which create this directory. WDYT ? [1] https://wso2.org/jira/browse/CARBON-13598 [2]

[Dev] [DEV][Carbon][CEP] - EventConversionException after reconnect on clientTimeoutMS in CEP

2014-10-26 Thread Chamila De Alwis
Hi, I'm using a Python thrift publisher that publishes to CEP repeatedly with an interval. After 30 minutes a ThriftSessionExpiredException is thrown. I'm catching this and reconnecting to continue publishing events. The clientTimeoutMS value in repository/conf/data-bridge/data-bridge-config.xml

Re: [Dev] [DEV][Carbon] - DataPublisher behaviour on ThriftSessionExpiredException

2014-10-26 Thread Chamila De Alwis
Thanks again Sinthuja for clearing things up. If I may ask furthermore, what is the reason behind having a timeout during an active transmission? I can't understand the specified amount of time to timeout, that does so even when data are being transmitted. Regards, Chamila de Alwis Software Engi

Re: [Dev] [DEV][Carbon] - DataPublisher behaviour on ThriftSessionExpiredException

2014-10-26 Thread Sinthuja Ragendran
On Sun, Oct 26, 2014 at 2:41 AM, Chamila De Alwis wrote: > Hi Sinthuja, > > Thanks for the explanation! I was going through the data publisher code, > but I couldn't find the exact place the reconnection is happening. Do you > know which method handles it? > You can find this logic in [1] at pu

[Dev] [IS] Open Id Test Automation varying Consumer Type and Attribute Exchange

2014-10-26 Thread Malithi Edirisinghe
Hi All, I have used travelocity sample application to automate tests for the Open Id, for following parameter combinations. User - (Admin/Login User/Tenant User) User Consent - (Approve/Approve Always/Skip) Association Type - (DB Store/Replication Store/Crypto Store) OpenId Attribute Exchange - (

Re: [Dev] Handling Concurrency with Jaggery Scripts

2014-10-26 Thread Dilan Udara Ariyaratne
Hi All, Thanks for your valuable feedback! If I am to continue this discussion, as far as I know, when ever a client-server-connection is made, the server hands over the request handling task to a separate process or a thread. In PHP, this is a new process and in Jaggery, yes, this should be a th

Re: [Dev] [DEV] CEP (3.1.0) sample 0002 (update documentation)

2014-10-26 Thread Chamin Nalinda
[1] https://wso2.org/jira/browse/CEP-678 On Sun, Oct 26, 2014 at 1:38 PM, Chamin Nalinda wrote: > Hi All, > > While I was running CEP sample 0002 I got the following error. > > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". > > The following[1] post instruct to add log4j jar to

[Dev] [DEV] CEP (3.1.0) sample 0002 (update documentation)

2014-10-26 Thread Chamin Nalinda
Hi All, While I was running CEP sample 0002 I got the following error. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". The following[1] post instruct to add log4j jar to lib folder in samples. But it didn't work for me. I add SLF4J 1.5.x (slf4j-simple-1.5.6.jar) to lib folder i

Re: [Dev] Error:java.lang.reflect.InvocationTargetException

2014-10-26 Thread Shiva Balachandran
Hi Faathima, >From what i can comprehend from the error message and what your trying do, is that you are trying to update a database table with a new attribute, the reason the error is popping up is because the database table to which you are trying to add the attribute does not exist or not acces