Re: [Dev] Null pointer exception when running Test cases

2016-02-03 Thread Menaka Jayawardena
Hello Krishantha,

Here is the url for the repo.

https://github.com/menaka121/product-iot-server/tree/master/modules/integration

Thank you very much

On Wed, Feb 3, 2016 at 2:54 PM, Krishantha Samaraweera 
wrote:

> Hi Menaka,
>
> Can you share the repo URL. So I can go though the configurations and see.
>
> Thanks,
> Krishantha.
>
> On Tue, Feb 2, 2016 at 10:47 AM, Menaka Jayawardena 
> wrote:
>
>> Hello,
>>
>> I get this exception when trying to run tests in IOT server.
>>
>> But all test cases are running without any problem.
>>
>> Feb 02, 2016 10:44:42 AM
>> org.wso2.carbon.automation.engine.extensions.ExecutionListenerExtension
>> 
>> WARNING: Failed to initializing the Extension Class
>> Feb 02, 2016 10:44:42 AM
>> org.wso2.carbon.automation.engine.extensions.ExecutionListenerExtension
>> 
>> SEVERE: Error initializing the Automation Context
>> java.lang.NullPointerException
>> at
>> org.wso2.carbon.automation.engine.extensions.ListenerExtension.setParameterMap(ListenerExtension.java:51)
>> at
>> org.wso2.carbon.automation.engine.extensions.ExecutionListenerExtension.(ExecutionListenerExtension.java:31)
>> at
>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.(CarbonServerExtension.java:29)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>> at java.lang.Class.newInstance(Class.java:383)
>> at
>> org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.initiate(TestNGExtensionExecutor.java:97)
>> at
>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:46)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
>> at org.testng.TestNG.run(TestNG.java:1015)
>> at
>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
>> at
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
>> at
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>
>>
>> I debugged the test platform and the parameter map gets null.
>>
>> What could be the reason for this?
>>
>>
>> Thanks and regards
>> Menaka Madusanka
>>
>> --
>> Menaka Madushanka Jayawardena
>> Software Engineering Intern
>> men...@wso2.com
>> Mobile:- +94 71 8851183/ +94 71 3505470
>> LinkedIn - Menaka Jayawardena
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>



-- 
Menaka Madushanka Jayawardena
Software Engineering Intern
men...@wso2.com
Mobile:- +94 71 8851183/ +94 71 3505470
LinkedIn - Menaka Jayawardena 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] API Manager Integration test cases to be run through Heartbeat

2016-02-03 Thread Erandi Ganepola
Hi Malintha,

Thank you very much for above information. Those will be very much useful
for me.

Regards,
Erandi

Erandi Ganepola
Software Engineering Intern
+94710695692
+94754191524


On Wed, Feb 3, 2016 at 12:18 PM, Malintha Adikari  wrote:

> Hi Erandi,
>
> We use AutomationContext object to store all test environment related
> information. If we want to run a test case using tenant user, we have to
> create AutomationContext object providing that tenant user information. So
> we are creating AutomationContext object before we start executing test
> case (we create this object under @BeforeClass annotation).
>
> When we create AutomationContext object we are getting user related data
> through TestUserMode object. Incase, we need to execute same test case for
> both super tenant  and tenant user, we create data provider with all those
> users and provide that data provider to the test case. Then test case will
> be executed sequentially for all users mentioned in the data provider (for
> each test run , separate AutomationContext object will be created for the
> current user).
>
> Each test case inherits from base test class where we create
> AutomationContext object in it's init() method. In APIMIntergrationBaseTest
> class there are two overloading methods
>
> 1. init() - AutomationContext is created using super tenant
> 2. init(TestUserMode userMode) - Automation context is created using the
> provided TenantUserMode object.
>
> We can use following logic to differentiate test cases which are running
> in super tenant + tenant mode or only in super tenant mode.
>
>- If a test case has a data provider and AutomationContext has been
>created using TestUserMode object provided by that data provider, that test
>case will be executed for all users
>
> ex:
> [2]
>
> @Factory(dataProvider = "userModeDataProvider") public ESBJAVA3380TestCase
> (TestUserMode userMode) {
> this.userMode = userMode;
> }
> @DataProvider(name = "userModeDataProvider")
> public static Object[][] userModeDataProvider() {
> return new Object[][]{
> new Object[]{TestUserMode.SUPER_TENANT_ADMIN},
> new Object[]{TestUserMode.TENANT_ADMIN},
> };
> }
> @BeforeClass(alwaysRun = true)
> public void setEnvironment() throws Exception {
> .
> super.init(userMode);
> Here we run test case using both super tenant and tenant
>
>
>- If a test case has no data provider and it is using super class
>inti() method, that test case is executed only for super tenant.
>
>
> [3]
>
> public void initialize() throws APIManagerIntegrationTestException,
> XPathExpressionException,
> MalformedURLException {
> super.init();
>
>
> [1]
> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/base/APIMIntegrationBaseTest.java
> [2]
> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/json/ESBJAVA3380TestCase.java
> [3].
> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIAccessibilityOfPublishedOldAPIAndPublishedCopyAPITestCase.java
>
> Regards,
> Malintha
>
>
> On Wed, Feb 3, 2016 at 11:28 AM, Erandi Ganepola  wrote:
>
>> Hi All,
>>
>> I'm going to run Api manager integration test cases through Heartbeat
>> system in cloud.
>>
>> So I need to clarify the tests which have been written in "tenant mood"
>> because only those will be tested in Heartbeat (test cases written in
>> "super tenant mood" won't be checked).
>>
>> Please mention the test cases which have been written in "tenant mood".
>>
>> Thanks and Regards,
>> Erandi.
>>
>> Erandi Ganepola
>> Software Engineering Intern
>> +94710695692
>> +94754191524
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Malintha Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 71 2312958
> Blog:http://malinthas.blogspot.com
> Page:   http://about.me/malintha
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Load balance endpoint: Session Management

2016-02-03 Thread Chathurika De Silva
Thank You Shafreen

On Wed, Feb 3, 2016 at 2:16 PM, Shafreen Anfar  wrote:

> Hi Chathurika,
>
> Following article should help you to understand the difference between
> those two scopes.
>
> http://wso2.com/library/articles/axis2-session-management-part-2/
>
> On Wed, Feb 3, 2016 at 11:14 AM, Chathurika De Silva  > wrote:
>
>> Adding the doc link [1]
>>
>> [1] https://docs.wso2.com/display/ESB4100/Load-balance+Group
>>
>> On Wed, Feb 3, 2016 at 11:13 AM, Chathurika De Silva <
>> chathuri...@wso2.com> wrote:
>>
>>> Hi
>>>
>>> In [1] there are two session management methods as "Transport" and
>>> "Soap". The document does not provide comprehensive details on their usage.
>>> Can you please explain their usage with a user scenario?
>>>
>>> Thank You
>>> Erandi
>>>
>>> --
>>> *Chathurika Erandi*
>>> Software Engineer,
>>> WSO2 Inc.
>>>
>>> *E-mail:* chathuri...@wso2.com
>>> *Mobile: *+94714 328 612
>>> *Blog*: chathurikaerandi.blogspot.com
>>>
>>
>>
>>
>> --
>> *Chathurika Erandi*
>> Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* chathuri...@wso2.com
>> *Mobile: *+94714 328 612
>> *Blog*: chathurikaerandi.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
> *Shafreen*
> Software Engineer
> WSO2 Inc
> Mobile : 077-556-395-1
>



-- 
*Chathurika Erandi*
Software Engineer,
WSO2 Inc.

*E-mail:* chathuri...@wso2.com
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in worker/manager separated cluster in Kubernetes

2016-02-03 Thread Vishanth Balasubramaniam
Hi Isuru,

With those changes in the Kubernetes Membership Scheme, now the
worker/manager separation is working fine. I have tested this with WSO2 AS.

In the log now I am able to see the manager is being elected as a
coordinator node.

TID: [-1234] [] [2016-02-03 08:16:09,373]  INFO
> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
> Local member: [cf010018-3cf6-4a44-8f6a-5b72043017e2] - Host:10.244.86.4,
> Remote Host:null, Port: 4000, HTTP:9763, HTTPS:9443, Domain:
> wso2.carbon.domain, Sub-domain:mgt, Active:true
> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}
> TID: [-1234] [] [2016-02-03 08:16:09,457]  INFO
> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
> Elected this member [cf010018-3cf6-4a44-8f6a-5b72043017e2] as the
> Coordinator node
> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}
> TID: [-1234] [] [2016-02-03 08:16:09,564]  INFO
> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
> Cluster initialization completed
> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}


Regards,
Vishanth

On Wed, Feb 3, 2016 at 7:50 AM, Isuru Haththotuwa  wrote:

>
>
> On Tue, Feb 2, 2016 at 10:47 PM, Imesh Gunaratne  wrote:
>
>>
>>
>> On Wed, Feb 3, 2016 at 1:13 AM, Isuru Haththotuwa 
>> wrote:
>>
>>>
>>> AFAIK this is the correct way. If we start the manager first, there is
>>> no worker pod at that moment. So the manager can start on its own. When the
>>> worker pod is being created, it can add both manager and worker services'
>>> IPs and connect to the manager node.
>>>
>>
>> No Isuru, this is the list of services [1] given to each Carbon server
>> instance to query Pods. So ideally it should have both worker service and
>> manager service.
>>
> Thanks Imesh. I was of the idea that we should add individual pod IPs.
>
>>
>> [1]
>> https://github.com/wso2/kubernetes-artifacts/blob/master/common/kubernetes-membership-scheme/src/main/java/org/wso2/carbon/membership/scheme/kubernetes/KubernetesMembershipScheme.java#L141
>>
>>>
 Thanks

 On Wed, Feb 3, 2016 at 12:19 AM, Vishanth Balasubramaniam <
 vishan...@wso2.com> wrote:

> Hi,
>
> I have been working on WSO2 AS worker/manager separated cluster in
> Kubernetes. I have setup the Kubernetes cluster using the Vagrant and
> CoreOs [1].
> I built the docker images for manager and worker with the following
> Kubernetes membership scheme configurations in the profile.
>
> wso2::clustering :
>>   enabled : true
>>   local_member_host : local.as.wso2.com
>>   local_member_port : 4000
>>   membership_scheme : kubernetes
>>   k8 :
>> k8_master : http://172.17.8.101:8080
>> k8_namespace : default
>> k8_services : wso2as-manager,wso2as-worker
>>   subDomain : mgt
>
>
> wso2::clustering :
>>   enabled : true
>>   local_member_host : worker.as.wso2.com
>>   local_member_port : 4000
>>   membership_scheme : kubernetes
>>   k8 :
>> k8_master : http://172.17.8.101:8080
>> k8_namespace : default
>> k8_services : wso2as-manager,wso2as-worker
>>   subDomain : worker
>
>
> I SCP-ed the saved zip file of built images and loaded them in the
> Kubernetes minion. Then I deployed the worker/manager service and
> controller. I SSH-ed into the container where the manager node is running,
> and there are no error logs as you can see below.
>
> TID: [-1234] [] [2016-02-02 12:43:53,892]  INFO
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
>> Using kubernetes based membership management scheme
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}
>> TID: [-1234] [] [2016-02-02 12:43:53,905]  INFO
>> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme}
>> -  Initializing kubernetes membership scheme...
>> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme}
>> TID: [-1234] [] [2016-02-02 12:43:53,909]  INFO
>> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme}
>> -  Kubernetes clustering configuration: [master]
>> http://172.17.8.101:8080 [namespace] default [services]
>> wso2as-manager
>> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme}
>> TID: [-1234] [] [2016-02-02 12:43:54,499]  INFO
>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
>> : https://10.244.78.4:9443/carbon/
>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent}
>
>
> But it doesn't become the cluster coordinator node and there is no any
> other log after this. Also I am not able to access the carbon management
> console from my local machine.
>
> But whereas, when I deploy only the default profile 

Re: [Dev] [ESB] Load balance endpoint: Session Management

2016-02-03 Thread Shafreen Anfar
Hi Chathurika,

Following article should help you to understand the difference between
those two scopes.

http://wso2.com/library/articles/axis2-session-management-part-2/

On Wed, Feb 3, 2016 at 11:14 AM, Chathurika De Silva 
wrote:

> Adding the doc link [1]
>
> [1] https://docs.wso2.com/display/ESB4100/Load-balance+Group
>
> On Wed, Feb 3, 2016 at 11:13 AM, Chathurika De Silva  > wrote:
>
>> Hi
>>
>> In [1] there are two session management methods as "Transport" and
>> "Soap". The document does not provide comprehensive details on their usage.
>> Can you please explain their usage with a user scenario?
>>
>> Thank You
>> Erandi
>>
>> --
>> *Chathurika Erandi*
>> Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* chathuri...@wso2.com
>> *Mobile: *+94714 328 612
>> *Blog*: chathurikaerandi.blogspot.com
>>
>
>
>
> --
> *Chathurika Erandi*
> Software Engineer,
> WSO2 Inc.
>
> *E-mail:* chathuri...@wso2.com
> *Mobile: *+94714 328 612
> *Blog*: chathurikaerandi.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,
*Shafreen*
Software Engineer
WSO2 Inc
Mobile : 077-556-395-1
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Null pointer exception when running Test cases

2016-02-03 Thread Krishantha Samaraweera
Hi Menaka,

Can you share the repo URL. So I can go though the configurations and see.

Thanks,
Krishantha.

On Tue, Feb 2, 2016 at 10:47 AM, Menaka Jayawardena  wrote:

> Hello,
>
> I get this exception when trying to run tests in IOT server.
>
> But all test cases are running without any problem.
>
> Feb 02, 2016 10:44:42 AM
> org.wso2.carbon.automation.engine.extensions.ExecutionListenerExtension
> 
> WARNING: Failed to initializing the Extension Class
> Feb 02, 2016 10:44:42 AM
> org.wso2.carbon.automation.engine.extensions.ExecutionListenerExtension
> 
> SEVERE: Error initializing the Automation Context
> java.lang.NullPointerException
> at
> org.wso2.carbon.automation.engine.extensions.ListenerExtension.setParameterMap(ListenerExtension.java:51)
> at
> org.wso2.carbon.automation.engine.extensions.ExecutionListenerExtension.(ExecutionListenerExtension.java:31)
> at
> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.(CarbonServerExtension.java:29)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at java.lang.Class.newInstance(Class.java:383)
> at
> org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.initiate(TestNGExtensionExecutor.java:97)
> at
> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:46)
> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
> at org.testng.TestNG.run(TestNG.java:1015)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
> at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>
>
> I debugged the test platform and the parameter map gets null.
>
> What could be the reason for this?
>
>
> Thanks and regards
> Menaka Madusanka
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Unable to configure Siebel CRM

2016-02-03 Thread Thulasika Vijayanathan
I have planned to do the siebel connector.So I am trying to install Siebel
CRM with the latest release of Siebel Innovation Pack 2015 (Siebel 15.0)
using  link[1].To install the siebel CRM  the following  jar file needs to
download from the "Oracle Software Delivery Cloud".

   -

   Siebel Industry Applications Version 15.0 Siebel Client (Starter
   Installation Requirement)
   -

  SBA_15.0.0.0_Base_Windows_Siebel_Web_Client.jar
  -

  SBA_15.0.0.0_enu_Windows_Siebel_Web_Client.jar
  -

   Siebel Industry Applications Version 15.0 Siebel Tools (Starter
   Installation Requirement)
   -

  SBA_15.0.0.0_Base_Windows_Siebel_Tools.jar
  -

  SBA_15.0.0.0_enu_Windows_Siebel_Tools.jar
  -

   Siebel Industry Applications Version 15.0 Sample Database Files
   -

  SBA_15.0.0.0_Base_Windows_Siebel_Sample_Database.jar
  -

  SBA_15.0.0.0_enu_Windows_Siebel_Sample_Database.jar
  -

   Siebel Industry Applications Version 15.0 ImageCreator Files (Starter
   Installation Requirement)
   -

  all files

But I am unable to find the below files in edelivery oracle site ,

Siebel Industry Applications Version 15.0 Sample Database Files

   -

   SBA_15.0.0.0_Base_Windows_Siebel_Sample_Database.jar
   -

   SBA_15.0.0.0_enu_Windows_Siebel_Sample_Database.jar

Can you please tell if you have any experience on this or suggest any other
solution for this?

[1] https://www.youtube.com/watch?v=7E_RYaB1v0k


Thanks,

Thulasika

-- 
Thulasika
Associate Software Engineer
Mobile:0778014295
email: thulas...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Latency Calculation Feature in WSO2 GW

2016-02-03 Thread Chamil Elladeniya
Adding the team

On Wed, Feb 3, 2016 at 6:59 PM, Chamil Elladeniya  wrote:

> Hi all,
> This is the perf test results which performed in order to compare metrics
> integrated GW and the pure.
>
> Original GW
> Integrated GW
> # of requests Concurrency Requests per second [#/sec] Time per request
> [ms]
> # of requests Concurrency Requests per second [#/sec] Time per request
> [ms]
> 100 100 15543.07 6.434
> 100 100 15219.26 6.571
> 100 200 15633.71 12.793
> 100 200 12739.49 15.699
> 100 300 14406.71 20.824
> 100 300 15312.92 19.591
> 100 400 15116.58 26.461
> 100 400 12272.92 32.592
> 100 500 7053.54 70.886
> 100 500 6697.34 74.92
> 100 600 9497.65 63.173
> 100 600 11559.41 59.57
> 100 700 14322.05 48.876
> 100 700 10049.72 102.6
> 100 800 11374.63 70.332
> 100 800 10578.78 93.599
> 100 900 4838.48 186.009
> 100 900 3123.29 288.158
> 100 1000 9270.24 150.28
> 100 1000 9181.02 153.23
> 100 1100 13958.91 78.803
> 100 1100 13573.83 81.038
> 100 1300 14110.01 92.133
> 100 1300 5978.51 217.446
> 100 1400 13769.77 101.672
> 100 1400 timeout
> 100 1500 5573.45 404.5
> 100 1500 timeout
>
>
> Above values are taken as an average of tests per case. Integrated GW
> results timeout when the concurrency level is above 1400
>
> Thank you!
>
> On Tue, Jan 26, 2016 at 10:53 AM, Chamil Elladeniya 
> wrote:
>
>> Hi all,
>>
>> Currently I'm tasked with implementing latency metrics calculation
>> feature according to the proposed architecture [1]. So far I have
>> integrated carbon-metrics and working on load testing to check if there is
>> any performance degradation of GW.
>>
>> [1] [Architecture] Implementing Latency Metrics Calculation Feature in GW
>>
>> Thank you!
>>
>> On Thu, Dec 17, 2015 at 10:46 AM, Viraj Senevirathne 
>> wrote:
>>
>>> Hi All,
>>>
>>> In ESB 4.10.0 we are introducing new statistic feature which lets user
>>> drill down service level statistics.
>>>
>>> So for higher level statistics we can include,
>>>
>>>- Avg,Min, Maximum Mediation times for each service
>>>- Statistics of each endpoints
>>>- Allow users to enable and disable statistics for each components
>>>- Faults encounters while mediation for each service
>>>
>>> These are some extra parameters that exists in current transport latency
>>> parameters. I think it would be better to incorporate following parameters
>>> too.
>>>
>>>- Parameters
>>>- Messages Received.
>>>- Requests received.
>>>- Responses sent
>>>- Fault in Receiving
>>>- Faults in Sending
>>>- Min, Max, Avg  message size sent
>>>- Min, Max, Avg  message size received
>>>- Bytes Received
>>>- Bytes received
>>>- Timeouts in Receiving
>>>- Timeouts in Sending
>>>- Active Thread Count
>>>- Last Reset Time
>>>- Statistics Views for Daily, Hourly, by minutes ( This may be
>>>optional)
>>>
>>>
>>> *Operations*
>>>
>>>- Reset Statistics
>>>
>>>
>>> Thank You,
>>>
>>> On Thu, Dec 17, 2015 at 10:20 AM, Kasun Indrasiri 
>>> wrote:
>>>
 We may also need a bit of high level stats too.. For instance things we
 have included in ESB 4.10.

 On Thu, Dec 17, 2015 at 10:17 AM, Nadeeshaan Gunasinghe <
 nadeesh...@wso2.com> wrote:

> Hi all,
> It has been a requirement to implement a feature for keeping track of
> the various types of latency metrics in WSO2 GW. At the moment I am
> involved in implementing this latency metrics calculation feature 
> according
> to the architecture proposed at [1].
> As the first step I am capturing the raw data required for calculating
> various latency values. These raw data being collected as follows at the
> moment,
>
> *Server Side*
>
>- Source Connection Creation time
>- Source Connection life time
>- Request header read time
>- Request body read time
>- Request read time
>
>
> *Client Side*
>
>- Client connection creation time
>- Client Connection life time
>- Response header read time
>- Response body read time
>- Response read time
>
>
> I am going to keep track of these raw data and then transport these
> data through the carbon message, as the initial step. Then a latency
> calculation engine is going to be implemented to calculate the various
> types of latency values such as,
>
>- Average Throughput of a connection
>- Average Latency of a connection
>- Average jitter of a connection
>- Message build time
>- Message encoding time
>- Message mediation time
>- etc
>
> Then a data publisher component is going to be implemented for
> publishing data to  JMX and DAS.
>
> During the implementation additional raw data will be 

Re: [Dev] WSO2 Committers += Grainier Perera

2016-02-03 Thread Tishan Dahanayakage
Congratulations Grainier!!

On Wed, Feb 3, 2016 at 4:47 PM, Sriskandarajah Suhothayan 
wrote:

> Hi All,
>
> It's my pleasure to announce Grainier Perera as a WSO2 Committer. Grainier
>  has been a valuable contributor for WSO2 CEP & Metrics Components and
> did a commendable worked on Virtual Hackathon & Forrester Demo, and in
> recognition of his contribution to WSO2, he has been voted as a WSO2
> Committer.
>
> Grainier, congratulations and keep up the good work!
>
> Thanks & Regards.
> Suho
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tishan Dahanayakage
Software Engineer
WSO2, Inc.
Mobile:+94 716481328

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
re-transmit, disseminate, or otherwise use the information contained in
this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Grainier Perera

2016-02-03 Thread Mushthaq Rumy
Congratulations Grainier :)

Thanks & Regards

On Wed, Feb 3, 2016 at 5:25 PM, Tishan Dahanayakage  wrote:

> Congratulations Grainier!!
>
> On Wed, Feb 3, 2016 at 4:47 PM, Sriskandarajah Suhothayan 
> wrote:
>
>> Hi All,
>>
>> It's my pleasure to announce Grainier Perera as a WSO2 Committer.
>> Grainier has been a valuable contributor for WSO2 CEP & Metrics
>> Components and did a commendable worked on Virtual Hackathon & Forrester
>> Demo, and in recognition of his contribution to WSO2, he has been voted
>> as a WSO2 Committer.
>>
>> Grainier, congratulations and keep up the good work!
>>
>> Thanks & Regards.
>> Suho
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Mushthaq Rumy
*Software Engineer*
Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
Email : musht...@wso2.com
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Latency Calculation Feature in WSO2 GW

2016-02-03 Thread Chamil Elladeniya
Hi all,
This is the perf test results which performed in order to compare metrics
integrated GW and the pure.

Original GW
Integrated GW
# of requests Concurrency Requests per second [#/sec] Time per request [ms]
# of requests Concurrency Requests per second [#/sec] Time per request [ms]
100 100 15543.07 6.434
100 100 15219.26 6.571
100 200 15633.71 12.793
100 200 12739.49 15.699
100 300 14406.71 20.824
100 300 15312.92 19.591
100 400 15116.58 26.461
100 400 12272.92 32.592
100 500 7053.54 70.886
100 500 6697.34 74.92
100 600 9497.65 63.173
100 600 11559.41 59.57
100 700 14322.05 48.876
100 700 10049.72 102.6
100 800 11374.63 70.332
100 800 10578.78 93.599
100 900 4838.48 186.009
100 900 3123.29 288.158
100 1000 9270.24 150.28
100 1000 9181.02 153.23
100 1100 13958.91 78.803
100 1100 13573.83 81.038
100 1300 14110.01 92.133
100 1300 5978.51 217.446
100 1400 13769.77 101.672
100 1400 timeout
100 1500 5573.45 404.5
100 1500 timeout


Above values are taken as an average of tests per case. Integrated GW
results timeout when the concurrency level is above 1400

Thank you!

On Tue, Jan 26, 2016 at 10:53 AM, Chamil Elladeniya 
wrote:

> Hi all,
>
> Currently I'm tasked with implementing latency metrics calculation feature
> according to the proposed architecture [1]. So far I have integrated
> carbon-metrics and working on load testing to check if there is any
> performance degradation of GW.
>
> [1] [Architecture] Implementing Latency Metrics Calculation Feature in GW
>
> Thank you!
>
> On Thu, Dec 17, 2015 at 10:46 AM, Viraj Senevirathne 
> wrote:
>
>> Hi All,
>>
>> In ESB 4.10.0 we are introducing new statistic feature which lets user
>> drill down service level statistics.
>>
>> So for higher level statistics we can include,
>>
>>- Avg,Min, Maximum Mediation times for each service
>>- Statistics of each endpoints
>>- Allow users to enable and disable statistics for each components
>>- Faults encounters while mediation for each service
>>
>> These are some extra parameters that exists in current transport latency
>> parameters. I think it would be better to incorporate following parameters
>> too.
>>
>>- Parameters
>>- Messages Received.
>>- Requests received.
>>- Responses sent
>>- Fault in Receiving
>>- Faults in Sending
>>- Min, Max, Avg  message size sent
>>- Min, Max, Avg  message size received
>>- Bytes Received
>>- Bytes received
>>- Timeouts in Receiving
>>- Timeouts in Sending
>>- Active Thread Count
>>- Last Reset Time
>>- Statistics Views for Daily, Hourly, by minutes ( This may be
>>optional)
>>
>>
>> *Operations*
>>
>>- Reset Statistics
>>
>>
>> Thank You,
>>
>> On Thu, Dec 17, 2015 at 10:20 AM, Kasun Indrasiri  wrote:
>>
>>> We may also need a bit of high level stats too.. For instance things we
>>> have included in ESB 4.10.
>>>
>>> On Thu, Dec 17, 2015 at 10:17 AM, Nadeeshaan Gunasinghe <
>>> nadeesh...@wso2.com> wrote:
>>>
 Hi all,
 It has been a requirement to implement a feature for keeping track of
 the various types of latency metrics in WSO2 GW. At the moment I am
 involved in implementing this latency metrics calculation feature according
 to the architecture proposed at [1].
 As the first step I am capturing the raw data required for calculating
 various latency values. These raw data being collected as follows at the
 moment,

 *Server Side*

- Source Connection Creation time
- Source Connection life time
- Request header read time
- Request body read time
- Request read time


 *Client Side*

- Client connection creation time
- Client Connection life time
- Response header read time
- Response body read time
- Response read time


 I am going to keep track of these raw data and then transport these
 data through the carbon message, as the initial step. Then a latency
 calculation engine is going to be implemented to calculate the various
 types of latency values such as,

- Average Throughput of a connection
- Average Latency of a connection
- Average jitter of a connection
- Message build time
- Message encoding time
- Message mediation time
- etc

 Then a data publisher component is going to be implemented for
 publishing data to  JMX and DAS.

 During the implementation additional raw data will be needed to be
 captured according to the type of metrics we are going to calculate. In
 such situation, will update with the latest status and findings.

 [1] [Architecture] Implementing Latency Metrics Calculation Feature in
 GW

 Regards

 *Nadeeshaan Gunasinghe*
 

[Dev] WSO2 Committers += Grainier Perera

2016-02-03 Thread Sriskandarajah Suhothayan
Hi All,

It's my pleasure to announce Grainier Perera as a WSO2 Committer.
Grainier has been
a valuable contributor for WSO2 CEP & Metrics Components and did
a commendable worked on Virtual Hackathon & Forrester Demo, and in
recognition of his contribution to WSO2, he has been voted as a WSO2
Committer.

Grainier, congratulations and keep up the good work!

Thanks & Regards.
Suho

-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Maheeka Jayasuriya
Hi ,

I am getting an error when enabling Google Contacts connector with ESB
4.9.0. Following is the stack trace.

Caused by: java.lang.NoClassDefFoundError:
com/google/api/client/http/HttpTransport
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
at java.lang.Class.getConstructor0(Class.java:2842)
at java.lang.Class.newInstance(Class.java:345)
at
org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
at
org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
at
org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
at
org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
at
org.apache.synapse.config.xml.TemplateMediatorFactory.createSpecificMediator(TemplateMediatorFactory.java:61)
at
org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
at
org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
at
org.apache.synapse.libraries.model.LibraryArtifact$TemplateArtifactFile.build(LibraryArtifact.java:190)
at
org.apache.synapse.libraries.model.LibraryArtifact.loadComponentsInto(LibraryArtifact.java:100)
at
org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:144)
at
org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:129)
at
org.apache.synapse.libraries.util.LibDeployerUtils.loadLibArtifacts(LibDeployerUtils.java:340)
at
org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:100)
at
org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:124)
at
org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.updateStatus(MediationLibraryAdminService.java:436)
... 126 more
Caused by: java.lang.ClassNotFoundException: Class Not found :
com.google.api.client.http.HttpTransport
at
org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:92)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at
org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 145 more

Thanks,
Maheeka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Message Broker 3.1.0 RC 2

2016-02-03 Thread Akalanka Pagoda Arachchi
Hi Devs,

This is the second release candidate of WSO2 Message Broker 3.1.0.

This release fixes the following issues:
https://wso2.org/jira/issues/?filter=12637


Please download MB 3.1.0 RC2 and test the functionality and vote. Vote will
be open for 72 hours or as needed.

Source & binary distribution files:
https://github.com/wso2/product-mb/releases/tag/v3.1.0-RC2

Maven staging repo:
http://maven.wso2.org/nexus/content/repositories/orgwso2mb-323/

The tag to be voted upon:
https://github.com/wso2/product-mb/tree/v3.1.0-RC2


[+] Stable - go ahead and release
[-]  Broken - do not release (explain why)

Thanks and Regards,
~ WSO2 MB Team ~

-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] MSS Tool generated code not resolving dependencies

2016-02-03 Thread Awanthika Senarath
Hi all,

There is an issue with the codegen tool (swagger codegen) we are using to
generate the java code from the swagger definition, as it automatically
import javax.servlet dependencies which causes a build failure of the
generated code. MSF4J does not support javax.servlet.

Also it inserts some ApiParam annotations in the code which are not
supported from MSF4J as well.

*@ Rajeevan* : Can you please share with me the location you forked the
swagger gen source and changed it according to our requirements ? Did these
changes involve the errors I have mentioned above?



Regards
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding .inf files to orbit repo

2016-02-03 Thread Buddhima Wijeweera
Hi All,

When we move smooks orbit bundle to git repo, it requires some ".inf" files
in git repo.
In current svn repo those files are exists[1]. But in git Orbit repo, those
files are ignored via gitignore file [2].

So, would like to know, how can we add ".inf" files to Orbit repo?


[1] https://svn.wso2.org/repos/wso2/trunk/orbit/smooks/META-INF/
[2] https://github.com/wso2/orbit/blob/master/.gitignore#L6

Thank you,

-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Mobile: +94 71 427 9966
Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Maheeka Jayasuriya
Hi Rajjaz,

Yes it is an issue with dependencies. The issue is when deploying a
connector with a car file. Is this the expected behavior to deploy libs
manually when the connectors are packaged with a car file?

Thanks,
Maheeka



On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed  wrote:

> Hi maheeka,
>  its seems to be like class not found exceptions, so add dependency
> jars[1] inside the lib folder. or if you can get through build the Google
> Contacts connector and get jars from inside *target/connector/dependencies
> .*
>
> [1]
> jsr305-1.3.7.jar
> jackson-core-2.1.3.jar
> guava-13.0.1.jar
> google-oauth-client-1.17.0-rc.jar
> google-http-client-jackson2-1.17.0-rc.jar
> google-http-client-1.17.0-rc.jar
> google-api-client-1.17.0-rc.jar
> core-1.47.1.jar
> commons-email-1.2.jar
>
> On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya 
> wrote:
>
>> Hi ,
>>
>> I am getting an error when enabling Google Contacts connector with ESB
>> 4.9.0. Following is the stack trace.
>>
>> Caused by: java.lang.NoClassDefFoundError:
>> com/google/api/client/http/HttpTransport
>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
>> at java.lang.Class.getConstructor0(Class.java:2842)
>> at java.lang.Class.newInstance(Class.java:345)
>> at
>> org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
>> at
>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>> at
>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>> at
>> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
>> at
>> org.apache.synapse.config.xml.TemplateMediatorFactory.createSpecificMediator(TemplateMediatorFactory.java:61)
>> at
>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>> at
>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>> at
>> org.apache.synapse.libraries.model.LibraryArtifact$TemplateArtifactFile.build(LibraryArtifact.java:190)
>> at
>> org.apache.synapse.libraries.model.LibraryArtifact.loadComponentsInto(LibraryArtifact.java:100)
>> at
>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:144)
>> at
>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:129)
>> at
>> org.apache.synapse.libraries.util.LibDeployerUtils.loadLibArtifacts(LibDeployerUtils.java:340)
>> at
>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:100)
>> at
>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:124)
>> at
>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.updateStatus(MediationLibraryAdminService.java:436)
>> ... 126 more
>> Caused by: java.lang.ClassNotFoundException: Class Not found :
>> com.google.api.client.http.HttpTransport
>> at
>> org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:92)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>> at
>> org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>> ... 145 more
>>
>> Thanks,
>> Maheeka
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thank you
> Best Regards
>
> *Rajjaz HM*
> Associate Software Engineer
> WSO2 Inc. 
> lean | enterprise | middleware
> Mobile | +94752833834
> Email   | raj...@wso2.com
> LinkedIn | Blogger | WSO2 Profile
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Latency Calculation Feature in WSO2 GW

2016-02-03 Thread Isuru Perera
The results are not consistent. For example, in Original GW, the RPS is
very low in 500 & 900 concurrency. Therefore we cannot exactly tell whether
there is a considerable performance impact when using Carbon Metrics.

We first need to make sure there are no issues in the performance testing
environment.

During the previous Gateway testing, did anyone notice such inconsistent
behaviour in different concurrency levels?

On Wed, Feb 3, 2016 at 7:02 PM, Chamil Elladeniya  wrote:

> Adding the team
>
>
> On Wed, Feb 3, 2016 at 6:59 PM, Chamil Elladeniya 
> wrote:
>
>> Hi all,
>> This is the perf test results which performed in order to compare metrics
>> integrated GW and the pure.
>>
>> Original GW
>> Integrated GW
>> # of requests Concurrency Requests per second [#/sec] Time per request
>> [ms]
>> # of requests Concurrency Requests per second [#/sec] Time per request
>> [ms]
>> 100 100 15543.07 6.434
>> 100 100 15219.26 6.571
>> 100 200 15633.71 12.793
>> 100 200 12739.49 15.699
>> 100 300 14406.71 20.824
>> 100 300 15312.92 19.591
>> 100 400 15116.58 26.461
>> 100 400 12272.92 32.592
>> 100 500 7053.54 70.886
>> 100 500 6697.34 74.92
>> 100 600 9497.65 63.173
>> 100 600 11559.41 59.57
>> 100 700 14322.05 48.876
>> 100 700 10049.72 102.6
>> 100 800 11374.63 70.332
>> 100 800 10578.78 93.599
>> 100 900 4838.48 186.009
>> 100 900 3123.29 288.158
>> 100 1000 9270.24 150.28
>> 100 1000 9181.02 153.23
>> 100 1100 13958.91 78.803
>> 100 1100 13573.83 81.038
>> 100 1300 14110.01 92.133
>> 100 1300 5978.51 217.446
>> 100 1400 13769.77 101.672
>> 100 1400 timeout
>> 100 1500 5573.45 404.5
>> 100 1500 timeout
>>
>>
>> Above values are taken as an average of tests per case. Integrated GW
>> results timeout when the concurrency level is above 1400
>>
>> Thank you!
>>
>> On Tue, Jan 26, 2016 at 10:53 AM, Chamil Elladeniya 
>> wrote:
>>
>>> Hi all,
>>>
>>> Currently I'm tasked with implementing latency metrics calculation
>>> feature according to the proposed architecture [1]. So far I have
>>> integrated carbon-metrics and working on load testing to check if there is
>>> any performance degradation of GW.
>>>
>>> [1] [Architecture] Implementing Latency Metrics Calculation Feature in
>>> GW
>>>
>>> Thank you!
>>>
>>> On Thu, Dec 17, 2015 at 10:46 AM, Viraj Senevirathne 
>>> wrote:
>>>
 Hi All,

 In ESB 4.10.0 we are introducing new statistic feature which lets user
 drill down service level statistics.

 So for higher level statistics we can include,

- Avg,Min, Maximum Mediation times for each service
- Statistics of each endpoints
- Allow users to enable and disable statistics for each components
- Faults encounters while mediation for each service

 These are some extra parameters that exists in current transport
 latency parameters. I think it would be better to incorporate following
 parameters too.

- Parameters
- Messages Received.
- Requests received.
- Responses sent
- Fault in Receiving
- Faults in Sending
- Min, Max, Avg  message size sent
- Min, Max, Avg  message size received
- Bytes Received
- Bytes received
- Timeouts in Receiving
- Timeouts in Sending
- Active Thread Count
- Last Reset Time
- Statistics Views for Daily, Hourly, by minutes ( This may be
optional)


 *Operations*

- Reset Statistics


 Thank You,

 On Thu, Dec 17, 2015 at 10:20 AM, Kasun Indrasiri 
 wrote:

> We may also need a bit of high level stats too.. For instance things
> we have included in ESB 4.10.
>
> On Thu, Dec 17, 2015 at 10:17 AM, Nadeeshaan Gunasinghe <
> nadeesh...@wso2.com> wrote:
>
>> Hi all,
>> It has been a requirement to implement a feature for keeping track of
>> the various types of latency metrics in WSO2 GW. At the moment I am
>> involved in implementing this latency metrics calculation feature 
>> according
>> to the architecture proposed at [1].
>> As the first step I am capturing the raw data required for
>> calculating various latency values. These raw data being collected as
>> follows at the moment,
>>
>> *Server Side*
>>
>>- Source Connection Creation time
>>- Source Connection life time
>>- Request header read time
>>- Request body read time
>>- Request read time
>>
>>
>> *Client Side*
>>
>>- Client connection creation time
>>- Client Connection life time
>>- Response header read time
>>- Response body read time
>>- Response read time
>>
>>
>> I am going to keep track of these 

Re: [Dev] Issue in worker/manager separated cluster in Kubernetes

2016-02-03 Thread Imesh Gunaratne
Great work Isuru & Vishanth!!

On Wed, Feb 3, 2016 at 4:31 PM, Vishanth Balasubramaniam  wrote:

> Hi Isuru,
>
> With those changes in the Kubernetes Membership Scheme, now the
> worker/manager separation is working fine. I have tested this with WSO2 AS.
>
> In the log now I am able to see the manager is being elected as a
> coordinator node.
>
> TID: [-1234] [] [2016-02-03 08:16:09,373]  INFO
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
>> Local member: [cf010018-3cf6-4a44-8f6a-5b72043017e2] - Host:10.244.86.4,
>> Remote Host:null, Port: 4000, HTTP:9763, HTTPS:9443, Domain:
>> wso2.carbon.domain, Sub-domain:mgt, Active:true
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}
>> TID: [-1234] [] [2016-02-03 08:16:09,457]  INFO
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
>> Elected this member [cf010018-3cf6-4a44-8f6a-5b72043017e2] as the
>> Coordinator node
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}
>> TID: [-1234] [] [2016-02-03 08:16:09,564]  INFO
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
>> Cluster initialization completed
>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}
>
>
> Regards,
> Vishanth
>
> On Wed, Feb 3, 2016 at 7:50 AM, Isuru Haththotuwa  wrote:
>
>>
>>
>> On Tue, Feb 2, 2016 at 10:47 PM, Imesh Gunaratne  wrote:
>>
>>>
>>>
>>> On Wed, Feb 3, 2016 at 1:13 AM, Isuru Haththotuwa 
>>> wrote:
>>>

 AFAIK this is the correct way. If we start the manager first, there is
 no worker pod at that moment. So the manager can start on its own. When the
 worker pod is being created, it can add both manager and worker services'
 IPs and connect to the manager node.

>>>
>>> No Isuru, this is the list of services [1] given to each Carbon server
>>> instance to query Pods. So ideally it should have both worker service and
>>> manager service.
>>>
>> Thanks Imesh. I was of the idea that we should add individual pod IPs.
>>
>>>
>>> [1]
>>> https://github.com/wso2/kubernetes-artifacts/blob/master/common/kubernetes-membership-scheme/src/main/java/org/wso2/carbon/membership/scheme/kubernetes/KubernetesMembershipScheme.java#L141
>>>

> Thanks
>
> On Wed, Feb 3, 2016 at 12:19 AM, Vishanth Balasubramaniam <
> vishan...@wso2.com> wrote:
>
>> Hi,
>>
>> I have been working on WSO2 AS worker/manager separated cluster in
>> Kubernetes. I have setup the Kubernetes cluster using the Vagrant and
>> CoreOs [1].
>> I built the docker images for manager and worker with the following
>> Kubernetes membership scheme configurations in the profile.
>>
>> wso2::clustering :
>>>   enabled : true
>>>   local_member_host : local.as.wso2.com
>>>   local_member_port : 4000
>>>   membership_scheme : kubernetes
>>>   k8 :
>>> k8_master : http://172.17.8.101:8080
>>> k8_namespace : default
>>> k8_services : wso2as-manager,wso2as-worker
>>>   subDomain : mgt
>>
>>
>> wso2::clustering :
>>>   enabled : true
>>>   local_member_host : worker.as.wso2.com
>>>   local_member_port : 4000
>>>   membership_scheme : kubernetes
>>>   k8 :
>>> k8_master : http://172.17.8.101:8080
>>> k8_namespace : default
>>> k8_services : wso2as-manager,wso2as-worker
>>>   subDomain : worker
>>
>>
>> I SCP-ed the saved zip file of built images and loaded them in the
>> Kubernetes minion. Then I deployed the worker/manager service and
>> controller. I SSH-ed into the container where the manager node is 
>> running,
>> and there are no error logs as you can see below.
>>
>> TID: [-1234] [] [2016-02-02 12:43:53,892]  INFO
>>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
>>> Using kubernetes based membership management scheme
>>> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}
>>> TID: [-1234] [] [2016-02-02 12:43:53,905]  INFO
>>> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme}
>>> -  Initializing kubernetes membership scheme...
>>> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme}
>>> TID: [-1234] [] [2016-02-02 12:43:53,909]  INFO
>>> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme}
>>> -  Kubernetes clustering configuration: [master]
>>> http://172.17.8.101:8080 [namespace] default [services]
>>> wso2as-manager
>>> {org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme}
>>> TID: [-1234] [] [2016-02-02 12:43:54,499]  INFO
>>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console 
>>> URL
>>> : https://10.244.78.4:9443/carbon/
>>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent}
>>

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Malaka Silva
No I don't think this is expected behavior but a bug.

On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya  wrote:

> Hi Rajjaz,
>
> Yes it is an issue with dependencies. The issue is when deploying a
> connector with a car file. Is this the expected behavior to deploy libs
> manually when the connectors are packaged with a car file?
>
> Thanks,
> Maheeka
>
>
>
>
> On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed  wrote:
>
>> Hi maheeka,
>>  its seems to be like class not found exceptions, so add dependency
>> jars[1] inside the lib folder. or if you can get through build the Google
>> Contacts connector and get jars from inside *target/connector/dependencies
>> .*
>>
>> [1]
>> jsr305-1.3.7.jar
>> jackson-core-2.1.3.jar
>> guava-13.0.1.jar
>> google-oauth-client-1.17.0-rc.jar
>> google-http-client-jackson2-1.17.0-rc.jar
>> google-http-client-1.17.0-rc.jar
>> google-api-client-1.17.0-rc.jar
>> core-1.47.1.jar
>> commons-email-1.2.jar
>>
>> On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya 
>> wrote:
>>
>>> Hi ,
>>>
>>> I am getting an error when enabling Google Contacts connector with ESB
>>> 4.9.0. Following is the stack trace.
>>>
>>> Caused by: java.lang.NoClassDefFoundError:
>>> com/google/api/client/http/HttpTransport
>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
>>> at java.lang.Class.getConstructor0(Class.java:2842)
>>> at java.lang.Class.newInstance(Class.java:345)
>>> at
>>> org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
>>> at
>>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>>> at
>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>>> at
>>> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
>>> at
>>> org.apache.synapse.config.xml.TemplateMediatorFactory.createSpecificMediator(TemplateMediatorFactory.java:61)
>>> at
>>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>>> at
>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>>> at
>>> org.apache.synapse.libraries.model.LibraryArtifact$TemplateArtifactFile.build(LibraryArtifact.java:190)
>>> at
>>> org.apache.synapse.libraries.model.LibraryArtifact.loadComponentsInto(LibraryArtifact.java:100)
>>> at
>>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:144)
>>> at
>>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:129)
>>> at
>>> org.apache.synapse.libraries.util.LibDeployerUtils.loadLibArtifacts(LibDeployerUtils.java:340)
>>> at
>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:100)
>>> at
>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:124)
>>> at
>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.updateStatus(MediationLibraryAdminService.java:436)
>>> ... 126 more
>>> Caused by: java.lang.ClassNotFoundException: Class Not found :
>>> com.google.api.client.http.HttpTransport
>>> at
>>> org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:92)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>> at
>>> org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>> ... 145 more
>>>
>>> Thanks,
>>> Maheeka
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thank you
>> Best Regards
>>
>> *Rajjaz HM*
>> Associate Software Engineer
>> WSO2 Inc. 
>> lean | enterprise | middleware
>> Mobile | +94752833834
>> Email   | raj...@wso2.com
>> LinkedIn | Blogger | WSO2 Profile
>> 
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.

Re: [Dev] [APIM]Generating client side sdk for subscribed APIs

2016-02-03 Thread Joseph Fonseka
Hi Randika

Swagger codegen also can be hosted as a service (API) you can find the war
file under "swagger-generator" module. You can ship the war file with APIM
or host a a public service to generate code.

Regards
Jo

On Wed, Feb 3, 2016 at 6:25 PM, Randika Navagamuwa 
wrote:

> Hi all,
>  I'm currently developing a feature for APIM which generates client side
> sdks for subscribed APIs. To generate the client side SDK I'm using swagger
> codegen[1]. To get the required sdk i had to do some minor changes to
> swagger codegen. There are two approaches to use the swagger codegen
>
>1. We can simply build the swagger codegen and use that jar file to
>generate sdks and this is the easiest way.
>2. The other way is we can add swagger codegen maven modules into APIM
>source code and directly call methods.
>
> As you may all know swagger is a developing project and they use their own
> dependencies. If we create a single jar using current swagger codegen
> version there will be no issue. So what would be the best approach?
>
> [1]https://github.com/swagger-api/swagger-codegen
>
> Thanks,
> Randika
> --
> *Randika Navagamuwa*
> *Intern - Software Engineering*
> *Mobile : +94711853466 <%2B94711853466>*
> *Twitter : twitter.com/rnavagamuwa *
> *Facebook : facebook.com/rnavagamuwa *
> *Linkedin : lk.linkedin.com/in/rnavagamuwa
> *
> *Blog : **randikan.wordpress.com* 
>



-- 

-- 
*Joseph Fonseka*
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 772 512 430
skype: jpfonseka

* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Malaka Silva
Shakila can you check this please?

On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:

> No I don't think this is expected behavior but a bug.
>
> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya 
> wrote:
>
>> Hi Rajjaz,
>>
>> Yes it is an issue with dependencies. The issue is when deploying a
>> connector with a car file. Is this the expected behavior to deploy libs
>> manually when the connectors are packaged with a car file?
>>
>> Thanks,
>> Maheeka
>>
>>
>>
>>
>> On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed  wrote:
>>
>>> Hi maheeka,
>>>  its seems to be like class not found exceptions, so add dependency
>>> jars[1] inside the lib folder. or if you can get through build the Google
>>> Contacts connector and get jars from inside *target/connector/dependencies
>>> .*
>>>
>>> [1]
>>> jsr305-1.3.7.jar
>>> jackson-core-2.1.3.jar
>>> guava-13.0.1.jar
>>> google-oauth-client-1.17.0-rc.jar
>>> google-http-client-jackson2-1.17.0-rc.jar
>>> google-http-client-1.17.0-rc.jar
>>> google-api-client-1.17.0-rc.jar
>>> core-1.47.1.jar
>>> commons-email-1.2.jar
>>>
>>> On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya 
>>> wrote:
>>>
 Hi ,

 I am getting an error when enabling Google Contacts connector with ESB
 4.9.0. Following is the stack trace.

 Caused by: java.lang.NoClassDefFoundError:
 com/google/api/client/http/HttpTransport
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
 at java.lang.Class.getConstructor0(Class.java:2842)
 at java.lang.Class.newInstance(Class.java:345)
 at
 org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
 at
 org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
 at
 org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
 at
 org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
 at
 org.apache.synapse.config.xml.TemplateMediatorFactory.createSpecificMediator(TemplateMediatorFactory.java:61)
 at
 org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
 at
 org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
 at
 org.apache.synapse.libraries.model.LibraryArtifact$TemplateArtifactFile.build(LibraryArtifact.java:190)
 at
 org.apache.synapse.libraries.model.LibraryArtifact.loadComponentsInto(LibraryArtifact.java:100)
 at
 org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:144)
 at
 org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:129)
 at
 org.apache.synapse.libraries.util.LibDeployerUtils.loadLibArtifacts(LibDeployerUtils.java:340)
 at
 org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:100)
 at
 org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:124)
 at
 org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.updateStatus(MediationLibraryAdminService.java:436)
 ... 126 more
 Caused by: java.lang.ClassNotFoundException: Class Not found :
 com.google.api.client.http.HttpTransport
 at
 org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:92)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
 at
 org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
 ... 145 more

 Thanks,
 Maheeka


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Thank you
>>> Best Regards
>>>
>>> *Rajjaz HM*
>>> Associate Software Engineer
>>> WSO2 Inc. 
>>> lean | enterprise | middleware
>>> Mobile | +94752833834
>>> Email   | raj...@wso2.com
>>> LinkedIn | Blogger | WSO2 Profile
>>> 
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> 

Re: [Dev] [VOTE] Release WSO2 Message Broker 3.1.0 RC 1

2016-02-03 Thread Ramith Jayasinghe
-1.
 We came up following issues:
https://wso2.org/jira/browse/MB-1625
https://wso2.org/jira/browse/MB-1624
https://wso2.org/jira/browse/MB-1622

they will be fixed in next RC.


On Tue, Feb 2, 2016 at 4:37 AM, Akalanka Pagoda Arachchi
 wrote:
> Hi Devs,
>
> This is the first release candidate of WSO2 Message Broker 3.0.0.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12633
>
> Please download MB 3.1.0 RC1 and test the functionality and vote. Vote will
> be open for 72 hours or as needed.
>
> Source & binary distribution files:
> https://github.com/wso2/product-mb/releases/tag/v3.1.0-RC1
>
> Maven staging repo:
> http://maven.wso2.org/nexus/content/repositories/orgwso2mb-316/
>
> The tag to be voted upon:
> https://github.com/wso2/product-mb/tree/v3.1.0-RC1
>
>
> [+] Stable - go ahead and release
> [-]  Broken - do not release (explain why)
>
> Thanks and Regards,
>
> ~ WSO2 MB Team ~
>
> --
> Darshana Akalanka Pagoda Arachchi,
> Software Engineer
> 078-4721791
>
>
>
> --
> Darshana Akalanka Pagoda Arachchi,
> Software Engineer
> 078-4721791
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Puppet Modules 1.0.0 RC2

2016-02-03 Thread Vishanth Balasubramaniam
[x] Stable - go ahead and release

Verified the following products with clustering

   - WSO2 ES
   - WSO2 BRS

Verified the ReadMe and License.

Regards,
Vishanth

On Wed, Feb 3, 2016 at 9:59 AM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> +1 for the release
>
> Verified following products with clustering:
>
> 1. DSS 3.5.0
> 2. ESB 4.9.0
> 3. AS 5.3.0
>
> Also tested DAS 3.0.0 default profile.
>
> Thanks.
>
> On Wed, Feb 3, 2016 at 9:32 AM, Chamila De Alwis 
> wrote:
>
>> +1 release
>>
>> Verified the Puppet manifests for BRS, MB, and GREG (default profile)
>>
>> Additional changes to templates and hieradata have to be added to cater
>> for the majority of the possible use cases, however this release can be
>> done without those changes. More sophisticated and configurable templates
>> can be added later to each product.
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Mon, Feb 1, 2016 at 12:47 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> Hi,
>>>
>>> AFAIU we can't just use this templates anyway as they are, but might
>>> need to modify to fit to the usecase. These modules do not cover all the
>>> parameters that each of the products have, just have the most basic set.
>>> More importantly this set of puppet modules have standardized the
>>> separation of data from puppet code by using hiera to use as a common set
>>> of puppet modules for all WSO2 use cases. We can improve them as we
>>> move along.
>>>
>>> On Mon, Feb 1, 2016 at 11:46 AM, Ramith Jayasinghe 
>>> wrote:
>>>
 had a chat with IsuruH and agreed to add the ability to configure this
 on next release.

 On Mon, Feb 1, 2016 at 11:25 AM, Ramith Jayasinghe 
 wrote:
 > HI,
 >  in :
 https://github.com/wso2/puppet-modules/blob/v1.0.0-rc2/modules/wso2mb/templates/3.0.0/repository/conf/datasources/master-datasources.xml.erb
 >  I see that,
 >  false is not added to MB
 > data-source (only MB data-source requires that). that would lead to
 > problems. shall we fix that.
 >  regards
 > Ramith
 >
 > On Mon, Feb 1, 2016 at 11:14 AM, Isuru Haththotuwa 
 wrote:
 >> Hi devs,
 >>
 >> This is the second release candidate of WSO2 Puppet Modules 1.0.0.
 Please
 >> download, test and vote.
 >>
 >> [ ] Broken - do not release (explain why)
 >> [ ] Stable - go ahead and release
 >>
 >> The tag to be voted upon:
 >> https://github.com/wso2/puppet-modules/tree/v1.0.0-rc2
 >>
 >> Source and binary distribution files:
 >> https://github.com/wso2/puppet-modules/releases/tag/v1.0.0-rc2
 >>
 >> The vote will be open for 72 hours or as needed.
 >>
 >> --
 >> Thanks,
 >> The WSO2 Private PaaS Team
 >>
 >>
 >>
 >> ___
 >> Dev mailing list
 >> Dev@wso2.org
 >> http://wso2.org/cgi-bin/mailman/listinfo/dev
 >>
 >
 >
 >
 > --
 > Ramith Jayasinghe
 > Technical Lead
 > WSO2 Inc., http://wso2.com
 > lean.enterprise.middleware
 >
 > E: ram...@wso2.com
 > P: +94 777542851



 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851

>>>
>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Vishanth Balasubramaniam*
Committer & PMC Member, Apache Stratos,
Software Engineer, WSO2 Inc.; http://wso2.com

mobile: *+94 77 17 377 18*
about me: *http://about.me/vishanth *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM]Generating client side sdk for subscribed APIs

2016-02-03 Thread Joseph Fonseka
Hi Randika

Yes you would have to host a war with a custom codegen module. To clarify
did you add the customization as a module like in [1]. Is the code public
to have a look.

Regards
Jo

[1]
https://github.com/swagger-api/swagger-codegen#making-your-own-codegen-modules

On Thu, Feb 4, 2016 at 9:43 AM, Randika Navagamuwa 
wrote:

> Hi,
>  I didn't know about that. Current "swagger-generator" uses their
> resources to generate the client sdk. Since we are using a customized
> version of "swagger-codegen", we'll have to use that instead of their
> resources. So if we are hosting swagger codegen as a service we'll have to
> expose "customized swagger-codegen" source code as well right?
>
> Thanks,
> Randika
>
> On Thu, Feb 4, 2016 at 8:55 AM, Joseph Fonseka  wrote:
>
>> Hi Randika
>>
>> Swagger codegen also can be hosted as a service (API) you can find the
>> war file under "swagger-generator" module. You can ship the war file with
>> APIM or host a a public service to generate code.
>>
>> Regards
>> Jo
>>
>> On Wed, Feb 3, 2016 at 6:25 PM, Randika Navagamuwa 
>> wrote:
>>
>>> Hi all,
>>>  I'm currently developing a feature for APIM which generates client side
>>> sdks for subscribed APIs. To generate the client side SDK I'm using swagger
>>> codegen[1]. To get the required sdk i had to do some minor changes to
>>> swagger codegen. There are two approaches to use the swagger codegen
>>>
>>>1. We can simply build the swagger codegen and use that jar file to
>>>generate sdks and this is the easiest way.
>>>2. The other way is we can add swagger codegen maven modules into
>>>APIM source code and directly call methods.
>>>
>>> As you may all know swagger is a developing project and they use their
>>> own dependencies. If we create a single jar using current swagger codegen
>>> version there will be no issue. So what would be the best approach?
>>>
>>> [1]https://github.com/swagger-api/swagger-codegen
>>>
>>> Thanks,
>>> Randika
>>> --
>>> *Randika Navagamuwa*
>>> *Intern - Software Engineering*
>>> *Mobile : +94711853466 <%2B94711853466>*
>>> *Twitter : twitter.com/rnavagamuwa *
>>> *Facebook : facebook.com/rnavagamuwa *
>>> *Linkedin : lk.linkedin.com/in/rnavagamuwa
>>> *
>>> *Blog : **randikan.wordpress.com* 
>>>
>>
>>
>>
>> --
>>
>> --
>> *Joseph Fonseka*
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 772 512 430
>> skype: jpfonseka
>>
>> * *
>>
>>
>
>
> --
> *Randika Navagamuwa*
> *Intern - Software Engineering*
> *Mobile : +94711853466 <%2B94711853466>*
> *Twitter : twitter.com/rnavagamuwa *
> *Facebook : facebook.com/rnavagamuwa *
> *Linkedin : lk.linkedin.com/in/rnavagamuwa
> *
> *Blog : **randikan.wordpress.com* 
>



-- 

-- 
*Joseph Fonseka*
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 772 512 430
skype: jpfonseka

* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Rajjaz Mohammed
Hi malaka/shakila,
in our Doc[1] we didn't mentioned to add the dependencies into lib folder
to deploy the connector. is it the mistake? or we no need to add.


[1]https://docs.wso2.com/display/ESBCONNECTORS/Google+Contacts+Connector

On Thu, Feb 4, 2016 at 10:59 AM, Shakila Sivagnanarajah 
wrote:

> Maheeka,
>
> Create a 'Java Library Project' to add the required java dependencies.
> Then create the 'Composite Application Project', by selecting this JLP with
> other projects.  Do the required steps to export this 'Composite
> Application Project'. Before exporting the car file, please make sure that
> the JLP project’s server role is set as ‘Enterprise Service Bus'.
>
> Thanks Viraj for your help.
>
> On Wed, Feb 3, 2016 at 10:20 PM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi Malaka,
>>
>> I will check and update.
>>
>> Thank you
>>
>> On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva  wrote:
>>
>>> Shakila can you check this please?
>>>
>>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:
>>>
 No I don't think this is expected behavior but a bug.

 On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya 
 wrote:

> Hi Rajjaz,
>
> Yes it is an issue with dependencies. The issue is when deploying a
> connector with a car file. Is this the expected behavior to deploy libs
> manually when the connectors are packaged with a car file?
>
> Thanks,
> Maheeka
>
>
>
>
> On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed 
> wrote:
>
>> Hi maheeka,
>>  its seems to be like class not found exceptions, so add dependency
>> jars[1] inside the lib folder. or if you can get through build the Google
>> Contacts connector and get jars from inside 
>> *target/connector/dependencies
>> .*
>>
>> [1]
>> jsr305-1.3.7.jar
>> jackson-core-2.1.3.jar
>> guava-13.0.1.jar
>> google-oauth-client-1.17.0-rc.jar
>> google-http-client-jackson2-1.17.0-rc.jar
>> google-http-client-1.17.0-rc.jar
>> google-api-client-1.17.0-rc.jar
>> core-1.47.1.jar
>> commons-email-1.2.jar
>>
>> On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya 
>> wrote:
>>
>>> Hi ,
>>>
>>> I am getting an error when enabling Google Contacts connector with
>>> ESB 4.9.0. Following is the stack trace.
>>>
>>> Caused by: java.lang.NoClassDefFoundError:
>>> com/google/api/client/http/HttpTransport
>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>> at
>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
>>> at java.lang.Class.getConstructor0(Class.java:2842)
>>> at java.lang.Class.newInstance(Class.java:345)
>>> at
>>> org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
>>> at
>>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>>> at
>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>>> at
>>> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
>>> at
>>> org.apache.synapse.config.xml.TemplateMediatorFactory.createSpecificMediator(TemplateMediatorFactory.java:61)
>>> at
>>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>>> at
>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>>> at
>>> org.apache.synapse.libraries.model.LibraryArtifact$TemplateArtifactFile.build(LibraryArtifact.java:190)
>>> at
>>> org.apache.synapse.libraries.model.LibraryArtifact.loadComponentsInto(LibraryArtifact.java:100)
>>> at
>>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:144)
>>> at
>>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:129)
>>> at
>>> org.apache.synapse.libraries.util.LibDeployerUtils.loadLibArtifacts(LibDeployerUtils.java:340)
>>> at
>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:100)
>>> at
>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:124)
>>> at
>>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.updateStatus(MediationLibraryAdminService.java:436)
>>> ... 126 more
>>> Caused by: java.lang.ClassNotFoundException: Class Not found :
>>> com.google.api.client.http.HttpTransport
>>> at
>>> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Keerthika Mahendralingam
Hi Shakila,
I think what Viraj mentioned is we can include the required jar file into
connector itself like it is done for GmailRest connector(jar files are
added into lib folder). Then we don't have to add Java Library project
separately.

[1].
 
https://store.wso2.com/store/assets/esbconnector/a3c146b3-59fe-480d-a2e3-75c881d9129c


Thanks,

On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah 
wrote:

> Yes Viraj,
>
> As you said, we need to do an additional step to add libraries (like
> adding 'Connector Exporter Project' to add synapse library). If we have
> 'Connector Exporter Project' only, we can deploy the connectors in to the
> ESB via car files. Likewise, we need to have 'Java Library Project' to add
> third party libraries.
>
> Please correct, if I am wrong.
>
> Thanks
>
> On Thu, Feb 4, 2016 at 12:18 PM, Viraj Rajaguru  wrote:
>
>> Hi Shakila,
>>
>> We can use those steps to deploy required third party jars in the same
>> car file with connector. But isn't it breaking our connector story ? When
>> we need to use a connector in our sequences/proxy service/APIs, we just
>> import/download the connector into Developer Studio and use them in ESB
>> artifacts and deploy artifacts and connectors in the same car file. But in
>> this case we need additional steps to add third party libraries.
>>
>> Shouldn't connector be a self containing one with all the dependencies
>> with it?
>>
>> Thanks,
>> Viraj.
>>
>> On Thu, Feb 4, 2016 at 10:59 AM, Shakila Sivagnanarajah > > wrote:
>>
>>> Maheeka,
>>>
>>> Create a 'Java Library Project' to add the required java dependencies.
>>> Then create the 'Composite Application Project', by selecting this JLP with
>>> other projects.  Do the required steps to export this 'Composite
>>> Application Project'. Before exporting the car file, please make sure that
>>> the JLP project’s server role is set as ‘Enterprise Service Bus'.
>>>
>>> Thanks Viraj for your help.
>>>
>>> On Wed, Feb 3, 2016 at 10:20 PM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Hi Malaka,

 I will check and update.

 Thank you

 On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva  wrote:

> Shakila can you check this please?
>
> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:
>
>> No I don't think this is expected behavior but a bug.
>>
>> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya 
>> wrote:
>>
>>> Hi Rajjaz,
>>>
>>> Yes it is an issue with dependencies. The issue is when deploying a
>>> connector with a car file. Is this the expected behavior to deploy libs
>>> manually when the connectors are packaged with a car file?
>>>
>>> Thanks,
>>> Maheeka
>>>
>>>
>>>
>>>
>>> On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed 
>>> wrote:
>>>
 Hi maheeka,
  its seems to be like class not found exceptions, so add dependency
 jars[1] inside the lib folder. or if you can get through build the 
 Google
 Contacts connector and get jars from inside 
 *target/connector/dependencies
 .*

 [1]
 jsr305-1.3.7.jar
 jackson-core-2.1.3.jar
 guava-13.0.1.jar
 google-oauth-client-1.17.0-rc.jar
 google-http-client-jackson2-1.17.0-rc.jar
 google-http-client-1.17.0-rc.jar
 google-api-client-1.17.0-rc.jar
 core-1.47.1.jar
 commons-email-1.2.jar

 On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya <
 mahe...@wso2.com> wrote:

> Hi ,
>
> I am getting an error when enabling Google Contacts connector with
> ESB 4.9.0. Following is the stack trace.
>
> Caused by: java.lang.NoClassDefFoundError:
> com/google/api/client/http/HttpTransport
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
> at java.lang.Class.getConstructor0(Class.java:2842)
> at java.lang.Class.newInstance(Class.java:345)
> at
> org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
> at
> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
> at
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
> at
> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
> at
> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Malaka Silva
Hi,

Connector should self contain all required dependencies.

On Thu, Feb 4, 2016 at 12:42 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Shakila,
> I think what Viraj mentioned is we can include the required jar file into
> connector itself like it is done for GmailRest connector(jar files are
> added into lib folder). Then we don't have to add Java Library project
> separately.
>
​+1​


>
> [1].
>  
> https://store.wso2.com/store/assets/esbconnector/a3c146b3-59fe-480d-a2e3-75c881d9129c
> 
>
> Thanks,
>
> On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah 
> wrote:
>
>> Yes Viraj,
>>
>> As you said, we need to do an additional step to add libraries (like
>> adding 'Connector Exporter Project' to add synapse library). If we have
>> 'Connector Exporter Project' only, we can deploy the connectors in to the
>> ESB via car files. Likewise, we need to have 'Java Library Project' to add
>> third party libraries.
>>
>> Please correct, if I am wrong.
>>
>> Thanks
>>
>> On Thu, Feb 4, 2016 at 12:18 PM, Viraj Rajaguru  wrote:
>>
>>> Hi Shakila,
>>>
>>> We can use those steps to deploy required third party jars in the same
>>> car file with connector. But isn't it breaking our connector story ? When
>>> we need to use a connector in our sequences/proxy service/APIs, we just
>>> import/download the connector into Developer Studio and use them in ESB
>>> artifacts and deploy artifacts and connectors in the same car file. But in
>>> this case we need additional steps to add third party libraries.
>>>
>>> Shouldn't connector be a self containing one with all the dependencies
>>> with it?
>>>
>>> Thanks,
>>> Viraj.
>>>
>>> On Thu, Feb 4, 2016 at 10:59 AM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Maheeka,

 Create a 'Java Library Project' to add the required java dependencies.
 Then create the 'Composite Application Project', by selecting this JLP with
 other projects.  Do the required steps to export this 'Composite
 Application Project'. Before exporting the car file, please make sure that
 the JLP project’s server role is set as ‘Enterprise Service Bus'.

 Thanks Viraj for your help.

 On Wed, Feb 3, 2016 at 10:20 PM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi Malaka,
>
> I will check and update.
>
> Thank you
>
> On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva  wrote:
>
>> Shakila can you check this please?
>>
>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:
>>
>>> No I don't think this is expected behavior but a bug.
>>>
>>> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya >> > wrote:
>>>
 Hi Rajjaz,

 Yes it is an issue with dependencies. The issue is when deploying a
 connector with a car file. Is this the expected behavior to deploy libs
 manually when the connectors are packaged with a car file?

 Thanks,
 Maheeka




 On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed 
 wrote:

> Hi maheeka,
>  its seems to be like class not found exceptions, so add
> dependency jars[1] inside the lib folder. or if you can get through 
> build
> the Google Contacts connector and get jars from inside 
> *target/connector/dependencies
> .*
>
> [1]
> jsr305-1.3.7.jar
> jackson-core-2.1.3.jar
> guava-13.0.1.jar
> google-oauth-client-1.17.0-rc.jar
> google-http-client-jackson2-1.17.0-rc.jar
> google-http-client-1.17.0-rc.jar
> google-api-client-1.17.0-rc.jar
> core-1.47.1.jar
> commons-email-1.2.jar
>
> On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya <
> mahe...@wso2.com> wrote:
>
>> Hi ,
>>
>> I am getting an error when enabling Google Contacts connector
>> with ESB 4.9.0. Following is the stack trace.
>>
>> Caused by: java.lang.NoClassDefFoundError:
>> com/google/api/client/http/HttpTransport
>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>> at
>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
>> at java.lang.Class.getConstructor0(Class.java:2842)
>> at java.lang.Class.newInstance(Class.java:345)
>> at
>> org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
>> at
>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>> at
>> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Shakila Sivagnanarajah
+1, we need to improve this connector.

On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva  wrote:

> Hi,
>
> Connector should self contain all required dependencies.
>
> On Thu, Feb 4, 2016 at 12:42 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Shakila,
>> I think what Viraj mentioned is we can include the required jar file into
>> connector itself like it is done for GmailRest connector(jar files are
>> added into lib folder). Then we don't have to add Java Library project
>> separately.
>>
> ​+1​
>
>
>>
>> [1].
>>  
>> https://store.wso2.com/store/assets/esbconnector/a3c146b3-59fe-480d-a2e3-75c881d9129c
>> 
>>
>> Thanks,
>>
>> On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah > > wrote:
>>
>>> Yes Viraj,
>>>
>>> As you said, we need to do an additional step to add libraries (like
>>> adding 'Connector Exporter Project' to add synapse library). If we have
>>> 'Connector Exporter Project' only, we can deploy the connectors in to the
>>> ESB via car files. Likewise, we need to have 'Java Library Project' to add
>>> third party libraries.
>>>
>>> Please correct, if I am wrong.
>>>
>>> Thanks
>>>
>>> On Thu, Feb 4, 2016 at 12:18 PM, Viraj Rajaguru  wrote:
>>>
 Hi Shakila,

 We can use those steps to deploy required third party jars in the same
 car file with connector. But isn't it breaking our connector story ? When
 we need to use a connector in our sequences/proxy service/APIs, we just
 import/download the connector into Developer Studio and use them in ESB
 artifacts and deploy artifacts and connectors in the same car file. But in
 this case we need additional steps to add third party libraries.

 Shouldn't connector be a self containing one with all the dependencies
 with it?

 Thanks,
 Viraj.

 On Thu, Feb 4, 2016 at 10:59 AM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Maheeka,
>
> Create a 'Java Library Project' to add the required java dependencies.
> Then create the 'Composite Application Project', by selecting this JLP 
> with
> other projects.  Do the required steps to export this 'Composite
> Application Project'. Before exporting the car file, please make sure that
> the JLP project’s server role is set as ‘Enterprise Service Bus'.
>
> Thanks Viraj for your help.
>
> On Wed, Feb 3, 2016 at 10:20 PM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi Malaka,
>>
>> I will check and update.
>>
>> Thank you
>>
>> On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva 
>> wrote:
>>
>>> Shakila can you check this please?
>>>
>>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva 
>>> wrote:
>>>
 No I don't think this is expected behavior but a bug.

 On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <
 mahe...@wso2.com> wrote:

> Hi Rajjaz,
>
> Yes it is an issue with dependencies. The issue is when deploying
> a connector with a car file. Is this the expected behavior to deploy 
> libs
> manually when the connectors are packaged with a car file?
>
> Thanks,
> Maheeka
>
>
>
>
> On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed 
> wrote:
>
>> Hi maheeka,
>>  its seems to be like class not found exceptions, so add
>> dependency jars[1] inside the lib folder. or if you can get through 
>> build
>> the Google Contacts connector and get jars from inside 
>> *target/connector/dependencies
>> .*
>>
>> [1]
>> jsr305-1.3.7.jar
>> jackson-core-2.1.3.jar
>> guava-13.0.1.jar
>> google-oauth-client-1.17.0-rc.jar
>> google-http-client-jackson2-1.17.0-rc.jar
>> google-http-client-1.17.0-rc.jar
>> google-api-client-1.17.0-rc.jar
>> core-1.47.1.jar
>> commons-email-1.2.jar
>>
>> On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya <
>> mahe...@wso2.com> wrote:
>>
>>> Hi ,
>>>
>>> I am getting an error when enabling Google Contacts connector
>>> with ESB 4.9.0. Following is the stack trace.
>>>
>>> Caused by: java.lang.NoClassDefFoundError:
>>> com/google/api/client/http/HttpTransport
>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>> at
>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
>>> at java.lang.Class.getConstructor0(Class.java:2842)
>>> at java.lang.Class.newInstance(Class.java:345)
>>> at
>>> 

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Malaka Silva
I guess Kalyani is currently doing it?

On Thu, Feb 4, 2016 at 12:53 PM, Shakila Sivagnanarajah 
wrote:

> +1, we need to improve this connector.
>
> On Thu, Feb 4, 2016 at 12:50 PM, Malaka Silva  wrote:
>
>> Hi,
>>
>> Connector should self contain all required dependencies.
>>
>> On Thu, Feb 4, 2016 at 12:42 PM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi Shakila,
>>> I think what Viraj mentioned is we can include the required jar file
>>> into connector itself like it is done for GmailRest connector(jar files are
>>> added into lib folder). Then we don't have to add Java Library project
>>> separately.
>>>
>> ​+1​
>>
>>
>>>
>>> [1].
>>>  
>>> https://store.wso2.com/store/assets/esbconnector/a3c146b3-59fe-480d-a2e3-75c881d9129c
>>> 
>>>
>>> Thanks,
>>>
>>> On Thu, Feb 4, 2016 at 12:36 PM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Yes Viraj,

 As you said, we need to do an additional step to add libraries (like
 adding 'Connector Exporter Project' to add synapse library). If we have
 'Connector Exporter Project' only, we can deploy the connectors in to the
 ESB via car files. Likewise, we need to have 'Java Library Project' to add
 third party libraries.

 Please correct, if I am wrong.

 Thanks

 On Thu, Feb 4, 2016 at 12:18 PM, Viraj Rajaguru  wrote:

> Hi Shakila,
>
> We can use those steps to deploy required third party jars in the same
> car file with connector. But isn't it breaking our connector story ? When
> we need to use a connector in our sequences/proxy service/APIs, we just
> import/download the connector into Developer Studio and use them in ESB
> artifacts and deploy artifacts and connectors in the same car file. But in
> this case we need additional steps to add third party libraries.
>
> Shouldn't connector be a self containing one with all the dependencies
> with it?
>
> Thanks,
> Viraj.
>
> On Thu, Feb 4, 2016 at 10:59 AM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Maheeka,
>>
>> Create a 'Java Library Project' to add the required java
>> dependencies. Then create the 'Composite Application Project', by 
>> selecting
>> this JLP with other projects.  Do the required steps to export this
>> 'Composite Application Project'. Before exporting the car file, please 
>> make
>> sure that the JLP project’s server role is set as ‘Enterprise Service 
>> Bus'.
>>
>> Thanks Viraj for your help.
>>
>> On Wed, Feb 3, 2016 at 10:20 PM, Shakila Sivagnanarajah <
>> shak...@wso2.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> I will check and update.
>>>
>>> Thank you
>>>
>>> On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva 
>>> wrote:
>>>
 Shakila can you check this please?

 On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva 
 wrote:

> No I don't think this is expected behavior but a bug.
>
> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya <
> mahe...@wso2.com> wrote:
>
>> Hi Rajjaz,
>>
>> Yes it is an issue with dependencies. The issue is when deploying
>> a connector with a car file. Is this the expected behavior to deploy 
>> libs
>> manually when the connectors are packaged with a car file?
>>
>> Thanks,
>> Maheeka
>>
>>
>>
>>
>> On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed 
>> wrote:
>>
>>> Hi maheeka,
>>>  its seems to be like class not found exceptions, so add
>>> dependency jars[1] inside the lib folder. or if you can get through 
>>> build
>>> the Google Contacts connector and get jars from inside 
>>> *target/connector/dependencies
>>> .*
>>>
>>> [1]
>>> jsr305-1.3.7.jar
>>> jackson-core-2.1.3.jar
>>> guava-13.0.1.jar
>>> google-oauth-client-1.17.0-rc.jar
>>> google-http-client-jackson2-1.17.0-rc.jar
>>> google-http-client-1.17.0-rc.jar
>>> google-api-client-1.17.0-rc.jar
>>> core-1.47.1.jar
>>> commons-email-1.2.jar
>>>
>>> On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya <
>>> mahe...@wso2.com> wrote:
>>>
 Hi ,

 I am getting an error when enabling Google Contacts connector
 with ESB 4.9.0. Following is the stack trace.

 Caused by: java.lang.NoClassDefFoundError:
 com/google/api/client/http/HttpTransport
 at java.lang.Class.getDeclaredConstructors0(Native 

Re: [Dev] [APIM]Generating client side sdk for subscribed APIs

2016-02-03 Thread Randika Navagamuwa
Hi,
 I didn't know about that. Current "swagger-generator" uses their resources
to generate the client sdk. Since we are using a customized version of
"swagger-codegen", we'll have to use that instead of their resources. So if
we are hosting swagger codegen as a service we'll have to expose
"customized swagger-codegen" source code as well right?

Thanks,
Randika

On Thu, Feb 4, 2016 at 8:55 AM, Joseph Fonseka  wrote:

> Hi Randika
>
> Swagger codegen also can be hosted as a service (API) you can find the war
> file under "swagger-generator" module. You can ship the war file with APIM
> or host a a public service to generate code.
>
> Regards
> Jo
>
> On Wed, Feb 3, 2016 at 6:25 PM, Randika Navagamuwa 
> wrote:
>
>> Hi all,
>>  I'm currently developing a feature for APIM which generates client side
>> sdks for subscribed APIs. To generate the client side SDK I'm using swagger
>> codegen[1]. To get the required sdk i had to do some minor changes to
>> swagger codegen. There are two approaches to use the swagger codegen
>>
>>1. We can simply build the swagger codegen and use that jar file to
>>generate sdks and this is the easiest way.
>>2. The other way is we can add swagger codegen maven modules into
>>APIM source code and directly call methods.
>>
>> As you may all know swagger is a developing project and they use their
>> own dependencies. If we create a single jar using current swagger codegen
>> version there will be no issue. So what would be the best approach?
>>
>> [1]https://github.com/swagger-api/swagger-codegen
>>
>> Thanks,
>> Randika
>> --
>> *Randika Navagamuwa*
>> *Intern - Software Engineering*
>> *Mobile : +94711853466 <%2B94711853466>*
>> *Twitter : twitter.com/rnavagamuwa *
>> *Facebook : facebook.com/rnavagamuwa *
>> *Linkedin : lk.linkedin.com/in/rnavagamuwa
>> *
>> *Blog : **randikan.wordpress.com* 
>>
>
>
>
> --
>
> --
> *Joseph Fonseka*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 772 512 430
> skype: jpfonseka
>
> * *
>
>


-- 
*Randika Navagamuwa*
*Intern - Software Engineering*
*Mobile : +94711853466*
*Twitter : twitter.com/rnavagamuwa *
*Facebook : facebook.com/rnavagamuwa *
*Linkedin : lk.linkedin.com/in/rnavagamuwa
*
*Blog : **randikan.wordpress.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Shakila Sivagnanarajah
Maheeka,

Create a 'Java Library Project' to add the required java dependencies. Then
create the 'Composite Application Project', by selecting this JLP with
other projects.  Do the required steps to export this 'Composite
Application Project'. Before exporting the car file, please make sure that
the JLP project’s server role is set as ‘Enterprise Service Bus'.

Thanks Viraj for your help.

On Wed, Feb 3, 2016 at 10:20 PM, Shakila Sivagnanarajah 
wrote:

> Hi Malaka,
>
> I will check and update.
>
> Thank you
>
> On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva  wrote:
>
>> Shakila can you check this please?
>>
>> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:
>>
>>> No I don't think this is expected behavior but a bug.
>>>
>>> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya 
>>> wrote:
>>>
 Hi Rajjaz,

 Yes it is an issue with dependencies. The issue is when deploying a
 connector with a car file. Is this the expected behavior to deploy libs
 manually when the connectors are packaged with a car file?

 Thanks,
 Maheeka




 On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed 
 wrote:

> Hi maheeka,
>  its seems to be like class not found exceptions, so add dependency
> jars[1] inside the lib folder. or if you can get through build the Google
> Contacts connector and get jars from inside *target/connector/dependencies
> .*
>
> [1]
> jsr305-1.3.7.jar
> jackson-core-2.1.3.jar
> guava-13.0.1.jar
> google-oauth-client-1.17.0-rc.jar
> google-http-client-jackson2-1.17.0-rc.jar
> google-http-client-1.17.0-rc.jar
> google-api-client-1.17.0-rc.jar
> core-1.47.1.jar
> commons-email-1.2.jar
>
> On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya 
> wrote:
>
>> Hi ,
>>
>> I am getting an error when enabling Google Contacts connector with
>> ESB 4.9.0. Following is the stack trace.
>>
>> Caused by: java.lang.NoClassDefFoundError:
>> com/google/api/client/http/HttpTransport
>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
>> at java.lang.Class.getConstructor0(Class.java:2842)
>> at java.lang.Class.newInstance(Class.java:345)
>> at
>> org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
>> at
>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>> at
>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>> at
>> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
>> at
>> org.apache.synapse.config.xml.TemplateMediatorFactory.createSpecificMediator(TemplateMediatorFactory.java:61)
>> at
>> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
>> at
>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
>> at
>> org.apache.synapse.libraries.model.LibraryArtifact$TemplateArtifactFile.build(LibraryArtifact.java:190)
>> at
>> org.apache.synapse.libraries.model.LibraryArtifact.loadComponentsInto(LibraryArtifact.java:100)
>> at
>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:144)
>> at
>> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:129)
>> at
>> org.apache.synapse.libraries.util.LibDeployerUtils.loadLibArtifacts(LibDeployerUtils.java:340)
>> at
>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:100)
>> at
>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:124)
>> at
>> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.updateStatus(MediationLibraryAdminService.java:436)
>> ... 126 more
>> Caused by: java.lang.ClassNotFoundException: Class Not found :
>> com.google.api.client.http.HttpTransport
>> at
>> org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:92)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>> at
>> org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>> ... 145 more
>>
>> Thanks,
>> Maheeka
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> 

[Dev] [APIM]Generating client side sdk for subscribed APIs

2016-02-03 Thread Randika Navagamuwa
Hi all,
 I'm currently developing a feature for APIM which generates client side
sdks for subscribed APIs. To generate the client side SDK I'm using swagger
codegen[1]. To get the required sdk i had to do some minor changes to
swagger codegen. There are two approaches to use the swagger codegen

   1. We can simply build the swagger codegen and use that jar file to
   generate sdks and this is the easiest way.
   2. The other way is we can add swagger codegen maven modules into APIM
   source code and directly call methods.

As you may all know swagger is a developing project and they use their own
dependencies. If we create a single jar using current swagger codegen
version there will be no issue. So what would be the best approach?

[1]https://github.com/swagger-api/swagger-codegen

Thanks,
Randika
-- 
*Randika Navagamuwa*
*Intern - Software Engineering*
*Mobile : +94711853466*
*Twitter : twitter.com/rnavagamuwa *
*Facebook : facebook.com/rnavagamuwa *
*Linkedin : lk.linkedin.com/in/rnavagamuwa
*
*Blog : **randikan.wordpress.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Rajjaz Mohammed
Hi maheeka,
 its seems to be like class not found exceptions, so add dependency jars[1]
inside the lib folder. or if you can get through build the Google Contacts
connector and get jars from inside *target/connector/dependencies .*

[1]
jsr305-1.3.7.jar
jackson-core-2.1.3.jar
guava-13.0.1.jar
google-oauth-client-1.17.0-rc.jar
google-http-client-jackson2-1.17.0-rc.jar
google-http-client-1.17.0-rc.jar
google-api-client-1.17.0-rc.jar
core-1.47.1.jar
commons-email-1.2.jar

On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya  wrote:

> Hi ,
>
> I am getting an error when enabling Google Contacts connector with ESB
> 4.9.0. Following is the stack trace.
>
> Caused by: java.lang.NoClassDefFoundError:
> com/google/api/client/http/HttpTransport
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
> at java.lang.Class.getConstructor0(Class.java:2842)
> at java.lang.Class.newInstance(Class.java:345)
> at
> org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
> at
> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
> at
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
> at
> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
> at
> org.apache.synapse.config.xml.TemplateMediatorFactory.createSpecificMediator(TemplateMediatorFactory.java:61)
> at
> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
> at
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
> at
> org.apache.synapse.libraries.model.LibraryArtifact$TemplateArtifactFile.build(LibraryArtifact.java:190)
> at
> org.apache.synapse.libraries.model.LibraryArtifact.loadComponentsInto(LibraryArtifact.java:100)
> at
> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:144)
> at
> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:129)
> at
> org.apache.synapse.libraries.util.LibDeployerUtils.loadLibArtifacts(LibDeployerUtils.java:340)
> at
> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:100)
> at
> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:124)
> at
> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.updateStatus(MediationLibraryAdminService.java:436)
> ... 126 more
> Caused by: java.lang.ClassNotFoundException: Class Not found :
> com.google.api.client.http.HttpTransport
> at
> org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:92)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> at
> org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> ... 145 more
>
> Thanks,
> Maheeka
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834
Email   | raj...@wso2.com
LinkedIn | Blogger | WSO2 Profile

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Grainier Perera

2016-02-03 Thread Sajith Ravindra
Congratulations Grainer.

Thanks
*,Sajith Ravindra*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273550
blog: http://sajithr.blogspot.com/


On Wed, Feb 3, 2016 at 4:17 AM, Sriskandarajah Suhothayan 
wrote:

> Hi All,
>
> It's my pleasure to announce Grainier Perera as a WSO2 Committer. Grainier
>  has been a valuable contributor for WSO2 CEP & Metrics Components and
> did a commendable worked on Virtual Hackathon & Forrester Demo, and in
> recognition of his contribution to WSO2, he has been voted as a WSO2
> Committer.
>
> Grainier, congratulations and keep up the good work!
>
> Thanks & Regards.
> Suho
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Test-Automation] Error After Updating Selenium version

2016-02-03 Thread Chamila Wijayarathna
Hi all,

Currently in product-is, we are using carbon-platform-integration version
4.4.2 and selenium 2.40.0. I tried upgrading selenium version to 2.50.1
which is the latest version, but when I do that I am getting following
error.

java.lang.NoSuchFieldError: INSTANCE
at
org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:52)
at
org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:56)
at
org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:46)
at
org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:72)
at
org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:84)
at
org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:59)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager$InternalConnectionFactory.(PoolingHttpClientConnectionManager.java:487)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:147)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:136)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:112)
at
org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:74)
at
org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:57)
at
org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:60)
at
org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251)
at
org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.(ApacheHttpClient.java:228)
at
org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:96)
at
org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:70)
at
org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:58)
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:97)
at
org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at
org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:119)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120)
at
org.wso2.carbon.automation.extensions.selenium.BrowserManager.getDriver(BrowserManager.java:86)
at
org.wso2.carbon.automation.extensions.selenium.BrowserManager.getWebDriver(BrowserManager.java:62)
at
org.wso2.identity.ui.integration.test.login.ISLoginTestCase.setUp(ISLoginTestCase.java:37)

Following is the dependency tree created from mvn dependency:tree to the
integration tests module.

+- commons-codec.wso2:commons-codec:jar:1.4.0.wso2v1:compile
[INFO] |  \- commons-codec:commons-codec:jar:1.4:compile
[INFO] +- emma:emma:jar:2.1.5320:compile
[INFO] +- org.wso2.carbon:SecVerifier:aar:4.4.3:compile
[INFO] |  \- org.wso2.carbon:org.wso2.carbon.core:jar:4.4.3:compile
[INFO] | +-
org.wso2.orbit.com.hazelcast:hazelcast:jar:3.5.2.wso2v1:compile
[INFO] | |  \- com.hazelcast:hazelcast-all:jar:3.5.2:compile
[INFO] | +-
org.eclipse.osgi:org.eclipse.osgi:jar:3.9.1.v20130814-1242:compile
[INFO] | +-
org.eclipse.osgi:org.eclipse.osgi.services:jar:3.3.100.v20130513-1956:compile
[INFO] | +-
org.eclipse.equinox:org.eclipse.equinox.http.helper:jar:1.0.0:compile
[INFO] | +-
org.bouncycastle.wso2:bcprov-jdk15on:jar:1.49.0.wso2v2:compile
[INFO] | |  \- org.bouncycastle:bcprov-jdk15on:jar:1.49:compile
[INFO] | +-
org.wso2.carbon:org.wso2.carbon.registry.core:jar:4.4.3:compile
[INFO] | |  +- commons-io.wso2:commons-io:jar:2.0.0.wso2v2:compile
[INFO] | |  +- net.sourceforge.findbugs:annotations:jar:1.3.2:compile
[INFO] | |  +-
org.wso2.carbon:org.wso2.carbon.registry.xboot:jar:4.4.3:compile
[INFO] | |  +- org.compass-project.wso2:compass:jar:2.0.1.wso2v2:compile
[INFO] | |  +- org.apache.abdera.wso2:abdera:jar:1.0.0.wso2v3:compile
[INFO] | |  +-
org.apache.poi.wso2:poi-scratchpad:jar:3.9.0.wso2v1:compile
[INFO] | |  |  \- org.apache.poi:poi-scratchpad:jar:3.9:compile
[INFO] | |  | \- org.apache.poi:poi:jar:3.9:compile
[INFO] | |  \- commons-pool.wso2:commons-pool:jar:1.5.6.wso2v1:compile
[INFO] | +-
org.wso2.orbit.org.apache.neethi:neethi:jar:2.0.4.wso2v5:compile
[INFO] | +-
org.apache.httpcomponents.wso2:httpcore:jar:4.3.3.wso2v1:compile
[INFO] | \- wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4:compile
[INFO] +- org.wso2.is:
org.wso2.identity.integration.common.clients:jar:5.2.0-SNAPSHOT:compile
[INFO] |  +-

Re: [Dev] [ESB Connector] Error when enabling Google Contacts Connector

2016-02-03 Thread Shakila Sivagnanarajah
Hi Malaka,

I will check and update.

Thank you

On Wed, Feb 3, 2016 at 10:05 PM, Malaka Silva  wrote:

> Shakila can you check this please?
>
> On Wed, Feb 3, 2016 at 8:47 PM, Malaka Silva  wrote:
>
>> No I don't think this is expected behavior but a bug.
>>
>> On Wed, Feb 3, 2016 at 8:01 PM, Maheeka Jayasuriya 
>> wrote:
>>
>>> Hi Rajjaz,
>>>
>>> Yes it is an issue with dependencies. The issue is when deploying a
>>> connector with a car file. Is this the expected behavior to deploy libs
>>> manually when the connectors are packaged with a car file?
>>>
>>> Thanks,
>>> Maheeka
>>>
>>>
>>>
>>>
>>> On Wed, Feb 3, 2016 at 7:06 PM, Rajjaz Mohammed  wrote:
>>>
 Hi maheeka,
  its seems to be like class not found exceptions, so add dependency
 jars[1] inside the lib folder. or if you can get through build the Google
 Contacts connector and get jars from inside *target/connector/dependencies
 .*

 [1]
 jsr305-1.3.7.jar
 jackson-core-2.1.3.jar
 guava-13.0.1.jar
 google-oauth-client-1.17.0-rc.jar
 google-http-client-jackson2-1.17.0-rc.jar
 google-http-client-1.17.0-rc.jar
 google-api-client-1.17.0-rc.jar
 core-1.47.1.jar
 commons-email-1.2.jar

 On Wed, Feb 3, 2016 at 6:02 PM, Maheeka Jayasuriya 
 wrote:

> Hi ,
>
> I am getting an error when enabling Google Contacts connector with ESB
> 4.9.0. Following is the stack trace.
>
> Caused by: java.lang.NoClassDefFoundError:
> com/google/api/client/http/HttpTransport
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
> at java.lang.Class.getConstructor0(Class.java:2842)
> at java.lang.Class.newInstance(Class.java:345)
> at
> org.apache.synapse.config.xml.ClassMediatorFactory.createSpecificMediator(ClassMediatorFactory.java:112)
> at
> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
> at
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
> at
> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:46)
> at
> org.apache.synapse.config.xml.TemplateMediatorFactory.createSpecificMediator(TemplateMediatorFactory.java:61)
> at
> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:94)
> at
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:224)
> at
> org.apache.synapse.libraries.model.LibraryArtifact$TemplateArtifactFile.build(LibraryArtifact.java:190)
> at
> org.apache.synapse.libraries.model.LibraryArtifact.loadComponentsInto(LibraryArtifact.java:100)
> at
> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:144)
> at
> org.apache.synapse.libraries.model.SynapseLibrary.loadLibrary(SynapseLibrary.java:129)
> at
> org.apache.synapse.libraries.util.LibDeployerUtils.loadLibArtifacts(LibDeployerUtils.java:340)
> at
> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:100)
> at
> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.addImport(MediationLibraryAdminService.java:124)
> at
> org.wso2.carbon.mediation.library.service.MediationLibraryAdminService.updateStatus(MediationLibraryAdminService.java:436)
> ... 126 more
> Caused by: java.lang.ClassNotFoundException: Class Not found :
> com.google.api.client.http.HttpTransport
> at
> org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:92)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> at
> org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> ... 145 more
>
> Thanks,
> Maheeka
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thank you
 Best Regards

 *Rajjaz HM*
 Associate Software Engineer
 WSO2 Inc. 
 lean | enterprise | middleware
 Mobile | +94752833834
 Email   | raj...@wso2.com
 LinkedIn | Blogger | WSO2 Profile
 

>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech 

Re: [Dev] [Test-Automation] Error After Updating Selenium version

2016-02-03 Thread Nuwan Wimalasekara
Hi Chamila,

Seems this is a dependency issue with httpcore version. Can you please try
to update the httpcore version to latest and exclude all httpcore
transitive dependencies.

Thanks,
Nuwanw

On Wed, Feb 3, 2016 at 9:51 PM, Chamila Wijayarathna 
wrote:

> Hi all,
>
> Currently in product-is, we are using carbon-platform-integration version
> 4.4.2 and selenium 2.40.0. I tried upgrading selenium version to 2.50.1
> which is the latest version, but when I do that I am getting following
> error.
>
> java.lang.NoSuchFieldError: INSTANCE
> at
> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:52)
> at
> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:56)
> at
> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:46)
> at
> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:72)
> at
> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:84)
> at
> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:59)
> at
> org.apache.http.impl.conn.PoolingHttpClientConnectionManager$InternalConnectionFactory.(PoolingHttpClientConnectionManager.java:487)
> at
> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:147)
> at
> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:136)
> at
> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:112)
> at
> org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:74)
> at
> org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:57)
> at
> org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:60)
> at
> org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251)
> at
> org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.(ApacheHttpClient.java:228)
> at
> org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:96)
> at
> org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:70)
> at
> org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:58)
> at
> org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:97)
> at
> org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
> at
> org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:119)
> at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216)
> at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211)
> at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:207)
> at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120)
> at
> org.wso2.carbon.automation.extensions.selenium.BrowserManager.getDriver(BrowserManager.java:86)
> at
> org.wso2.carbon.automation.extensions.selenium.BrowserManager.getWebDriver(BrowserManager.java:62)
> at
> org.wso2.identity.ui.integration.test.login.ISLoginTestCase.setUp(ISLoginTestCase.java:37)
>
> Following is the dependency tree created from mvn dependency:tree to the
> integration tests module.
>
> +- commons-codec.wso2:commons-codec:jar:1.4.0.wso2v1:compile
> [INFO] |  \- commons-codec:commons-codec:jar:1.4:compile
> [INFO] +- emma:emma:jar:2.1.5320:compile
> [INFO] +- org.wso2.carbon:SecVerifier:aar:4.4.3:compile
> [INFO] |  \- org.wso2.carbon:org.wso2.carbon.core:jar:4.4.3:compile
> [INFO] | +-
> org.wso2.orbit.com.hazelcast:hazelcast:jar:3.5.2.wso2v1:compile
> [INFO] | |  \- com.hazelcast:hazelcast-all:jar:3.5.2:compile
> [INFO] | +-
> org.eclipse.osgi:org.eclipse.osgi:jar:3.9.1.v20130814-1242:compile
> [INFO] | +-
> org.eclipse.osgi:org.eclipse.osgi.services:jar:3.3.100.v20130513-1956:compile
> [INFO] | +-
> org.eclipse.equinox:org.eclipse.equinox.http.helper:jar:1.0.0:compile
> [INFO] | +-
> org.bouncycastle.wso2:bcprov-jdk15on:jar:1.49.0.wso2v2:compile
> [INFO] | |  \- org.bouncycastle:bcprov-jdk15on:jar:1.49:compile
> [INFO] | +-
> org.wso2.carbon:org.wso2.carbon.registry.core:jar:4.4.3:compile
> [INFO] | |  +- commons-io.wso2:commons-io:jar:2.0.0.wso2v2:compile
> [INFO] | |  +- net.sourceforge.findbugs:annotations:jar:1.3.2:compile
> [INFO] | |  +-
> org.wso2.carbon:org.wso2.carbon.registry.xboot:jar:4.4.3:compile
> [INFO] | |  +-
> org.compass-project.wso2:compass:jar:2.0.1.wso2v2:compile
> [INFO] | |  +- org.apache.abdera.wso2:abdera:jar:1.0.0.wso2v3:compile
> [INFO] | |  +-
> org.apache.poi.wso2:poi-scratchpad:jar:3.9.0.wso2v1:compile
> [INFO] | |  |  \- org.apache.poi:poi-scratchpad:jar:3.9:compile
> [INFO] | |  | \- 

Re: [Dev] [VOTE] Release WSO2 Message Broker 3.1.0 RC 1

2016-02-03 Thread Akalanka Pagoda Arachchi
Hi All,

We're cancelling this vote due to above mentioned issues.

Thanks,
Akalanka.

On Wed, Feb 3, 2016 at 10:13 PM, Ramith Jayasinghe  wrote:

> -1.
>  We came up following issues:
> https://wso2.org/jira/browse/MB-1625
> https://wso2.org/jira/browse/MB-1624
> https://wso2.org/jira/browse/MB-1622
>
> they will be fixed in next RC.
>
>
> On Tue, Feb 2, 2016 at 4:37 AM, Akalanka Pagoda Arachchi
>  wrote:
> > Hi Devs,
> >
> > This is the first release candidate of WSO2 Message Broker 3.0.0.
> >
> > This release fixes the following issues:
> > https://wso2.org/jira/issues/?filter=12633
> >
> > Please download MB 3.1.0 RC1 and test the functionality and vote. Vote
> will
> > be open for 72 hours or as needed.
> >
> > Source & binary distribution files:
> > https://github.com/wso2/product-mb/releases/tag/v3.1.0-RC1
> >
> > Maven staging repo:
> > http://maven.wso2.org/nexus/content/repositories/orgwso2mb-316/
> >
> > The tag to be voted upon:
> > https://github.com/wso2/product-mb/tree/v3.1.0-RC1
> >
> >
> > [+] Stable - go ahead and release
> > [-]  Broken - do not release (explain why)
> >
> > Thanks and Regards,
> >
> > ~ WSO2 MB Team ~
> >
> > --
> > Darshana Akalanka Pagoda Arachchi,
> > Software Engineer
> > 078-4721791
> >
> >
> >
> > --
> > Darshana Akalanka Pagoda Arachchi,
> > Software Engineer
> > 078-4721791
> >
> > ___
> > Dev mailing list
> > Dev@wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 777542851
>



-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev