[Dev] Green Mail server : Email notifications based integration test

2015-04-20 Thread Himasha Guruge
Hi All,

I'm in the process of writing an integration test which will test the email
notification feature implementation of BPS. Therefore I have set up the
GreenMail server with a user registered, to receive the emails, but the
email count is always 0.

When looking into methods provided by GreenMailUtil, it is noticed that to
send an email ,GreenMailUtil.sendTextEmail() method is used. For this
scenario, the email sending process will occur within the implementation.
Therefore is it possible for the mail messages to be sent through feature
implementation (without using above method) and just to receive the sent
emails through GreenMail ? Following are the steps I have followed so far.

1. Start GreenMail server
2. Set a new user to created server
3. Add axis2-client mailto configuration (same port as GreenMail server)
4. Use  method server.getReceivedMessages() to retrieve the emails.

If this approach is not valid, any other suggestions on this will be
appreciated.

Thanks & Regards,

Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Green Mail server : Email notifications based integration test

2015-04-20 Thread Waruna Perera
Hi Himasha,

You can not achieve the functionality that you are looking for with
GreanMail utility. If you want to receive mails you have to send mail
first. Will further look through API if there is any possibility to provide
what you have requested.

Thanks,

On Mon, Apr 20, 2015 at 1:04 PM, Himasha Guruge  wrote:

> Hi All,
>
> I'm in the process of writing an integration test which will test the
> email notification feature implementation of BPS. Therefore I have set up
> the GreenMail server with a user registered, to receive the emails, but the
> email count is always 0.
>
> When looking into methods provided by GreenMailUtil, it is noticed that to
> send an email ,GreenMailUtil.sendTextEmail() method is used. For this
> scenario, the email sending process will occur within the implementation.
> Therefore is it possible for the mail messages to be sent through feature
> implementation (without using above method) and just to receive the sent
> emails through GreenMail ? Following are the steps I have followed so far.
>
> 1. Start GreenMail server
> 2. Set a new user to created server
> 3. Add axis2-client mailto configuration (same port as GreenMail server)
> 4. Use  method server.getReceivedMessages() to retrieve the emails.
>
> If this approach is not valid, any other suggestions on this will be
> appreciated.
>
> Thanks & Regards,
>
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Green Mail server : Email notifications based integration test

2015-04-20 Thread Himasha Guruge
[Looping Nandika]

On Mon, Apr 20, 2015 at 1:15 PM, Waruna Perera  wrote:

> Hi Himasha,
>
> You can not achieve the functionality that you are looking for with
> GreanMail utility. If you want to receive mails you have to send mail
> first. Will further look through API if there is any possibility to provide
> what you have requested.
>
> Thanks,
>
> On Mon, Apr 20, 2015 at 1:04 PM, Himasha Guruge  wrote:
>
>> Hi All,
>>
>> I'm in the process of writing an integration test which will test the
>> email notification feature implementation of BPS. Therefore I have set up
>> the GreenMail server with a user registered, to receive the emails, but the
>> email count is always 0.
>>
>> When looking into methods provided by GreenMailUtil, it is noticed that
>> to send an email ,GreenMailUtil.sendTextEmail() method is used. For this
>> scenario, the email sending process will occur within the implementation.
>> Therefore is it possible for the mail messages to be sent through feature
>> implementation (without using above method) and just to receive the sent
>> emails through GreenMail ? Following are the steps I have followed so far.
>>
>> 1. Start GreenMail server
>> 2. Set a new user to created server
>> 3. Add axis2-client mailto configuration (same port as GreenMail server)
>> 4. Use  method server.getReceivedMessages() to retrieve the emails.
>>
>> If this approach is not valid, any other suggestions on this will be
>> appreciated.
>>
>> Thanks & Regards,
>>
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Green Mail server : Email notifications based integration test

2015-04-20 Thread Himasha Guruge
Thanks for  the quick reply Waruna.

On Mon, Apr 20, 2015 at 1:18 PM, Himasha Guruge  wrote:

> [Looping Nandika]
>
> On Mon, Apr 20, 2015 at 1:15 PM, Waruna Perera  wrote:
>
>> Hi Himasha,
>>
>> You can not achieve the functionality that you are looking for with
>> GreanMail utility. If you want to receive mails you have to send mail
>> first. Will further look through API if there is any possibility to provide
>> what you have requested.
>>
>> Thanks,
>>
>> On Mon, Apr 20, 2015 at 1:04 PM, Himasha Guruge 
>> wrote:
>>
>>> Hi All,
>>>
>>> I'm in the process of writing an integration test which will test the
>>> email notification feature implementation of BPS. Therefore I have set up
>>> the GreenMail server with a user registered, to receive the emails, but the
>>> email count is always 0.
>>>
>>> When looking into methods provided by GreenMailUtil, it is noticed that
>>> to send an email ,GreenMailUtil.sendTextEmail() method is used. For this
>>> scenario, the email sending process will occur within the implementation.
>>> Therefore is it possible for the mail messages to be sent through feature
>>> implementation (without using above method) and just to receive the sent
>>> emails through GreenMail ? Following are the steps I have followed so far.
>>>
>>> 1. Start GreenMail server
>>> 2. Set a new user to created server
>>> 3. Add axis2-client mailto configuration (same port as GreenMail server)
>>> 4. Use  method server.getReceivedMessages() to retrieve the emails.
>>>
>>> If this approach is not valid, any other suggestions on this will be
>>> appreciated.
>>>
>>> Thanks & Regards,
>>>
>>> Himasha Guruge
>>> *Software Engineer*
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299
>>> himas...@wso2.com
>>>
>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API Manager] Adding an API with the context "wso2"

2015-04-20 Thread Sewmini Jayaweera
Hi Prabath,

I tried creating an API given context as "wso2" using API manager 1.8.0
standalone fresh pack. I didn't come across any issue. I could also invoke
the API successfully.

Have you done any additional configurations ?

Regards,

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Fri, Feb 27, 2015 at 4:32 AM, Prabath Siriwardena 
wrote:

> This is directly from the Publisher. It looks like something to do with
> the name.. When I created an new API with mywso2 it got published
> successfully...
>
> Thanks & regards,
> -Prabath
>
> On Thu, Feb 26, 2015 at 2:58 PM, Ajith Vitharana  wrote:
>
>>
>>
>> On Thu, Feb 26, 2015 at 5:22 PM, Prabath Siriwardena 
>> wrote:
>>
>>> Created an API with the context wso2 and published it...
>>>
>>> This appears in store - and anyone can subscribe.. But not in the
>>> Gateway..
>>>
>>> Is this a known issue...
>>>
>>
>> If you try with the Publisher REST API make sure to pass the* 
>> publishToGateway=true
>> *parameter while "Change API State". If not all the things success but
>> API not in GW.
>> No way to recover(push back to GW) such an API, if you missed to pass at
>> first place . :) . That is known bug.
>>
>>  [1]
>> https://docs.wso2.com/display/AM180/Publisher+APIs#PublisherAPIs-ChangeAPIStatus
>>
>>
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +1 650 625 7950
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +1-812-360-5335
>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>
> ___
> 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


Re: [Dev] [API Manager] Adding an API with the context "wso2"

2015-04-20 Thread Nadeesha Gamage
HI Prabath,
Did you make any mistake in the API creation process, for example did you
by mistake try to create an API without selecting a throttling tier. In
such a case the API is created in the store and not published to the
Gateway. This is a bug and a Jaggery patch was issued to fix this[1].

[1] https://wso2.org/jira/browse/APIMANAGER-3087

Thank you,
Nadeesha

On Mon, Apr 20, 2015 at 2:31 PM, Sewmini Jayaweera  wrote:

> Hi Prabath,
>
> I tried creating an API given context as "wso2" using API manager 1.8.0
> standalone fresh pack. I didn't come across any issue. I could also invoke
> the API successfully.
>
> Have you done any additional configurations ?
>
> Regards,
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Fri, Feb 27, 2015 at 4:32 AM, Prabath Siriwardena 
> wrote:
>
>> This is directly from the Publisher. It looks like something to do with
>> the name.. When I created an new API with mywso2 it got published
>> successfully...
>>
>> Thanks & regards,
>> -Prabath
>>
>> On Thu, Feb 26, 2015 at 2:58 PM, Ajith Vitharana  wrote:
>>
>>>
>>>
>>> On Thu, Feb 26, 2015 at 5:22 PM, Prabath Siriwardena 
>>> wrote:
>>>
 Created an API with the context wso2 and published it...

 This appears in store - and anyone can subscribe.. But not in the
 Gateway..

 Is this a known issue...

>>>
>>> If you try with the Publisher REST API make sure to pass the* 
>>> publishToGateway=true
>>> *parameter while "Change API State". If not all the things success but
>>> API not in GW.
>>> No way to recover(push back to GW) such an API, if you missed to pass at
>>> first place . :) . That is known bug.
>>>
>>>  [1]
>>> https://docs.wso2.com/display/AM180/Publisher+APIs#PublisherAPIs-ChangeAPIStatus
>>>
>>>
 Thanks & Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +1 650 625 7950

 http://blog.facilelogin.com
 http://blog.api-security.org

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


>>>
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +1-812-360-5335
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>> ___
>> 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
>
>


-- 
Nadeesha Gamage
Senior Solutions Engineer
+94 77 394 5706
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Applying Security for Data Services

2015-04-20 Thread Supun Malinga
On Mon, Apr 20, 2015 at 11:18 AM, Sohani Weerasinghe 
wrote:

> Hi All,
>
> As per the discussion happened in the mailing thread "Applying QOS from
> developer studio with ESB 4.9.0 release", specifying the Policy Key and
> allowRoles parameter has been implemented from the Developer Studio side
> for proxy services.
>
> According to the discussion happened during the meeting held on the 8th
> April, The Data Service configuration generated by the Developer Studio
> side will be as follows.
>
> 
> 
> 
> root
> root
>  name="org.wso2.ws.dataservice.protocol">jdbc:mysql://localhost:3306/EMPLOYEE
>  name="org.wso2.ws.dataservice.driver">com.mysql.jdbc.Driver
> 
>  * true*
> *  *
>   *admin*
> 
>

It would be more clear if we can add a param for policy "name" as well.
Will improve readability.

eg:
* *

thanks,

>
> Thanks,
> Sohani
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Enterprise Store - UI test failures

2015-04-20 Thread Krishantha Samaraweera
Hi all,

I see following UI failures in master branch. Please have a look.

Failed tests:
testESPublisherAddedAssetTestCase(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAddedAssetTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Services(..)

testESPublisherAssetCaramelPageTestCase(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAssetCaramelPageTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Overview(..)


setUp(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAssetOverridePartialTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add servicex(..)


setUp(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAssetOverrideRendererTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add servicex(..)

*Tests run: 15, Failures: 4, Errors: 0, Skipped: 2*

Thanks,
Krishantha.

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


[Dev] [APIM] User password change feature for API Store

2015-04-20 Thread Kasun Gunasekara
Hi,

I've implemented the $subject which will give users the ability to change
their password if self signup is enabled for the respective tenant. Find
the detailed description and PR via [1] and the same jira link via [2].

[1] https://github.com/wso2/carbon-apimgt/pull/197
[2] https://wso2.org/jira/browse/APIMANAGER-3456

Please review and merge the changes.

Thank you.

Kasun Gunasekara
Software Engineering Intern - WSO2
Mobile : +94 77 6986482
Twitter  | Google+
 | LinkedIn

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


Re: [Dev] Enterprise Store - UI test failures

2015-04-20 Thread Krishantha Samaraweera
More test failures in tests-ui module.

Failed tests:
testESPublishToStore(org.wso2.es.ui.integration.test.common.ESPublishToStore):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase)

testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

setUp(org.wso2.es.ui.integration.test.store.ESStoreAnonCategorySortingTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase)

testAnonHomePage(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.selector: div.span3.store-right > div.row > div.span3(..)

testAnonNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase):
Recent Gadgets link not working expected [Stacked Line Chart] but found
[Line Chart]

testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantSubscriptionTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantSubscriptionTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

testAnonHomePage(org.wso2.es.ui.integration.test.store.ESStoreAnonSuperTenantHomePageTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.selector: div.span3.store-right > div.row > div.span3(..)

testAnonNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreAnonSuperTenantHomePageTestCase):
Recent Gadgets link not working expected [Stacked Line Chart] but found
[Line Chart]

testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherAddEditAssetTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherAddEditAssetTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

testESStoreBookmarkTestCase(org.wso2.es.ui.integration.test.store.ESStoreBookmarkTestCase):
Timed out after 30 seconds waiting for text ('Bookmarked') to be present in
element found by By.id: btn-add-gadget(..)

setUp(org.wso2.es.ui.integration.test.publisher.ESPublisherLCTransitionTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

tearDown(org.wso2.es.ui.integration.test.publisher.ESPublisherLCTransitionTestCase)

testLoggedInHomePage(org.wso2.es.ui.integration.test.store.ESStoreCarbonSuperUserTUHomePageTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.selector: div.span3.store-right > div.row > div.span3(..)

testLoggedInNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreCarbonSuperUserTUHomePageTestCase):
Recent Gadgets link not working expected [Stacked Line Chart] but found
[Line Chart]

testGadgetPage(org.wso2.es.ui.integration.test.store.ESStoreGadgetPageTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.xpath: //a[contains(text(),'Line Plus Bar Chart')](..)

testAddAsset(org.wso2.es.ui.integration.test.store.ESStoreSearchGadgetListTestCase):
Timed out after 30 seconds waiting for presence of element located by:
By.linkText: Add gadget(..)

Tests run: 88, Failures: 25, Errors: 0, Skipped: 31


Thanks,
Krishantha.

On Mon, Apr 20, 2015 at 3:29 PM, Krishantha Samaraweera  wrote:

> Hi all,
>
> I see following UI failures in master branch. Please have a look.
>
> Failed tests:
> testESPublisherAddedAssetTestCase(org.wso2.es.ui.integration.ext

[Dev] Please review and merge the pull request

2015-04-20 Thread Lasitha Wattaladeniya
Hi,

This is the fix [1] for the Jira [2].


[1]. https://github.com/wso2/carbon-identity/pull/205
[2]. https://wso2.org/jira/browse/IDENTITY-3204

-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94719397528
Blog : techreadme.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Connection refused error on AM UI Integration Tests

2015-04-20 Thread Krishantha Samaraweera
This seems to be firefox and selenium incompatibility issue. Can you try
out with Firefox 21

You can set the -Dwebdriver.firefox.bin=/path/to/firefox/binary property in
order to set the selenium to use a different version of Firefox in your
machine.

e.g. mvn clean install
-Dwebdriver.firefox.bin=/home/host/software/firefox/firefox-bin

Thanks,

Krishantha.

On Mon, Apr 20, 2015 at 8:00 PM, Rasika Perera  wrote:

> Hi Krishantha,
>
> Herewith attached the `automation.log`. I ran surefire plugin with debug
> mode. Complete terminal output is also attached.
>
> [2015-04-20 19:00:48,001]  INFO
> {org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient}
> -  Login Successful
> [2015-04-20 19:00:48,007]  INFO
> {org.wso2.carbon.automation.core.BrowserManager} -  Test runs on
> firefoxbrowser
> org.openqa.selenium.firefox.NotConnectedException: Unable to connect to
> host 127.0.0.1 on port 7055 after 45000 ms.
>
> I am using firefox 36. When checking on
> Preferences->AddOns->Extensions->FireFox WebDriver v2.31 it was disabled
> mentioning "This is incompatible with Firefox 36".
>
> Then I looked into selenium version on test automation pom.xml, and it was
> 2.37. Recommended FF version for this was FF v.24[1].
>
> Then downloaded FF v.24. Still couldn't get into it. It is redirecting to
> the correct publisher url but prompting security certificate exception
> infinitely(adding exception doesn't work).
>
> [1]. https://code.google.com/p/selenium/issues/detail?id=6780
>
>
> On Mon, Apr 20, 2015 at 11:43 AM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi Rasika,
>>
>> Can you send the full automation log which is at
>> /target/log/automation.log
>>
>> Did you debug the test case ? its seems admin user cannot login to the
>> server, please check whether your server is started properly.
>>
>> Thanks,
>> Krishantha.
>>
>> On Mon, Apr 20, 2015 at 11:29 AM, Rasika Perera  wrote:
>>
>>> ​Hi all,
>>>
>>> I am writing a test ​case[1] for ui integration in APIM. When running
>>> the test case, I am getting a connection refused error[2]. Any idea what
>>> could possibly go wrong?
>>>
>>> [1] TestCase.java
>>> public class ​TestCase  extends AMIntegrationUiTestBase{
>>>   private WebDriver driver;
>>>   private String baseUrl;
>>>   private boolean acceptNextAlert = true;
>>>   private StringBuffer verificationErrors = new StringBuffer();
>>>   private WebDriverWait wait;
>>>
>>>   @BeforeClass(alwaysRun = true)
>>>   public void init() throws Exception {
>>> super.init(0);
>>> driver = BrowserManager.getWebDriver();
>>> wait = new WebDriverWait(driver, 60);
>>>   }
>>>
>>>   @Test(groups = "wso2.am", description = "​Check for functionality A")
>>>   public void test​FunctionalityA() throws Exception {
>>> ​
>>> ​
>>> ​//
>>>   }
>>>
>>>   @AfterClass(alwaysRun = true)
>>>   public void tearDown() throws Exception {
>>>   if (driver != null) {
>>>   driver.quit();
>>>   }
>>>   super.cleanup();
>>>}
>>>
>>> ​[2] Error Log
>>>
>>> org.apache.axis2.AxisFault: Connection refused
>>> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>>> at
>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>>> at
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450)
>>> at
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
>>> at
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
>>> at
>>> org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659)
>>> at
>>> org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient.login(AuthenticatorClient.java:59)
>>> at
>>> org.wso2.carbon.automation.core.utils.environmentutils.EnvironmentBuilder.loginSetup(EnvironmentBuilder.java:520)
>>> at
>>> org.wso2.carbon.automation.core.utils.environmentutils.EnvironmentBuilder.am
>>> (EnvironmentBuilder.java:453)
>>> at
>>> org.wso2.carbon.am.integration.ui.AMIntegrationUiTestBase.init(AMIntegrationUiTestBase.java:44)
>>> at
>>> org.wso2.carbon.am.integration.ui.APIMANAGER3452IncorrectMethodInfoThrottlingTab.init(
>>> ​
>>> TestCase
>>> .java:47)
>>> Caused by: java.net.ConnectException: Connection refused
>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>
>>>
>>> --​
>>> With Regards,
>>>
>>> *Rasika Perera*
>>> Software Engineer
>>> M: +94 71 680 9060 E: rasi...@wso2.com
>>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>>
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware

[Dev] App Manager 1.0 - release test status update

2015-04-20 Thread Asanthi Kulasinghe
Hi,

Given below is a list of remaining tasks for  QA to complete for the
release.

*Features yet to be tested:*

- Enterprise subscription
- Skip Creating proxy Services
- Integrating with EMM (iOS)
- Testing with Oracle (Blocked)
- Long running test


*Features to be re-tested (due to bug fixes and regression tests)*

- Integration with BAM (Blockers)
- XACML (Blockers and changes in implementation)
- App Visibility (Was Broken)
- Samples (Open issues)
- App Discovery (Retest with bug fixes)
- Deploy Sample feature (Retest with bug fixes)
- Session replication (Retest with recent fixes)
- Single log out
- BPS integration - Workflows
- User roles


*JIRA status*

- Total number of QA reported issues : 465
- Fixed issue count : 345
  (Please note that there may be slight changes to these counts)

QA needs to verify at-least the L1 and L2's out of the fixed issues.


Regards
*Asanthi Kulasinghe*
WSO2 Inc; http://www.wso2.com/.
Mobile: +94777355522
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Integration test cases to validate functionality of RDBMS Slot implementation

2015-04-20 Thread Hemika Kodikara
Hi Anuja,

Its the average time between the publisher and the consumer of a message.
The value is not accurate in this scenario due to fail-over. The lesser the
value the better.

Regards,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +9477762

On Mon, Apr 20, 2015 at 12:06 PM, Anuja Herath  wrote:

> Hi Hemika,
>
> Thanks for running fail-over test using new implementation.
>
> What is this "Average Latency" means? Latency between where to where?
>
> Thanks
>
>
>
> On Mon, Apr 20, 2015 at 11:31 AM, Hemika Kodikara  wrote:
>
>> Hi All,
>>
>> We ran a fail-over test case for queues with the implementation.
>> Following are the results :
>>
>> *With RDBMS Slot Implementation : *
>> Consumer TPS : 1207.8700542930524
>> Average Latency : 2.7297796940344456
>> Consumer messages : 297223
>> Publisher TPS : 1224.0601258333809
>> Publisher messages : 30
>>
>> *With Hazelcast *:
>> Consumer TPS : 1201.9930300158992
>> Average Latency : 6.485580620486475
>> Consumer messages : 299378
>> Publisher TPS : 1210.0238374695982
>> Publisher messages : 30
>>
>> Notes :
>> The message loss can be considered due to the killing of the disruptor
>> buffer in andes.
>>
>> Specs :
>>  - Message Store : MySQL.
>>  - Ran on a MacBook Pro.
>>
>> Regards,
>> Hemika
>>
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Mon, Apr 20, 2015 at 10:43 AM, Anuja Herath  wrote:
>>
>>> Hi All,
>>>
>>> I have tested RDBMS slot implementation with test cases already there in
>>> "tests-clustering". Some test cases failed for both Hazelcast and RDBMS
>>> implementations and other test cases executed successfully for both. I have
>>> noted results in [1].
>>>
>>> What can be other scenarios that i need to implement, which will help
>>> to validate functionality of RDBMS Slot implementation?
>>>
>>> [1]
>>> https://docs.google.com/a/wso2.com/spreadsheets/d/1ejl6Ng5adoDYAO-gzLQ3NlEAINMKW92CixPeYJVoQz8/edit?usp=sharing
>>>
>>> Thanks,
>>> Anuja.
>>>
>>> --
>>> Anuja Herath
>>> *Software Engineer*
>>> *WSO2, Inc.*
>>> Mobile : +94 (0)71 429 8861
>>>
>>
>>
>
>
> --
> Anuja Herath
> *Software Engineer*
> *WSO2, Inc.*
> Mobile : +94 (0)71 429 8861
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] DSS - Dynamic SQL in Cassandra

2015-04-20 Thread Nirmal Fernando
Hi,

Any clue on following exception faced by one of our users (CCied) ?

*dynamic sql in cassandra doesn;t work. When I try to pass some dynamical
sql, it gives me the following error: Nested Exception:-
com.datastax.driver.core.exceptions.SyntaxError: line 1:22 missing EOF at
':' (SELECT * FROM devices [:]filterQuery) Please help me to solve that.*

-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Complex Event Processor 4.0.0 Milestone 5 Released

2015-04-20 Thread Tharik Kanaka
Hi All,

WSO2 CEP Team is pleased to announce the release of WSO2 Complex Event
Processor 4.0.0 Milestone 5. The distribution is available at [1]. Following
bug fixes, improvements, tasks and new features have been fixed along with
this release .
Bug

   - [CEP-798 ] - [Intermittent]: NPE
   observed when shutting down the server
   - [CEP-820 ] - [intermittent] :
   "ERROR - {app:js} org.mozilla.javascript.WrappedException: Wrapped
   org.wso2.carbon.governance.api.exception.GovernanceException" seen on
   startup logs
   - [CEP-854 ] - Sending events with
   a "high frequency" via Soap Output Event Adaptor gives an exception.
   - [CEP-868 ] - Sending bool to
   mysql table via output adaptor throws error
   - [CEP-893 ] - Importing projects
   to eclipse issues (fresh build)
   - [CEP-923 ] - When enabling and
   disabling adding empty properties to formatter
   - [CEP-948 ] - Cannot add Event
   Builder - UI error
   - [CEP-962 ] - Data types for
   output attributes are incorrect in siddhi query.
   - [CEP-980 ] - Error when using H2
   db with event tables in CEP.
   - [CEP-983 ] - Cannot update In
   Memory Event Table with multiple events
   - [CEP-990 ] - Issue of
   rejectedExecutionException when sending events to http input event adaptor
   with high frequency
   - [CEP-991 ] - Execution Plan ->
   Import Stream fails
   - [CEP-1002 ] - Output HTTP Event
   Adapter content-type incorrect
   - [CEP-1007 ] - Indexing support
   for in-memory event tables
   - [CEP-1008 ] - Configuration Not
   Validated when updating Event Builder in source view
   - [CEP-1042 ] - Fix start-up
   errors and warns
   - [CEP-1066 ] - Cannot use * in
   siddhi queries
   - [CEP-1067 ] - FindableProcessor
   impl is not there for batch windows
   - [CEP-1069 ] - Cannot create a
   new Stream for a tenant
   - [CEP-1076 ] - Null pointer
   exception when there is no entry in valueOf field and select the exported
   stream creation drop-down list
   - [CEP-1077 ] - Old execution
   plan get deleted from file system when adding a new execution plan with a
   name equal to old one.
   - [CEP-1081 ] - Add Event Stream
   button not available on event streams page
   - [CEP-1082 ] - Duplicate
   suggestions in Execution Plan
   - [CEP-1085 ] - tcpmon.sh is not
   packed with CEP.
   - [CEP-1087 ] - Event Receiver UI
   Stream name and version should be in correct order
   - [CEP-1089 ] - Resources are not
   released by Soap output adaptor and causes OOM

Improvement

   - [CEP-1011 ] - Extended Regex
   Functionality Support for Siddhi
   - [CEP-1021 ] - Sort Execution
   Plans and Event Streams in alphabetical order
   - [CEP-1045 ] - [Event tables]
   Event tables should support Oracle DBMS
   - [CEP-1049 ] - Email Input Event
   Adapter
   - [CEP-1053 ] - http input event
   adapter feature
   - [CEP-1060 ] - Adding cassandra
   output adapter feature for event publisher
   - [CEP-1071 ] - Adding event
   definition pop-up for event receiver and publisher
   - [CEP-1072 ] - Improve execution
   plan editor to incorporate new features
   - [CEP-1079 ] - Adding
   auto-completion to Siddhi Query Editor
   - [CEP-1080 ] - Improvements to
   code mirror syntax highlighting functionality
   - [CEP-1084 ] - Fixes and
   improvements for Application Deployer
   - [CEP-1086 ] - Removing
   AxisConfiguration Parameters in Event Processor Service
   - [CEP-1088 ] - Improve Event
   Receivers' WSO2 Event mapping to add Stream Name and Version
   - [C

[Dev] [IS] Error in building IS from the source

2015-04-20 Thread Indunil Upeksha Rathnayake
Hi all,

The following error occurs when trying to build IS from the source. I have
built the chunk11 by getting the source from [1].
And also tried to build it, after building orbit and all the kernel
patches, but still get the same error. Please help me to fix this.

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
(3-p2-profile-generation) on project identity-profile-gen: P2 publisher
return code was 13 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
(3-p2-profile-generation) on project identity-profile-gen: P2 publisher
return code was 13

[1]
https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/

Thanks and Regards
-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Emailindu...@wso2.com
Mobile  +94713695179
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Error in building IS from the source

2015-04-20 Thread Sewmini Jayaweera
Hi Indunil,

Can you share the full error log?


Sewmini

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Tue, Apr 21, 2015 at 7:21 AM, Indunil Upeksha Rathnayake <
indu...@wso2.com> wrote:

> Hi all,
>
> The following error occurs when trying to build IS from the source. I have
> built the chunk11 by getting the source from [1].
> And also tried to build it, after building orbit and all the kernel
> patches, but still get the same error. Please help me to fix this.
>
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
> (3-p2-profile-generation) on project identity-profile-gen: P2 publisher
> return code was 13 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
> (3-p2-profile-generation) on project identity-profile-gen: P2 publisher
> return code was 13
>
> [1]
> https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/
>
> Thanks and Regards
> --
> Indunil Upeksha Rathnayake
> Software Engineer | WSO2 Inc
> Emailindu...@wso2.com
> Mobile  +94713695179
>
> ___
> 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


Re: [Dev] [IS] Error in building IS from the source

2015-04-20 Thread Sewmini Jayaweera
Also I found similar issue is being discussed in the dev mail thread [1]
related to chunk 08. Will you please have a look at that as well

[1] http://mail.wso2.org/mailarchive/dev/2014-February/027583.html


Cheers!

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Tue, Apr 21, 2015 at 9:38 AM, Sewmini Jayaweera  wrote:

> Hi Indunil,
>
> Can you share the full error log?
>
>
> Sewmini
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Tue, Apr 21, 2015 at 7:21 AM, Indunil Upeksha Rathnayake <
> indu...@wso2.com> wrote:
>
>> Hi all,
>>
>> The following error occurs when trying to build IS from the source. I
>> have built the chunk11 by getting the source from [1].
>> And also tried to build it, after building orbit and all the kernel
>> patches, but still get the same error. Please help me to fix this.
>>
>> [ERROR] Failed to execute goal
>> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
>> (3-p2-profile-generation) on project identity-profile-gen: P2 publisher
>> return code was 13 -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
>> (3-p2-profile-generation) on project identity-profile-gen: P2 publisher
>> return code was 13
>>
>> [1]
>> https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/
>>
>> Thanks and Regards
>> --
>> Indunil Upeksha Rathnayake
>> Software Engineer | WSO2 Inc
>> Emailindu...@wso2.com
>> Mobile  +94713695179
>>
>> ___
>> 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


Re: [Dev] [WSO2 ESB] Connector Integration Error

2015-04-20 Thread Vanjikumaran Sivajothy
Hi Janaka,

We will check on this matter and get back to you soon.

On Tue, Apr 21, 2015 at 10:37 AM, janakaR 
wrote:

> Hi All,
>
> I'm getting the following error when running the integration test for the
> Zohobooks connector.
>
> Stack Trace:
>
> org.json.JSONException: Duplicate key "role_id"
>
> at org.json.JSONObject.putOnce(JSONObject.java:1076)
>
> at org.json.JSONObject.(JSONObject.java:205)
>
> at org.json.JSONTokener.nextValue(JSONTokener.java:344)
>
> at org.json.JSONArray.(JSONArray.java:125)
>
> at org.json.JSONTokener.nextValue(JSONTokener.java:348)
>
> at org.json.JSONObject.(JSONObject.java:205)
>
> at org.json.JSONObject.(JSONObject.java:402)
>
> at
> org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.isValidJSON(ConnectorIntegrationTestBas
>
> e.java:979)
>
> at
> org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.sendJsonRestRequest(ConnectorIntegratio
>
> nTestBase.java:299)
>
> at
> org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.sendJsonRestRequest(ConnectorIntegratio
>
> nTestBase.java:256)
>
> at
> org.wso2.carbon.connector.integration.test.zohobooks.ZohoBooksConnectorIntegrationTest.testListUsersWithManda
>
> toryParameters(ZohoBooksConnectorIntegrationTest.java:1626)
>
>
> The reason is because the API response contains duplicate JSON key
> "role_id".
>
> Sample Response :
>
> "users": [
> {
> "user_id": "13691700039001",
> "role_id": "1369170619",
> "name": "wso2",
> "email": "yasasi@gmail.com",
> "user_role": "admin",
> "role_id": "1369170619",
> "status": "active",
> "is_current_user": true,
> "photo_url": "
> https://contacts.zoho.com/file?ID=938220c49f27d7d3c7aac35efe98e91b97c70bb4b5b85bcb3cd4bd95646712bc4f7c63a47ebeb830aee62cff53b39dc6105ecc864f280f635d2a1414cfa0e656&fs=thumb
> "
> }
> ],
>
>
> This issue has been fixed in the recent version of org.json.(It allows for
> duplicate keys). But the integration test suite is using 2.0.0.wso2v1,
> which is not accepting duplicate keys.
>
> Integration Test Dependency :
>
>
> 
>  org.json.wso2
>  json
>  2.0.0.wso2v1
> 
>
> consultant
>
> --
>  *Janaka Ranathunga* *Associate Consultant - Technology*
>  Tel: +94 11 256 9150  | Mobile: +94 71 168 3232
>  janaka.n.ranathu...@gmail.com
> 
> 
> 
>



-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com *
*Mobile:(+94)777219209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


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


[Dev] [Carbon][AppM] Calling OSGi service in Jaggery gives a NullPointerException

2015-04-20 Thread Sajith Ariyarathna
I'm developing a web app for AppM and I want to do some user management
tasks.

- retrieving all users for a given role
- retrieving claims of a given user

To accomplish above tasks, I want to call getUserListOfRole() method &
getUserClaimValues() method in the org.wso2.carbon.user.api.UserStoreManager
OSGi service. I wrote my Jaggery code as following based on [1] & [2].

routeManager.register('GET', 'publisher',
'/publisher/api/provisioning/users/{role}', function (context) {
 log.info("### in API call");
var role = context.params.role;
var carbon = require('carbon');
var userService =
carbon.server.osgiService('org.wso2.carbon.user.api.UserStoreManager');
log.info("### acquired OSGi service");
*#30* var usrs = userService.getUserListOfRole(role);

print(usrs);
});

Above code gives me a NullPointerException.

[2015-04-21 10:40:02,575]  INFO - provisioning_api_router:jag ### in API
call
[2015-04-21 10:40:02,579]  INFO - provisioning_api_router:jag ### acquired
OSGi service
[2015-04-21 10:40:02,583] ERROR - WebAppManager
org.mozilla.javascript.WrappedException: Wrapped
java.lang.NullPointerException
(/publisher/apis/v1/provisioning_api_router.jag#30)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
java.lang.NullPointerException
(/publisher/apis/v1/provisioning_api_router.jag#30)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:536)
at
org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at
org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1695)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.mozilla.javascript.Wrapped

Re: [Dev] [IS] Error in building IS from the source

2015-04-20 Thread Malithi Edirisinghe
Hi Indunil,

What is the maven version you are using?
May be you have mixed maven 2 and maven 3. Make sure that you build with
maven 3.

Thanks,
Malithi.

On Tue, Apr 21, 2015 at 9:45 AM, Sewmini Jayaweera  wrote:

> Also I found similar issue is being discussed in the dev mail thread [1]
> related to chunk 08. Will you please have a look at that as well
>
> [1] http://mail.wso2.org/mailarchive/dev/2014-February/027583.html
> 
>
> Cheers!
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Tue, Apr 21, 2015 at 9:38 AM, Sewmini Jayaweera 
> wrote:
>
>> Hi Indunil,
>>
>> Can you share the full error log?
>>
>>
>> Sewmini
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@wso2.com
>>
>> On Tue, Apr 21, 2015 at 7:21 AM, Indunil Upeksha Rathnayake <
>> indu...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> The following error occurs when trying to build IS from the source. I
>>> have built the chunk11 by getting the source from [1].
>>> And also tried to build it, after building orbit and all the kernel
>>> patches, but still get the same error. Please help me to fix this.
>>>
>>> [ERROR] Failed to execute goal
>>> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
>>> (3-p2-profile-generation) on project identity-profile-gen: P2 publisher
>>> return code was 13 -> [Help 1]
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>> execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
>>> (3-p2-profile-generation) on project identity-profile-gen: P2 publisher
>>> return code was 13
>>>
>>> [1]
>>> https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/
>>>
>>> Thanks and Regards
>>> --
>>> Indunil Upeksha Rathnayake
>>> Software Engineer | WSO2 Inc
>>> Emailindu...@wso2.com
>>> Mobile  +94713695179
>>>
>>> ___
>>> 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
>
>


-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

Mobile : +94 (0) 718176807
malit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Error in building IS from the source

2015-04-20 Thread Indunil Upeksha Rathnayake
Hi Malithi,

The maven version I am using is 3.0.5. Hope that is not the issue.

Best Regards
-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Emailindu...@wso2.com
Mobile  +94713695179
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Error in building IS from the source

2015-04-20 Thread Punnadi Gunarathna
Hi Indunil,

Similar issue has been discussed in [1]. But it requires to see the full
log to identify the exact issue in your case.

[1]http://mail.wso2.org/mailarchive/dev/2014-September/035270.html

On Tue, Apr 21, 2015 at 11:32 AM, Indunil Upeksha Rathnayake <
indu...@wso2.com> wrote:

> Hi Malithi,
>
> The maven version I am using is 3.0.5. Hope that is not the issue.
>
> Best Regards
> --
> Indunil Upeksha Rathnayake
> Software Engineer | WSO2 Inc
> Emailindu...@wso2.com
> Mobile  +94713695179
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com 
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



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


Re: [Dev] [orbit] membrane-soa-model orbit bundle version wso2v3 upgrade

2015-04-20 Thread Milinda Perera
Hi Kasun,

We have updated the membrane-soa-model orbit bundle version wso2v3 [1] by
removing embedded dependencies, add import packages groovy.* and
org.codehaus.groovy.* and remove exports groovy.xml.*, groovy.util.* and
groovy.lang.*.

Please review and merge.

[1] https://github.com/wso2/orbit/pull/82

Thanks,
Milinda

On Thu, Apr 16, 2015 at 10:05 PM, Milinda Perera  wrote:

> Hi Nandika,
>
> I will build carbon-business-process in clean repo again verify.
>
> Thanks,
> Milinda
>
> On Thu, Apr 16, 2015 at 9:14 PM, Nandika Jayawardana 
> wrote:
>
>> Hi KasunG,
>>
>> Greg team is not using this library anymore. Hence can we have this
>> change committed as only bps will be using this library.
>>
>> @Milinda,
>> Can you verify and confirm that everything is working fine with java 8.
>>
>> Regards
>> Nandika
>>
>> On Sun, Apr 12, 2015 at 7:45 PM, Milinda Perera 
>> wrote:
>>
>>> Hi, Isuruwan,
>>>
>>> carbon-business-process (including humantask component) and product-bps
>>> (with test cases) get build successfully (clean repo) and works fine with
>>> membrane-soa-model orbit [1] (with changes mentioned above).
>>>
>>> [1] https://github.com/wso2/orbit/pull/82
>>> 
>>>
>>> Thanks,
>>> Milinda
>>>
>>>
>>> On Sat, Apr 11, 2015 at 11:23 PM, Isuruwan Herath 
>>> wrote:
>>>
 Hi Nandika/Milinda,

 There were errors in compiling carbon-governance java 8 with membrane
 soa-model dependency. Please test the with human task component too.

 Thanks,
 Isuruwan

 On Sat, Apr 11, 2015 at 8:11 PM, Nandika Jayawardana 
 wrote:

> @isuruwan, Milinda,
>
> What is the verdict on this.
>
> Regards
> Nandika
>
>
>
> On Fri, Apr 10, 2015 at 7:21 PM, Milinda Perera 
> wrote:
>
>> Hi,
>>
>> When building carbon-business-process with human task rendering
>> functionalities[1] I got following build failures:.
>>
>> [01]
>>
>> INFO] -
>> [ERROR] COMPILATION ERROR :
>> [INFO] -
>> [ERROR]
>> /home/milinda/WSO2/BPS/UIForWSHumanTask/HTRenderingImplementation/git/mergeTest/carbon-business-process/components/humantask/org.wso2.carbon.humantask/src/main/java/org/wso2/carbon/humantask/core/api/rendering/HTRenderingApiImpl.java:[534,95]
>> *cannot access groovy.util.IndentPrinter*
>> class file for groovy.util.IndentPrinter not found
>> [INFO] 1 error
>> [INFO] -
>>
>> [02]
>>
>> [INFO] -
>> [ERROR] COMPILATION ERROR :
>> [INFO] -
>> [ERROR]
>> /home/milinda/WSO2/BPS/UIForWSHumanTask/HTRenderingImplementation/git/mergeTest/carbon-business-process/components/humantask/org.wso2.carbon.humantask/src/main/java/org/wso2/carbon/humantask/core/api/rendering/HTRenderingApiImpl.java:[534,95]
>> *cannot access groovy.lang.Closure*
>> class file for groovy.lang.Closure not found
>> [INFO] 1 error
>> [INFO] -
>>
>> Main cause for this is SOARequestCreator which we used to create soap
>> template require groovy.util.IndentPrinter and groovy.lang.Closure.
>>
>> To solve this we need to export  groovy.util.IndentPrinter
>> and groovy.lang.Closure from membran-soa-model orbit bundle.
>>
>> So I added new version of membrane-soa-model [2] orbit bundle
>> (wso2v3), exporting groovy.util.* and groovy.lang.*
>>
>> Please review and merge PR [3]
>>
>> [1]
>> https://github.com/milindaperera/carbon-business-process/blob/master/components/humantask/org.wso2.carbon.humantask/src/main/java/org/wso2/carbon/humantask/core/api/rendering/HTRenderingApiImpl.java
>> [2] https://github.com/wso2/orbit/tree/master/membrane-soa-model
>> [3] https://github.com/wso2/orbit/pull/82
>>
>> Thanks,
>> Milinda
>>
>> --
>> Milinda Perera
>> Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>
>
>
> --
> Nandika Jayawardana
> Senior Technical Lead
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>



 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

>>>
>>>
>>>
>>> --
>>> Milinda Perera
>>> Software Engineer;
>>> WSO2 Inc. http://wso2.com ,
>>> Mobile: (+94) 714 115 032
>>>
>>>
>>
>>
>> --
>> Nandika Jayawardana
>> Senior Technical Lead
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Milinda Perera
> Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>


-- 
Milinda Perera
Software Engineer;
WSO2 Inc. http://w