[Dev] UI test - screen capture on Test failure

2014-10-31 Thread Ayesha Dissanayaka
Hi,

In-order to identify UI test failures in automation test execution what
would be the best approach?
Some Suggestions are as below which I have come across.

   - Use a TestNG listener [01] to capture the current screen on a test
   failure.
   - try-catch in asserts and bind screen-capturing to error handling
   - Any other proper way?

[01]
http://blog.alvarus.org/2014/05/selenium-capturing-screenshots-of-failed-tests-in-junit-and-testng/

Thanks!
- Ayesha
-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com ayshsa...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to bundle HectorBasedDataSourceReader in MB pack?

2014-10-31 Thread Prabath Abeysekera
On Wed, Oct 29, 2014 at 7:41 PM, Bhathiya Jayasekara bhath...@wso2.com
wrote:

 Hi Harsha,

 On Wed, Oct 29, 2014 at 5:29 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Sewwandi,

 Current data reader feature is registering a cql data source. We don't
 have a feature for hector based data source reader as we going to move to
 cql. As you saw hector data reader component in the repository.

 @Prabath/Bhathiya If we going to have the hector based data source
 reader, we can move it to the common cassandra data reader component. Or do
 we needs to create a separate feature out of current hector data reader?


 IMO, both should go under a common data reader component, because we
 should group them functionality-wise but not technology-wise.


+1. This is something I thought we'd already done. Anyway, let's have them
both added to a common location as you guys too have suggested and make
them available to be installed as a separate feature.

Cheers,
Prabath



 Thanks,
 Bhathiya



 Thanks,
 Harsha

 On Wed, Oct 29, 2014 at 4:40 PM, Sewwandi Perera sewwa...@wso2.com
 wrote:

 Hi,

 I found that there is a data source provider named
 org.wso2.carbon.cassandra.hector.datareader.HectorBasedDataSourceReader
 to read Cassandra using Hector API.
 What is the feature that I should bundle with the MB pack to use this?

 Thanks,
 Sewwandi

 --
 Sewwandi Perera
 Software Engineer

 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 mobile: +94-713765098

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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*




-- 
Prabath Abeysekara
Associate Technical Lead, Data TG.
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] integrating IS 5.0 with Active Directory

2014-10-31 Thread Dinesh J Weerakkody
Hi Akila,

There is connection issue to your LDAP server (LOLC.COM:389). Just check
whether the connection can be established from the IS server to LDAP using
another way (ping or tracert). What I guess is that server cannot find the
path to LOLC.COM. If you can ping, just give a try using server IP instead
of server name.

Thanks,

On Fri, Oct 31, 2014 at 11:02 AM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.com wrote:

  Hi Godwin,



 Enabled the debug mode and still same here. Please check the attachment
 for the new log file.



 Regards,

 Akila







 *From:* Godwin Amila Shrimal [mailto:god...@wso2.com]
 *Sent:* 29 October 2014 5:59 PM

 *To:* Akila Nimantha [IT/EKO/LOITS]
 *Cc:* dev@wso2.org
 *Subject:* Re: [Dev] integrating IS 5.0 with Active Directory



 Hi Akila,



 Can you enable debug mode in Identity Server and recreate the issue and
 send back the log file. Please see below link for enabling debug.




 http://soasecurity.org/2014/02/26/how-to-wso2is-troubleshooting-wso2-identity-server-1/





 On Wed, Oct 29, 2014 at 5:44 PM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

  Hi Godwin,



 Please check for the attached log file.



 Regards,

 Akila



 *From:* Godwin Amila Shrimal [mailto:god...@wso2.com]
 *Sent:* 29 October 2014 5:26 PM
 *To:* Akila Nimantha [IT/EKO/LOITS]
 *Cc:* dev@wso2.org
 *Subject:* Re: [Dev] integrating IS 5.0 with Active Directory



 Hi Akila,



 What is there error you are getting when trying to login ? can you send
 the identity server log ?





 Thanks

 Godwin





 On Wed, Oct 29, 2014 at 5:04 PM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

  Hi all,



 I have a question regarding integrating IS 5.0 with Active Directory.I've
 setup where i can see all of the AD users and group in IS but I cant login
 to IS with any of the AD credentials.

 Also i've registered the travelocity.com webapp but unable to login
 through the app



 WSO2 IS configuration



Configuration

 AddAdminfalse/AddAdmin

 AdminRoleadmin/AdminRole

 AdminUser


 UserNameFusionUsr/UserName


 PasswordFu$@1234/Password

 /AdminUser

 EveryOneRoleNameeveryone/EveryOneRoleName !-- By default
 users in this role sees the registry root --

 Property name=dataSourcejdbc/WSO2CarbonDB/Property

 /Configuration



 UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager

 Property
 name=TenantManagerorg.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager/Property

 Property name=defaultRealmNameLOLC.com/Property

 Property
 name=Disabledfalse/Property

 Property name=kdcEnabledfalse/Property

 Property name=ConnectionURLldap://lolcpdc.lolc.com:389/Property

 Property name=ConnectionNameCN=FusionUsr,OU=IT Service
 Accounts,DC=LOLC,DC=com/Property

 Property name=ConnectionPasswordFu$@1234/Property

 Property name=passwordHashMethodPLAIN_TEXT/Property

 Property name=UserSearchBaseDC=LOLC,DC=com/Property

 Property name=UserEntryObjectClassuser/Property

 Property name=UserNameAttributesAMAccountName/Property

 Property name=isADLDSRolefalse/Property

 Property name=userAccountControl512/Property

 Property name=UserNameListFilter(objectClass=user)/Property

 Property
 name=UserNameSearchFilter(amp;(objectClass=user)(cn=?))/Property

 Property name=UsernameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property

 Property name=UsernameJavaScriptRegEx^[\S]{3,30}$/Property

 Property name=PasswordJavaScriptRegEx^[\S]{5,30}$/Property

 Property name=RolenameJavaScriptRegEx^[\S]{3,30}$/Property

 Property name=RolenameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property

 Property name=ReadGroupstrue/Property

 Property name=WriteGroupstrue/Property

 Property name=EmptyRolesAllowedtrue/Property

 Property name=GroupSearchBaseDC=LOLC,DC=com/Property

 Property name=GroupEntryObjectClassgroup/Property

 Property name=GroupNameAttributecn/Property

 Property name=SharedGroupNameAttributecn/Property

 Property
 name=SharedGroupSearchBaseou=SharedGroups,dc=wso2,dc=org/Property

 Property name=SharedGroupEntryObjectClassgroups/Property

 Property
 name=SharedTenantNameListFilter(object=organizationalUnit)/Property

 Property name=SharedTenantNameAttributeou/Property

 Property name=SharedTenantObjectClassorganizationalUnit/Property

 Property name=MembershipAttributemember/Property

 Property name=GroupNameListFilter(objectcategory=group)/Property

 Property
 name=GroupNameSearchFilter(amp;(objectClass=group)(cn=?))/Property

 Property name=UserRolesCacheEnabledtrue/Property

 Property name=Referralfollow/Property

 Property name=BackLinksEnabledtrue/Property

 Property name=MaxRoleNameListLength100/Property

 Property name=MaxUserNameListLength100/Property

 Property name=SCIMEnabledfalse/Property

 /UserStoreManager



 Regards,

 Akila

 This message (including any attachments) is intended only for the use of
 the individual or entity 

Re: [Dev] UI test - screen capture on Test failure

2014-10-31 Thread Krishantha Samaraweera
Hi Ayesha,

I think you try out with EventFiringWebDriver and WebDriverEventListener to
wrap your webdriver instance. This will capture screenshot for exceptions
thrown by webdriver.

EventFiringWebDriver driver = new EventFiringWebDriver(new
InternetExplorerDriver());
WebDriverEventListener errorListener = new AbstractWebDriverEventListener()
{
@Override
public void onException(Throwable throwable, WebDriver driver) {
takeScreenCapture(screen-name); //you need to implement this
method.
}
};

driver.register(errorListener);


Thanks,
Krishantha.

On Fri, Oct 31, 2014 at 12:25 PM, Ayesha Dissanayaka aye...@wso2.com
wrote:

 Hi,

 In-order to identify UI test failures in automation test execution what
 would be the best approach?
 Some Suggestions are as below which I have come across.

- Use a TestNG listener [01] to capture the current screen on a test
failure.
- try-catch in asserts and bind screen-capturing to error handling
- Any other proper way?

 [01]
 http://blog.alvarus.org/2014/05/selenium-capturing-screenshots-of-failed-tests-in-junit-and-testng/

 Thanks!
 - Ayesha
 --
 *Ayesha Dissanayaka*
 Software Engineer,
 WSO2, Inc : http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 20, Palmgrove Avenue, Colombo 3
 E-Mail: aye...@wso2.com ayshsa...@gmail.com




-- 
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


Re: [Dev] UI test - screen capture on Test failure

2014-10-31 Thread Ayesha Dissanayaka
Hi Krishantha,

Thank you for the quick response. I'll tryout the approach you have
suggested.

Thanks!
- Ayesha

On Fri, Oct 31, 2014 at 1:03 PM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 Hi Ayesha,

 I think you try out with EventFiringWebDriver and WebDriverEventListener
 to wrap your webdriver instance. This will capture screenshot for
 exceptions thrown by webdriver.

 EventFiringWebDriver driver = new EventFiringWebDriver(new
 InternetExplorerDriver());
 WebDriverEventListener errorListener = new
 AbstractWebDriverEventListener() {
 @Override
 public void onException(Throwable throwable, WebDriver driver) {
 takeScreenCapture(screen-name); //you need to implement this
 method.
 }
 };

 driver.register(errorListener);


 Thanks,
 Krishantha.

 On Fri, Oct 31, 2014 at 12:25 PM, Ayesha Dissanayaka aye...@wso2.com
 wrote:

 Hi,

 In-order to identify UI test failures in automation test execution what
 would be the best approach?
 Some Suggestions are as below which I have come across.

- Use a TestNG listener [01] to capture the current screen on a test
failure.
- try-catch in asserts and bind screen-capturing to error handling
- Any other proper way?

 [01]
 http://blog.alvarus.org/2014/05/selenium-capturing-screenshots-of-failed-tests-in-junit-and-testng/

 Thanks!
 - Ayesha
 --
 *Ayesha Dissanayaka*
 Software Engineer,
 WSO2, Inc : http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 20, Palmgrove Avenue, Colombo 3
 E-Mail: aye...@wso2.com ayshsa...@gmail.com




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com ayshsa...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Access a properties file inside an AAR service

2014-10-31 Thread Chan
Hi guys,
I want access a properties file packed inside an AAR service
(HelloService/resources/client.properties). I have tried below -

InputStream stream =
Client.class.getClassLoader().getResourceAsStream(ClientConstants.PROPERTIES_FILE_PATH);

The steam comes out as null. I doubled checked the path but it's correct. I
also saw this mail thread [1]. It doesn't have a conclusion for the problem.

[1] -
http://mail-archives.apache.org/mod_mbox/axis-java-user/200812.mbox/%3c20978881.p...@talk.nabble.com%3E

Cheers~

-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2.com duli...@wso2mobile.com*
*  ~Mobile +94712112165*
*  ~Website   dulitha.me http://dulitha.me*
*  ~Twitter @dulitharw https://twitter.com/dulitharw*
  *~Github @dulichan https://github.com/dulichan*
  *~SO @chan http://stackoverflow.com/users/813471/chan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Access a properties file inside an AAR service

2014-10-31 Thread Chan
​Solved it. Had to remove the .getClassLoader() :)​

On Fri, Oct 31, 2014 at 1:23 PM, Chan duli...@wso2.com wrote:

 Hi guys,
 I want access a properties file packed inside an AAR service
 (HelloService/resources/client.properties). I have tried below -

 InputStream stream =
 Client.class.getClassLoader().getResourceAsStream(ClientConstants.PROPERTIES_FILE_PATH);

 The steam comes out as null. I doubled checked the path but it's correct.
 I also saw this mail thread [1]. It doesn't have a conclusion for the
 problem.

 [1] -
 http://mail-archives.apache.org/mod_mbox/axis-java-user/200812.mbox/%3c20978881.p...@talk.nabble.com%3E

 Cheers~

 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2.com duli...@wso2mobile.com*
*  ~Mobile +94712112165*
*  ~Website   dulitha.me http://dulitha.me*
*  ~Twitter @dulitharw https://twitter.com/dulitharw*
  *~Github @dulichan https://github.com/dulichan*
  *~SO @chan http://stackoverflow.com/users/813471/chan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] A doubt in one of the field names in Add Policy of EMM

2014-10-31 Thread Chathura Dilan
I think documentation need to be updated

On Tue, Oct 28, 2014 at 5:43 PM, Pasanthi Amarasekera pasan...@wso2.com
wrote:

 Hi,

 In Operation Restrictions of Add Policy in EMM, what is meant by Change
 Screen Lock Passcode field ?

 In documentation (https://docs.wso2.com/display/EMM110/EMM+Policy+Settings)
 it says  The end-user's device passcode lock will be automatically
 cleared. But this doesn't give a clear idea on what to enter there when
 creating the policy.

 Thank you.

 Regards,
 Pasanthi.

 --
 Pasanthi Amarasekera
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 77 9541735

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




-- 
Regards,

Chatura Dilan Perera
*(Senior Software Engineer** - WSO2 Inc.* * [Mobile])*
www.dilan.me
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2014-10-31 Thread Krishantha Samaraweera
+1

Thanks,
Krishantha.

On Thu, Oct 30, 2014 at 2:14 PM, Malithi Edirisinghe malit...@wso2.com
wrote:

 Hi All,

 I could create the four artifacts when building the integration module
 using maven-antrun-plugin and maven-dependency-plugin at
 the process-test-resources phase as below.

1. Used the travelocity sample war as a dependency and unpack the war
using maven-dependency-plugin.
2. Introduced an ant script with four targets, where each will replace
the property file for that combination and execute ant war task to package
a new war.
3. Each target in the script is invoked using maven-antrun-plugin to
build the war artifact at process-test-resources phase

 I hope this solution is acceptable. Would like to know your thoughts on
 this.

 Thanks,
 Malithi.


 On Mon, Oct 27, 2014 at 7:08 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Malithi,

 We normally recommend to keep all test artefacts under integration module
 and build them before all test modules. In this case, if you
 copy travelocity sample code to integration module then it will introduce
 code duplication. So the best approach would be to modify the war file at
 test run time and create four war files with different names. You might be
 able to use war as a dependency and use unpack and find-and-replace plugins
 to create create combination of test artefacts. Then you can host those war
 files on tomcat server before executing any tests.

 You can use TestNG @BeforeTest annotation to start tomcat server before
 any tests in your test package. We have followed the same approach in ESB
 JMS tests where ActiveMQ serve is started before running any tests in the
 package [1] (you need to introduce new test block in testng.xml)

 Thanks,

 Krishantha.

 [1]
 https://github.com/wso2-dev/product-esb/blob/master/modules/integration/tests-integration/tests-transport/src/test/java/org/wso2/carbon/esb/jms/transport/test/JMSBrokerStartupTestCase.java

 On Sun, Oct 26, 2014 at 10:03 PM, Malithi Edirisinghe malit...@wso2.com
 wrote:

 Hi All,

 I have used travelocity sample application to automate tests for the
 Open Id, for following parameter combinations.

 User - (Admin/Login User/Tenant User)
 User Consent - (Approve/Approve Always/Skip)
 Association Type - (DB Store/Replication Store/Crypto Store)
 OpenId Attribute Exchange - (With/Without)
 Consumer Type - (Smart Mode/Dumb Mode)

 Test is being written using @factory annotation along with a TestNG data
 provider to initiate tests for each parameter combination.

 In order to specify the consumer type and to specify whether attribute
 exchange is requested or not I introduced two new properties to the sample
 app as below.

 #Specify whether the consumer requests user attributes from the provider
 OpenId.EnableAttributeExchange=true

 #Specify whether the consumer runs in dumb mode
 OpenId.EnableDumbMode=false

 So for these two properties there are four combinations that I have to
 test, and I see below two approaches to get this done.

1. Build four artifacts of the sample app for each combination of
the two properties.
2. Use the same artifact for testing changing the property file for
each combination.

 I have tried on (1) using maven-war-plugin by adding four executions and
 labelling each artifact with a classifer. But this approach packages four
 additional artifacts though we need them only for testing. I'm not sure how
 can we have those artifacts be packaged only at the test phase.
 Further there are several ways of using the tomcat instance with the
 deployed app.

1. Start tomcat before each test and deploy the relevant artifact.
Then stop the instance after the test.
2. Start the tomcat instance before executing a test group and
deploy all artifacts needed before running tests. Then stop the instance
after running all tests in that group.

 I found that existing IS tests were written using the first approach.
 But when considering this case considerable amount of tests would be
 initiated for combinations of above parameters. So seems 2nd approach would
 be better.

 I would like to know the best approach to be followed here.
 Kindly expect your thoughts on this.

 Thanks,
 Malithi.

 --

 *Malithi Edirisinghe*
 Senior Software Engineer
 WSO2 Inc.

 Mobile : +94 (0) 718176807
 malit...@wso2.com




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --

 *Malithi Edirisinghe*
 Senior Software Engineer
 WSO2 Inc.

 Mobile : +94 (0) 718176807
 malit...@wso2.com




-- 
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


Re: [Dev] Cannot create a JDBC secondary user store

2014-10-31 Thread Maninda Edirisooriya
Thanks Darshana. It is fixed.


*Maninda Edirisooriya*
Senior Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*E-mail* : mani...@wso2.com
*Skype* : @manindae
*Twitter* : @maninda

On Thu, Oct 30, 2014 at 9:41 PM, Darshana Gunawardana darsh...@wso2.com
wrote:

 Hi Maninda,

 This has been fixed with r208484. Can you please check the revision which
 build this pack?

 Darshana,

 On Thu, Oct 30, 2014 at 7:50 PM, Maninda Edirisooriya mani...@wso2.com
 wrote:

 Hi,

 When I try to create a JDBC secondary user store in BAM 2.5.0, the
 following exception is given. This may be due to the recent changes in
 patch0009 of org.wso2.carbon.user.core.


 [2014-10-30 19:21:00,229] ERROR
 {org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor} -
 connectionPassword is null in the user configuration of secondary store
 [2014-10-30 19:21:00,231] ERROR
 {org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor} -  Error
 while building user store manager from file
 org.wso2.carbon.user.core.UserStoreException: connectionPassword is null
 in the user configuration of secondary store
 at
 org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor.buildUserStoreConfigurationFromFile(UserStoreConfigXMLProcessor.java:150)
 at
 org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:59)
 at
 org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer.deploy(UserStoreConfigurationDeployer.java:58)
 at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
 at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
 at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 [2014-10-30 19:21:00,236]  INFO
 {org.apache.axis2.deployment.DeploymentEngine} -
 org.apache.axis2.deployment.DeploymentException: The deployment of
 abc_com.xml is not valid.


 *Maninda Edirisooriya*
 Senior Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *E-mail* : mani...@wso2.com
 *Skype* : @manindae
 *Twitter* : @maninda

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




 --
 Regards,


 *Darshana Gunawardana*Software Engineer
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware

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


Re: [Dev] Dep Sync in Analyzer and Receiver nodes

2014-10-31 Thread Maninda Edirisooriya
Hi all,

According to the new BAM deployment architecture (discussed in architecture
mailing list thread titled Moving 2 BAM dashboard nodes to DMZ) this
issue does not exists. One of the receiver/analyzer BAM node can be
configured as the RW node and all other BAM nodes can be RO nodes. The
issue is solved as both toolbox artifacts and receiver artifacts can be
deployed from this RW node where dashboard nodes have nothing to commit
from them.


*Maninda Edirisooriya*
Senior Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*E-mail* : mani...@wso2.com
*Skype* : @manindae
*Twitter* : @maninda

On Thu, Oct 30, 2014 at 10:01 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi,

 Having two repos is not a solution. We have to make sure the setup is as
 simple as possible, it is already pretty complicated, we don't want to add
 anything more. So please make sure, it works in a simple way.

 Cheers,
 Anjana.

 On Thu, Oct 30, 2014 at 1:58 AM, Gihan Anuruddha gi...@wso2.com wrote:

 ​One solution is to have two repos. Other solution is to use the RW node
 to create both adapters and toolboxes and make other nodes RO. Even though
 we categorized these nodes as receiver/analyzer, we can use one manager
 node to do adapter changes and toolbox changes.

 @Aparna,

 Can you try the latter solution.

 Regards,
 Gihan

 On Thu, Oct 30, 2014 at 1:20 PM, Sriskandarajah Suhothayan s...@wso2.com
  wrote:

 Hi Gihan

 So want this make the deployment process complicated?
 We have to now update 2 servers to add streams.

 Regards
 Suho


 On Wed, Oct 29, 2014 at 11:37 PM, Gihan Anuruddha gi...@wso2.com
 wrote:

 Hi Anjana,

 Can't we create two repositories, one for analyzer and one for
 receiver regarding this issue? Because analyzers and receivers don't have
 any common features and those two run independently. Since we are
 maintaining a two repos, I believe we can have two RW node.

 WDYT?

 Regards,
 Gihan

 On Thu, Oct 30, 2014 at 4:23 AM, Anjana Fernando anj...@wso2.com
 wrote:

 On Wed, Oct 29, 2014 at 10:34 AM, Sriskandarajah Suhothayan 
 s...@wso2.com wrote:



 On Wed, Oct 29, 2014 at 7:27 AM, Aparna Karunarathna apa...@wso2.com
  wrote:

 Hi Anjana/KasunG/suho,

 According to the new BAM 2.5.0 deployment pattern [1] we have
 configured the BAM cluster with 11 nodes(4 cassandra, 3 hadoop, 2 
 analyzer
 and 2 receiver). Since BAM 2.5.0 is releasing with CEP features, we 
 have to
 enable the dep sync for receiver nodes as well. Therefore one of the
 Analyzer/Receiver nodes were configured as RW nodes and other
 analyzer/receiver nodes were configured as RO nodes and pointed to a 
 single
 svn repo.

 Toolboxes can be deployed to the Analyzer RW node and CEP input
 adapters to the Receiver RW node. We have seen svn conflicts when both 
 RW
 nodes were trying to commit to svn repo.

 Therefore, how to configure the Dep Sync for Analyzer/Receiver nodes
 in BAM 2.5.0 clustered setup? Please advice.


 We cant have two RW nodes in a single cluster. Here we have to first
 find out a node that has both CEP and Toolbox deployment components and
 make that the RW node to make this work, I'm not sure either
 Analyzer/Receiver profiles have both CEP and Toolbox deployment 
 components,
 If its not the case we have to fix the BAM profile.


 @Gihan, please note, check and fix if needed.

 Cheers,
 Anjana.



 Regards
 Suho



 [1]
 https://docs.wso2.com/display/CLUSTER420/Deploying+BAM+with+Puppet


 Regards,
 --
 *Aparna Karunarathna.*


 *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533
 0714002533*




 --

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


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | 
 linked-in:
 http://lk.linkedin.com/in/suhothayan 
 http://lk.linkedin.com/in/suhothayan*




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595




 --

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


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*




 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

 ___
 Dev mailing list
 Dev@wso2.org
 

Re: [Dev] [Siddhi] Counting Patterns

2014-10-31 Thread Supun Muthutantrige
Hi seshika

Have you found any scalable approaches on this? We also came across some
similar scenarios.

Thank you
Regards

*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Calling web service within REST api

2014-10-31 Thread Susinda Perera
I can achieve this by using Action header and soap11 address [1], or
using soap12 [2], What would be the differences/advantages/disadvantages of
one over other  (i.e [1] and [2]). What is the prefered way?

[1]
header name=Action value=urn:getQuote/header
send
endpoint
   address format=soap11 uri=
http://localhost:9000/services/SimpleStockQuoteService; /
/endpoint
/send

[2]
send
endpoint
   address format=soap12 uri=
http://localhost:9000/services/SimpleStockQuoteService; /
/endpoint
/send



-- 
*Susinda Perera*
Software Engineer
Mobile:(+94)716049075

WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fixing - CApps fail to engage security module after redeploying

2014-10-31 Thread Buddhima Wijeweera
Hi,
It is observed that security module fails to engage in ESB proxy services
adding through management console. Although management console shows they
are secured, but they were actually not (after redeploying several times).
This patch is to remove service-meta-files while undeploying CApps, so
after redeploying the above mentioned issue will not happen.
Link: https://wso2.org/jira/browse/CARBON-15044
Thank You!

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

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] [Siddhi] Counting Patterns

2014-10-31 Thread Seshika Fernando
What are the scenarios you are trying to work on? Maybe you can use some of
the workarounds that Rajeev and Awanthika have given.
I think we need to revisit counting patterns altogether and evaluate their
usefulness and make changes accordingly. But for the moment, you'll have to
use some workarounds.

If you specify the scenarios you are stuck with and what you tried, we can
discuss some workarounds.

seshika

On Fri, Oct 31, 2014 at 3:05 PM, Supun Muthutantrige sup...@wso2.com
wrote:

 Hi seshika

 Have you found any scalable approaches on this? We also came across some
 similar scenarios.

 Thank you
 Regards

 *Supun Rasitha Muthutantrige*
 Software Engineer | Intern
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware
 Mobile: 0758374608

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


Re: [Dev] Getting a database issue when try to cluster two appservers.

2014-10-31 Thread Gayashan Amarasinghe
Hi all,

We are seeing the same issue in our AS cluster based on Carbon 4.3.0. We
have a 3 instance cluster with 3 workers + 2 mgt nodes fronted by ELB. And
as mentioned in this thread the h2 db url is same in all 3 worker nodes
(even though they are in different nodes eg:
/home/ubuntu/carbon_test/as/worker/) which seem to result in this issue
intermittently.

We need this fixed asap before Carbon 4.3.0 RC release. Can we know the
status of the fix?

I believe the related JIRA is https://wso2.org/jira/browse/CARBON-14224.

Thanks.
/Gayashan

On Fri, Oct 10, 2014 at 11:50 AM, Shavantha Weerasinghe shavan...@wso2.com
wrote:

 Hi All

 I came across the same exception while testing an ESB cluster setup with
 elb fronting manager and 2 worker nodes


 [2014-10-10 11:40:40,391] DEBUG - SourceHandler http-incoming-1: Input
 ready
 [2014-10-10 11:40:40,392] DEBUG - SourceHandler http-incoming-1: Content
 decoder [chunk-coded; completed: true]
 [2014-10-10 11:40:40,413] DEBUG - ServerWorker Starting a new Server
 Worker instance
 [2014-10-10 11:40:40,871] ERROR - JDBCResourceDAO Failed to add resource
 to path /. Referential integrity constraint violation:
 REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN KEY(REG_PATH_ID,
 REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID, REG_TENANT_ID); SQL
 statement:
 INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
 REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
 REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
 ?, ?) [23002-140]
 org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation:
 REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN KEY(REG_PATH_ID,
 REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID, REG_TENANT_ID); SQL
 statement:
 INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
 REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
 REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
 ?, ?) [23002-140]
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
 at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
 at
 org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:329)
 at
 org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:271)
 at org.h2.table.Table.fireConstraints(Table.java:801)
 at org.h2.table.Table.fireAfterRow(Table.java:818)
 at org.h2.command.dml.Insert.insertRows(Insert.java:122)
 at org.h2.command.dml.Insert.update(Insert.java:82)
 at org.h2.command.CommandContainer.update(CommandContainer.java:70)
 at org.h2.command.Command.executeUpdate(Command.java:199)
 at
 org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:141)
 at
 org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:127)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.addResourceWithoutContentId(JDBCResourceDAO.java:1391)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.addRoot(JDBCResourceDAO.java:445)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.addRootCollection(UserRegistry.java:375)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:299)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:226)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:205)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getRegistry(EmbeddedRegistryService.java:447)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getRegistry(EmbeddedRegistryService.java:464)
 at
 org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.initializeTenant(RegistryCoreServiceComponent.java:271)
 at
 org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.access$200(RegistryCoreServiceComponent.java:83)
 at
 org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent$TenantDeploymentListenerImpl.loadTenantRegistry(RegistryCoreServiceComponent.java:873)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:294)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
 at
 org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processRequest(MultitenantMessageReceiver.java:203)
 at
 org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:79)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:403)
 

Re: [Dev] [Siddhi] Counting Patterns

2014-10-31 Thread Supun Muthutantrige
One such scenario is, shipping to multiple addresses using a single credit
card. The merchant should be able to set a max no of addresses. So when the
no increases, query become complicated.

Let's assume all the following transactions have the same credit card no,
but with different addresses and the max address count is 2. I have only
included the addresses

1. Colombo
2. Kandy
3. Colombo
4. Kandy
5. Matara
6. Kandy
7. Colombo

Here according to the allowed address count, the 5th transaction should be
fraudulent (which is addressed to Matara) and all the other transactions
done from there after should also be fraudulent as well (6,7). This can be
captured from using what Rajeev has mentioned. But as I mentioned earlier,
when the max address count increases, using that query would get
complicated.

So wanted to know how to scale by using counting patterns accordingly.

Thank you
Regards

*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] A doubt in one of the field names in Add Policy of EMM

2014-10-31 Thread Mariangela Hills
I will look into this!

Regards,
Mariangela




*--*
Mariangela Hills
Senior Technical Writer

*WSO2, Inc.*lean.enterprise.middleware.
m: +94 773 500185
w: http://wso2.com
http://wso2.com/events/

On Fri, Oct 31, 2014 at 1:54 PM, Chathura Dilan chathu...@wso2.com wrote:

 I think documentation need to be updated

 On Tue, Oct 28, 2014 at 5:43 PM, Pasanthi Amarasekera pasan...@wso2.com
 wrote:

 Hi,

 In Operation Restrictions of Add Policy in EMM, what is meant by Change
 Screen Lock Passcode field ?

 In documentation (
 https://docs.wso2.com/display/EMM110/EMM+Policy+Settings) it says  The
 end-user's device passcode lock will be automatically cleared. But this
 doesn't give a clear idea on what to enter there when creating the policy.

 Thank you.

 Regards,
 Pasanthi.

 --
 Pasanthi Amarasekera
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 77 9541735

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




 --
 Regards,

 Chatura Dilan Perera
 *(Senior Software Engineer** - WSO2 Inc.* * [Mobile])*
 www.dilan.me

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


Re: [Dev] [Siddhi] Counting Patterns

2014-10-31 Thread Seshika Fernando
As a workaround, can you try the following

from every e1 = inputstream - e2 = inputstream[(e2.address != e1.address)
and (e2.cardNum == e1.cardNum)]
select e1.cardNum, e1.address as add1, e2.address as add2
insert into pairCountStream

from pairCountStream#window.time(10 mins)
select cardNum, count(cardNum) as counter, add1, add2
group by cardNum
insert into countCheckStream

from countCheckStream[counter2]
select cardNum, add1, add2, counter
insert into FraudAlert

I dont think this is a very good method since there can be false positives,
but try and see whether this works for you.



On Fri, Oct 31, 2014 at 3:59 PM, Supun Muthutantrige sup...@wso2.com
wrote:

 One such scenario is, shipping to multiple addresses using a single credit
 card. The merchant should be able to set a max no of addresses. So when the
 no increases, query become complicated.

 Let's assume all the following transactions have the same credit card no,
 but with different addresses and the max address count is 2. I have only
 included the addresses

 1. Colombo
 2. Kandy
 3. Colombo
 4. Kandy
 5. Matara
 6. Kandy
 7. Colombo

 Here according to the allowed address count, the 5th transaction should be
 fraudulent (which is addressed to Matara) and all the other transactions
 done from there after should also be fraudulent as well (6,7). This can be
 captured from using what Rajeev has mentioned. But as I mentioned earlier,
 when the max address count increases, using that query would get
 complicated.

 So wanted to know how to scale by using counting patterns accordingly.

 Thank you
 Regards

 *Supun Rasitha Muthutantrige*
 Software Engineer | Intern
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware
 Mobile: 0758374608

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


Re: [Dev] jaggery for 4.3.0-SNAPSHOT

2014-10-31 Thread Sameera Medagammaddegedara
Hi,

As per our offline discussion the following features are required:

   - org.jaggeryjs.feature
   - org.wso2.carbon.webapp.mgt.server.feature

Thank You,

Sameera

On Fri, Oct 31, 2014 at 9:04 AM, Lochana Menikarachchi loch...@wso2.com
wrote:

 Hi,

 Need to bundle jaggery feature with the carbon 4.3.0-SNAPSHOT based
 product we are building. What is the repo and what are the features
 required?

 Thanks.

 --
 Lochana Menikarachchi
 Senior Tech Lead
 WSO2 Inc.

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




-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] setSecretCallbackHandlerService() method called twice when DataSourceServiceComponent bundle activation

2014-10-31 Thread Indika Sampath
Hi Prabath,

I have created a public JIRA [1] and add pull request URL to that. Please
review and merge it.

[1] https://wso2.org/jira/browse/SS-442

Cheers!

On Wed, Oct 29, 2014 at 5:01 PM, Indika Sampath indi...@wso2.com wrote:

 Hi Prabath,

 Found the root cause with the help of SameeraJ. Below exceptions occurred
 when calling initSystemDataSources() method because following dependencies
 not available in org.wso2.carbon.cassandra.datareader.feature. It's working
 without issue once I add these dependencies to
 org.wso2.carbon.cassandra.datareader.feature and build product-mb. Shall I
 send you a pull request with changes I made to
 org.wso2.carbon.cassandra.datareader.feature?

 dependency
 groupIdsnappy-java.wso2/groupId
 artifactIdsnappy-java/artifactId
 version${snappy-java.version}/version
 /dependency

 dependency
 groupIdmetrics-core.wso2/groupId
 artifactIdmetrics-core/artifactId
 /dependency

 dependency
 groupIdorg.codehaus.jackson/groupId
 artifactIdjackson-core-asl/artifactId
 /dependency

 dependency
 groupIdorg.codehaus.jackson/groupId
 artifactIdjackson-mapper-asl/artifactId
 /dependency

 java.lang.NoClassDefFoundError: org/xerial/snappy/SnappyError
 at
 com.datastax.driver.core.ProtocolOptions$Compression.clinit(ProtocolOptions.java:32)
 at com.datastax.driver.core.Cluster$Builder.init(Cluster.java:370)
 at com.datastax.driver.core.Cluster.builder(Cluster.java:131)
 at
 org.wso2.carbon.cassandra.datareader.datasource.CassandraDataSourceReader.createCluster(CassandraDataSourceReader.java:135)
 at
 org.wso2.carbon.cassandra.datareader.datasource.CassandraDataSourceReader.createDataSource(CassandraDataSourceReader.java:70)
 at
 org.wso2.carbon.ndatasource.core.DataSourceRepository.createDataSourceObject(DataSourceRepository.java:202)
 at
 org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:359)
 at
 org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
 at
 org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
 at
 org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:157)
 at
 org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:195)
 at
 org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:178)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 

[Dev] When one or more worker nodes are shutdown in a cluster ELB stops sending requests to workers after sometime

2014-10-31 Thread Gayashan Amarasinghe
Hi all,

For Carbon testing we have a worker-mgt cluster fronted by ELB and requests
keep coming in from a jmeter client. During this if one (or more) of the
worker nodes were shutdown, after some time the ELB stops sending requests
to the nodes and the connection times out. Following log gets printed in
the ELB.

​​TID: [0] [ELB] [2014-10-31 06:27:32,517]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Failed to send message to Member Host:172.31.7.214, Remote Host:null, Port:
4100, HTTP:9765, HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker,
Active:true . Error Code: 101503
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:32,519]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Dropping the faulty/unreachable Member with Domain:wso2.as.domain,
Host:172.31.7.214, Port:4100
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:32,738]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Failed over to Host:172.31.0.128, Remote Host:null, Port: 4100, HTTP:9763,
HTTPS:9443, Domain: wso2.as.domain, Sub-domain:worker, Active:true
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:32,740]  WARN
{org.apache.synapse.transport.passthru.ConnectCallback} -  Connection
refused or failed for : /172.31.7.214:9765
{org.apache.synapse.transport.passthru.ConnectCallback}
TID: [0] [ELB] [2014-10-31 06:27:32,743]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Failed to send message to Member Host:172.31.7.214, Remote Host:null, Port:
4100, HTTP:9765, HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker,
Active:true . Error Code: 101503
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:32,745]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Dropping the faulty/unreachable Member with Domain:wso2.as.domain,
Host:172.31.7.214, Port:4100
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:33,518]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Failed over to Host:172.31.7.214, Remote Host:null, Port: 4100, HTTP:9765,
HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker, Active:true
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:33,520]  WARN
{org.apache.synapse.transport.passthru.ConnectCallback} -  Connection
refused or failed for : /172.31.7.214:9765
{org.apache.synapse.transport.passthru.ConnectCallback}
TID: [0] [ELB] [2014-10-31 06:27:33,523]  WARN
{org.apache.synapse.transport.passthru.ConnectCallback} -  Connection
refused or failed for : /172.31.7.214:9765
{org.apache.synapse.transport.passthru.ConnectCallback}
TID: [0] [ELB] [2014-10-31 06:27:33,744]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Failed over to Host:172.31.7.214, Remote Host:null, Port: 4100, HTTP:9765,
HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker, Active:true
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:33,745]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Failed to send message to Member Host:172.31.7.214, Remote Host:null, Port:
4100, HTTP:9765, HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker,
Active:true . Error Code: 101503
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:33,745]  WARN
{org.apache.synapse.transport.passthru.ConnectCallback} -  Connection
refused or failed for : /172.31.7.214:9765
{org.apache.synapse.transport.passthru.ConnectCallback}
TID: [0] [ELB] [2014-10-31 06:27:33,747]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Dropping the faulty/unreachable Member with Domain:wso2.as.domain,
Host:172.31.7.214, Port:4100
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:34,746]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Failed over to Host:172.31.0.128, Remote Host:null, Port: 4100, HTTP:9763,
HTTPS:9443, Domain: wso2.as.domain, Sub-domain:worker, Active:true
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:34,748]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Failed to send message to Member Host:172.31.7.214, Remote Host:null, Port:
4100, HTTP:9765, HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker,
Active:true . Error Code: 101503
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}
TID: [0] [ELB] [2014-10-31 06:27:34,750]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Dropping the faulty/unreachable Member 

Re: [Dev] integrating IS 5.0 with Active Directory

2014-10-31 Thread Shani Ranasinghe
Hi Akila,

While going through your configuration, I just noticed that the two
properties UserNameAttribute  and UserNameSearchFilter are refering to
two different user attributes. Is it done intentionally? Ideally they
should refer to the same attribute, for e.g. cn or uid or any attribute
that is uniquely identifiable.

It is also mentioned in the
https://docs.wso2.com/display/IS500/Configuring+an+Active+Directory+User+Store
documentation, point  number 3.

You can also refer to this
http://venurakahawala.blogspot.com/2013/10/usernameattribute-and.html blog
for more information.


On Fri, Oct 31, 2014 at 4:57 PM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.com wrote:

  Hi Dinesh,



 I have Tried in the local machine where connection can be established to
 LOLC.COM . now it says about invalid username password(because of null
 username)..

 Please check the log file attached.



 Regards,

 Akila





 *From:* Dinesh J Weerakkody [mailto:dine...@wso2.com]
 *Sent:* 31 October 2014 12:55 PM

 *To:* Akila Nimantha [IT/EKO/LOITS]
 *Cc:* dev@wso2.org
 *Subject:* Re: [Dev] integrating IS 5.0 with Active Directory



 Hi Akila,

 There is connection issue to your LDAP server (LOLC.COM:389). Just check
 whether the connection can be established from the IS server to LDAP using
 another way (ping or tracert). What I guess is that server cannot find the
 path to LOLC.COM. If you can ping, just give a try using server IP
 instead of server name.

 Thanks,



 On Fri, Oct 31, 2014 at 11:02 AM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

  Hi Godwin,



 Enabled the debug mode and still same here. Please check the attachment
 for the new log file.



 Regards,

 Akila







 *From:* Godwin Amila Shrimal [mailto:god...@wso2.com]
 *Sent:* 29 October 2014 5:59 PM


 *To:* Akila Nimantha [IT/EKO/LOITS]
 *Cc:* dev@wso2.org
 *Subject:* Re: [Dev] integrating IS 5.0 with Active Directory



 Hi Akila,



 Can you enable debug mode in Identity Server and recreate the issue and
 send back the log file. Please see below link for enabling debug.




 http://soasecurity.org/2014/02/26/how-to-wso2is-troubleshooting-wso2-identity-server-1/





 On Wed, Oct 29, 2014 at 5:44 PM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

  Hi Godwin,



 Please check for the attached log file.



 Regards,

 Akila



 *From:* Godwin Amila Shrimal [mailto:god...@wso2.com]
 *Sent:* 29 October 2014 5:26 PM
 *To:* Akila Nimantha [IT/EKO/LOITS]
 *Cc:* dev@wso2.org
 *Subject:* Re: [Dev] integrating IS 5.0 with Active Directory



 Hi Akila,



 What is there error you are getting when trying to login ? can you send
 the identity server log ?





 Thanks

 Godwin





 On Wed, Oct 29, 2014 at 5:04 PM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

  Hi all,



 I have a question regarding integrating IS 5.0 with Active Directory.I've
 setup where i can see all of the AD users and group in IS but I cant login
 to IS with any of the AD credentials.

 Also i've registered the travelocity.com webapp but unable to login
 through the app



 WSO2 IS configuration



Configuration

 AddAdminfalse/AddAdmin

 AdminRoleadmin/AdminRole

 AdminUser


 UserNameFusionUsr/UserName


 PasswordFu$@1234/Password

 /AdminUser

 EveryOneRoleNameeveryone/EveryOneRoleName !-- By default
 users in this role sees the registry root --

 Property name=dataSourcejdbc/WSO2CarbonDB/Property

 /Configuration



 UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager

 Property
 name=TenantManagerorg.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager/Property

 Property name=defaultRealmNameLOLC.com/Property

 Property
 name=Disabledfalse/Property

 Property name=kdcEnabledfalse/Property

 Property name=ConnectionURLldap://lolcpdc.lolc.com:389/Property

 Property name=ConnectionNameCN=FusionUsr,OU=IT Service
 Accounts,DC=LOLC,DC=com/Property

 Property name=ConnectionPasswordFu$@1234/Property

 Property name=passwordHashMethodPLAIN_TEXT/Property

 Property name=UserSearchBaseDC=LOLC,DC=com/Property

 Property name=UserEntryObjectClassuser/Property

 Property name=UserNameAttributesAMAccountName/Property

 Property name=isADLDSRolefalse/Property

 Property name=userAccountControl512/Property

 Property name=UserNameListFilter(objectClass=user)/Property

 Property
 name=UserNameSearchFilter(amp;(objectClass=user)(cn=?))/Property

 Property name=UsernameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property

 Property name=UsernameJavaScriptRegEx^[\S]{3,30}$/Property

 Property name=PasswordJavaScriptRegEx^[\S]{5,30}$/Property

 Property name=RolenameJavaScriptRegEx^[\S]{3,30}$/Property

 Property name=RolenameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property

 Property name=ReadGroupstrue/Property

 Property name=WriteGroupstrue/Property

 Property name=EmptyRolesAllowedtrue/Property

 Property 

[Dev] Getting error when having two ESB instance with offset 0 1

2014-10-31 Thread Priyadarssini Kishokumar
Hi all,

I'm getting the following error [1] while running 2 ESB instance.
Both ESBs are 4.8.1  offsets are 0  1.
The error is not throwing when I set offset 2 in the secong ESB.
Any idea why this is happening?

[1]
ERROR - JMXServerManager Could not create the RMI local registry
java.rmi.server.ExportException: Port already in use: 1; nested
exception is:
java.net.BindException: Address already in use
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:188)
at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:100)
at sun.rmi.registry.RegistryImpl.init(RegistryImpl.java:86)
at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
at
org.wso2.carbon.core.init.JMXServerManager.startJMXService(JMXServerManager.java:89)
at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:197)
at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:282)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.registerThrottlingAgent(ThrottlingAgentServiceComponent.java:123)
at
org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.activate(ThrottlingAgentServiceComponent.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
at
org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
at
org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

Re: [Dev] Getting error when having two ESB instance with offset 0 1

2014-10-31 Thread Harsha Kumara
Hi Priyadarssini,

Seems like your port 1 is already occupied. Can you check and see
 which process has occupied that. This is regarding the jmx port which is
 by default. With port offset, seems like some other process has
already occupied the port.

[1] - *http://www.cyberciti.biz/faq/what-process-has-open-linux-port/
http://www.cyberciti.biz/faq/what-process-has-open-linux-port/*

Thanks,
Harsha

On Fri, Oct 31, 2014 at 6:29 PM, Priyadarssini Kishokumar 
priyadarss...@wso2.com wrote:


 Hi all,

 I'm getting the following error [1] while running 2 ESB instance.
 Both ESBs are 4.8.1  offsets are 0  1.
 The error is not throwing when I set offset 2 in the secong ESB.
 Any idea why this is happening?

 [1]
 ERROR - JMXServerManager Could not create the RMI local registry
 java.rmi.server.ExportException: Port already in use: 1; nested
 exception is:
 java.net.BindException: Address already in use
 at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
 at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
 at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
 at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
 at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:188)
 at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:100)
 at sun.rmi.registry.RegistryImpl.init(RegistryImpl.java:86)
 at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
 at
 org.wso2.carbon.core.init.JMXServerManager.startJMXService(JMXServerManager.java:89)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:197)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:282)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.registerThrottlingAgent(ThrottlingAgentServiceComponent.java:123)
 at
 org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.activate(ThrottlingAgentServiceComponent.java:100)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at

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

2014-10-31 Thread Pubudu Dissanayake
​Thanks for the reply, I'll update our redmine [1] accordingly ​

On Mon, Oct 27, 2014 at 7:33 AM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

Running four nodes in single server is not recommended at integration tests
 phase, so killing a worker node at integration tests run time is not
 possible (Even no admin services exposed in worker nodes to forcefully
 shutdown the instance) I'm not sure whether upcoming operation center will
 facilitate this kind of functionality.

 What is the recommended approach to test my scenario ?


 Thanks,
 Krishantha

 ​[1] https://redmine.wso2.com/issues/2816​ ​

-- 
*Pubudu Dissanayake*
 Software Engineer

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Mob: + 94 775 503 304

Blog: http://geekdetected.wordpress.com/
Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
http://lk.linkedin.com/in/pubududissanayake
Flickr : https://www.flickr.com/photos/pubudufx/
Twitter: https://twitter.com/GeekInAction
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error when having two ESB instance with offset 0 1

2014-10-31 Thread Waruna Perera
Hi,

use lsof -n -i command and see

On Fri, Oct 31, 2014 at 6:38 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Priyadarssini,

 Seems like your port 1 is already occupied. Can you check and see
  which process has occupied that. This is regarding the jmx port which is
  by default. With port offset, seems like some other process has
 already occupied the port.

 [1] - *http://www.cyberciti.biz/faq/what-process-has-open-linux-port/
 http://www.cyberciti.biz/faq/what-process-has-open-linux-port/*

 Thanks,
 Harsha

 On Fri, Oct 31, 2014 at 6:29 PM, Priyadarssini Kishokumar 
 priyadarss...@wso2.com wrote:


 Hi all,

 I'm getting the following error [1] while running 2 ESB instance.
 Both ESBs are 4.8.1  offsets are 0  1.
 The error is not throwing when I set offset 2 in the secong ESB.
 Any idea why this is happening?

 [1]
 ERROR - JMXServerManager Could not create the RMI local registry
 java.rmi.server.ExportException: Port already in use: 1; nested
 exception is:
 java.net.BindException: Address already in use
 at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
 at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
 at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
 at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
 at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:188)
 at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:100)
 at sun.rmi.registry.RegistryImpl.init(RegistryImpl.java:86)
 at
 java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
 at
 org.wso2.carbon.core.init.JMXServerManager.startJMXService(JMXServerManager.java:89)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:197)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:282)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.registerThrottlingAgent(ThrottlingAgentServiceComponent.java:123)
 at
 org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.activate(ThrottlingAgentServiceComponent.java:100)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 

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

2014-10-31 Thread Jayanga Dissanayake
Hi All,

In WSO2 Operations Center we are currently supporting only
forceful/graceful restart/shutdown. To do this, we use the ServerAdmin
service. This is similar to restarting/shutting down the server with
management console.
If you want to restart/shutdown a server you can use the ServerAdmin
service.

IMO, If you want to simulate a instant exit of a server (kill -9) in s
remote machine, you have to have some external agent program in that
particular machine or use remote shell.

Thanks,
Jayanga.

*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259

On Fri, Oct 31, 2014 at 6:47 PM, Pubudu Dissanayake pubu...@wso2.com
wrote:

 ​Thanks for the reply, I'll update our redmine [1] accordingly ​

 On Mon, Oct 27, 2014 at 7:33 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Running four nodes in single server is not recommended at integration
 tests phase, so killing a worker node at integration tests run time is not
 possible (Even no admin services exposed in worker nodes to forcefully
 shutdown the instance) I'm not sure whether upcoming operation center will
 facilitate this kind of functionality.

 What is the recommended approach to test my scenario ?


 Thanks,
 Krishantha

 ​[1] https://redmine.wso2.com/issues/2816​ ​

 --
 *Pubudu Dissanayake*
  Software Engineer

 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Mob: + 94 775 503 304

 Blog: http://geekdetected.wordpress.com/
 Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
 http://lk.linkedin.com/in/pubududissanayake
 Flickr : https://www.flickr.com/photos/pubudufx/
 Twitter: https://twitter.com/GeekInAction


 ___
 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] Integration tests for Hazelcast Session Replication feature

2014-10-31 Thread Krishantha Samaraweera
On Fri, Oct 31, 2014 at 6:47 PM, Pubudu Dissanayake pubu...@wso2.com
wrote:

 ​Thanks for the reply, I'll update our redmine [1] accordingly ​

 On Mon, Oct 27, 2014 at 7:33 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Running four nodes in single server is not recommended at integration
 tests phase, so killing a worker node at integration tests run time is not
 possible (Even no admin services exposed in worker nodes to forcefully
 shutdown the instance) I'm not sure whether upcoming operation center will
 facilitate this kind of functionality.

 What is the recommended approach to test my scenario ?


At the moment this is not possible to automate with current infrastructure
(and lack of testability of clusters) You can write your own puppet scripts
etc to do developer testing. But you won't be able to integrate it with our
build servers.

You can use the RM item I shared here as a reference for automation test
availability.

Thanks,
Krishantha.




 Thanks,
 Krishantha

 ​[1] https://redmine.wso2.com/issues/2816​ ​

 --
 *Pubudu Dissanayake*
  Software Engineer

 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Mob: + 94 775 503 304

 Blog: http://geekdetected.wordpress.com/
 Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
 http://lk.linkedin.com/in/pubududissanayake
 Flickr : https://www.flickr.com/photos/pubudufx/
 Twitter: https://twitter.com/GeekInAction




-- 
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


Re: [Dev] [Siddhi] Counting Patterns

2014-10-31 Thread Sriskandarajah Suhothayan
I'm trying to understand the scenario

for the pattern
 Colombo - Kandy - Colombo

use

from every e1 = inputstream -
e2 = inputstream[(e2.address != e1.address) and (e2.cardNum == e1.cardNum)]
-
e3 = inputstream[(e3.address == e1.address) and (e3.cardNum == e1.cardNum)]
 within 1
select e1.cardNum, e1.address as add1, e2.address as add2
insert into outputStream


for the pattern
 Colombo - Kandy - Matara (!= Kandy)

use

from every e1 = inputstream -
e2 = inputstream[(e2.address != *prev*.address) and (e2.cardNum ==
e1.cardNum)]*2:*
 within 1
select e1.cardNum, e1.address as add1, *e2[last]*.address as add2
insert into outputStream

for the pattern
 Colombo - Kandy - Matara (!= Kandy  != Colombo)

use

from every e1 = inputstream -
e2 = inputstream[(e2.address != e1.address) and (e2.cardNum == e1.cardNum)]
-
e3 = inputstream[(e3.address != e1.address) and (e3.address !=
e2.address)  and (e3.cardNum == e1.cardNum)]
 within 1
select e1.cardNum, e1.address as add1, e2.address as add2,  e3.address as
add2
insert into outputStream

Please check and let me know if that works

Regards
Suho


On Fri, Oct 31, 2014 at 7:31 AM, Supun Muthutantrige sup...@wso2.com
wrote:

 We also used some similar workarounds, Yes, there are several limitations
 of such methods. For the moment we'll move on with it. We'll try with your
 workaround as well.

 Thank you for the input

 Thank you
 Regards

 *Supun Rasitha Muthutantrige*
 Software Engineer | Intern
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware
 Mobile: 0758374608

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




-- 

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


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


Re: [Dev] jaggery for 4.3.0-SNAPSHOT

2014-10-31 Thread Sriskandarajah Suhothayan
Adding Damith as he is also integrating  jaggery to CEP 4.0  (Carbon 4.3.0 )

Suho

On Fri, Oct 31, 2014 at 7:17 AM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi,

 As per our offline discussion the following features are required:

- org.jaggeryjs.feature
- org.wso2.carbon.webapp.mgt.server.feature

 Thank You,

 Sameera

 On Fri, Oct 31, 2014 at 9:04 AM, Lochana Menikarachchi loch...@wso2.com
 wrote:

 Hi,

 Need to bundle jaggery feature with the carbon 4.3.0-SNAPSHOT based
 product we are building. What is the repo and what are the features
 required?

 Thanks.

 --
 Lochana Menikarachchi
 Senior Tech Lead
 WSO2 Inc.

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




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005

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




-- 

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


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


Re: [Dev] [Siddhi] Counting Patterns

2014-10-31 Thread Supun Muthutantrige
Hi Suho,

The scenario is, we should be able to trigger an alert when multiple
shipping's are being caused by applying a single credit card. In our case
this should occur when third distinct address pop's up in an event. So in
my previous example, if we consider the 4th transaction which is,

*Colombo -- Kandy -- Colombo -- Kandy(4th)*

This 4th transaction is not fraudulent since the credit card has been used
only for shipments for two distinct addresses (Kandy  Colombo). But when
the 5th transaction occurs from the same card,

*Colombo -- Kandy -- Colombo -- Kandy -- Matara(5th)*

The 5th transaction should be fraudulent, as it is the 3rd distinct address
(Matara, kandy  Colombo) that is being shipped by using the same credit
card. Thereafter, any transactions executed by the same credit card should
also be fraudulent, as three distinct destinations are already available.

So that is the requirement and I will use your examples and let you know.

Thank you for the input suho.

Thank you,
Regards.

*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev