Re: [Dev] Orbit bundles for hadoop-client and hbase-client

2015-10-01 Thread Kalpa Welivitigoda
Hi Gokul,

Sameera and myself have put some comments in the PR. Can you please check?

On Thu, Oct 1, 2015 at 11:44 AM, Kalpa Welivitigoda  wrote:

> Hi Gokul,
>
> I will look into this.
>
> On Thu, Oct 1, 2015 at 11:42 AM, Gokul Balakrishnan 
> wrote:
>
>> Hi Kernel team,
>>
>> Could you please review the PR [1] for ${subject}?
>>
>> [1] https://github.com/wso2/orbit/pull/136
>>
>> Thanks,
>>
>> --
>> Gokul Balakrishnan
>> Senior Software Engineer,
>> WSO2, Inc. http://wso2.com
>> Mob: +94 77 593 5789 | +1 650 272 9927
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] MySQL Database and Table creation when using carbonJDBC option in spark environment

2015-10-01 Thread Niranda Perera
Hi Thanuja and Imesh,

let me clarify the use of the term "create temporary table" with regard to
Spark.
inside DAS we save ('persist') data in DAL (Dara access layer) tables. So
in order for us to query these tables, spark needs some sort of a mapping
to the tables in DAL in its runtime environment. This mapping is created in
the temporary table queries. These temp tables are only a mapping. Not a
physical table.

@thanuja, yes you are correct! We have to manually create the tables in
MySQL before making the temp table mapping in Spark SQL.
On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:
>
>
> In DAS spark environment, we can't directly insert the analyzed data to
> our mysql table. We should create a temporary table using our datasources
> to manipulate them.
>

Yes, can you please explain the reasons? What does this analysis do? Why we
cannot directly insert them to the RDBMS?

Thanks

On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Hi Imesh,
>
> If we take the above scenario, I need to insert the analyzed/aggregated
> data which is obtained as result after spark sql processing, to my mysql
> table (sample_table). In order to do that, first we need to create a
> temporary table using the corresponding mysql database (sample_datasource)
> and table(sample_table) in spark environment and then only by inserting
> data to this temporary table in spark environment, we can update our mysql
> table.
>
> In DAS spark environment, we can't directly insert the analyzed data to
> our mysql table. We should create a temporary table using our datasources
> to manipulate them. I think that's why they named it as '*temporary*'
> table.
>
> @Niranda Please correct me if I'm wrong.
>
> Thanks.
>
> On Thu, Oct 1, 2015 at 7:00 AM, Imesh Gunaratne  wrote:
>
>> Hi Thanuja,
>>
>> Can you please explain the purpose of these temporary tables?
>>
>> Thanks
>>
>> On Wed, Sep 30, 2015 at 11:53 PM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> When we create temporary tables in spark environment using carbonJDBC
>>> option as explained in [1], we are using a datasource and tableName from
>>> which spark environment temporary table will get data as follow:
>>> CREATE TEMPORARY TABLE  using CarbonJDBC options
>>> (dataSource "", tableName "");
>>>
>>> I've used a mysql database (sample_datasource) for datasource and used
>>> mysql tables created in that database for tableName (sample_table) as
>>> follow:
>>> CREATE TEMPORARY TABLE sample using CarbonJDBC options (dataSource "
>>> sample_datasource", tableName "sample_table");
>>>
>>> But I'm creating the mysql database and tables by executing sql
>>> statements manually. Is there a way in DAS that we can add these sql
>>> statements inside a script and create the database and tables when we start
>>> the server?
>>>
>>> [1]. https://docs.wso2.com/display/DAS300/Spark+Query+Language
>>>
>>> Thanks.
>>>
>>> --
>>> Thanuja Uruththirakodeeswaran
>>> Software Engineer
>>> WSO2 Inc.;http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 774363167
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>



-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] MySQL Database and Table creation when using carbonJDBC option in spark environment

2015-10-01 Thread Sinthuja Ragendran
Hi Niranda,

On Thu, Oct 1, 2015 at 1:28 PM, Niranda Perera  wrote:

> Hi Thanuja and Imesh,
>
> let me clarify the use of the term "create temporary table" with regard to
> Spark.
> inside DAS we save ('persist') data in DAL (Dara access layer) tables. So
> in order for us to query these tables, spark needs some sort of a mapping
> to the tables in DAL in its runtime environment. This mapping is created in
> the temporary table queries. These temp tables are only a mapping. Not a
> physical table.
>
> @thanuja, yes you are correct! We have to manually create the tables in
> MySQL before making the temp table mapping in Spark SQL.
>
With Carbon JDBC connector, can we try to create the table if it is not
existing? May be we can let the users to pass the actual create table
statement as another parameter with options.  IMHO it will be more user
friendly if we could do that, WDYT?

Thanks,
Sinthuja.


> On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>>
>>
>> In DAS spark environment, we can't directly insert the analyzed data to
>> our mysql table. We should create a temporary table using our datasources
>> to manipulate them.
>>
>
> Yes, can you please explain the reasons? What does this analysis do? Why
> we cannot directly insert them to the RDBMS?
>
> Thanks
>
> On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Hi Imesh,
>>
>> If we take the above scenario, I need to insert the analyzed/aggregated
>> data which is obtained as result after spark sql processing, to my mysql
>> table (sample_table). In order to do that, first we need to create a
>> temporary table using the corresponding mysql database (sample_datasource)
>> and table(sample_table) in spark environment and then only by inserting
>> data to this temporary table in spark environment, we can update our mysql
>> table.
>>
>> In DAS spark environment, we can't directly insert the analyzed data to
>> our mysql table. We should create a temporary table using our datasources
>> to manipulate them. I think that's why they named it as '*temporary*'
>> table.
>>
>> @Niranda Please correct me if I'm wrong.
>>
>> Thanks.
>>
>> On Thu, Oct 1, 2015 at 7:00 AM, Imesh Gunaratne  wrote:
>>
>>> Hi Thanuja,
>>>
>>> Can you please explain the purpose of these temporary tables?
>>>
>>> Thanks
>>>
>>> On Wed, Sep 30, 2015 at 11:53 PM, Thanuja Uruththirakodeeswaran <
>>> thanu...@wso2.com> wrote:
>>>
 Hi All,

 When we create temporary tables in spark environment using carbonJDBC
 option as explained in [1], we are using a datasource and tableName from
 which spark environment temporary table will get data as follow:
 CREATE TEMPORARY TABLE  using CarbonJDBC options
 (dataSource "", tableName "");

 I've used a mysql database (sample_datasource) for datasource and used
 mysql tables created in that database for tableName (sample_table) as
 follow:
 CREATE TEMPORARY TABLE sample using CarbonJDBC options (dataSource "
 sample_datasource", tableName "sample_table");

 But I'm creating the mysql database and tables by executing sql
 statements manually. Is there a way in DAS that we can add these sql
 statements inside a script and create the database and tables when we start
 the server?

 [1]. https://docs.wso2.com/display/DAS300/Spark+Query+Language

 Thanks.

 --
 Thanuja Uruththirakodeeswaran
 Software Engineer
 WSO2 Inc.;http://wso2.com
 lean.enterprise.middleware

 mobile: +94 774363167

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


>>>
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> Thanuja Uruththirakodeeswaran
>> Software Engineer
>> WSO2 Inc.;http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 774363167
>>
>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sinthuja Rajendran*
Associate Technical Lead
WSO2, Inc.:http://wso2.com

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


Re: [Dev] [DEV][IS] slf4j version conflict with 1.6.x and 1.7.x

2015-10-01 Thread Ayyoob Hamza
Had an offline chat with @Hasintha and @Maduranga  and decided to update
the slf4j range. Will be sending a pull request after testing it.
Jira - https://wso2.org/jira/browse/IDENTITY-3574

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Tue, Sep 29, 2015 at 11:35 AM, Ayyoob Hamza  wrote:

> Hi All,
>
> In CDMF, When we install DAS feature with along the IS (4.6.0-M2)
> features. Then we found IS features doesn't get activated. When we track
> the issue we were able find that IS depends on slf4j version from 1.6.0 to
> 1.7.0 and DAS depends on version from 1.7.0 to 1.8.0 Further we have both
> the slf4j 1.7.10 and 1.6.1 libraries within our pack. Yet only slf4j 1.7.10
> gets activated. The reason for this problem was:
>
> slf4j 1.6.1 imports a package "org.slf4j.impl" and when slf4j 1.7.10 and
> 1.6.1 both has been used on the same product, then on slf4j- version 1.6.1
> imports ("org.slf4j.impl" ) gets wired with 1.7.10 because the version has
> been given as a single value rather a range.  Due to this it doesn't get
> activated. Therefore we have to increase the range of slf4j from
> [1.6.1,1.7) to [1.6.1,1.8) . The change wont have any effect because [1],
> slf4j is compatible between 1.6.x and 1.7.x
>
> Therefore I believe we have to only depend on latest slf4j version. where
> having both causes the problem on wiring. So I think we have to update the
> slf4j version on IS. This will arise a problem where IS dependent library
> also needs to use the slf4j 1.7 range.
>
> If there is any other solution please let know.
>
> [1] http://www.slf4j.org/manual.html
>
> Thanks
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-10-01 Thread Irham Iqbal
Hi Abimaran,

Can you send the whole test case as well.

Thanks,
Iqbal

On Thu, Oct 1, 2015 at 1:41 PM, Abimaran Kugathasan 
wrote:

> Yes, It works fine when deploying manually.
>
> I'm copying the details error log here.
>
> [2015-10-01 13:34:33,524]  INFO
> {org.wso2.carbon.automation.core.PlatformTestManager} -  Running the test
> method ---
> org.wso2.carbon.am.tests.ESBJAVA3530TimeoutHandlerLogMessageTestCase.testBackendTimeoutLog
> 
>  File PAth
> /home/abimaran/sources/wso2-dev/support/trunk/products/apimgt/1.6.0/modules/integration/tests-patches/src/test/resources//artifacts/AM/war/backendTimeout/RESTFulExample.war
> [2015-10-01 13:34:33,585]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
> data handler for dataHandler
> [2015-10-01 13:34:33,585]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
> data handler for dataHandler
> [2015-10-01 13:34:33,586]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
> [2015-10-01 13:34:33,586]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
> [2015-10-01 13:34:33,594]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
> data handler for dataHandler
> [2015-10-01 13:34:33,594]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
> data handler for dataHandler
> [2015-10-01 13:34:33,594]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
> [2015-10-01 13:34:33,594]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
> [2015-10-01 13:34:33,600]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2015-10-01 13:34:33,600] ERROR - ResponseTimeCalculator
> wso2statistics.request.received.time is null in the IN MessageContext
> [2015-10-01 13:34:33,602]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
> data handler for dataHandler
> [2015-10-01 13:34:33,602]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
> data handler for dataHandler
> [2015-10-01 13:34:33,603]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
> [2015-10-01 13:34:33,603]  INFO
> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
> [2015-10-01 13:34:33,603]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  [2015-10-01 13:34:33,602] ERROR - PassThroughHttpSSLSender IO Error
> sending response message
> [2015-10-01 13:34:33,604]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>  org.apache.axis2.AxisFault: ClientAbortException:  java.io.IOException:
> Unable to wrap data, invalid engine state: CLOSED
> [2015-10-01 13:34:33,604]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> [2015-10-01 13:34:33,604]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
> [2015-10-01 13:34:33,604]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.sendUsingOutputStream(PassThroughHttpSender.java:297)
> [2015-10-01 13:34:33,604]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:261)
> [2015-10-01 13:34:33,605]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:525)
> [2015-10-01 13:34:33,605]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433)
> [2015-10-01 13:34:33,605]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398)
> [2015-10-01 13:34:33,605]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188)
> [2015-10-01 13:34:33,605]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
> 

Re: [Dev] [PPaaS] private-paas-cartridges repository structure

2015-10-01 Thread Imesh Gunaratne
On Thu, Oct 1, 2015 at 12:52 PM, Akila Ravihansa Perera 
 wrote:

>
> Wouldn't it be easier to navigate if we move those common folders to root
> folder?
>
> The problem is that then the cartridges would mix up with the common ones.

On Thu, Oct 1, 2015 at 12:52 PM, Akila Ravihansa Perera 
wrote:

> Hi Gayan,
>
> Wouldn't it be easier to navigate if we move those common folders to root
> folder?
>
> We can create a common folder under /plugins/ folder to keep common PCA
> plugins and util files.
>
> Just a thought...wdyt?
>
> Thanks.
>
> On Thu, Oct 1, 2015 at 10:29 AM, Gayan Gunarathne  wrote:
>
>> Adding to the Dev list
>>
>>
>> On Thu, Oct 1, 2015 at 7:05 AM, Imesh Gunaratne  wrote:
>>
>>> Shall we move this discussion to Dev?
>>>
>>> Thanks
>>>
>>> On Wed, Sep 30, 2015 at 11:02 PM, Gayan Gunarathne 
>>> wrote:
>>>
 As puppet,init-scripts,base image are common for all the
 cartridges,shall we group them under common?
 Also what about the configurator?I can see two options
 One option will be move the configurator to the private-paas repository
 and release it with the private paas.Other option will be we can do the
 separate release for the configurator.Seems it is better to have a separate
 release for the configurator. WDYT?

 Thanks,
 Gayan

 On Wed, Sep 30, 2015 at 10:44 PM, Gayan Gunarathne 
 wrote:

> Hi,
>
> On Wed, Sep 30, 2015 at 9:48 PM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> +1 for having a simple folder structure. I think we can move the
>> contents in /common/ folder to root folder. One can easily identify the
>> important files available and easy to navigate as well.
>>
>> What should be the Maven groupId for this repo? How about
>> "org.wso2.ppaas.cartridges" or "org.wso2.cartridges" ?
>>
> We can use org.wso2.ppaas.cartridges as groupId
>
> Thanks,
> Gayan
>
>
>>
>
>> On Wed, Sep 30, 2015 at 9:24 PM, Imesh Gunaratne 
>> wrote:
>>
>>>  I would like to reduce the complexity of the folder structure and
>>> make it much simple. Shall we have some thing like below:
>>>
>>> private-paas-cartridges/
>>> |--/common/
>>>|--/configurator/
>>>|--/puppet/
>>>   |--/wso2-installer/
>>>|--/scripts/
>>>   |---/ec2/init.sh
>>>   |---/openstack/init.sh
>>>
>>> |--/wso2esb/4.9.0/
>>>|-/template-module/
>>>|-/cartridge-agent-plugins/
>>>|-/application/
>>>|-/docker/
>>>
>>> Thanks
>>>
>>> On Wed, Sep 30, 2015 at 9:13 PM, Imesh Gunaratne 
>>> wrote:
>>>
 May be we can have this discussion in Dev, I cannot see any reason
 to take this private.

 Thanks

 On Wed, Sep 30, 2015 at 6:26 PM, Gayan Gunarathne 
 wrote:

> Adding Engineering group
>
>
> -- Forwarded message --
> From: Gayan Gunarathne 
> Date: Wed, Sep 30, 2015 at 6:26 PM
> Subject: [PPaaS] private-paas-cartridges repository structure
> To: Imesh Gunaratne , Reka Thirunavukkarasu <
> r...@wso2.com>, Udara Liyanage , Lahiru
> Sandaruwan , Rajkumar Rajaratnam <
> rajkum...@wso2.com>, Sajith Kariyawasam , Isuru
> Haththotuwa , Lasindu Charith ,
> Akila Ravihansa Perera , Chamila De Alwis <
> chami...@wso2.com>, Vishanth Balasubramaniam ,
> Dinithi De Silva , Anuruddha Liyanarachchi <
> anurudd...@wso2.com>, Pubudu Gunatilaka ,
> Thanuja Uruththirakodeeswaran 
>
>
> Hi All,
>
> Shall we have the following structure with
> the private-paas-cartridges[1] repository
>
> 1. Maintain the separate directory for each cartridge
>
> Suggested directory structure as following
>
> .
>
> ├── base-image
>
> │   └── docker
>
> │   └── scripts
>
> │   └── start-agent.sh
>
> ├── vm
>
> │   ├── init-scripts
>
> │   │
>
> │   ├── puppet
>
> │   │

Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-10-01 Thread Abimaran Kugathasan
Hi,

I'm getting below Exception while uploading a REST web service.

java.rmi.RemoteException: Fail to upload webapp file
> :org.apache.axis2.AxisFault: Unable to read data handler for dataHandler


Below is my test method.

public void deployArrService(String backEndUrl, String sessionCookie,
String serviceFilePath)
throws RemoteException, MalformedURLException,
LoginAuthenticationExceptionException, ExceptionException {

WebAppAdminClient webAppAdminClient = new
WebAppAdminClient(backEndUrl, sessionCookie);
webAppAdminClient.warFileUplaoder(serviceFilePath);

}

@Test(groups = {"wso2.am"}, description = "test endpoint deployment
from car file")
public void testMethod() throws Exception  {
String filePath =
ProductConstant.getResourceLocations(ProductConstant.AM_SERVER_NAME)
   + File.separator +
"backendTimeout" + File.separator + "RESTFulExample.war";

deployArrService(amServer.getBackEndUrl(),
amServer.getSessionCookie(), filePath);
System.out.println("Running test");
}


The webserive is simple REST webservice based on resteasy-jaxrs.


org.jboss.resteasy
resteasy-jaxrs
2.2.1.GA



On Thu, Oct 1, 2015 at 10:28 AM, Abimaran Kugathasan 
wrote:

> Thanks a lot NuwanW and Thusitha! I will use it.
>
> On Thu, Oct 1, 2015 at 10:25 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Abimaran,
>> In product-as we are using WebappAdminClient[1] to deploy war files. I
>> think you can refer to the same
>> [1] -
>> https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/appserver/integration/common/clients/WebAppAdminClient.java
>>
>> Thanks
>> /Thusitha
>> On Thu, Oct 1, 2015 at 10:11 AM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi,
>>>
>>>
>>> We can deploy aar files using ServiceAdminClient into a product. Can we
>>> do the same for war file. Does our automation framework support it?
>>>
>>> If so, can anybody please point me the Class or module name?
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>>
>>> Software Engineer | WSO2 Inc
>>> Data & APIs Technologies Team
>>> Mobile : +94 773922820
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>


-- 
Thanks
Abimaran Kugathasan

Software Engineer | WSO2 Inc
Data & APIs Technologies Team
Mobile : +94 773922820


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


Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-10-01 Thread Irham Iqbal
Hi Abimaran,

Can you send the full log. Also make sure the was file path is correct.

Thanks,
Iqbal

On Thu, Oct 1, 2015 at 1:15 PM, Abimaran Kugathasan 
wrote:

> Hi,
>
> I'm getting below Exception while uploading a REST web service.
>
> java.rmi.RemoteException: Fail to upload webapp file
>> :org.apache.axis2.AxisFault: Unable to read data handler for dataHandler
>
>
> Below is my test method.
>
> public void deployArrService(String backEndUrl, String sessionCookie, String 
> serviceFilePath)
> throws RemoteException, MalformedURLException, 
> LoginAuthenticationExceptionException, ExceptionException {
>
> WebAppAdminClient webAppAdminClient = new WebAppAdminClient(backEndUrl, 
> sessionCookie);
> webAppAdminClient.warFileUplaoder(serviceFilePath);
>
> }
>
> @Test(groups = {"wso2.am"}, description = "test endpoint deployment from car 
> file")
> public void testMethod() throws Exception  {
> String filePath = 
> ProductConstant.getResourceLocations(ProductConstant.AM_SERVER_NAME)
>+ File.separator + 
> "backendTimeout" + File.separator + "RESTFulExample.war";
>
> deployArrService(amServer.getBackEndUrl(), amServer.getSessionCookie(), 
> filePath);
> System.out.println("Running test");
> }
>
>
> The webserive is simple REST webservice based on resteasy-jaxrs.
>
> 
> org.jboss.resteasy
> resteasy-jaxrs
> 2.2.1.GA
> 
>
>
> On Thu, Oct 1, 2015 at 10:28 AM, Abimaran Kugathasan 
> wrote:
>
>> Thanks a lot NuwanW and Thusitha! I will use it.
>>
>> On Thu, Oct 1, 2015 at 10:25 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Abimaran,
>>> In product-as we are using WebappAdminClient[1] to deploy war files. I
>>> think you can refer to the same
>>> [1] -
>>> https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/appserver/integration/common/clients/WebAppAdminClient.java
>>>
>>> Thanks
>>> /Thusitha
>>> On Thu, Oct 1, 2015 at 10:11 AM, Abimaran Kugathasan 
>>> wrote:
>>>
 Hi,


 We can deploy aar files using ServiceAdminClient into a product. Can we
 do the same for war file. Does our automation framework support it?

 If so, can anybody please point me the Class or module name?

 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data & APIs Technologies Team
 Mobile : +94 773922820

 
 
   
 


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


>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>>
>> Software Engineer | WSO2 Inc
>> Data & APIs Technologies Team
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>> 
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Irham Iqbal
Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-10-01 Thread Abimaran Kugathasan
Hi Irham,

Yes, war file path is correct. Please find the whole logs attached.

On Thu, Oct 1, 2015 at 1:22 PM, Irham Iqbal  wrote:

> Hi Abimaran,
>
> Can you send the full log. Also make sure the was file path is correct.
>
> Thanks,
> Iqbal
>
> On Thu, Oct 1, 2015 at 1:15 PM, Abimaran Kugathasan 
> wrote:
>
>> Hi,
>>
>> I'm getting below Exception while uploading a REST web service.
>>
>> java.rmi.RemoteException: Fail to upload webapp file
>>> :org.apache.axis2.AxisFault: Unable to read data handler for dataHandler
>>
>>
>> Below is my test method.
>>
>> public void deployArrService(String backEndUrl, String sessionCookie, String 
>> serviceFilePath)
>> throws RemoteException, MalformedURLException, 
>> LoginAuthenticationExceptionException, ExceptionException {
>>
>> WebAppAdminClient webAppAdminClient = new WebAppAdminClient(backEndUrl, 
>> sessionCookie);
>> webAppAdminClient.warFileUplaoder(serviceFilePath);
>>
>> }
>>
>> @Test(groups = {"wso2.am"}, description = "test endpoint deployment from car 
>> file")
>> public void testMethod() throws Exception  {
>> String filePath = 
>> ProductConstant.getResourceLocations(ProductConstant.AM_SERVER_NAME)
>>+ File.separator + 
>> "backendTimeout" + File.separator + "RESTFulExample.war";
>>
>> deployArrService(amServer.getBackEndUrl(), amServer.getSessionCookie(), 
>> filePath);
>> System.out.println("Running test");
>> }
>>
>>
>> The webserive is simple REST webservice based on resteasy-jaxrs.
>>
>> 
>> org.jboss.resteasy
>> resteasy-jaxrs
>> 2.2.1.GA
>> 
>>
>>
>> On Thu, Oct 1, 2015 at 10:28 AM, Abimaran Kugathasan 
>> wrote:
>>
>>> Thanks a lot NuwanW and Thusitha! I will use it.
>>>
>>> On Thu, Oct 1, 2015 at 10:25 AM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi Abimaran,
 In product-as we are using WebappAdminClient[1] to deploy war files. I
 think you can refer to the same
 [1] -
 https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/appserver/integration/common/clients/WebAppAdminClient.java

 Thanks
 /Thusitha
 On Thu, Oct 1, 2015 at 10:11 AM, Abimaran Kugathasan  wrote:

> Hi,
>
>
> We can deploy aar files using ServiceAdminClient into a product. Can
> we do the same for war file. Does our automation framework support it?
>
> If so, can anybody please point me the Class or module name?
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>>
>>> Software Engineer | WSO2 Inc
>>> Data & APIs Technologies Team
>>> Mobile : +94 773922820
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>>
>> Software Engineer | WSO2 Inc
>> Data & APIs Technologies Team
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>



-- 
Thanks
Abimaran Kugathasan

Software Engineer | WSO2 Inc
Data & APIs Technologies Team
Mobile : +94 773922820


  
  
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.wso2.am:org.wso2.carbon.am.patch.test:jar:1.6.0
[WARNING] 'version' contains an expression but should be a constant. @ 
org.wso2.am:am-parent:${apimserver.version}, 

Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-10-01 Thread Irham Iqbal
Hi Abimaran,

Did you try to deploy the same war file manually I mean by copying. If not
try that to make sure no issue with war file.

Thanks,
Iqbal

On Thu, Oct 1, 2015 at 1:32 PM, Abimaran Kugathasan 
wrote:

> Hi Irham,
>
> Yes, war file path is correct. Please find the whole logs attached.
>
> On Thu, Oct 1, 2015 at 1:22 PM, Irham Iqbal  wrote:
>
>> Hi Abimaran,
>>
>> Can you send the full log. Also make sure the was file path is correct.
>>
>> Thanks,
>> Iqbal
>>
>> On Thu, Oct 1, 2015 at 1:15 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm getting below Exception while uploading a REST web service.
>>>
>>> java.rmi.RemoteException: Fail to upload webapp file
 :org.apache.axis2.AxisFault: Unable to read data handler for dataHandler
>>>
>>>
>>> Below is my test method.
>>>
>>> public void deployArrService(String backEndUrl, String sessionCookie, 
>>> String serviceFilePath)
>>> throws RemoteException, MalformedURLException, 
>>> LoginAuthenticationExceptionException, ExceptionException {
>>>
>>> WebAppAdminClient webAppAdminClient = new WebAppAdminClient(backEndUrl, 
>>> sessionCookie);
>>> webAppAdminClient.warFileUplaoder(serviceFilePath);
>>>
>>> }
>>>
>>> @Test(groups = {"wso2.am"}, description = "test endpoint deployment from 
>>> car file")
>>> public void testMethod() throws Exception  {
>>> String filePath = 
>>> ProductConstant.getResourceLocations(ProductConstant.AM_SERVER_NAME)
>>>+ File.separator + 
>>> "backendTimeout" + File.separator + "RESTFulExample.war";
>>>
>>> deployArrService(amServer.getBackEndUrl(), amServer.getSessionCookie(), 
>>> filePath);
>>> System.out.println("Running test");
>>> }
>>>
>>>
>>> The webserive is simple REST webservice based on resteasy-jaxrs.
>>>
>>> 
>>> org.jboss.resteasy
>>> resteasy-jaxrs
>>> 2.2.1.GA
>>> 
>>>
>>>
>>> On Thu, Oct 1, 2015 at 10:28 AM, Abimaran Kugathasan 
>>> wrote:
>>>
 Thanks a lot NuwanW and Thusitha! I will use it.

 On Thu, Oct 1, 2015 at 10:25 AM, Thusitha Thilina Dayaratne <
 thusit...@wso2.com> wrote:

> Hi Abimaran,
> In product-as we are using WebappAdminClient[1] to deploy war files. I
> think you can refer to the same
> [1] -
> https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/appserver/integration/common/clients/WebAppAdminClient.java
>
> Thanks
> /Thusitha
> On Thu, Oct 1, 2015 at 10:11 AM, Abimaran Kugathasan <
> abima...@wso2.com> wrote:
>
>> Hi,
>>
>>
>> We can deploy aar files using ServiceAdminClient into a product. Can
>> we do the same for war file. Does our automation framework support it?
>>
>> If so, can anybody please point me the Class or module name?
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>>
>> Software Engineer | WSO2 Inc
>> Data & APIs Technologies Team
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>>   
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>


 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data & APIs Technologies Team
 Mobile : +94 773922820

 
 
   
 


>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>>
>>> Software Engineer | WSO2 Inc
>>> Data & APIs Technologies Team
>>> Mobile : +94 773922820
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Irham Iqbal
>> Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>> phone: +94 777888452
>>
>
>
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
> 

Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-10-01 Thread Abimaran Kugathasan
Yes, It works fine when deploying manually.

I'm copying the details error log here.

[2015-10-01 13:34:33,524]  INFO
{org.wso2.carbon.automation.core.PlatformTestManager} -  Running the test
method ---
org.wso2.carbon.am.tests.ESBJAVA3530TimeoutHandlerLogMessageTestCase.testBackendTimeoutLog

 File PAth
/home/abimaran/sources/wso2-dev/support/trunk/products/apimgt/1.6.0/modules/integration/tests-patches/src/test/resources//artifacts/AM/war/backendTimeout/RESTFulExample.war
[2015-10-01 13:34:33,585]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Unable to read
data handler for dataHandler
[2015-10-01 13:34:33,585]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Unable to read
data handler for dataHandler
[2015-10-01 13:34:33,586]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
[2015-10-01 13:34:33,586]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
[2015-10-01 13:34:33,594]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Unable to read
data handler for dataHandler
[2015-10-01 13:34:33,594]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Unable to read
data handler for dataHandler
[2015-10-01 13:34:33,594]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
[2015-10-01 13:34:33,594]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
[2015-10-01 13:34:33,600]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2015-10-01 13:34:33,600] ERROR - ResponseTimeCalculator
wso2statistics.request.received.time is null in the IN MessageContext
[2015-10-01 13:34:33,602]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Unable to read
data handler for dataHandler
[2015-10-01 13:34:33,602]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Unable to read
data handler for dataHandler
[2015-10-01 13:34:33,603]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
[2015-10-01 13:34:33,603]  INFO
{org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
[2015-10-01 13:34:33,603]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2015-10-01 13:34:33,602] ERROR - PassThroughHttpSSLSender IO Error
sending response message
[2015-10-01 13:34:33,604]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 org.apache.axis2.AxisFault: ClientAbortException:  java.io.IOException:
Unable to wrap data, invalid engine state: CLOSED
[2015-10-01 13:34:33,604]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
[2015-10-01 13:34:33,604]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
[2015-10-01 13:34:33,604]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.transport.passthru.PassThroughHttpSender.sendUsingOutputStream(PassThroughHttpSender.java:297)
[2015-10-01 13:34:33,604]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:261)
[2015-10-01 13:34:33,605]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:525)
[2015-10-01 13:34:33,605]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433)
[2015-10-01 13:34:33,605]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398)
[2015-10-01 13:34:33,605]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188)
[2015-10-01 13:34:33,605]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
[2015-10-01 13:34:33,606]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
[2015-10-01 13:34:33,606]  INFO

Re: [Dev] Orbit bundles for hadoop-client and hbase-client

2015-10-01 Thread Gokul Balakrishnan
Thanks Kalpa. I've made the prescribed changes and added further comments
to the PR explaining the need for dynamic imports, please check.

On 1 October 2015 at 13:25, Kalpa Welivitigoda  wrote:

> Hi Gokul,
>
> Sameera and myself have put some comments in the PR. Can you please check?
>
> On Thu, Oct 1, 2015 at 11:44 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Gokul,
>>
>> I will look into this.
>>
>> On Thu, Oct 1, 2015 at 11:42 AM, Gokul Balakrishnan 
>> wrote:
>>
>>> Hi Kernel team,
>>>
>>> Could you please review the PR [1] for ${subject}?
>>>
>>> [1] https://github.com/wso2/orbit/pull/136
>>>
>>> Thanks,
>>>
>>> --
>>> Gokul Balakrishnan
>>> Senior Software Engineer,
>>> WSO2, Inc. http://wso2.com
>>> Mob: +94 77 593 5789 | +1 650 272 9927
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



-- 
Gokul Balakrishnan
Senior Software Engineer,
WSO2, Inc. http://wso2.com
Mob: +94 77 593 5789 | +1 650 272 9927
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] private-paas-cartridges repository structure

2015-10-01 Thread Gayan Gunarathne
On Thu, Oct 1, 2015 at 6:06 PM, Reka Thirunavukkarasu  wrote:

> Hi
>
> Shall we maintain an installer as well(specially for VM cartridges) in
> this repository to quickly create specific cartridges in puppet? What this
> installer could do is,
>
> User has to provide the packs and set of values for the environment
> variables.
>
> - Install puppet master
> - Locate the relevant cartridges puppet modules
> - Place the packs, template modules and plugins to right location
> - Export all the user given environment variables
> - Execute configurator to configure the samples
>
> WDYT?
>

Good thought reka. As our offline chat , we can plan to have two installers
for ppaas and ppaas cartridges.We can have the ppaas installer to set up
the ppaas related stuff while ppaas cartridge installer to set up the
cartridge specific installations.

>
> Thanks,
> Reka
>
> On Thu, Oct 1, 2015 at 2:01 PM, Gayan Gunarathne  wrote:
>
>> Hi Akila,
>>
>> Common folder has all the common stuff related to the cartridges.So if
>> someone can navigate to the common folder and get the stuff shared among
>> the cartridges.
>>
>> I think it is meaningful to have those common stuff at a one place, then
>> someone new to this repository also have a feeling those stuff will be
>> common for all the cartridges.Common PCA plugins and utils also we can have
>> inside the common folder
>>
>> Thanks,
>> Gayan
>>
>> On Thu, Oct 1, 2015 at 12:52 PM, Akila Ravihansa Perera <
>> raviha...@wso2.com> wrote:
>>
>>> Hi Gayan,
>>>
>>> Wouldn't it be easier to navigate if we move those common folders to
>>> root folder?
>>>
>>> We can create a common folder under /plugins/ folder to keep common PCA
>>> plugins and util files.
>>>
>>> Just a thought...wdyt?
>>>
>>> Thanks.
>>>
>>> On Thu, Oct 1, 2015 at 10:29 AM, Gayan Gunarathne 
>>> wrote:
>>>
 Adding to the Dev list


 On Thu, Oct 1, 2015 at 7:05 AM, Imesh Gunaratne  wrote:

> Shall we move this discussion to Dev?
>
> Thanks
>
> On Wed, Sep 30, 2015 at 11:02 PM, Gayan Gunarathne 
> wrote:
>
>> As puppet,init-scripts,base image are common for all the
>> cartridges,shall we group them under common?
>> Also what about the configurator?I can see two options
>> One option will be move the configurator to the private-paas
>> repository and release it with the private paas.Other option will be we 
>> can
>> do the separate release for the configurator.Seems it is better to have a
>> separate release for the configurator. WDYT?
>>
>> Thanks,
>> Gayan
>>
>> On Wed, Sep 30, 2015 at 10:44 PM, Gayan Gunarathne 
>> wrote:
>>
>>> Hi,
>>>
>>> On Wed, Sep 30, 2015 at 9:48 PM, Akila Ravihansa Perera <
>>> raviha...@wso2.com> wrote:
>>>
 +1 for having a simple folder structure. I think we can move the
 contents in /common/ folder to root folder. One can easily identify the
 important files available and easy to navigate as well.

 What should be the Maven groupId for this repo? How about
 "org.wso2.ppaas.cartridges" or "org.wso2.cartridges" ?

>>> We can use org.wso2.ppaas.cartridges as groupId
>>>
>>> Thanks,
>>> Gayan
>>>
>>>

>>>
 On Wed, Sep 30, 2015 at 9:24 PM, Imesh Gunaratne 
 wrote:

>  I would like to reduce the complexity of the folder structure and
> make it much simple. Shall we have some thing like below:
>
> private-paas-cartridges/
> |--/common/
>|--/configurator/
>|--/puppet/
>   |--/wso2-installer/
>|--/scripts/
>   |---/ec2/init.sh
>   |---/openstack/init.sh
>
> |--/wso2esb/4.9.0/
>|-/template-module/
>|-/cartridge-agent-plugins/
>|-/application/
>|-/docker/
>
> Thanks
>
> On Wed, Sep 30, 2015 at 9:13 PM, Imesh Gunaratne 
> wrote:
>
>> May be we can have this discussion in Dev, I cannot see any
>> reason to take this private.
>>
>> Thanks
>>
>> On Wed, Sep 30, 2015 at 6:26 PM, Gayan Gunarathne <
>> gay...@wso2.com> wrote:
>>
>>> Adding Engineering group
>>>
>>>
>>> -- Forwarded message --
>>> From: Gayan Gunarathne 
>>> Date: Wed, Sep 30, 2015 at 6:26 

Re: [Dev] [PPaaS] private-paas-cartridges repository structure

2015-10-01 Thread Reka Thirunavukkarasu
Hi Gayan

On Thu, Oct 1, 2015 at 6:16 PM, Gayan Gunarathne  wrote:

>
>
> On Thu, Oct 1, 2015 at 6:06 PM, Reka Thirunavukkarasu 
> wrote:
>
>> Hi
>>
>> Shall we maintain an installer as well(specially for VM cartridges) in
>> this repository to quickly create specific cartridges in puppet? What this
>> installer could do is,
>>
>> User has to provide the packs and set of values for the environment
>> variables.
>>
>> - Install puppet master
>> - Locate the relevant cartridges puppet modules
>> - Place the packs, template modules and plugins to right location
>> - Export all the user given environment variables
>> - Execute configurator to configure the samples
>>
>> WDYT?
>>
>
> Good thought reka. As our offline chat , we can plan to have two
> installers for ppaas and ppaas cartridges.We can have the ppaas installer
> to set up the ppaas related stuff while ppaas cartridge installer to set up
> the cartridge specific installations.
>
+1. We can check whether we can modify the stratos-installer and use it as
a ppaas-installer rather writing it from the scratch.

Thanks,
Reka

>
>> Thanks,
>> Reka
>>
>> On Thu, Oct 1, 2015 at 2:01 PM, Gayan Gunarathne  wrote:
>>
>>> Hi Akila,
>>>
>>> Common folder has all the common stuff related to the cartridges.So if
>>> someone can navigate to the common folder and get the stuff shared among
>>> the cartridges.
>>>
>>> I think it is meaningful to have those common stuff at a one place, then
>>> someone new to this repository also have a feeling those stuff will be
>>> common for all the cartridges.Common PCA plugins and utils also we can have
>>> inside the common folder
>>>
>>> Thanks,
>>> Gayan
>>>
>>> On Thu, Oct 1, 2015 at 12:52 PM, Akila Ravihansa Perera <
>>> raviha...@wso2.com> wrote:
>>>
 Hi Gayan,

 Wouldn't it be easier to navigate if we move those common folders to
 root folder?

 We can create a common folder under /plugins/ folder to keep common PCA
 plugins and util files.

 Just a thought...wdyt?

 Thanks.

 On Thu, Oct 1, 2015 at 10:29 AM, Gayan Gunarathne 
 wrote:

> Adding to the Dev list
>
>
> On Thu, Oct 1, 2015 at 7:05 AM, Imesh Gunaratne 
> wrote:
>
>> Shall we move this discussion to Dev?
>>
>> Thanks
>>
>> On Wed, Sep 30, 2015 at 11:02 PM, Gayan Gunarathne 
>> wrote:
>>
>>> As puppet,init-scripts,base image are common for all the
>>> cartridges,shall we group them under common?
>>> Also what about the configurator?I can see two options
>>> One option will be move the configurator to the private-paas
>>> repository and release it with the private paas.Other option will be we 
>>> can
>>> do the separate release for the configurator.Seems it is better to have 
>>> a
>>> separate release for the configurator. WDYT?
>>>
>>> Thanks,
>>> Gayan
>>>
>>> On Wed, Sep 30, 2015 at 10:44 PM, Gayan Gunarathne 
>>> wrote:
>>>
 Hi,

 On Wed, Sep 30, 2015 at 9:48 PM, Akila Ravihansa Perera <
 raviha...@wso2.com> wrote:

> +1 for having a simple folder structure. I think we can move the
> contents in /common/ folder to root folder. One can easily identify 
> the
> important files available and easy to navigate as well.
>
> What should be the Maven groupId for this repo? How about
> "org.wso2.ppaas.cartridges" or "org.wso2.cartridges" ?
>
 We can use org.wso2.ppaas.cartridges as groupId

 Thanks,
 Gayan


>

> On Wed, Sep 30, 2015 at 9:24 PM, Imesh Gunaratne 
> wrote:
>
>>  I would like to reduce the complexity of the folder structure
>> and make it much simple. Shall we have some thing like below:
>>
>> private-paas-cartridges/
>> |--/common/
>>|--/configurator/
>>|--/puppet/
>>   |--/wso2-installer/
>>|--/scripts/
>>   |---/ec2/init.sh
>>   |---/openstack/init.sh
>>
>> |--/wso2esb/4.9.0/
>>|-/template-module/
>>|-/cartridge-agent-plugins/
>>|-/application/
>>|-/docker/
>>
>> Thanks
>>
>> On Wed, Sep 30, 2015 at 9:13 PM, Imesh Gunaratne 
>> wrote:
>>
>>> May be we can have this discussion in Dev, I cannot see 

Re: [Dev] Orbit bundles for hadoop-client and hbase-client

2015-10-01 Thread Kalpa Welivitigoda
Hi Gokul,

I merged the PR.

Don't we need to add those two modules to the parent pom?

On Thu, Oct 1, 2015 at 1:53 PM, Gokul Balakrishnan  wrote:

> Thanks Kalpa. I've made the prescribed changes and added further comments
> to the PR explaining the need for dynamic imports, please check.
>
> On 1 October 2015 at 13:25, Kalpa Welivitigoda  wrote:
>
>> Hi Gokul,
>>
>> Sameera and myself have put some comments in the PR. Can you please check?
>>
>> On Thu, Oct 1, 2015 at 11:44 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi Gokul,
>>>
>>> I will look into this.
>>>
>>> On Thu, Oct 1, 2015 at 11:42 AM, Gokul Balakrishnan 
>>> wrote:
>>>
 Hi Kernel team,

 Could you please review the PR [1] for ${subject}?

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

 Thanks,

 --
 Gokul Balakrishnan
 Senior Software Engineer,
 WSO2, Inc. http://wso2.com
 Mob: +94 77 593 5789 | +1 650 272 9927

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


>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>
>
>
> --
> Gokul Balakrishnan
> Senior Software Engineer,
> WSO2, Inc. http://wso2.com
> Mob: +94 77 593 5789 | +1 650 272 9927
>



-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting PKIX path building failed

2015-10-01 Thread Malintha Adikari
Hi,

To generate cert from the keystore

keytool -genkey -alias keyAlias-keyalg RSA -keypass changeit -storepass
changeit keystore keystore.jks

To export the generated certificate

keytool -export -alias keyAlias-storepass changeit -file server.cer
-keystore keystore.jks


You can use above commands to do it and more information from doc
https://docs.oracle.com/cd/E19798-01/821-1751/ghlgv/index.html

Regards,
Malintha

On Thu, Oct 1, 2015 at 4:46 PM, Danushka Fernando 
wrote:

> You need to export the certificate from the keystore and import it to
> java. You can use keytool for that purpose.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Thu, Oct 1, 2015 at 11:31 AM, Sriashalya Srivathsan 
> wrote:
>
>> Hi Malintha,
>> I have a problem in adding keystore in to java.we can add the certificate
>> to java cacert, but I have keystore. how to add it?
>>
>> On Thu, Oct 1, 2015 at 11:12 AM, Sriashalya Srivathsan 
>> wrote:
>>
>>> Thanx Malintha, I'll check on that
>>>
>>> On Thu, Oct 1, 2015 at 10:49 AM, Malintha Adikari 
>>> wrote:
>>>
 Hi Sriashalya,

 Are you getting this error while sending requests to IS ? When you
 install new keystore to wso2 product you have to configure it in carbon.xml
 also.

 
 

 ${carbon.home}/repository/resources/security/wso2carbon.jks
 
 JKS
 
 wso2carbon
 
 wso2carbon
 
 wso2carbon
 

 Regards,
 Malintha

 On Thu, Oct 1, 2015 at 10:35 AM, Sriashalya Srivathsan <
 asha...@wso2.com> wrote:

> Hi
>
> Getting the following error while adding the keystore to IS which is
> provided by the API.
>
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
>
> I've added the certificate to java cacerts and wso2 IS.
>
>
> --
> Regards
> S.Sriashalya,
> WSO2 *Inc*.
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Malintha Adikari*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 71 2312958
 Blog:http://malinthas.blogspot.com
 Page:   http://about.me/malintha

>>>
>>>
>>>
>>> --
>>> Regards
>>> S.Sriashalya,
>>> WSO2 *Inc*.
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> Regards
>> S.Sriashalya,
>> WSO2 *Inc*.
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
*Malintha Adikari*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Mobile: +94 71 2312958
Blog:http://malinthas.blogspot.com
Page:   http://about.me/malintha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Orbit bundles for hadoop-client and hbase-client

2015-10-01 Thread Gokul Balakrishnan
Thanks Maheshika!

On 1 October 2015 at 17:59, Maheshika Goonetilleke 
wrote:

> Hi Gokul
>
> The two orbit bundles have been deployed successfully.
>
> On Thu, Oct 1, 2015 at 5:07 PM, Gokul Balakrishnan  wrote:
>
>> Thanks Kalpa. @Maheshika can you please release these two bundles?
>>
>> +1 for adding to parent pom
>>
>> On Thursday, 1 October 2015, Kalpa Welivitigoda  wrote:
>>
>>> Hi Gokul,
>>>
>>> I merged the PR.
>>>
>>> Don't we need to add those two modules to the parent pom?
>>>
>>> On Thu, Oct 1, 2015 at 1:53 PM, Gokul Balakrishnan 
>>> wrote:
>>>
 Thanks Kalpa. I've made the prescribed changes and added further
 comments to the PR explaining the need for dynamic imports, please check.

 On 1 October 2015 at 13:25, Kalpa Welivitigoda  wrote:

> Hi Gokul,
>
> Sameera and myself have put some comments in the PR. Can you please
> check?
>
> On Thu, Oct 1, 2015 at 11:44 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Gokul,
>>
>> I will look into this.
>>
>> On Thu, Oct 1, 2015 at 11:42 AM, Gokul Balakrishnan 
>> wrote:
>>
>>> Hi Kernel team,
>>>
>>> Could you please review the PR [1] for ${subject}?
>>>
>>> [1] https://github.com/wso2/orbit/pull/136
>>>
>>> Thanks,
>>>
>>> --
>>> Gokul Balakrishnan
>>> Senior Software Engineer,
>>> WSO2, Inc. http://wso2.com
>>> Mob: +94 77 593 5789 | +1 650 272 9927
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



 --
 Gokul Balakrishnan
 Senior Software Engineer,
 WSO2, Inc. http://wso2.com
 Mob: +94 77 593 5789 | +1 650 272 9927

>>>
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>
>>
>> --
>> Gokul Balakrishnan
>> Senior Software Engineer,
>> WSO2, Inc. http://wso2.com
>> Mob: +94 77 593 5789 | +1 650 272 9927
>>
>>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com *lean . enterprise . middleware
>
>
>
>
>


-- 
Gokul Balakrishnan
Senior Software Engineer,
WSO2, Inc. http://wso2.com
Mob: +94 77 593 5789 | +1 650 272 9927
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting PKIX path building failed

2015-10-01 Thread Danushka Fernando
You need to export the certificate from the keystore and import it to java.
You can use keytool for that purpose.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Thu, Oct 1, 2015 at 11:31 AM, Sriashalya Srivathsan 
wrote:

> Hi Malintha,
> I have a problem in adding keystore in to java.we can add the certificate
> to java cacert, but I have keystore. how to add it?
>
> On Thu, Oct 1, 2015 at 11:12 AM, Sriashalya Srivathsan 
> wrote:
>
>> Thanx Malintha, I'll check on that
>>
>> On Thu, Oct 1, 2015 at 10:49 AM, Malintha Adikari 
>> wrote:
>>
>>> Hi Sriashalya,
>>>
>>> Are you getting this error while sending requests to IS ? When you
>>> install new keystore to wso2 product you have to configure it in carbon.xml
>>> also.
>>>
>>> 
>>> 
>>>
>>> ${carbon.home}/repository/resources/security/wso2carbon.jks
>>> 
>>> JKS
>>> 
>>> wso2carbon
>>> 
>>> wso2carbon
>>> 
>>> wso2carbon
>>> 
>>>
>>> Regards,
>>> Malintha
>>>
>>> On Thu, Oct 1, 2015 at 10:35 AM, Sriashalya Srivathsan >> > wrote:
>>>
 Hi

 Getting the following error while adding the keystore to IS which is
 provided by the API.

 javax.net.ssl.SSLHandshakeException:
 sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to find
 valid certification path to requested target

 I've added the certificate to java cacerts and wso2 IS.


 --
 Regards
 S.Sriashalya,
 WSO2 *Inc*.
 lean . enterprise . middleware

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


>>>
>>>
>>> --
>>> *Malintha Adikari*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94 71 2312958
>>> Blog:http://malinthas.blogspot.com
>>> Page:   http://about.me/malintha
>>>
>>
>>
>>
>> --
>> Regards
>> S.Sriashalya,
>> WSO2 *Inc*.
>> lean . enterprise . middleware
>>
>
>
>
> --
> Regards
> S.Sriashalya,
> WSO2 *Inc*.
> lean . enterprise . middleware
>
> ___
> 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] Orbit bundles for hadoop-client and hbase-client

2015-10-01 Thread Maheshika Goonetilleke
Hi Gokul

The two orbit bundles have been deployed successfully.

On Thu, Oct 1, 2015 at 5:07 PM, Gokul Balakrishnan  wrote:

> Thanks Kalpa. @Maheshika can you please release these two bundles?
>
> +1 for adding to parent pom
>
> On Thursday, 1 October 2015, Kalpa Welivitigoda  wrote:
>
>> Hi Gokul,
>>
>> I merged the PR.
>>
>> Don't we need to add those two modules to the parent pom?
>>
>> On Thu, Oct 1, 2015 at 1:53 PM, Gokul Balakrishnan 
>> wrote:
>>
>>> Thanks Kalpa. I've made the prescribed changes and added further
>>> comments to the PR explaining the need for dynamic imports, please check.
>>>
>>> On 1 October 2015 at 13:25, Kalpa Welivitigoda  wrote:
>>>
 Hi Gokul,

 Sameera and myself have put some comments in the PR. Can you please
 check?

 On Thu, Oct 1, 2015 at 11:44 AM, Kalpa Welivitigoda 
 wrote:

> Hi Gokul,
>
> I will look into this.
>
> On Thu, Oct 1, 2015 at 11:42 AM, Gokul Balakrishnan 
> wrote:
>
>> Hi Kernel team,
>>
>> Could you please review the PR [1] for ${subject}?
>>
>> [1] https://github.com/wso2/orbit/pull/136
>>
>> Thanks,
>>
>> --
>> Gokul Balakrishnan
>> Senior Software Engineer,
>> WSO2, Inc. http://wso2.com
>> Mob: +94 77 593 5789 | +1 650 272 9927
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

>>>
>>>
>>>
>>> --
>>> Gokul Balakrishnan
>>> Senior Software Engineer,
>>> WSO2, Inc. http://wso2.com
>>> Mob: +94 77 593 5789 | +1 650 272 9927
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>
>
> --
> Gokul Balakrishnan
> Senior Software Engineer,
> WSO2, Inc. http://wso2.com
> Mob: +94 77 593 5789 | +1 650 272 9927
>
>


-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Failing test after business process version upgrade

2015-10-01 Thread Isuruwan Herath
Following is the stack trace observed in the above failing test:

INFO  [org.wso2.carbon.automation.engine.testlisteners.TestManagerListener]
- Running the test method ---
org.wso2.carbon.registry.lifecycle.test.LCTransitionNotificationTestCase.testLCApprovalNeededNotification

INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- [2015-09-30 18:52:38,551] ERROR
{org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl} -  The
user[testuser11] cannot perform loadTask() operation as either he is in
EXCLUDED_OWNERS role or he is not in task roles [[ACTUAL_OWNER,
BUSINESS_ADMINISTRATORS, NOTIFICATION_RECIPIENTS, POTENTIAL_OWNERS,
STAKEHOLDERS, TASK_INITIATOR]]
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- [2015-09-30 18:52:38,552] ERROR
{org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl} -  Error
occurred while loading task: 101
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
-
org.wso2.carbon.humantask.core.engine.runtime.api.HumanTaskIllegalAccessException:
Access Denied. You are not authorized to perform this task
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl.authoriseToLoadTask(TaskOperationsImpl.java:568)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl.access$400(TaskOperationsImpl.java:92)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl$9.call(TaskOperationsImpl.java:529)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl$9.call(TaskOperationsImpl.java:523)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.execTransaction(SimpleScheduler.java:879)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.execTransaction(SimpleScheduler.java:828)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl.loadTask(TaskOperationsImpl.java:522)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.humantask.client.api.HumanTaskClientAPIAdminMessageReceiverInOut.invokeBusinessLogic(HumanTaskClientAPIAdminMessageReceiverInOut.java:605)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)

On Thu, Oct 1, 2015 at 10:24 AM, Shazni Nazeer  wrote:

> Hi,
>
> We have a test case failure [1] which was passing with previous versions
> of business process. We updated the business process version to 4.4.3 as we
> needed to move to latest versions of some other repos for our release.
>
> This seems to be a permission issue.
>
> Any idea why could this happen?
>
> [1]
> https://wso2.org/jenkins/job/product-greg/org.wso2.greg$org.wso2.carbon.registry.test.lifecycle.service/844/testReport/org.wso2.carbon.registry.lifecycle.test/LCTransitionNotificationTestCase/testLCApprovalNeededNotification/
>
> Shazni Nazeer
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isuruwan Herath
Technical Lead

Contact: +94 776 273 296
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Private PaaS 4.1.0 Beta Release Preparation

2015-10-01 Thread Dinithi De Silva
Hi,

I have now moved the samples to the relevant folder with the product name
in private-paas-cartridges repository and done some modifications to the
paths in the deploy script according to the changes in the folder structure.
Please use these samples when testing Private PaaS.

Thanks.

On Thu, Oct 1, 2015 at 12:26 PM, Pubudu Gunatilaka  wrote:

> Hi,
>
> I have completed the clean up plugin for all the WSO2 cartridges which
> enables to shutdown the server gracefully. I will add the changes to the
> new cartridge repository once the structuring is completed in the repo. I
> will start working on setting up Private Paas for google cloud engine.
>
> Thank you!
>
> On Thu, Oct 1, 2015 at 10:30 AM, Imesh Gunaratne  wrote:
>
>> Hi Devs,
>>
>> I think we are now few steps away from doing $subject. Apache Stratos
>> 4.1.3 was released few days back. The idea is to release Private PaaS
>> 4.1.0-Beta with Stratos 4.1.3.
>>
>> We now have a separate git repository for cartridges. Once we move ESB,
>> API-M, IS and AS cartridges there and update JIRA I think we can go ahead
>> with $subject. Please update this thread with what you are currently
>> working on.
>>
>> Thanks
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774079049 <%2B94772207163>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Dinithi De Silva*
Associate Software Engineer, WSO2 Inc.
m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
| a: #20, Palm Grove, Colombo 03
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Private PaaS 4.1.0 Beta Release Preparation

2015-10-01 Thread Gayan Gunarathne
Great. Thanks Dinithi!

As we moved the cartridge related stuff to the new repository, now we need
to do sample testing on openstack/ec2 and kubernetes.

Thanks,
Gayan


On Thu, Oct 1, 2015 at 6:01 PM, Dinithi De Silva  wrote:

> Hi,
>
> I have now moved the samples to the relevant folder with the product name
> in private-paas-cartridges repository and done some modifications to the
> paths in the deploy script according to the changes in the folder structure.
> Please use these samples when testing Private PaaS.
>
> Thanks.
>
> On Thu, Oct 1, 2015 at 12:26 PM, Pubudu Gunatilaka 
> wrote:
>
>> Hi,
>>
>> I have completed the clean up plugin for all the WSO2 cartridges which
>> enables to shutdown the server gracefully. I will add the changes to the
>> new cartridge repository once the structuring is completed in the repo. I
>> will start working on setting up Private Paas for google cloud engine.
>>
>> Thank you!
>>
>> On Thu, Oct 1, 2015 at 10:30 AM, Imesh Gunaratne  wrote:
>>
>>> Hi Devs,
>>>
>>> I think we are now few steps away from doing $subject. Apache Stratos
>>> 4.1.3 was released few days back. The idea is to release Private PaaS
>>> 4.1.0-Beta with Stratos 4.1.3.
>>>
>>> We now have a separate git repository for cartridges. Once we move ESB,
>>> API-M, IS and AS cartridges there and update JIRA I think we can go ahead
>>> with $subject. Please update this thread with what you are currently
>>> working on.
>>>
>>> Thanks
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774079049 <%2B94772207163>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Dinithi De Silva*
> Associate Software Engineer, WSO2 Inc.
> m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
> | a: #20, Palm Grove, Colombo 03
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Private PaaS 4.1.0 Beta Release Preparation

2015-10-01 Thread Imesh Gunaratne
Shall we add folders with application ids? WDYT?


​

On Thu, Oct 1, 2015 at 6:11 PM, Gayan Gunarathne  wrote:

> Great. Thanks Dinithi!
>
> As we moved the cartridge related stuff to the new repository, now we need
> to do sample testing on openstack/ec2 and kubernetes.
>
> Thanks,
> Gayan
>
>
> On Thu, Oct 1, 2015 at 6:01 PM, Dinithi De Silva 
> wrote:
>
>> Hi,
>>
>> I have now moved the samples to the relevant folder with the product name
>> in private-paas-cartridges repository and done some modifications to the
>> paths in the deploy script according to the changes in the folder structure.
>> Please use these samples when testing Private PaaS.
>>
>> Thanks.
>>
>> On Thu, Oct 1, 2015 at 12:26 PM, Pubudu Gunatilaka 
>> wrote:
>>
>>> Hi,
>>>
>>> I have completed the clean up plugin for all the WSO2 cartridges which
>>> enables to shutdown the server gracefully. I will add the changes to the
>>> new cartridge repository once the structuring is completed in the repo. I
>>> will start working on setting up Private Paas for google cloud engine.
>>>
>>> Thank you!
>>>
>>> On Thu, Oct 1, 2015 at 10:30 AM, Imesh Gunaratne  wrote:
>>>
 Hi Devs,

 I think we are now few steps away from doing $subject. Apache Stratos
 4.1.3 was released few days back. The idea is to release Private PaaS
 4.1.0-Beta with Stratos 4.1.3.

 We now have a separate git repository for cartridges. Once we move ESB,
 API-M, IS and AS cartridges there and update JIRA I think we can go ahead
 with $subject. Please update this thread with what you are currently
 working on.

 Thanks

 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


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


>>>
>>>
>>> --
>>> *Pubudu Gunatilaka*
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> mobile : +94774079049 <%2B94772207163>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Dinithi De Silva*
>> Associate Software Engineer, WSO2 Inc.
>> m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
>> | a: #20, Palm Grove, Colombo 03
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>



-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Orbit bundles for hadoop-client and hbase-client

2015-10-01 Thread Gokul Balakrishnan
Thanks Kalpa. @Maheshika can you please release these two bundles?

+1 for adding to parent pom

On Thursday, 1 October 2015, Kalpa Welivitigoda  wrote:

> Hi Gokul,
>
> I merged the PR.
>
> Don't we need to add those two modules to the parent pom?
>
> On Thu, Oct 1, 2015 at 1:53 PM, Gokul Balakrishnan  > wrote:
>
>> Thanks Kalpa. I've made the prescribed changes and added further comments
>> to the PR explaining the need for dynamic imports, please check.
>>
>> On 1 October 2015 at 13:25, Kalpa Welivitigoda > > wrote:
>>
>>> Hi Gokul,
>>>
>>> Sameera and myself have put some comments in the PR. Can you please
>>> check?
>>>
>>> On Thu, Oct 1, 2015 at 11:44 AM, Kalpa Welivitigoda >> > wrote:
>>>
 Hi Gokul,

 I will look into this.

 On Thu, Oct 1, 2015 at 11:42 AM, Gokul Balakrishnan > wrote:

> Hi Kernel team,
>
> Could you please review the PR [1] for ${subject}?
>
> [1] https://github.com/wso2/orbit/pull/136
>
> Thanks,
>
> --
> Gokul Balakrishnan
> Senior Software Engineer,
> WSO2, Inc. http://wso2.com
> Mob: +94 77 593 5789 | +1 650 272 9927
>
> ___
> Dev mailing list
> Dev@wso2.org 
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 
 Mobile: +94776509215

>>>
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com 
>>> Mobile: +94776509215
>>>
>>
>>
>>
>> --
>> Gokul Balakrishnan
>> Senior Software Engineer,
>> WSO2, Inc. http://wso2.com
>> Mob: +94 77 593 5789 | +1 650 272 9927
>>
>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com 
> Mobile: +94776509215
>


-- 
Gokul Balakrishnan
Senior Software Engineer,
WSO2, Inc. http://wso2.com
Mob: +94 77 593 5789 | +1 650 272 9927
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] private-paas-cartridges repository structure

2015-10-01 Thread Akila Ravihansa Perera
>
>
>
> Shall we maintain an installer as well(specially for VM cartridges) in
> this repository to quickly create specific cartridges in puppet? What this
> installer could do is,
>
> User has to provide the packs and set of values for the environment
> variables.
>
> - Install puppet master
> - Locate the relevant cartridges puppet modules
> - Place the packs, template modules and plugins to right location
> - Export all the user given environment variables
> - Execute configurator to configure the samples
>
> WDYT?
>
> Thanks,
> Reka
>


Big +1

I'm looking into creating a single set of templates using Jinja template
language to cater for all IaaS requirements. We can maintain separate set
of module.ini files to create artifacts for different IaaS's. This we can
reduce the complexity in current sample folder structure.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] private-paas-cartridges repository structure

2015-10-01 Thread Reka Thirunavukkarasu
Hi

Shall we maintain an installer as well(specially for VM cartridges) in this
repository to quickly create specific cartridges in puppet? What this
installer could do is,

User has to provide the packs and set of values for the environment
variables.

- Install puppet master
- Locate the relevant cartridges puppet modules
- Place the packs, template modules and plugins to right location
- Export all the user given environment variables
- Execute configurator to configure the samples

WDYT?

Thanks,
Reka

On Thu, Oct 1, 2015 at 2:01 PM, Gayan Gunarathne  wrote:

> Hi Akila,
>
> Common folder has all the common stuff related to the cartridges.So if
> someone can navigate to the common folder and get the stuff shared among
> the cartridges.
>
> I think it is meaningful to have those common stuff at a one place, then
> someone new to this repository also have a feeling those stuff will be
> common for all the cartridges.Common PCA plugins and utils also we can have
> inside the common folder
>
> Thanks,
> Gayan
>
> On Thu, Oct 1, 2015 at 12:52 PM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> Hi Gayan,
>>
>> Wouldn't it be easier to navigate if we move those common folders to root
>> folder?
>>
>> We can create a common folder under /plugins/ folder to keep common PCA
>> plugins and util files.
>>
>> Just a thought...wdyt?
>>
>> Thanks.
>>
>> On Thu, Oct 1, 2015 at 10:29 AM, Gayan Gunarathne 
>> wrote:
>>
>>> Adding to the Dev list
>>>
>>>
>>> On Thu, Oct 1, 2015 at 7:05 AM, Imesh Gunaratne  wrote:
>>>
 Shall we move this discussion to Dev?

 Thanks

 On Wed, Sep 30, 2015 at 11:02 PM, Gayan Gunarathne 
 wrote:

> As puppet,init-scripts,base image are common for all the
> cartridges,shall we group them under common?
> Also what about the configurator?I can see two options
> One option will be move the configurator to the private-paas
> repository and release it with the private paas.Other option will be we 
> can
> do the separate release for the configurator.Seems it is better to have a
> separate release for the configurator. WDYT?
>
> Thanks,
> Gayan
>
> On Wed, Sep 30, 2015 at 10:44 PM, Gayan Gunarathne 
> wrote:
>
>> Hi,
>>
>> On Wed, Sep 30, 2015 at 9:48 PM, Akila Ravihansa Perera <
>> raviha...@wso2.com> wrote:
>>
>>> +1 for having a simple folder structure. I think we can move the
>>> contents in /common/ folder to root folder. One can easily identify the
>>> important files available and easy to navigate as well.
>>>
>>> What should be the Maven groupId for this repo? How about
>>> "org.wso2.ppaas.cartridges" or "org.wso2.cartridges" ?
>>>
>> We can use org.wso2.ppaas.cartridges as groupId
>>
>> Thanks,
>> Gayan
>>
>>
>>>
>>
>>> On Wed, Sep 30, 2015 at 9:24 PM, Imesh Gunaratne 
>>> wrote:
>>>
  I would like to reduce the complexity of the folder structure and
 make it much simple. Shall we have some thing like below:

 private-paas-cartridges/
 |--/common/
|--/configurator/
|--/puppet/
   |--/wso2-installer/
|--/scripts/
   |---/ec2/init.sh
   |---/openstack/init.sh

 |--/wso2esb/4.9.0/
|-/template-module/
|-/cartridge-agent-plugins/
|-/application/
|-/docker/

 Thanks

 On Wed, Sep 30, 2015 at 9:13 PM, Imesh Gunaratne 
 wrote:

> May be we can have this discussion in Dev, I cannot see any reason
> to take this private.
>
> Thanks
>
> On Wed, Sep 30, 2015 at 6:26 PM, Gayan Gunarathne  > wrote:
>
>> Adding Engineering group
>>
>>
>> -- Forwarded message --
>> From: Gayan Gunarathne 
>> Date: Wed, Sep 30, 2015 at 6:26 PM
>> Subject: [PPaaS] private-paas-cartridges repository structure
>> To: Imesh Gunaratne , Reka Thirunavukkarasu <
>> r...@wso2.com>, Udara Liyanage , Lahiru
>> Sandaruwan , Rajkumar Rajaratnam <
>> rajkum...@wso2.com>, Sajith Kariyawasam , Isuru
>> Haththotuwa , Lasindu Charith ,
>> Akila Ravihansa Perera , 

Re: [Dev] [IS] - Clarification on Duplicate entries in SAML Authentication Response

2015-10-01 Thread Danushka Fernando
Hi Nadeesha
The duplicate entry meant by you is under the saml assertion. Saml response
object contains a saml assertion. And when you sign both response and
assertion this entry includes into both objects. For more details you can
refer to saml spec. [1]

[1] http://saml.xml.org/saml-specifications

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Oct 1, 2015 7:10 PM, "Nadeesha Meegoda"  wrote:

> Hi IS team,
>
> I am testing SAML SSO with travelocity app and when I signed in to the app
> I noticed in the SAML authentication response getting duplicate entries for
> saml2:Issuer, ds:Signature, ds:X509Certificate etc with the same response
> data. Is there a special reason these are duplicated? Just need to clarify!
>
> Noted below is the section that is duplicated in the response:
>
>xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
>   >mgt.is.wso2.com
> http://www.w3.org/2000/09/xmldsig#;>
> 
> http://www.w3.org/2001/10/xml-exc-c14n#; />
> http://www.w3.org/2000/09/xmldsig#rsa-sha1; />
> 
> 
> http://www.w3.org/2000/09/xmldsig#enveloped-signature; />
> http://www.w3.org/2001/10/xml-exc-c14n#; />
> 
> http://www.w3.org/2000/09/xmldsig#sha1; />
>
> fiOel63mdz3HsEz2JrSbUgBvYDw=
> 
> 
>
> VgbMj1PIjJ0JFdyJ9AKaLkBnj7OD/prQahVU5WgdK9PAMvMedKt42pna+A5YznK0zLrzPKHAP/5VD6qHVPtF5LsYqJNEC4OTR1Mo2nzv34nOQxZZ95uxKBoxD/eVzgrqNBIzAecgSXvvYBj1ZlmjbJQoOuVxgdFOhOkz8S3bO+Q=
> 
> 
>
> MIICAzCCAWygAwIBAgIEb38jDjANBgkqhkiG9w0BAQQFADBGMRAwDgYDVQQDEwd5bWMuY29tMQ0wCwYDVQQLEwROb25lMRQwEgYDVQQKEwtOb25lIEw9Tm9uZTENMAsGA1UEBhMETm9uZTAeFw0xNTA4MjkwNjIxNDJaFw0yNTA5MjUwNjIxNDJaMEYxEDAOBgNVBAMTB3ltYy5jb20xDTALBgNVBAsTBE5vbmUxFDASBgNVBAoTC05vbmUgTD1Ob25lMQ0wCwYDVQQGEwROb25lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPWrZjdgaHwd8FDZaOm57wz2fxSW4umTuyw8E8PnNwCkZqIGpxkJGqfEOzXhP38A84a7fwXUfCZuwetgvkU4vfqhHieqI5OiA02pZpBzWkYjpg8By6YeJyK4Vy4hB6yq1gTCaerqffeAfXWI0ILog9iwJtbAgfJUDqU9j5XEnMxQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAE8GmwMaydEFMb8hzvXjkX2pdjZto4S5AqaERjigR5OCsvcnuqNPspuAMyy7AC6xRCkKOfhFEfFcAHhExpqCfqFcuEhfqc3tL89eDyf1sxfnaoCPSWjgo/TirWSaaxcT2JAcWfGh74S77CHC/m9rZ9ozaTJRhzNw5RYEbWNKJEqc
> 
> 
> 
>
> Full Response is attached with the mail.
>
> Highly appreciate an explanation on this!
>
>
> Thanks
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [UES][Dashboard Server] Dashboard anonymous view landing page

2015-10-01 Thread Udara Rathnayake
Hi All,

At the moment we have a landing page (which developer can select while
creating the dashboard) and this is the page end-user will initially get
once he/she browse the dashboard.

So for the anonymous view of the dashboard, we are going to use the same
landing page's anon view(if exists) else user will be redirected to the
login page.
This approach will basically need developer to have a anon view within the
landing page if there are anon views for other pages.

Otherwise we can go through existing pages and check existence of anon
views first and then render. This approach will deviate from the landing
page concept a bit.

Any thoughts?

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


Re: [Dev] Failing test after business process version upgrade

2015-10-01 Thread Firzhan Naqash
Hi All,

Please make sure to add the user *testuser11* to the role mentioned in the
workflow (
https://github.com/wso2/product-greg/tree/master/modules/distribution/src/main/resources/worklist
).


   





   * *
**
*htd:getInput("WorkRequest")/test10:role*
**










If the user *testuser11 *can not be found in the role "*approver*", you
will get the above mentioned permission issue.


Regards,
Firzhan


-- 
*Firzhan Naqash*
Senior Software Engineer - Integration Platform Team
WSO2 Inc. http://wso2.com

email: firz...@wso2.com 
mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
blog: http://firzhanblogger.blogspot.com/
  *
*twitter: https://twitter.com/firzhan007  |
linked-in: **https://www.linkedin.com/in/firzhan
*

On Thu, Oct 1, 2015 at 5:15 PM, Isuruwan Herath  wrote:

> Following is the stack trace observed in the above failing test:
>
> INFO
>  [org.wso2.carbon.automation.engine.testlisteners.TestManagerListener] -
> Running the test method ---
> org.wso2.carbon.registry.lifecycle.test.LCTransitionNotificationTestCase.testLCApprovalNeededNotification
> 
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
> [2015-09-30 18:52:38,551] ERROR
> {org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl} -  The
> user[testuser11] cannot perform loadTask() operation as either he is in
> EXCLUDED_OWNERS role or he is not in task roles [[ACTUAL_OWNER,
> BUSINESS_ADMINISTRATORS, NOTIFICATION_RECIPIENTS, POTENTIAL_OWNERS,
> STAKEHOLDERS, TASK_INITIATOR]]
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
> [2015-09-30 18:52:38,552] ERROR
> {org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl} -  Error
> occurred while loading task: 101
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
> org.wso2.carbon.humantask.core.engine.runtime.api.HumanTaskIllegalAccessException:
> Access Denied. You are not authorized to perform this task
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl.authoriseToLoadTask(TaskOperationsImpl.java:568)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl.access$400(TaskOperationsImpl.java:92)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl$9.call(TaskOperationsImpl.java:529)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl$9.call(TaskOperationsImpl.java:523)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.execTransaction(SimpleScheduler.java:879)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.execTransaction(SimpleScheduler.java:828)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl.loadTask(TaskOperationsImpl.java:522)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.client.api.HumanTaskClientAPIAdminMessageReceiverInOut.invokeBusinessLogic(HumanTaskClientAPIAdminMessageReceiverInOut.java:605)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
> INFO
>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>
> On Thu, Oct 1, 2015 at 10:24 AM, Shazni 

Re: [Dev] Should mysql database scripts work with old mysql versions.

2015-10-01 Thread Selvaratnam Uthaiyashankar
Normally, we should keep the compatibility with older versions.

Is there any specific reason why you need upto microsecond precision for
the timestamp?

On Wed, Sep 30, 2015 at 10:35 PM, Ishara Karunarathna 
wrote:

> Hi all,
>
> For example In mysql version 5.6.4 (released on February 5, 2013 ) onwards
> [1] it support for
> fractional seconds for TIMESTAMP values, with up to microseconds (6 digits)
>
> But if we write scripts to get that features it won't work with older
> versions.
> So can we write scripts to work only with mysql version 5.6.4 and latest
> or should we support for old versions ?.
>
> Thanks,
> Ishara
>
> [1]
> http://dev.mysql.com/doc/refman/5.6/en/mysql-nutshell.html#mysql-nutshell-additions
> --
> Ishara Karunarathna
> Senior Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791
>



-- 
S.Uthaiyashankar
VP Engineering
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"

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


[Dev] [IS] - Clarification on Duplicate entries in SAML Authentication Response

2015-10-01 Thread Nadeesha Meegoda
Hi IS team,

I am testing SAML SSO with travelocity app and when I signed in to the app
I noticed in the SAML authentication response getting duplicate entries for
saml2:Issuer, ds:Signature, ds:X509Certificate etc with the same response
data. Is there a special reason these are duplicated? Just need to clarify!

Noted below is the section that is duplicated in the response:

mgt.is.wso2.com
http://www.w3.org/2000/09/xmldsig#;>

http://www.w3.org/2001/10/xml-exc-c14n#; />
http://www.w3.org/2000/09/xmldsig#rsa-sha1; />


http://www.w3.org/2000/09/xmldsig#enveloped-signature; />
http://www.w3.org/2001/10/xml-exc-c14n#; />

http://www.w3.org/2000/09/xmldsig#sha1; />

fiOel63mdz3HsEz2JrSbUgBvYDw=



VgbMj1PIjJ0JFdyJ9AKaLkBnj7OD/prQahVU5WgdK9PAMvMedKt42pna+A5YznK0zLrzPKHAP/5VD6qHVPtF5LsYqJNEC4OTR1Mo2nzv34nOQxZZ95uxKBoxD/eVzgrqNBIzAecgSXvvYBj1ZlmjbJQoOuVxgdFOhOkz8S3bO+Q=



MIICAzCCAWygAwIBAgIEb38jDjANBgkqhkiG9w0BAQQFADBGMRAwDgYDVQQDEwd5bWMuY29tMQ0wCwYDVQQLEwROb25lMRQwEgYDVQQKEwtOb25lIEw9Tm9uZTENMAsGA1UEBhMETm9uZTAeFw0xNTA4MjkwNjIxNDJaFw0yNTA5MjUwNjIxNDJaMEYxEDAOBgNVBAMTB3ltYy5jb20xDTALBgNVBAsTBE5vbmUxFDASBgNVBAoTC05vbmUgTD1Ob25lMQ0wCwYDVQQGEwROb25lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPWrZjdgaHwd8FDZaOm57wz2fxSW4umTuyw8E8PnNwCkZqIGpxkJGqfEOzXhP38A84a7fwXUfCZuwetgvkU4vfqhHieqI5OiA02pZpBzWkYjpg8By6YeJyK4Vy4hB6yq1gTCaerqffeAfXWI0ILog9iwJtbAgfJUDqU9j5XEnMxQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAE8GmwMaydEFMb8hzvXjkX2pdjZto4S5AqaERjigR5OCsvcnuqNPspuAMyy7AC6xRCkKOfhFEfFcAHhExpqCfqFcuEhfqc3tL89eDyf1sxfnaoCPSWjgo/TirWSaaxcT2JAcWfGh74S77CHC/m9rZ9ozaTJRhzNw5RYEbWNKJEqc




Full Response is attached with the mail.

Highly appreciate an explanation on this!


Thanks

-- 
*Nadeesha Meegoda*
Software Engineer - QA
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
email : nadees...@wso2.com
mobile: +94783639540
<%2B94%2077%202273555>
http://localhost:8080/travelocity.com/home.jsp;
 ID="bnlofhdfbehmnhiajimjohbkhepimciajocfmdkl"
 InResponseTo="0"
 IssueInstant="2015-10-01T12:30:18.226Z"
 Version="2.0"
 xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
 >
mgt.is.wso2.com
http://www.w3.org/2000/09/xmldsig#;>

http://www.w3.org/2001/10/xml-exc-c14n#; />
http://www.w3.org/2000/09/xmldsig#rsa-sha1; />


http://www.w3.org/2000/09/xmldsig#enveloped-signature; />
http://www.w3.org/2001/10/xml-exc-c14n#; />

http://www.w3.org/2000/09/xmldsig#sha1; />
fiOel63mdz3HsEz2JrSbUgBvYDw=



VgbMj1PIjJ0JFdyJ9AKaLkBnj7OD/prQahVU5WgdK9PAMvMedKt42pna+A5YznK0zLrzPKHAP/5VD6qHVPtF5LsYqJNEC4OTR1Mo2nzv34nOQxZZ95uxKBoxD/eVzgrqNBIzAecgSXvvYBj1ZlmjbJQoOuVxgdFOhOkz8S3bO+Q=



MIICAzCCAWygAwIBAgIEb38jDjANBgkqhkiG9w0BAQQFADBGMRAwDgYDVQQDEwd5bWMuY29tMQ0wCwYDVQQLEwROb25lMRQwEgYDVQQKEwtOb25lIEw9Tm9uZTENMAsGA1UEBhMETm9uZTAeFw0xNTA4MjkwNjIxNDJaFw0yNTA5MjUwNjIxNDJaMEYxEDAOBgNVBAMTB3ltYy5jb20xDTALBgNVBAsTBE5vbmUxFDASBgNVBAoTC05vbmUgTD1Ob25lMQ0wCwYDVQQGEwROb25lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPWrZjdgaHwd8FDZaOm57wz2fxSW4umTuyw8E8PnNwCkZqIGpxkJGqfEOzXhP38A84a7fwXUfCZuwetgvkU4vfqhHieqI5OiA02pZpBzWkYjpg8By6YeJyK4Vy4hB6yq1gTCaerqffeAfXWI0ILog9iwJtbAgfJUDqU9j5XEnMxQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAE8GmwMaydEFMb8hzvXjkX2pdjZto4S5AqaERjigR5OCsvcnuqNPspuAMyy7AC6xRCkKOfhFEfFcAHhExpqCfqFcuEhfqc3tL89eDyf1sxfnaoCPSWjgo/TirWSaaxcT2JAcWfGh74S77CHC/m9rZ9ozaTJRhzNw5RYEbWNKJEqc







mgt.is.wso2.com
http://www.w3.org/2000/09/xmldsig#;>

http://www.w3.org/2001/10/xml-exc-c14n#; />
http://www.w3.org/2000/09/xmldsig#rsa-sha1; />


http://www.w3.org/2000/09/xmldsig#enveloped-signature; />
http://www.w3.org/2001/10/xml-exc-c14n#; />

http://www.w3.org/2000/09/xmldsig#sha1; />

q3Gjd3ybFgDvyXUjjXxuDZ1qTLk=



jNPdAfC1ZFvDsmW6qWELEM510ozoikggsJ2GMyfDGtmGvJ1e0Vfv4zPbZ5suNifCeFid9j2mf8KznNro2t9kj4+WVPrD7ujkIKVQOfB+xph0th7tpDG2YQVdeZtMSCcAPlako/v1E4w2QnWLtY+VjMYEdaz2Wv+qYxkOfMcJvv8=




Re: [Dev] Should mysql database scripts work with old mysql versions.

2015-10-01 Thread Selvaratnam Uthaiyashankar
Is this support (fraction of second) there in other RDBMS (Oracle, MSSQL,
etc?). If it is only Mysql 5.6.4 +, then we shouldn't use IMO. If this
support is there in all other RDBMS, then it should be ok.

On Thu, Oct 1, 2015 at 9:40 PM, Ishara Karunarathna 
wrote:

> Hi Shankar,
>
> On Thu, Oct 1, 2015 at 7:45 PM, Selvaratnam Uthaiyashankar <
> shan...@wso2.com> wrote:
>
>> Normally, we should keep the compatibility with older versions.
>>
>> Is there any specific reason why you need upto microsecond precision for
>> the timestamp?
>>
> by default mysql support for seconds.
> In Identity server we started to persist session date with its updated
> timestamp. And retrieve the latest data object related to
> given session.
> If it's only supported for seconds we get duplicate entries. In that case
> we have to go for fractional seconds in timestamp
> or will have to store it in another data type.
>
> Thanks,
> Ishara
>
>>
>> On Wed, Sep 30, 2015 at 10:35 PM, Ishara Karunarathna 
>> wrote:
>>
>>> Hi all,
>>>
>>> For example In mysql version 5.6.4 (released on February 5, 2013 )
>>> onwards [1] it support for
>>> fractional seconds for TIMESTAMP values, with up to microseconds (6
>>> digits)
>>>
>>> But if we write scripts to get that features it won't work with older
>>> versions.
>>> So can we write scripts to work only with mysql version 5.6.4 and latest
>>> or should we support for old versions ?.
>>>
>>> Thanks,
>>> Ishara
>>>
>>> [1]
>>> http://dev.mysql.com/doc/refman/5.6/en/mysql-nutshell.html#mysql-nutshell-additions
>>> --
>>> Ishara Karunarathna
>>> Senior Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
>>> +94717996791
>>>
>>
>>
>>
>> --
>> S.Uthaiyashankar
>> VP Engineering
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>>
>> Phone: +94 714897591
>>
>
>
>
> --
> Ishara Karunarathna
> Senior Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791
>



-- 
S.Uthaiyashankar
VP Engineering
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"

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


Re: [Dev] Getting PKIX path building failed

2015-10-01 Thread Sriashalya Srivathsan
Hi Malintha,

I tried that also..still getting the same issue.

On Thu, Oct 1, 2015 at 5:03 PM, Malintha Adikari  wrote:

> Hi,
>
> To generate cert from the keystore
>
> keytool -genkey -alias keyAlias-keyalg RSA -keypass changeit -storepass
> changeit keystore keystore.jks
>
> To export the generated certificate
>
> keytool -export -alias keyAlias-storepass changeit -file server.cer
> -keystore keystore.jks
>
>
> You can use above commands to do it and more information from doc
> https://docs.oracle.com/cd/E19798-01/821-1751/ghlgv/index.html
>
> Regards,
> Malintha
>
> On Thu, Oct 1, 2015 at 4:46 PM, Danushka Fernando 
> wrote:
>
>> You need to export the certificate from the keystore and import it to
>> java. You can use keytool for that purpose.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Thu, Oct 1, 2015 at 11:31 AM, Sriashalya Srivathsan 
>> wrote:
>>
>>> Hi Malintha,
>>> I have a problem in adding keystore in to java.we can add the
>>> certificate to java cacert, but I have keystore. how to add it?
>>>
>>> On Thu, Oct 1, 2015 at 11:12 AM, Sriashalya Srivathsan >> > wrote:
>>>
 Thanx Malintha, I'll check on that

 On Thu, Oct 1, 2015 at 10:49 AM, Malintha Adikari 
 wrote:

> Hi Sriashalya,
>
> Are you getting this error while sending requests to IS ? When you
> install new keystore to wso2 product you have to configure it in 
> carbon.xml
> also.
>
> 
> 
>
> ${carbon.home}/repository/resources/security/wso2carbon.jks
> 
> JKS
> 
> wso2carbon
> 
> wso2carbon
> 
> wso2carbon
> 
>
> Regards,
> Malintha
>
> On Thu, Oct 1, 2015 at 10:35 AM, Sriashalya Srivathsan <
> asha...@wso2.com> wrote:
>
>> Hi
>>
>> Getting the following error while adding the keystore to IS which is
>> provided by the API.
>>
>> javax.net.ssl.SSLHandshakeException:
>> sun.security.validator.ValidatorException: PKIX path building failed:
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to 
>> find
>> valid certification path to requested target
>>
>> I've added the certificate to java cacerts and wso2 IS.
>>
>>
>> --
>> Regards
>> S.Sriashalya,
>> WSO2 *Inc*.
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Malintha Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 71 2312958
> Blog:http://malinthas.blogspot.com
> Page:   http://about.me/malintha
>



 --
 Regards
 S.Sriashalya,
 WSO2 *Inc*.
 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>> Regards
>>> S.Sriashalya,
>>> WSO2 *Inc*.
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> *Malintha Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 71 2312958
> Blog:http://malinthas.blogspot.com
> Page:   http://about.me/malintha
>



-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Should mysql database scripts work with old mysql versions.

2015-10-01 Thread Ishara Karunarathna
Hi Shankar,

On Thu, Oct 1, 2015 at 7:45 PM, Selvaratnam Uthaiyashankar  wrote:

> Normally, we should keep the compatibility with older versions.
>
> Is there any specific reason why you need upto microsecond precision for
> the timestamp?
>
by default mysql support for seconds.
In Identity server we started to persist session date with its updated
timestamp. And retrieve the latest data object related to
given session.
If it's only supported for seconds we get duplicate entries. In that case
we have to go for fractional seconds in timestamp
or will have to store it in another data type.

Thanks,
Ishara

>
> On Wed, Sep 30, 2015 at 10:35 PM, Ishara Karunarathna 
> wrote:
>
>> Hi all,
>>
>> For example In mysql version 5.6.4 (released on February 5, 2013 )
>> onwards [1] it support for
>> fractional seconds for TIMESTAMP values, with up to microseconds (6
>> digits)
>>
>> But if we write scripts to get that features it won't work with older
>> versions.
>> So can we write scripts to work only with mysql version 5.6.4 and latest
>> or should we support for old versions ?.
>>
>> Thanks,
>> Ishara
>>
>> [1]
>> http://dev.mysql.com/doc/refman/5.6/en/mysql-nutshell.html#mysql-nutshell-additions
>> --
>> Ishara Karunarathna
>> Senior Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
>> +94717996791
>>
>
>
>
> --
> S.Uthaiyashankar
> VP Engineering
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
>
> Phone: +94 714897591
>



-- 
Ishara Karunarathna
Senior Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ML] Getting error while creating a dataset

2015-10-01 Thread Malintha Adikari
Hi,

I am trying to create a dataset from 748KB sized data file [1] and getting
following error.

[2015-10-02 01:03:38,769]  INFO
{org.wso2.carbon.ml.core.impl.MLDatasetProcessor} -  [Created] MLDataset
[id=1, name=digitdd, tenantId=-1234, userName=admin, dataSourceType=file,
dataTargetType=file, sourcePath=null, dataType=csv, comments=,
version=1.0.0, containsHeader=true, status=null]
[2015-10-02 01:03:40,537]  WARN
{org.wso2.carbon.ml.database.internal.MLDatabaseUtils} -  An error occurred
while enabling autocommit: PooledConnection has already been closed.
java.sql.SQLException: PooledConnection has already been closed.
at
org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:86)
at com.sun.proxy.$Proxy16.setAutoCommit(Unknown Source)
at
org.wso2.carbon.ml.database.internal.MLDatabaseUtils.enableAutoCommit(MLDatabaseUtils.java:153)
at
org.wso2.carbon.ml.database.internal.MLDatabaseService.updateSummaryStatistics(MLDatabaseService.java:2370)
at
org.wso2.carbon.ml.core.impl.SummaryStatsGenerator.run(SummaryStatsGenerator.java:130)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-10-02 01:03:40,550] ERROR
{org.wso2.carbon.ml.core.impl.SummaryStatsGenerator} -  Error occurred
while calculating summary statistics for dataset version 1: An error
occurred while updating the database with summary statistics of the dataset
1: 16
org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException: An error
occurred while updating the database with summary statistics of the dataset
1: 16
at
org.wso2.carbon.ml.database.internal.MLDatabaseService.updateSummaryStatistics(MLDatabaseService.java:2366)
at
org.wso2.carbon.ml.core.impl.SummaryStatsGenerator.run(SummaryStatsGenerator.java:130)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 16
at
org.wso2.carbon.ml.database.internal.MLDatabaseService.updateSummaryStatistics(MLDatabaseService.java:2329)
... 4 more

What could be the possible reason for this error ?

[1]
http://ocw.mit.edu/courses/sloan-school-of-management/15-097-prediction-machine-learning-and-statistics-spring-2012/datasets/digits.csv

Regards,
Malintha

-- 
*Malintha Adikari*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Mobile: +94 71 2312958
Blog:http://malinthas.blogspot.com
Page:   http://about.me/malintha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 BPS 3.5.0 RC2

2015-10-01 Thread Hasitha Aravinda
Hi

I have tested and Reviewed followings and found no issues.

   - INSTALL.txt
   - LICENSE.txt
   - README.txt
   - Tested Server start with MySQL -Dsetup.

BPEL

   - Tested Correlation Scenario.
   - Tested Correlation Violation scenario.

HumanTask

   - HumanTask creation and basic task commands : Claim, Suspend, Resume,
   Start, Complete, Skip, Fail, Delegate.
   - HumanTask coordination - Process termination and Task Skip scenario.
   - HumanTask Notification creation.

BPMN

   - Tested Service Tasks, User Tasks, Parallel Gateway,  Exclusive Gateway
   processes.


​
​
[+] Stable - go ahead and release

​Thanks,
Hasitha.


On Wed, Sep 30, 2015 at 11:03 AM, Firzhan Naqash  wrote:

>
> Hi Devs,
>
> *WSO2 BPS 3.5.0 RC2 Release Vote*
>
> This release fixes the following issues:
> https://wso2.org/jira/browse/BPS-604?filter=12415
>
> Please download BPS 3.5.0 RC2 and test the functionality and vote. Vote
> will be open for 72 hours or as needed.
>
> Binary distribution at:
> http://svn.wso2.org/repos/wso2/people/firzhan/packs/bps/3.5.0/RC2/
>
> Maven staging repository:
> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-158/
>
> The tag to be voted upon :
> https://github.com/wso2/product-bps/releases/tag/v3.5.0-RC2
>
>
> [-] Broken - do not release (explain why)
> ​​
> [+] Stable - go ahead and release
>
> Thanks and Regards,
> WSO2 BPS Team
>
>
>
> Regards,
> Firzhan
>
>
> --
> *Firzhan Naqash*
> Senior Software Engineer - Integration Platform Team
> WSO2 Inc. http://wso2.com
>
> email: firz...@wso2.com 
> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
> blog: http://firzhanblogger.blogspot.com/
>   *
> *twitter: https://twitter.com/firzhan007
>  | linked-in: 
> **https://www.linkedin.com/in/firzhan
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--
Hasitha Aravinda,
Senior Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile : +94 718 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 BPS 3.5.0 RC2

2015-10-01 Thread Shiva Balachandran
HI All,

Tested the BPMN functionalites as well as the bpmn explorer. Looks amazing!

​
​
[+] Stable - go ahead and release

On Fri, Oct 2, 2015 at 1:10 AM, Hasitha Aravinda  wrote:

> Hi
>
> I have tested and Reviewed followings and found no issues.
>
>- INSTALL.txt
>- LICENSE.txt
>- README.txt
>- Tested Server start with MySQL -Dsetup.
>
> BPEL
>
>- Tested Correlation Scenario.
>- Tested Correlation Violation scenario.
>
> HumanTask
>
>- HumanTask creation and basic task commands : Claim, Suspend, Resume,
>Start, Complete, Skip, Fail, Delegate.
>- HumanTask coordination - Process termination and Task Skip scenario.
>
>- HumanTask Notification creation.
>
> BPMN
>
>- Tested Service Tasks, User Tasks, Parallel Gateway,  Exclusive
>Gateway processes.
>
>
> ​
> ​
> [+] Stable - go ahead and release
>
> ​Thanks,
> Hasitha.
>
>
> On Wed, Sep 30, 2015 at 11:03 AM, Firzhan Naqash  wrote:
>
>>
>> Hi Devs,
>>
>> *WSO2 BPS 3.5.0 RC2 Release Vote*
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/browse/BPS-604?filter=12415
>>
>> Please download BPS 3.5.0 RC2 and test the functionality and vote. Vote
>> will be open for 72 hours or as needed.
>>
>> Binary distribution at:
>> http://svn.wso2.org/repos/wso2/people/firzhan/packs/bps/3.5.0/RC2/
>>
>> Maven staging repository:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-158/
>>
>> The tag to be voted upon :
>> https://github.com/wso2/product-bps/releases/tag/v3.5.0-RC2
>>
>>
>> [-] Broken - do not release (explain why)
>> ​​
>> [+] Stable - go ahead and release
>>
>> Thanks and Regards,
>> WSO2 BPS Team
>>
>>
>>
>> Regards,
>> Firzhan
>>
>>
>> --
>> *Firzhan Naqash*
>> Senior Software Engineer - Integration Platform Team
>> WSO2 Inc. http://wso2.com
>>
>> email: firz...@wso2.com 
>> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
>> blog: http://firzhanblogger.blogspot.com/
>>   *
>> *twitter: https://twitter.com/firzhan007
>>  | linked-in: 
>> **https://www.linkedin.com/in/firzhan
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Hasitha Aravinda,
> Senior Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

Mobile - +94 774445788
Blog - https://shivabalachandran.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Orbit bundles for hadoop-client and hbase-client

2015-10-01 Thread Gokul Balakrishnan
Hi Kernel team,

Could you please review the PR [1] for ${subject}?

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

Thanks,

-- 
Gokul Balakrishnan
Senior Software Engineer,
WSO2, Inc. http://wso2.com
Mob: +94 77 593 5789 | +1 650 272 9927
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 BPS 3.5.0 RC2

2015-10-01 Thread Isuru Wijesinghe
Hi,
I tested all the samples.

   - BPMN samples
   - BPEL Samples
   - HumanTask Samples

[x] Stable - go ahead and release

Thanks and Regards,

On Wed, Sep 30, 2015 at 3:40 PM, Vinod Kavinda  wrote:

> Hi,
> I tested the HumanTask and BPEL functionalities.
>
> [x] Stable - go ahead and release
>
> Regards,
> Vinod
>
> On Wed, Sep 30, 2015 at 11:03 AM, Firzhan Naqash  wrote:
>
>>
>> Hi Devs,
>>
>> *WSO2 BPS 3.5.0 RC2 Release Vote*
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/browse/BPS-604?filter=12415
>>
>> Please download BPS 3.5.0 RC2 and test the functionality and vote. Vote
>> will be open for 72 hours or as needed.
>>
>> Binary distribution at:
>> http://svn.wso2.org/repos/wso2/people/firzhan/packs/bps/3.5.0/RC2/
>>
>> Maven staging repository:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-158/
>>
>> The tag to be voted upon :
>> https://github.com/wso2/product-bps/releases/tag/v3.5.0-RC2
>>
>>
>> [-] Broken - do not release (explain why)
>> [+] Stable - go ahead and release
>>
>> Thanks and Regards,
>> WSO2 BPS Team
>>
>>
>>
>> Regards,
>> Firzhan
>>
>>
>> --
>> *Firzhan Naqash*
>> Senior Software Engineer - Integration Platform Team
>> WSO2 Inc. http://wso2.com
>>
>> email: firz...@wso2.com 
>> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
>> blog: http://firzhanblogger.blogspot.com/
>>   *
>> *twitter: https://twitter.com/firzhan007
>>  | linked-in: 
>> **https://www.linkedin.com/in/firzhan
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isuru Wijesinghe
*Software Engineer*
Mobile: 0710933706
isur...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Orbit bundles for hadoop-client and hbase-client

2015-10-01 Thread Kalpa Welivitigoda
Hi Gokul,

I will look into this.

On Thu, Oct 1, 2015 at 11:42 AM, Gokul Balakrishnan  wrote:

> Hi Kernel team,
>
> Could you please review the PR [1] for ${subject}?
>
> [1] https://github.com/wso2/orbit/pull/136
>
> Thanks,
>
> --
> Gokul Balakrishnan
> Senior Software Engineer,
> WSO2, Inc. http://wso2.com
> Mob: +94 77 593 5789 | +1 650 272 9927
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting PKIX path building failed

2015-10-01 Thread Sriashalya Srivathsan
Hi Malintha,
I have a problem in adding keystore in to java.we can add the certificate
to java cacert, but I have keystore. how to add it?

On Thu, Oct 1, 2015 at 11:12 AM, Sriashalya Srivathsan 
wrote:

> Thanx Malintha, I'll check on that
>
> On Thu, Oct 1, 2015 at 10:49 AM, Malintha Adikari 
> wrote:
>
>> Hi Sriashalya,
>>
>> Are you getting this error while sending requests to IS ? When you
>> install new keystore to wso2 product you have to configure it in carbon.xml
>> also.
>>
>> 
>> 
>>
>> ${carbon.home}/repository/resources/security/wso2carbon.jks
>> 
>> JKS
>> 
>> wso2carbon
>> 
>> wso2carbon
>> 
>> wso2carbon
>> 
>>
>> Regards,
>> Malintha
>>
>> On Thu, Oct 1, 2015 at 10:35 AM, Sriashalya Srivathsan 
>> wrote:
>>
>>> Hi
>>>
>>> Getting the following error while adding the keystore to IS which is
>>> provided by the API.
>>>
>>> javax.net.ssl.SSLHandshakeException:
>>> sun.security.validator.ValidatorException: PKIX path building failed:
>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
>>> valid certification path to requested target
>>>
>>> I've added the certificate to java cacerts and wso2 IS.
>>>
>>>
>>> --
>>> Regards
>>> S.Sriashalya,
>>> WSO2 *Inc*.
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Malintha Adikari*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile: +94 71 2312958
>> Blog:http://malinthas.blogspot.com
>> Page:   http://about.me/malintha
>>
>
>
>
> --
> Regards
> S.Sriashalya,
> WSO2 *Inc*.
> lean . enterprise . middleware
>



-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Private PaaS 4.1.0 Beta Release Preparation

2015-10-01 Thread Pubudu Gunatilaka
Hi,

I have completed the clean up plugin for all the WSO2 cartridges which
enables to shutdown the server gracefully. I will add the changes to the
new cartridge repository once the structuring is completed in the repo. I
will start working on setting up Private Paas for google cloud engine.

Thank you!

On Thu, Oct 1, 2015 at 10:30 AM, Imesh Gunaratne  wrote:

> Hi Devs,
>
> I think we are now few steps away from doing $subject. Apache Stratos
> 4.1.3 was released few days back. The idea is to release Private PaaS
> 4.1.0-Beta with Stratos 4.1.3.
>
> We now have a separate git repository for cartridges. Once we move ESB,
> API-M, IS and AS cartridges there and update JIRA I think we can go ahead
> with $subject. Please update this thread with what you are currently
> working on.
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774079049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PPaaS] private-paas-cartridges repository structure

2015-10-01 Thread Akila Ravihansa Perera
Hi Gayan,

Wouldn't it be easier to navigate if we move those common folders to root
folder?

We can create a common folder under /plugins/ folder to keep common PCA
plugins and util files.

Just a thought...wdyt?

Thanks.

On Thu, Oct 1, 2015 at 10:29 AM, Gayan Gunarathne  wrote:

> Adding to the Dev list
>
>
> On Thu, Oct 1, 2015 at 7:05 AM, Imesh Gunaratne  wrote:
>
>> Shall we move this discussion to Dev?
>>
>> Thanks
>>
>> On Wed, Sep 30, 2015 at 11:02 PM, Gayan Gunarathne 
>> wrote:
>>
>>> As puppet,init-scripts,base image are common for all the
>>> cartridges,shall we group them under common?
>>> Also what about the configurator?I can see two options
>>> One option will be move the configurator to the private-paas repository
>>> and release it with the private paas.Other option will be we can do the
>>> separate release for the configurator.Seems it is better to have a separate
>>> release for the configurator. WDYT?
>>>
>>> Thanks,
>>> Gayan
>>>
>>> On Wed, Sep 30, 2015 at 10:44 PM, Gayan Gunarathne 
>>> wrote:
>>>
 Hi,

 On Wed, Sep 30, 2015 at 9:48 PM, Akila Ravihansa Perera <
 raviha...@wso2.com> wrote:

> +1 for having a simple folder structure. I think we can move the
> contents in /common/ folder to root folder. One can easily identify the
> important files available and easy to navigate as well.
>
> What should be the Maven groupId for this repo? How about
> "org.wso2.ppaas.cartridges" or "org.wso2.cartridges" ?
>
 We can use org.wso2.ppaas.cartridges as groupId

 Thanks,
 Gayan


>

> On Wed, Sep 30, 2015 at 9:24 PM, Imesh Gunaratne 
> wrote:
>
>>  I would like to reduce the complexity of the folder structure and
>> make it much simple. Shall we have some thing like below:
>>
>> private-paas-cartridges/
>> |--/common/
>>|--/configurator/
>>|--/puppet/
>>   |--/wso2-installer/
>>|--/scripts/
>>   |---/ec2/init.sh
>>   |---/openstack/init.sh
>>
>> |--/wso2esb/4.9.0/
>>|-/template-module/
>>|-/cartridge-agent-plugins/
>>|-/application/
>>|-/docker/
>>
>> Thanks
>>
>> On Wed, Sep 30, 2015 at 9:13 PM, Imesh Gunaratne 
>> wrote:
>>
>>> May be we can have this discussion in Dev, I cannot see any reason
>>> to take this private.
>>>
>>> Thanks
>>>
>>> On Wed, Sep 30, 2015 at 6:26 PM, Gayan Gunarathne 
>>> wrote:
>>>
 Adding Engineering group


 -- Forwarded message --
 From: Gayan Gunarathne 
 Date: Wed, Sep 30, 2015 at 6:26 PM
 Subject: [PPaaS] private-paas-cartridges repository structure
 To: Imesh Gunaratne , Reka Thirunavukkarasu <
 r...@wso2.com>, Udara Liyanage , Lahiru Sandaruwan
 , Rajkumar Rajaratnam ,
 Sajith Kariyawasam , Isuru Haththotuwa <
 isu...@wso2.com>, Lasindu Charith , Akila
 Ravihansa Perera , Chamila De Alwis <
 chami...@wso2.com>, Vishanth Balasubramaniam ,
 Dinithi De Silva , Anuruddha Liyanarachchi <
 anurudd...@wso2.com>, Pubudu Gunatilaka ,
 Thanuja Uruththirakodeeswaran 


 Hi All,

 Shall we have the following structure with
 the private-paas-cartridges[1] repository

 1. Maintain the separate directory for each cartridge

 Suggested directory structure as following

 .

 ├── base-image

 │   └── docker

 │   └── scripts

 │   └── start-agent.sh

 ├── vm

 │   ├── init-scripts

 │   │

 │   ├── puppet

 │   │

 │   └── README.md

 ├── wso2_product

   ├──  Version

 │   ├── docker

 │   │

 │   ├── plugins

 │   │

 │   ├── templates-modules

 │   │

 │   ├── Samples

 │   └── README.md



 Also we can move the samples to the related product folder. Then as
 a best practice we 

Re: [Dev] [VOTE] Release WSO2 BPS 3.5.0 RC2

2015-10-01 Thread Himasha Guruge
Hi,

I tested following areas related to BPEL Capp .

 1. BPEL Capp deployment.
 2. BPEL Capp undeployment.
 3.  Active/retire/suspend actions on the deployed Capp.

[x]Stable- go ahead and release.

Thanks,


On Thu, Oct 1, 2015 at 11:42 AM, Isuru Wijesinghe  wrote:

> Hi,
> I tested all the samples.
>
>- BPMN samples
>- BPEL Samples
>- HumanTask Samples
>
> [x] Stable - go ahead and release
>
> Thanks and Regards,
>
> On Wed, Sep 30, 2015 at 3:40 PM, Vinod Kavinda  wrote:
>
>> Hi,
>> I tested the HumanTask and BPEL functionalities.
>>
>> [x] Stable - go ahead and release
>>
>> Regards,
>> Vinod
>>
>> On Wed, Sep 30, 2015 at 11:03 AM, Firzhan Naqash 
>> wrote:
>>
>>>
>>> Hi Devs,
>>>
>>> *WSO2 BPS 3.5.0 RC2 Release Vote*
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/browse/BPS-604?filter=12415
>>>
>>> Please download BPS 3.5.0 RC2 and test the functionality and vote. Vote
>>> will be open for 72 hours or as needed.
>>>
>>> Binary distribution at:
>>> http://svn.wso2.org/repos/wso2/people/firzhan/packs/bps/3.5.0/RC2/
>>>
>>> Maven staging repository:
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-158/
>>>
>>> The tag to be voted upon :
>>> https://github.com/wso2/product-bps/releases/tag/v3.5.0-RC2
>>>
>>>
>>> [-] Broken - do not release (explain why)
>>> [+] Stable - go ahead and release
>>>
>>> Thanks and Regards,
>>> WSO2 BPS Team
>>>
>>>
>>>
>>> Regards,
>>> Firzhan
>>>
>>>
>>> --
>>> *Firzhan Naqash*
>>> Senior Software Engineer - Integration Platform Team
>>> WSO2 Inc. http://wso2.com
>>>
>>> email: firz...@wso2.com 
>>> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
>>> blog: http://firzhanblogger.blogspot.com/
>>>   *
>>> *twitter: https://twitter.com/firzhan007
>>>  | linked-in: 
>>> **https://www.linkedin.com/in/firzhan
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware .*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> Mobile: 0710933706
> isur...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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] [VOTE] Release WSO2 BPS 3.5.0 RC2

2015-10-01 Thread Natasha Wijesekara
Hi All,

I tested the  functionalities of the  bpmn-explorer and the human-task
explorer.

[x] Stable- go ahead and release.

Thanks,


On Fri, Oct 2, 2015 at 2:28 AM, Shiva Balachandran  wrote:

> HI All,
>
> Tested the BPMN functionalites as well as the bpmn explorer. Looks
> amazing!
>
> ​
> ​
> [+] Stable - go ahead and release
>
> On Fri, Oct 2, 2015 at 1:10 AM, Hasitha Aravinda  wrote:
>
>> Hi
>>
>> I have tested and Reviewed followings and found no issues.
>>
>>- INSTALL.txt
>>- LICENSE.txt
>>- README.txt
>>- Tested Server start with MySQL -Dsetup.
>>
>> BPEL
>>
>>- Tested Correlation Scenario.
>>- Tested Correlation Violation scenario.
>>
>> HumanTask
>>
>>- HumanTask creation and basic task commands : Claim, Suspend,
>>Resume, Start, Complete, Skip, Fail, Delegate.
>>- HumanTask coordination - Process termination and Task Skip
>>scenario.
>>- HumanTask Notification creation.
>>
>> BPMN
>>
>>- Tested Service Tasks, User Tasks, Parallel Gateway,  Exclusive
>>Gateway processes.
>>
>>
>> ​
>> ​
>> [+] Stable - go ahead and release
>>
>> ​Thanks,
>> Hasitha.
>>
>>
>> On Wed, Sep 30, 2015 at 11:03 AM, Firzhan Naqash 
>> wrote:
>>
>>>
>>> Hi Devs,
>>>
>>> *WSO2 BPS 3.5.0 RC2 Release Vote*
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/browse/BPS-604?filter=12415
>>>
>>> Please download BPS 3.5.0 RC2 and test the functionality and vote. Vote
>>> will be open for 72 hours or as needed.
>>>
>>> Binary distribution at:
>>> http://svn.wso2.org/repos/wso2/people/firzhan/packs/bps/3.5.0/RC2/
>>>
>>> Maven staging repository:
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-158/
>>>
>>> The tag to be voted upon :
>>> https://github.com/wso2/product-bps/releases/tag/v3.5.0-RC2
>>>
>>>
>>> [-] Broken - do not release (explain why)
>>> ​​
>>> [+] Stable - go ahead and release
>>>
>>> Thanks and Regards,
>>> WSO2 BPS Team
>>>
>>>
>>>
>>> Regards,
>>> Firzhan
>>>
>>>
>>> --
>>> *Firzhan Naqash*
>>> Senior Software Engineer - Integration Platform Team
>>> WSO2 Inc. http://wso2.com
>>>
>>> email: firz...@wso2.com 
>>> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
>>> blog: http://firzhanblogger.blogspot.com/
>>>   *
>>> *twitter: https://twitter.com/firzhan007
>>>  | linked-in: 
>>> **https://www.linkedin.com/in/firzhan
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> --
>> Hasitha Aravinda,
>> Senior Software Engineer,
>> WSO2 Inc.
>> Email: hasi...@wso2.com
>> Mobile : +94 718 210 200
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Natasha Wijesekare*

*Software Engineering Intern, WSO2  Inc:  http://wso2.com
*
*email  : nata...@wso2.com *
*mobile: +94 771358651*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Building docker images with PPaaS build scripts

2015-10-01 Thread Danushka Fernando
When we run PPaaS build.sh it takes lots of disk space and sometimes
machine tends to go out of disk space. How we can resolve this?

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] MySQL Database and Table creation when using carbonJDBC option in spark environment

2015-10-01 Thread Sinthuja Ragendran
Hi Niranda,

On Thu, Oct 1, 2015 at 2:28 PM, Inosh Goonewardena  wrote:

> Hi Niranda,
>
> On Thu, Oct 1, 2015 at 1:33 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi Niranda,
>>
>> On Thu, Oct 1, 2015 at 1:28 PM, Niranda Perera  wrote:
>>
>>> Hi Thanuja and Imesh,
>>>
>>> let me clarify the use of the term "create temporary table" with regard
>>> to Spark.
>>> inside DAS we save ('persist') data in DAL (Dara access layer) tables.
>>> So in order for us to query these tables, spark needs some sort of a
>>> mapping to the tables in DAL in its runtime environment. This mapping is
>>> created in the temporary table queries. These temp tables are only a
>>> mapping. Not a physical table.
>>>
>>> @thanuja, yes you are correct! We have to manually create the tables in
>>> MySQL before making the temp table mapping in Spark SQL.
>>>
>> With Carbon JDBC connector, can we try to create the table if it is not
>> existing? May be we can let the users to pass the actual create table
>> statement as another parameter with options.  IMHO it will be more user
>> friendly if we could do that, WDYT?
>>
>
> Yes. +1. For tables created using CarbonAnalytics it is possible to
> provide the table schema as below [1]. I believe we can use the similar
> approach in CarbonJDBC also to  provide the create table query.
>
> As per the current implementation what happens is even though the table is
> created manually before the script execution, "insert overwrite..."
> statement execution will delete the original table and recreate a new table
> using a generated schema(schema information is generated using the original
> table structure). In this approach, table that is re-created at the query
> execution will not have primary keys and indexes of the original table(if
> there were any). So if we can provide a complete create table query, we can
> preserve original table structure too.
>

Yeah, +1.


>
> On the other hand, I believe we should also support "insert into.."
> statements in CarbonJDBC. "insert into.." statements will not delete and
> recreate the table like the "insert overwrite..." statements, and it will
> only update the existing table[2].
>

Yeah, I also have concern on this. Because currently the insert overwrite
statement drops the table, and repopulate the data entirely, and hence the
dashboard which reads from the table may be empty/partial data. This is
also an issue when we are purging the original data scenario, where the
summarised data will also be cleaned and no old data available to
repopulate the summarised data again. Can we have it as replace the row if
it's already existing in insert overwrite, rather dropping the entire table
to avoid such issues?

Thanks,
Sinthuja.


>
> [1] CREATE TEMPORARY TABLE plugUsage
> USING CarbonAnalytics
> OPTIONS (tableName "plug_usage",
> * schema "house_id INT, household_id INT, plug_id INT, usage
> FLOAT"*,
>  primaryKeys "household_id, plug_id"
> );
>
> [2] [Dev] [Architecture] Carbon Spark JDBC connector
>
>
>>
>> Thanks,
>> Sinthuja.
>>
>>
>>> On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
>>> thanu...@wso2.com> wrote:


 In DAS spark environment, we can't directly insert the analyzed data to
 our mysql table. We should create a temporary table using our datasources
 to manipulate them.

>>>
>>> Yes, can you please explain the reasons? What does this analysis do? Why
>>> we cannot directly insert them to the RDBMS?
>>>
>>> Thanks
>>>
>>> On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
>>> thanu...@wso2.com> wrote:
>>>
 Hi Imesh,

 If we take the above scenario, I need to insert the analyzed/aggregated
 data which is obtained as result after spark sql processing, to my mysql
 table (sample_table). In order to do that, first we need to create a
 temporary table using the corresponding mysql database (sample_datasource)
 and table(sample_table) in spark environment and then only by inserting
 data to this temporary table in spark environment, we can update our mysql
 table.

 In DAS spark environment, we can't directly insert the analyzed data to
 our mysql table. We should create a temporary table using our datasources
 to manipulate them. I think that's why they named it as '*temporary*'
 table.

 @Niranda Please correct me if I'm wrong.

 Thanks.

 On Thu, Oct 1, 2015 at 7:00 AM, Imesh Gunaratne  wrote:

> Hi Thanuja,
>
> Can you please explain the purpose of these temporary tables?
>
> Thanks
>
> On Wed, Sep 30, 2015 at 11:53 PM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Hi All,
>>
>> When we create temporary tables in spark environment using carbonJDBC
>> option as explained in [1], we are using a datasource and tableName from
>> which spark environment temporary 

Re: [Dev] [ML] Getting error while creating a dataset

2015-10-01 Thread Nirmal Fernando
Hi Malintha,

Thanks for trying ML. @Wije can you please check?

On Fri, Oct 2, 2015 at 1:09 AM, Malintha Adikari  wrote:

> Hi,
>
> I am trying to create a dataset from 748KB sized data file [1] and getting
> following error.
>
> [2015-10-02 01:03:38,769]  INFO
> {org.wso2.carbon.ml.core.impl.MLDatasetProcessor} -  [Created] MLDataset
> [id=1, name=digitdd, tenantId=-1234, userName=admin, dataSourceType=file,
> dataTargetType=file, sourcePath=null, dataType=csv, comments=,
> version=1.0.0, containsHeader=true, status=null]
> [2015-10-02 01:03:40,537]  WARN
> {org.wso2.carbon.ml.database.internal.MLDatabaseUtils} -  An error occurred
> while enabling autocommit: PooledConnection has already been closed.
> java.sql.SQLException: PooledConnection has already been closed.
> at
> org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:86)
> at com.sun.proxy.$Proxy16.setAutoCommit(Unknown Source)
> at
> org.wso2.carbon.ml.database.internal.MLDatabaseUtils.enableAutoCommit(MLDatabaseUtils.java:153)
> at
> org.wso2.carbon.ml.database.internal.MLDatabaseService.updateSummaryStatistics(MLDatabaseService.java:2370)
> at
> org.wso2.carbon.ml.core.impl.SummaryStatsGenerator.run(SummaryStatsGenerator.java:130)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> [2015-10-02 01:03:40,550] ERROR
> {org.wso2.carbon.ml.core.impl.SummaryStatsGenerator} -  Error occurred
> while calculating summary statistics for dataset version 1: An error
> occurred while updating the database with summary statistics of the dataset
> 1: 16
> org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException: An error
> occurred while updating the database with summary statistics of the dataset
> 1: 16
> at
> org.wso2.carbon.ml.database.internal.MLDatabaseService.updateSummaryStatistics(MLDatabaseService.java:2366)
> at
> org.wso2.carbon.ml.core.impl.SummaryStatsGenerator.run(SummaryStatsGenerator.java:130)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 16
> at
> org.wso2.carbon.ml.database.internal.MLDatabaseService.updateSummaryStatistics(MLDatabaseService.java:2329)
> ... 4 more
>
> What could be the possible reason for this error ?
>
> [1]
> http://ocw.mit.edu/courses/sloan-school-of-management/15-097-prediction-machine-learning-and-statistics-spring-2012/datasets/digits.csv
>
> Regards,
> Malintha
>
> --
> *Malintha Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 71 2312958
> Blog:http://malinthas.blogspot.com
> Page:   http://about.me/malintha
>



-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data 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


Re: [Dev] [UES][Dashboard Server] Dashboard anonymous view landing page

2015-10-01 Thread Nipuna Chandradasa
Hi Udara,

As Lasantha said that making the landing page an anon view should be
mandatory if there are anon views available under the that landing page
even the landing page doesn't have anon content to view.

I think this is a good idea because it is not that great to have child
pages which has anon view but the user cannot access the main view. At
Least if there are no content to show under the landing page to a user (
Which is not that great if it mandatory to make the landing page anon view)
at least we can show a message saying which pages are anon views and have
the anon content.

Thanks.

On Fri, Oct 2, 2015 at 8:46 AM, Lasantha Samarakoon 
wrote:

> Hi Udara,
>
> Can't we show the actual landing page even though the anon view is not
> defined? So if the landing page doesn't have a anon view, then we can show
> some message with all other links to accessible pages (Same as what we have
> in regular websites. Once you logged in you have more features, otherwise
> limited. But the home page is home page).
>
> In your first option, the problem is that if the developer couldn't define
> the anon view landing page, ultimately the dashboard is not accessible for
> any anon user unless he knows the direct url for a page. Then there's no
> point of introducing the anon view for such scenarios.
>
> In the second option, as you mentioned it actually breaks the concept
> behind a landing page. And know one can define what will be the actual
> landing page in such situation.
>
> Or else we can emphasis (or make it mandatory) the developer to define a
> anon view for the landing page in the designer if there are any anon pages
> for the dashboard.
>
>
> Regards,
>
>
> *Lasantha Samarakoon* | Software Engineer
> WSO2, Inc.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 (71) 214 1576
> Email:  lasant...@wso2.com
> Web:www.wso2.com
>
> lean . enterprise . middleware
>
> On Thu, Oct 1, 2015 at 8:10 PM, Udara Rathnayake  wrote:
>
>> Hi All,
>>
>> At the moment we have a landing page (which developer can select while
>> creating the dashboard) and this is the page end-user will initially get
>> once he/she browse the dashboard.
>>
>> So for the anonymous view of the dashboard, we are going to use the same
>> landing page's anon view(if exists) else user will be redirected to the
>> login page.
>> This approach will basically need developer to have a anon view within
>> the landing page if there are anon views for other pages.
>>
>> Otherwise we can go through existing pages and check existence of anon
>> views first and then render. This approach will deviate from the landing
>> page concept a bit.
>>
>> Any thoughts?
>>
>> Regards,
>> UdaraR
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ML] Getting error while creating a dataset

2015-10-01 Thread Maheshakya Wijewardena
Hi Malintha,

Here is the excerpt from the first few lines of the
sloan-school-of-management dataset:

 *88, 92,  2, 99, 16, 66, 94, 37, 70,  0,  0, 24, 42, 65,100,100, 8*
 80,100, 18, 98, 60, 66,100, 29, 42,  0,  0, 23, 42, 61, 56, 98, 8
  0, 94,  9, 57, 20, 19,  7,  0, 20, 36, 70, 68,100,100, 18, 92, 8
 95, 82, 71,100, 27, 77, 77, 73,100, 80, 93, 42, 56, 13,  0,  0, 9
 68,100,  6, 88, 47, 75, 87, 82, 85, 56,100, 29, 75,  6,  0,  0, 9
 70,100,100, 97, 70, 81, 45, 65, 30, 49, 20, 33,  0, 16,  0,  0, 1
 40,100,  0, 81, 15, 58,100, 57, 47, 87, 50, 88, 40, 42, 36,  0, 4
  3, 71,  0, 95, 45,100,100, 99, 79, 78, 48, 53, 31, 24, 54,  0, 7

As you can see, there is no header row (a row with feature names) in this
csv file. At the dataset creation, if you did not specify that there is no
header row in the dataset, ML will automatically take the first row as the
header row and the feature names are derived from that.
If the first row is taken as the header row, you can see that there are
duplicate entries: 0, 100
In ML, there cannot be multiple features with the same name.

At dataset creation, please select "No" for "Column header available", or
add a header row manually into the data file before uploading.

Best regards.

On Fri, Oct 2, 2015 at 8:54 AM, Nirmal Fernando  wrote:

> Hi Malintha,
>
> Thanks for trying ML. @Wije can you please check?
>
> On Fri, Oct 2, 2015 at 1:09 AM, Malintha Adikari 
> wrote:
>
>> Hi,
>>
>> I am trying to create a dataset from 748KB sized data file [1] and
>> getting following error.
>>
>> [2015-10-02 01:03:38,769]  INFO
>> {org.wso2.carbon.ml.core.impl.MLDatasetProcessor} -  [Created] MLDataset
>> [id=1, name=digitdd, tenantId=-1234, userName=admin, dataSourceType=file,
>> dataTargetType=file, sourcePath=null, dataType=csv, comments=,
>> version=1.0.0, containsHeader=true, status=null]
>> [2015-10-02 01:03:40,537]  WARN
>> {org.wso2.carbon.ml.database.internal.MLDatabaseUtils} -  An error occurred
>> while enabling autocommit: PooledConnection has already been closed.
>> java.sql.SQLException: PooledConnection has already been closed.
>> at
>> org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:86)
>> at com.sun.proxy.$Proxy16.setAutoCommit(Unknown Source)
>> at
>> org.wso2.carbon.ml.database.internal.MLDatabaseUtils.enableAutoCommit(MLDatabaseUtils.java:153)
>> at
>> org.wso2.carbon.ml.database.internal.MLDatabaseService.updateSummaryStatistics(MLDatabaseService.java:2370)
>> at
>> org.wso2.carbon.ml.core.impl.SummaryStatsGenerator.run(SummaryStatsGenerator.java:130)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> [2015-10-02 01:03:40,550] ERROR
>> {org.wso2.carbon.ml.core.impl.SummaryStatsGenerator} -  Error occurred
>> while calculating summary statistics for dataset version 1: An error
>> occurred while updating the database with summary statistics of the dataset
>> 1: 16
>> org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException: An error
>> occurred while updating the database with summary statistics of the dataset
>> 1: 16
>> at
>> org.wso2.carbon.ml.database.internal.MLDatabaseService.updateSummaryStatistics(MLDatabaseService.java:2366)
>> at
>> org.wso2.carbon.ml.core.impl.SummaryStatsGenerator.run(SummaryStatsGenerator.java:130)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.ArrayIndexOutOfBoundsException: 16
>> at
>> org.wso2.carbon.ml.database.internal.MLDatabaseService.updateSummaryStatistics(MLDatabaseService.java:2329)
>> ... 4 more
>>
>> What could be the possible reason for this error ?
>>
>> [1]
>> http://ocw.mit.edu/courses/sloan-school-of-management/15-097-prediction-machine-learning-and-statistics-spring-2012/datasets/digits.csv
>>
>> Regards,
>> Malintha
>>
>> --
>> *Malintha Adikari*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile: +94 71 2312958
>> Blog:http://malinthas.blogspot.com
>> Page:   http://about.me/malintha
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Pruthuvi Maheshakya Wijewardena
Software Engineer
WSO2 : http://wso2.com/
Email: mahesha...@wso2.com
Mobile: +94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Should mysql database scripts work with old mysql versions.

2015-10-01 Thread Ishara Karunarathna
Hi Shankar,

On Thu, Oct 1, 2015 at 9:54 PM, Selvaratnam Uthaiyashankar  wrote:

> Is this support (fraction of second) there in other RDBMS (Oracle, MSSQL,
> etc?). If it is only Mysql 5.6.4 +, then we shouldn't use IMO. If this
> support is there in all other RDBMS, then it should be ok.
>
> I checked with Oracle, MSSQL, PostgreSQL, Informix and DB2. All support
for fraction of seconds.

Thanks,
Ishara
[1]
http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements001.htm#i54330
[2] https://msdn.microsoft.com/en-us/library/ms187819.aspx
[3] http://www.postgresql.org/docs/9.1/static/datatype-datetime.html
[4]
https://www-01.ibm.com/support/knowledgecenter/SSGU8G_12.1.0/com.ibm.sqlr.doc/ids_sqr_110.htm
[5]
https://www-304.ibm.com/support/knowledgecenter/SSEPEK_10.0.0/com.ibm.db2z10.doc.intro/src/tpc/db2z_datetimetimestamp.dita

> On Thu, Oct 1, 2015 at 9:40 PM, Ishara Karunarathna 
> wrote:
>
>> Hi Shankar,
>>
>> On Thu, Oct 1, 2015 at 7:45 PM, Selvaratnam Uthaiyashankar <
>> shan...@wso2.com> wrote:
>>
>>> Normally, we should keep the compatibility with older versions.
>>>
>>> Is there any specific reason why you need upto microsecond precision for
>>> the timestamp?
>>>
>> by default mysql support for seconds.
>> In Identity server we started to persist session date with its updated
>> timestamp. And retrieve the latest data object related to
>> given session.
>> If it's only supported for seconds we get duplicate entries. In that case
>> we have to go for fractional seconds in timestamp
>> or will have to store it in another data type.
>>
>> Thanks,
>> Ishara
>>
>>>
>>> On Wed, Sep 30, 2015 at 10:35 PM, Ishara Karunarathna 
>>> wrote:
>>>
 Hi all,

 For example In mysql version 5.6.4 (released on February 5, 2013 )
 onwards [1] it support for
 fractional seconds for TIMESTAMP values, with up to microseconds (6
 digits)

 But if we write scripts to get that features it won't work with older
 versions.
 So can we write scripts to work only with mysql version 5.6.4 and
 latest or should we support for old versions ?.

 Thanks,
 Ishara

 [1]
 http://dev.mysql.com/doc/refman/5.6/en/mysql-nutshell.html#mysql-nutshell-additions
 --
 Ishara Karunarathna
 Senior Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
 +94717996791

>>>
>>>
>>>
>>> --
>>> S.Uthaiyashankar
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com/ - "lean . enterprise . middleware"
>>>
>>> Phone: +94 714897591
>>>
>>
>>
>>
>> --
>> Ishara Karunarathna
>> Senior Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
>> +94717996791
>>
>
>
>
> --
> S.Uthaiyashankar
> VP Engineering
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
>
> Phone: +94 714897591
>



-- 
Ishara Karunarathna
Senior Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Private PaaS] Moving cartridges to a new Git repository

2015-10-01 Thread Dinithi De Silva
Hi Anuruddha,

It seems like we haven't modified the read me files according to the new
repo path. Some of the provided links in [1] still points to the older repo
path and leads to page not found.

[1] -
https://github.com/wso2/private-paas-cartridges/tree/master/common/puppet

Thanks

On Wed, Sep 30, 2015 at 6:38 PM, Gayan Gunarathne  wrote:

> Hi Imesh,
>
> I think we need to refine the structure of the ppaas-cartridges
> repository.We can have a separate folder for each cartridges.Then we can
> release the each cartridge separately.We can have the samples for each
> product itself.
>
> Thanks,
> Gayan
>
>
>
>
>
>
>
> On Wed, Sep 30, 2015 at 6:01 PM, Imesh Gunaratne  wrote:
>
>> Hi Gayan,
>>
>> Great work on moving the cartridges to the new repository. Shall we bring
>> them to the root folder. IMO since the git repository name contains the
>> word "cartridges" may be we do not need a folder called "cartridges"
>> inside. WDYT?
>>
>> Thanks
>>
>> On Tue, Sep 29, 2015 at 3:27 PM, Imesh Gunaratne  wrote:
>>
>>> Cartridges git repository is now available:
>>> https://github.com/wso2/private-paas-cartridges
>>>
>>> On Tue, Sep 29, 2015 at 3:26 PM, Imesh Gunaratne  wrote:
>>>
 On Tue, Sep 29, 2015 at 1:36 PM, Sajith Kariyawasam 
  wrote:

>
> Will there be separate cartridge releases thereafter?
>

 Yes we can do separate releases for cartridges afterwards. That was the
 idea.

>
>  How do we handle cartridge compatibility with Private PaaS version?
>

 A very good question! May we for each cartridge we can mention the
 Private PaaS version its compatible with.

 On Tue, Sep 29, 2015 at 1:36 PM, Sajith Kariyawasam 
 wrote:

> Hi Imesh,
>
> Will there be separate cartridge releases thereafter? How do we handle
> cartridge compatibility with Private PaaS version?
> For eg, Cartridge A version 1.0 may be compatible with PPaaS 4.1.0. If
> Cartridge A is improved it may not compatible with PPaaS 4.1.0, so need to
> version it to version 2.0
>  That way, I think we need to do cartridge releases (tags)
> for each Private PaaS release, and need to track the compatibility. Am I
> right?
>
> On Tue, Sep 29, 2015 at 12:31 PM, Imesh Gunaratne 
> wrote:
>
>> Hi Devs,
>>
>> Currently we have all the cartridges in the Private PaaS product
>> repository. As a result whenever we introduce a new cartridge we need to 
>> do
>> a Private PaaS release.
>>
>> After a discussion with Shankar and the team we thought of
>> introducing a new Git repository for cartridges. Please share your 
>> thoughts
>> on this.
>>
>> Thanks
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sajith Kariyawasam
> *Committer and PMC member, Apache Stratos, *
> *WSO2 Inc.; http://wso2.com *
> *Mobile: 0772269575*
>



 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Dinithi De Silva*
Associate Software Engineer, WSO2 Inc.
m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
| a: #20, Palm Grove, Colombo 03
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Private PaaS] Moving cartridges to a new Git repository

2015-10-01 Thread Anuruddha Liyanarachchi
Hi,

I have now updated the ReadMe file with correct values.

On Fri, Oct 2, 2015 at 10:19 AM, Dinithi De Silva  wrote:

> Hi Anuruddha,
>
> It seems like we haven't modified the read me files according to the new
> repo path. Some of the provided links in [1] still points to the older repo
> path and leads to page not found.
>
> [1] -
> https://github.com/wso2/private-paas-cartridges/tree/master/common/puppet
>
> Thanks
>
> On Wed, Sep 30, 2015 at 6:38 PM, Gayan Gunarathne  wrote:
>
>> Hi Imesh,
>>
>> I think we need to refine the structure of the ppaas-cartridges
>> repository.We can have a separate folder for each cartridges.Then we can
>> release the each cartridge separately.We can have the samples for each
>> product itself.
>>
>> Thanks,
>> Gayan
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Sep 30, 2015 at 6:01 PM, Imesh Gunaratne  wrote:
>>
>>> Hi Gayan,
>>>
>>> Great work on moving the cartridges to the new repository. Shall we
>>> bring them to the root folder. IMO since the git repository name contains
>>> the word "cartridges" may be we do not need a folder called "cartridges"
>>> inside. WDYT?
>>>
>>> Thanks
>>>
>>> On Tue, Sep 29, 2015 at 3:27 PM, Imesh Gunaratne  wrote:
>>>
 Cartridges git repository is now available:
 https://github.com/wso2/private-paas-cartridges

 On Tue, Sep 29, 2015 at 3:26 PM, Imesh Gunaratne 
 wrote:

> On Tue, Sep 29, 2015 at 1:36 PM, Sajith Kariyawasam 
>  wrote:
>
>>
>> Will there be separate cartridge releases thereafter?
>>
>
> Yes we can do separate releases for cartridges afterwards. That was
> the idea.
>
>>
>>  How do we handle cartridge compatibility with Private PaaS version?
>>
>
> A very good question! May we for each cartridge we can mention the
> Private PaaS version its compatible with.
>
> On Tue, Sep 29, 2015 at 1:36 PM, Sajith Kariyawasam 
> wrote:
>
>> Hi Imesh,
>>
>> Will there be separate cartridge releases thereafter? How do we
>> handle cartridge compatibility with Private PaaS version?
>> For eg, Cartridge A version 1.0 may be compatible with PPaaS 4.1.0.
>> If Cartridge A is improved it may not compatible with PPaaS 4.1.0, so 
>> need
>> to version it to version 2.0
>>  That way, I think we need to do cartridge releases
>> (tags) for each Private PaaS release, and need to track the 
>> compatibility.
>> Am I right?
>>
>> On Tue, Sep 29, 2015 at 12:31 PM, Imesh Gunaratne 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> Currently we have all the cartridges in the Private PaaS product
>>> repository. As a result whenever we introduce a new cartridge we need 
>>> to do
>>> a Private PaaS release.
>>>
>>> After a discussion with Shankar and the team we thought of
>>> introducing a new Git repository for cartridges. Please share your 
>>> thoughts
>>> on this.
>>>
>>> Thanks
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sajith Kariyawasam
>> *Committer and PMC member, Apache Stratos, *
>> *WSO2 Inc.; http://wso2.com *
>> *Mobile: 0772269575*
>>
>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>>
>> Gayan Gunarathne
>> Technical Lead, WSO2 Inc. (http://wso2.com)
>> Committer & PMC Member, Apache Stratos
>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Dinithi De Silva*
> Associate Software Engineer, WSO2 Inc.
> m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
> | a: #20, Palm Grove, Colombo 03
>



-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - 

Re: [Dev] [IS] - Clarification on Duplicate entries in SAML Authentication Response

2015-10-01 Thread Nadeesha Meegoda
Hi Pushpalanka,

Thanks! This Spec has it all very detailed. Got the concern clarified and
clear now!

On Fri, Oct 2, 2015 at 10:48 AM, Pushpalanka Jayawardhana 
wrote:

> Hi Nadeesha,
>
> The specification[1] mentions  element as optional. Please refer
> section "3.2.2 Complex Type StatusResponseType" in the specification.
> Also there is sample SAML Response in the section "5.4.6 Example" of the
> spec for quick reference.
>
> This issuer element defines who issued the SAML Assertion and in SAML
> Response who issued the SAML Response. Hence there is the possibility for
> one party to issue the SAML assertion and another party to issue the SAML
> Response, seperately signing each element.
>
> [1] - https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf
>
> Thanks,
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Fri, Oct 2, 2015 at 10:36 AM, Nadeesha Meegoda 
> wrote:
>
>> Hi Danushka,
>>
>> Thanks for the response! I tested this without enabling the response
>> signing and assertion signing, but still the saml2:Issuer is duplicated in
>> both response and assertion. As per my reading on the saml spec in [1] the
>> Response doesn't contain an issuer, only the assertion contains the issuer
>> element which is noted in 3.4 Responses section. Please correct me if I'm
>> wrong.
>>
>> Full Response is attached for the above scenario mentioned (  without
>> enabling the response signing and assertion signing )
>>
>> [1] - http://saml.xml.org/saml-specifications
>>
>> Thanks!
>>
>> On Thu, Oct 1, 2015 at 8:33 PM, Danushka Fernando 
>> wrote:
>>
>>> Hi Nadeesha
>>> The duplicate entry meant by you is under the saml assertion. Saml
>>> response object contains a saml assertion. And when you sign both response
>>> and assertion this entry includes into both objects. For more details you
>>> can refer to saml spec. [1]
>>>
>>> [1] http://saml.xml.org/saml-specifications
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Senior Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>>
>>> On Oct 1, 2015 7:10 PM, "Nadeesha Meegoda"  wrote:
>>>
 Hi IS team,

 I am testing SAML SSO with travelocity app and when I signed in to the
 app I noticed in the SAML authentication response getting duplicate entries
 for saml2:Issuer, ds:Signature, ds:X509Certificate etc with the same
 response data. Is there a special reason these are duplicated? Just need to
 clarify!

 Noted below is the section that is duplicated in the response:

 >>>   xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
   >mgt.is.wso2.com
 http://www.w3.org/2000/09/xmldsig#;>
 
 http://www.w3.org/2001/10/xml-exc-c14n#; />
 http://www.w3.org/2000/09/xmldsig#rsa-sha1; />
 >>> URI="#bnlofhdfbehmnhiajimjohbkhepimciajocfmdkl">
 
 http://www.w3.org/2000/09/xmldsig#enveloped-signature; />
 http://www.w3.org/2001/10/xml-exc-c14n#; />
 
 http://www.w3.org/2000/09/xmldsig#sha1; />

 fiOel63mdz3HsEz2JrSbUgBvYDw=
 
 

 VgbMj1PIjJ0JFdyJ9AKaLkBnj7OD/prQahVU5WgdK9PAMvMedKt42pna+A5YznK0zLrzPKHAP/5VD6qHVPtF5LsYqJNEC4OTR1Mo2nzv34nOQxZZ95uxKBoxD/eVzgrqNBIzAecgSXvvYBj1ZlmjbJQoOuVxgdFOhOkz8S3bO+Q=
 
 

 MIICAzCCAWygAwIBAgIEb38jDjANBgkqhkiG9w0BAQQFADBGMRAwDgYDVQQDEwd5bWMuY29tMQ0wCwYDVQQLEwROb25lMRQwEgYDVQQKEwtOb25lIEw9Tm9uZTENMAsGA1UEBhMETm9uZTAeFw0xNTA4MjkwNjIxNDJaFw0yNTA5MjUwNjIxNDJaMEYxEDAOBgNVBAMTB3ltYy5jb20xDTALBgNVBAsTBE5vbmUxFDASBgNVBAoTC05vbmUgTD1Ob25lMQ0wCwYDVQQGEwROb25lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPWrZjdgaHwd8FDZaOm57wz2fxSW4umTuyw8E8PnNwCkZqIGpxkJGqfEOzXhP38A84a7fwXUfCZuwetgvkU4vfqhHieqI5OiA02pZpBzWkYjpg8By6YeJyK4Vy4hB6yq1gTCaerqffeAfXWI0ILog9iwJtbAgfJUDqU9j5XEnMxQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAE8GmwMaydEFMb8hzvXjkX2pdjZto4S5AqaERjigR5OCsvcnuqNPspuAMyy7AC6xRCkKOfhFEfFcAHhExpqCfqFcuEhfqc3tL89eDyf1sxfnaoCPSWjgo/TirWSaaxcT2JAcWfGh74S77CHC/m9rZ9ozaTJRhzNw5RYEbWNKJEqc
 
 
 

 Full Response is attached with the mail.

 Highly appreciate an explanation on this!


 Thanks

 --
 *Nadeesha Meegoda*
 Software Engineer - QA
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 email : nadees...@wso2.com
 mobile: +94783639540
 <%2B94%2077%202273555>

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


>>
>>
>> 

Re: [Dev] Building docker images with PPaaS build scripts

2015-10-01 Thread Danushka Fernando
Hi Pubudu
Here is the response of the *docker images* command

REPOSITORY  TAG IMAGE ID
CREATED VIRTUAL SIZE
wso2/as 5.2.1   8dcdb94efc8d12 hours
ago1.294 GB
wso2/base-image 4.1.0   a972772832d616 hours
ago701.8 MB
4d65ea1cc96417 hours
ago701.1 MB
90d819958e2e18 hours
ago701.1 MB
56639f5aff0018 hours
ago701.1 MB
debian  7.7 479215127fa79 months
ago84.97 MB

But after I build the as image it ate 50G+ my disk space. That's the only
thing I did there.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Fri, Oct 2, 2015 at 10:00 AM, Pubudu Gunatilaka  wrote:

> Hi Danushka,
>
> Are you having docker images with  tag? You can remove those images
> using the following command.
>
> *docker rmi $(docker images | grep "^" | awk "{print $3}")*
>
> If you have run docker containers in your machine, there can be containers
> that are stopped but not removed. You can verify that using *docker ps -a*
> command and use the following command to remove stopped docker containers.
>
> *docker rm `docker ps --no-trunc -aq`*
>
> Thank you!
>
>
> On Fri, Oct 2, 2015 at 7:31 AM, Danushka Fernando 
> wrote:
>
>> When we run PPaaS build.sh it takes lots of disk space and sometimes
>> machine tends to go out of disk space. How we can resolve this?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774079049 <%2B94772207163>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 BPS 3.5.0 RC2

2015-10-01 Thread Nandika Jayawardana
Tested the cluster deployment, dep sync, bpel and bpmn functionality in
cluster.

[x] Stable- go ahead and release.

Regards
Nandika

On Fri, Oct 2, 2015 at 6:47 AM, Natasha Wijesekara  wrote:

> Hi All,
>
> I tested the  functionalities of the  bpmn-explorer and the human-task
> explorer.
>
> [x] Stable- go ahead and release.
>
> Thanks,
>
>
> On Fri, Oct 2, 2015 at 2:28 AM, Shiva Balachandran  wrote:
>
>> HI All,
>>
>> Tested the BPMN functionalites as well as the bpmn explorer. Looks
>> amazing!
>>
>> ​
>> ​
>> [+] Stable - go ahead and release
>>
>> On Fri, Oct 2, 2015 at 1:10 AM, Hasitha Aravinda 
>> wrote:
>>
>>> Hi
>>>
>>> I have tested and Reviewed followings and found no issues.
>>>
>>>- INSTALL.txt
>>>- LICENSE.txt
>>>- README.txt
>>>- Tested Server start with MySQL -Dsetup.
>>>
>>> BPEL
>>>
>>>- Tested Correlation Scenario.
>>>- Tested Correlation Violation scenario.
>>>
>>> HumanTask
>>>
>>>- HumanTask creation and basic task commands : Claim, Suspend,
>>>Resume, Start, Complete, Skip, Fail, Delegate.
>>>- HumanTask coordination - Process termination and Task Skip
>>>scenario.
>>>- HumanTask Notification creation.
>>>
>>> BPMN
>>>
>>>- Tested Service Tasks, User Tasks, Parallel Gateway,  Exclusive
>>>Gateway processes.
>>>
>>>
>>> ​
>>> ​
>>> [+] Stable - go ahead and release
>>>
>>> ​Thanks,
>>> Hasitha.
>>>
>>>
>>> On Wed, Sep 30, 2015 at 11:03 AM, Firzhan Naqash 
>>> wrote:
>>>

 Hi Devs,

 *WSO2 BPS 3.5.0 RC2 Release Vote*

 This release fixes the following issues:
 https://wso2.org/jira/browse/BPS-604?filter=12415

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

 Binary distribution at:
 http://svn.wso2.org/repos/wso2/people/firzhan/packs/bps/3.5.0/RC2/

 Maven staging repository:
 http://maven.wso2.org/nexus/content/repositories/orgwso2bps-158/

 The tag to be voted upon :
 https://github.com/wso2/product-bps/releases/tag/v3.5.0-RC2


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

 Thanks and Regards,
 WSO2 BPS Team



 Regards,
 Firzhan


 --
 *Firzhan Naqash*
 Senior Software Engineer - Integration Platform Team
 WSO2 Inc. http://wso2.com

 email: firz...@wso2.com 
 mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
 blog: http://firzhanblogger.blogspot.com/
   *
 *twitter: https://twitter.com/firzhan007
  | linked-in: 
 **https://www.linkedin.com/in/firzhan
 *

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


>>>
>>>
>>> --
>>> --
>>> Hasitha Aravinda,
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> Email: hasi...@wso2.com
>>> Mobile : +94 718 210 200
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Shiva Balachandran
>> Software Engineer
>> WSO2 Inc.
>>
>> Mobile - +94 774445788
>> Blog - https://shivabalachandran.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Natasha Wijesekare*
>
> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
> *
> *email  : nata...@wso2.com *
> *mobile: +94 771358651 <%2B94%20771358651>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nandika Jayawardana
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UES][Dashboard Server] Dashboard anonymous view landing page

2015-10-01 Thread Lasantha Samarakoon
Hi Udara,

Can't we show the actual landing page even though the anon view is not
defined? So if the landing page doesn't have a anon view, then we can show
some message with all other links to accessible pages (Same as what we have
in regular websites. Once you logged in you have more features, otherwise
limited. But the home page is home page).

In your first option, the problem is that if the developer couldn't define
the anon view landing page, ultimately the dashboard is not accessible for
any anon user unless he knows the direct url for a page. Then there's no
point of introducing the anon view for such scenarios.

In the second option, as you mentioned it actually breaks the concept
behind a landing page. And know one can define what will be the actual
landing page in such situation.

Or else we can emphasis (or make it mandatory) the developer to define a
anon view for the landing page in the designer if there are any anon pages
for the dashboard.


Regards,


*Lasantha Samarakoon* | Software Engineer
WSO2, Inc.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 (71) 214 1576
Email:  lasant...@wso2.com
Web:www.wso2.com

lean . enterprise . middleware

On Thu, Oct 1, 2015 at 8:10 PM, Udara Rathnayake  wrote:

> Hi All,
>
> At the moment we have a landing page (which developer can select while
> creating the dashboard) and this is the page end-user will initially get
> once he/she browse the dashboard.
>
> So for the anonymous view of the dashboard, we are going to use the same
> landing page's anon view(if exists) else user will be redirected to the
> login page.
> This approach will basically need developer to have a anon view within the
> landing page if there are anon views for other pages.
>
> Otherwise we can go through existing pages and check existence of anon
> views first and then render. This approach will deviate from the landing
> page concept a bit.
>
> Any thoughts?
>
> Regards,
> UdaraR
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Building docker images with PPaaS build scripts

2015-10-01 Thread Pubudu Gunatilaka
Hi Danushka,

Are you having docker images with  tag? You can remove those images
using the following command.

*docker rmi $(docker images | grep "^" | awk "{print $3}")*

If you have run docker containers in your machine, there can be containers
that are stopped but not removed. You can verify that using *docker ps -a*
command and use the following command to remove stopped docker containers.

*docker rm `docker ps --no-trunc -aq`*

Thank you!


On Fri, Oct 2, 2015 at 7:31 AM, Danushka Fernando 
wrote:

> When we run PPaaS build.sh it takes lots of disk space and sometimes
> machine tends to go out of disk space. How we can resolve this?
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774079049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] - Clarification on Duplicate entries in SAML Authentication Response

2015-10-01 Thread Nadeesha Meegoda
Hi Danushka,

Thanks for the response! I tested this without enabling the response
signing and assertion signing, but still the saml2:Issuer is duplicated in
both response and assertion. As per my reading on the saml spec in [1] the
Response doesn't contain an issuer, only the assertion contains the issuer
element which is noted in 3.4 Responses section. Please correct me if I'm
wrong.

Full Response is attached for the above scenario mentioned (  without
enabling the response signing and assertion signing )

[1] - http://saml.xml.org/saml-specifications

Thanks!

On Thu, Oct 1, 2015 at 8:33 PM, Danushka Fernando 
wrote:

> Hi Nadeesha
> The duplicate entry meant by you is under the saml assertion. Saml
> response object contains a saml assertion. And when you sign both response
> and assertion this entry includes into both objects. For more details you
> can refer to saml spec. [1]
>
> [1] http://saml.xml.org/saml-specifications
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Oct 1, 2015 7:10 PM, "Nadeesha Meegoda"  wrote:
>
>> Hi IS team,
>>
>> I am testing SAML SSO with travelocity app and when I signed in to the
>> app I noticed in the SAML authentication response getting duplicate entries
>> for saml2:Issuer, ds:Signature, ds:X509Certificate etc with the same
>> response data. Is there a special reason these are duplicated? Just need to
>> clarify!
>>
>> Noted below is the section that is duplicated in the response:
>>
>> >   xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
>>   >mgt.is.wso2.com
>> http://www.w3.org/2000/09/xmldsig#;>
>> 
>> http://www.w3.org/2001/10/xml-exc-c14n#; />
>> http://www.w3.org/2000/09/xmldsig#rsa-sha1; />
>> 
>> 
>> http://www.w3.org/2000/09/xmldsig#enveloped-signature; />
>> http://www.w3.org/2001/10/xml-exc-c14n#; />
>> 
>> http://www.w3.org/2000/09/xmldsig#sha1; />
>>
>> fiOel63mdz3HsEz2JrSbUgBvYDw=
>> 
>> 
>>
>> VgbMj1PIjJ0JFdyJ9AKaLkBnj7OD/prQahVU5WgdK9PAMvMedKt42pna+A5YznK0zLrzPKHAP/5VD6qHVPtF5LsYqJNEC4OTR1Mo2nzv34nOQxZZ95uxKBoxD/eVzgrqNBIzAecgSXvvYBj1ZlmjbJQoOuVxgdFOhOkz8S3bO+Q=
>> 
>> 
>>
>> MIICAzCCAWygAwIBAgIEb38jDjANBgkqhkiG9w0BAQQFADBGMRAwDgYDVQQDEwd5bWMuY29tMQ0wCwYDVQQLEwROb25lMRQwEgYDVQQKEwtOb25lIEw9Tm9uZTENMAsGA1UEBhMETm9uZTAeFw0xNTA4MjkwNjIxNDJaFw0yNTA5MjUwNjIxNDJaMEYxEDAOBgNVBAMTB3ltYy5jb20xDTALBgNVBAsTBE5vbmUxFDASBgNVBAoTC05vbmUgTD1Ob25lMQ0wCwYDVQQGEwROb25lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPWrZjdgaHwd8FDZaOm57wz2fxSW4umTuyw8E8PnNwCkZqIGpxkJGqfEOzXhP38A84a7fwXUfCZuwetgvkU4vfqhHieqI5OiA02pZpBzWkYjpg8By6YeJyK4Vy4hB6yq1gTCaerqffeAfXWI0ILog9iwJtbAgfJUDqU9j5XEnMxQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAE8GmwMaydEFMb8hzvXjkX2pdjZto4S5AqaERjigR5OCsvcnuqNPspuAMyy7AC6xRCkKOfhFEfFcAHhExpqCfqFcuEhfqc3tL89eDyf1sxfnaoCPSWjgo/TirWSaaxcT2JAcWfGh74S77CHC/m9rZ9ozaTJRhzNw5RYEbWNKJEqc
>> 
>> 
>> 
>>
>> Full Response is attached with the mail.
>>
>> Highly appreciate an explanation on this!
>>
>>
>> Thanks
>>
>> --
>> *Nadeesha Meegoda*
>> Software Engineer - QA
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> email : nadees...@wso2.com
>> mobile: +94783639540
>> <%2B94%2077%202273555>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>


-- 
*Nadeesha Meegoda*
Software Engineer - QA
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
email : nadees...@wso2.com
mobile: +94783639540
<%2B94%2077%202273555>
http://localhost:8080/travelocity.com/home.jsp;
 ID="mlncolpndppldfahlldjahicojinmokhdllbdojj"
 InResponseTo="0"
 IssueInstant="2015-10-02T04:46:46.635Z"
 Version="2.0"
 xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
 >
localhost




localhost
http://www.w3.org/2000/09/xmldsig#;>

http://www.w3.org/2001/10/xml-exc-c14n#; />
http://www.w3.org/2000/09/xmldsig#rsa-sha1; />


http://www.w3.org/2000/09/xmldsig#enveloped-signature; />
http://www.w3.org/2001/10/xml-exc-c14n#; />

http://www.w3.org/2000/09/xmldsig#sha1; />

sW59qQPVCbwovHQV8ME/7WZPz+A=



C4G4L7+DM/fFgIYc5DdiXvq81gbqI/FmS3VEqrKEQ5lsw4YghVO9rSNV/avqC6QSOQMqpdvM+V4Bk0orJEJMsJZaR4ekizaEp7iuNbfHAEWFz6Xl9/Fb5g+z1w/6Wk1O17k6SmrVTtlSmmPNXtFUsqY54SxXbgFKAVDZ12DX9/8=




Re: [Dev] [IS] - Clarification on Duplicate entries in SAML Authentication Response

2015-10-01 Thread Pushpalanka Jayawardhana
Hi Nadeesha,

The specification[1] mentions  element as optional. Please refer
section "3.2.2 Complex Type StatusResponseType" in the specification.
Also there is sample SAML Response in the section "5.4.6 Example" of the
spec for quick reference.

This issuer element defines who issued the SAML Assertion and in SAML
Response who issued the SAML Response. Hence there is the possibility for
one party to issue the SAML assertion and another party to issue the SAML
Response, seperately signing each element.

[1] - https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


On Fri, Oct 2, 2015 at 10:36 AM, Nadeesha Meegoda 
wrote:

> Hi Danushka,
>
> Thanks for the response! I tested this without enabling the response
> signing and assertion signing, but still the saml2:Issuer is duplicated in
> both response and assertion. As per my reading on the saml spec in [1] the
> Response doesn't contain an issuer, only the assertion contains the issuer
> element which is noted in 3.4 Responses section. Please correct me if I'm
> wrong.
>
> Full Response is attached for the above scenario mentioned (  without
> enabling the response signing and assertion signing )
>
> [1] - http://saml.xml.org/saml-specifications
>
> Thanks!
>
> On Thu, Oct 1, 2015 at 8:33 PM, Danushka Fernando 
> wrote:
>
>> Hi Nadeesha
>> The duplicate entry meant by you is under the saml assertion. Saml
>> response object contains a saml assertion. And when you sign both response
>> and assertion this entry includes into both objects. For more details you
>> can refer to saml spec. [1]
>>
>> [1] http://saml.xml.org/saml-specifications
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>>
>> On Oct 1, 2015 7:10 PM, "Nadeesha Meegoda"  wrote:
>>
>>> Hi IS team,
>>>
>>> I am testing SAML SSO with travelocity app and when I signed in to the
>>> app I noticed in the SAML authentication response getting duplicate entries
>>> for saml2:Issuer, ds:Signature, ds:X509Certificate etc with the same
>>> response data. Is there a special reason these are duplicated? Just need to
>>> clarify!
>>>
>>> Noted below is the section that is duplicated in the response:
>>>
>>> >>   xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
>>>   >mgt.is.wso2.com
>>> http://www.w3.org/2000/09/xmldsig#;>
>>> 
>>> http://www.w3.org/2001/10/xml-exc-c14n#; />
>>> http://www.w3.org/2000/09/xmldsig#rsa-sha1; />
>>> >> URI="#bnlofhdfbehmnhiajimjohbkhepimciajocfmdkl">
>>> 
>>> http://www.w3.org/2000/09/xmldsig#enveloped-signature; />
>>> http://www.w3.org/2001/10/xml-exc-c14n#; />
>>> 
>>> http://www.w3.org/2000/09/xmldsig#sha1; />
>>>
>>> fiOel63mdz3HsEz2JrSbUgBvYDw=
>>> 
>>> 
>>>
>>> VgbMj1PIjJ0JFdyJ9AKaLkBnj7OD/prQahVU5WgdK9PAMvMedKt42pna+A5YznK0zLrzPKHAP/5VD6qHVPtF5LsYqJNEC4OTR1Mo2nzv34nOQxZZ95uxKBoxD/eVzgrqNBIzAecgSXvvYBj1ZlmjbJQoOuVxgdFOhOkz8S3bO+Q=
>>> 
>>> 
>>>
>>> MIICAzCCAWygAwIBAgIEb38jDjANBgkqhkiG9w0BAQQFADBGMRAwDgYDVQQDEwd5bWMuY29tMQ0wCwYDVQQLEwROb25lMRQwEgYDVQQKEwtOb25lIEw9Tm9uZTENMAsGA1UEBhMETm9uZTAeFw0xNTA4MjkwNjIxNDJaFw0yNTA5MjUwNjIxNDJaMEYxEDAOBgNVBAMTB3ltYy5jb20xDTALBgNVBAsTBE5vbmUxFDASBgNVBAoTC05vbmUgTD1Ob25lMQ0wCwYDVQQGEwROb25lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPWrZjdgaHwd8FDZaOm57wz2fxSW4umTuyw8E8PnNwCkZqIGpxkJGqfEOzXhP38A84a7fwXUfCZuwetgvkU4vfqhHieqI5OiA02pZpBzWkYjpg8By6YeJyK4Vy4hB6yq1gTCaerqffeAfXWI0ILog9iwJtbAgfJUDqU9j5XEnMxQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAE8GmwMaydEFMb8hzvXjkX2pdjZto4S5AqaERjigR5OCsvcnuqNPspuAMyy7AC6xRCkKOfhFEfFcAHhExpqCfqFcuEhfqc3tL89eDyf1sxfnaoCPSWjgo/TirWSaaxcT2JAcWfGh74S77CHC/m9rZ9ozaTJRhzNw5RYEbWNKJEqc
>>> 
>>> 
>>> 
>>>
>>> Full Response is attached with the mail.
>>>
>>> Highly appreciate an explanation on this!
>>>
>>>
>>> Thanks
>>>
>>> --
>>> *Nadeesha Meegoda*
>>> Software Engineer - QA
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> email : nadees...@wso2.com
>>> mobile: +94783639540
>>> <%2B94%2077%202273555>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

[Dev] [C5] Tomcat Plugging POC JSP error

2015-10-01 Thread Aruna Karunarathna
Hi all,

When running Tomcat with C5 executing a jsp is causing the following error.
[1] Complaining that unable to find the org.xml.sax.Attributes class.

Do we need to explicitly export those classes coming from the JDK, I
believe this class is coming from jre/lib/rt.jar?.. Any idea what is
causing this error?.

[1].
osgi> [2015-10-02 10:47:09,677] ERROR
{org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sample].[jsp]}
-  Servlet.service() for servlet [jsp] in context with path [/sample] threw
exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.xml.sax.Attributes cannot be found by
org.apache.jasper.glassfish_2.2.2.v201205150955
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:145)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:212)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
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.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.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
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.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

Regards,
Aruna
-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Building docker images with PPaaS build scripts

2015-10-01 Thread Danushka Fernando
Your command freed up around 20G+ thanks. But still 28G is used.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Fri, Oct 2, 2015 at 11:04 AM, Danushka Fernando 
wrote:

> Hi Pubudu
> Here is the response of the *docker images* command
>
> REPOSITORY  TAG IMAGE ID
> CREATED VIRTUAL SIZE
> wso2/as 5.2.1   8dcdb94efc8d12 hours
> ago1.294 GB
> wso2/base-image 4.1.0   a972772832d616 hours
> ago701.8 MB
> 4d65ea1cc96417 hours
> ago701.1 MB
> 90d819958e2e18 hours
> ago701.1 MB
> 56639f5aff0018 hours
> ago701.1 MB
> debian  7.7 479215127fa79 months
> ago84.97 MB
>
> But after I build the as image it ate 50G+ my disk space. That's the only
> thing I did there.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Fri, Oct 2, 2015 at 10:00 AM, Pubudu Gunatilaka 
> wrote:
>
>> Hi Danushka,
>>
>> Are you having docker images with  tag? You can remove those images
>> using the following command.
>>
>> *docker rmi $(docker images | grep "^" | awk "{print $3}")*
>>
>> If you have run docker containers in your machine, there can be
>> containers that are stopped but not removed. You can verify that using 
>> *docker
>> ps -a* command and use the following command to remove stopped docker
>> containers.
>>
>> *docker rm `docker ps --no-trunc -aq`*
>>
>> Thank you!
>>
>>
>> On Fri, Oct 2, 2015 at 7:31 AM, Danushka Fernando 
>> wrote:
>>
>>> When we run PPaaS build.sh it takes lots of disk space and sometimes
>>> machine tends to go out of disk space. How we can resolve this?
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Senior Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774079049 <%2B94772207163>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] Tomcat Plugging POC JSP error

2015-10-01 Thread Thusitha Thilina Dayaratne
Hi Aruna,

Since we are using tomcat can;t we go with tomcat-jasper instead of
glassfish jasper?

Thanks
/Thusitha

On Fri, Oct 2, 2015 at 10:56 AM, Aruna Karunarathna  wrote:

> Hi all,
>
> When running Tomcat with C5 executing a jsp is causing the following
> error. [1] Complaining that unable to find the org.xml.sax.Attributes class.
>
> Do we need to explicitly export those classes coming from the JDK, I
> believe this class is coming from jre/lib/rt.jar?.. Any idea what is
> causing this error?.
>
> [1].
> osgi> [2015-10-02 10:47:09,677] ERROR
> {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sample].[jsp]}
> -  Servlet.service() for servlet [jsp] in context with path [/sample] threw
> exception [Servlet execution threw an exception] with root cause
> java.lang.ClassNotFoundException: org.xml.sax.Attributes cannot be found
> by org.apache.jasper.glassfish_2.2.2.v201205150955
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
> at
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:145)
> at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:212)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
> 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.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.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> 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.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
>
> Regards,
> Aruna
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] MySQL Database and Table creation when using carbonJDBC option in spark environment

2015-10-01 Thread Imesh Gunaratne
I had an offline chat with Niranda, thanks for the explanation!

IMO calling this RDBMS table mapping in Spark "Temporary Table" is
confusing. People may think that this is an intermediate table which holds
data temporarily.

Thanks

On Thu, Oct 1, 2015 at 1:33 PM, Sinthuja Ragendran 
wrote:

> Hi Niranda,
>
> On Thu, Oct 1, 2015 at 1:28 PM, Niranda Perera  wrote:
>
>> Hi Thanuja and Imesh,
>>
>> let me clarify the use of the term "create temporary table" with regard
>> to Spark.
>> inside DAS we save ('persist') data in DAL (Dara access layer) tables. So
>> in order for us to query these tables, spark needs some sort of a mapping
>> to the tables in DAL in its runtime environment. This mapping is created in
>> the temporary table queries. These temp tables are only a mapping. Not a
>> physical table.
>>
>> @thanuja, yes you are correct! We have to manually create the tables in
>> MySQL before making the temp table mapping in Spark SQL.
>>
> With Carbon JDBC connector, can we try to create the table if it is not
> existing? May be we can let the users to pass the actual create table
> statement as another parameter with options.  IMHO it will be more user
> friendly if we could do that, WDYT?
>
> Thanks,
> Sinthuja.
>
>
>> On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>>
>>>
>>> In DAS spark environment, we can't directly insert the analyzed data to
>>> our mysql table. We should create a temporary table using our datasources
>>> to manipulate them.
>>>
>>
>> Yes, can you please explain the reasons? What does this analysis do? Why
>> we cannot directly insert them to the RDBMS?
>>
>> Thanks
>>
>> On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>
>>> Hi Imesh,
>>>
>>> If we take the above scenario, I need to insert the analyzed/aggregated
>>> data which is obtained as result after spark sql processing, to my mysql
>>> table (sample_table). In order to do that, first we need to create a
>>> temporary table using the corresponding mysql database (sample_datasource)
>>> and table(sample_table) in spark environment and then only by inserting
>>> data to this temporary table in spark environment, we can update our mysql
>>> table.
>>>
>>> In DAS spark environment, we can't directly insert the analyzed data to
>>> our mysql table. We should create a temporary table using our datasources
>>> to manipulate them. I think that's why they named it as '*temporary*'
>>> table.
>>>
>>> @Niranda Please correct me if I'm wrong.
>>>
>>> Thanks.
>>>
>>> On Thu, Oct 1, 2015 at 7:00 AM, Imesh Gunaratne  wrote:
>>>
 Hi Thanuja,

 Can you please explain the purpose of these temporary tables?

 Thanks

 On Wed, Sep 30, 2015 at 11:53 PM, Thanuja Uruththirakodeeswaran <
 thanu...@wso2.com> wrote:

> Hi All,
>
> When we create temporary tables in spark environment using carbonJDBC
> option as explained in [1], we are using a datasource and tableName from
> which spark environment temporary table will get data as follow:
> CREATE TEMPORARY TABLE  using CarbonJDBC options
> (dataSource "", tableName "");
>
> I've used a mysql database (sample_datasource) for datasource and used
> mysql tables created in that database for tableName (sample_table) as
> follow:
> CREATE TEMPORARY TABLE sample using CarbonJDBC options (dataSource "
> sample_datasource", tableName "sample_table");
>
> But I'm creating the mysql database and tables by executing sql
> statements manually. Is there a way in DAS that we can add these sql
> statements inside a script and create the database and tables when we 
> start
> the server?
>
> [1]. https://docs.wso2.com/display/DAS300/Spark+Query+Language
>
> Thanks.
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> Thanuja Uruththirakodeeswaran
>>> Software Engineer
>>> WSO2 Inc.;http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 774363167
>>>
>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Sinthuja 

Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-10-01 Thread Abimaran Kugathasan
HI Irham,


Please find it from [1]. I have attached that test module.


[1] :
https://drive.google.com/a/wso2.com/file/d/0B368ZmWTkoFpNHI5MHVPaDBTTDA/view?usp=sharing

On Thu, Oct 1, 2015 at 1:47 PM, Irham Iqbal  wrote:

> Hi Abimaran,
>
> Can you send the whole test case as well.
>
> Thanks,
> Iqbal
>
> On Thu, Oct 1, 2015 at 1:41 PM, Abimaran Kugathasan 
> wrote:
>
>> Yes, It works fine when deploying manually.
>>
>> I'm copying the details error log here.
>>
>> [2015-10-01 13:34:33,524]  INFO
>> {org.wso2.carbon.automation.core.PlatformTestManager} -  Running the test
>> method ---
>> org.wso2.carbon.am.tests.ESBJAVA3530TimeoutHandlerLogMessageTestCase.testBackendTimeoutLog
>> 
>>  File PAth
>> /home/abimaran/sources/wso2-dev/support/trunk/products/apimgt/1.6.0/modules/integration/tests-patches/src/test/resources//artifacts/AM/war/backendTimeout/RESTFulExample.war
>> [2015-10-01 13:34:33,585]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
>> data handler for dataHandler
>> [2015-10-01 13:34:33,585]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
>> data handler for dataHandler
>> [2015-10-01 13:34:33,586]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>> [2015-10-01 13:34:33,586]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>> [2015-10-01 13:34:33,594]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
>> data handler for dataHandler
>> [2015-10-01 13:34:33,594]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
>> data handler for dataHandler
>> [2015-10-01 13:34:33,594]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>> [2015-10-01 13:34:33,594]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>> [2015-10-01 13:34:33,600]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>>  [2015-10-01 13:34:33,600] ERROR - ResponseTimeCalculator
>> wso2statistics.request.received.time is null in the IN MessageContext
>> [2015-10-01 13:34:33,602]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
>> data handler for dataHandler
>> [2015-10-01 13:34:33,602]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read
>> data handler for dataHandler
>> [2015-10-01 13:34:33,603]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>> [2015-10-01 13:34:33,603]  INFO
>> {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
>> [2015-10-01 13:34:33,603]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>>  [2015-10-01 13:34:33,602] ERROR - PassThroughHttpSSLSender IO Error
>> sending response message
>> [2015-10-01 13:34:33,604]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>>  org.apache.axis2.AxisFault: ClientAbortException:  java.io.IOException:
>> Unable to wrap data, invalid engine state: CLOSED
>> [2015-10-01 13:34:33,604]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>> [2015-10-01 13:34:33,604]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
>> [2015-10-01 13:34:33,604]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.sendUsingOutputStream(PassThroughHttpSender.java:297)
>> [2015-10-01 13:34:33,604]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:261)
>> [2015-10-01 13:34:33,605]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:525)
>> [2015-10-01 13:34:33,605]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433)
>> [2015-10-01 13:34:33,605]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
>> 

Re: [Dev] [DAS] MySQL Database and Table creation when using carbonJDBC option in spark environment

2015-10-01 Thread Inosh Goonewardena
Hi Niranda,

On Thu, Oct 1, 2015 at 1:33 PM, Sinthuja Ragendran 
wrote:

> Hi Niranda,
>
> On Thu, Oct 1, 2015 at 1:28 PM, Niranda Perera  wrote:
>
>> Hi Thanuja and Imesh,
>>
>> let me clarify the use of the term "create temporary table" with regard
>> to Spark.
>> inside DAS we save ('persist') data in DAL (Dara access layer) tables. So
>> in order for us to query these tables, spark needs some sort of a mapping
>> to the tables in DAL in its runtime environment. This mapping is created in
>> the temporary table queries. These temp tables are only a mapping. Not a
>> physical table.
>>
>> @thanuja, yes you are correct! We have to manually create the tables in
>> MySQL before making the temp table mapping in Spark SQL.
>>
> With Carbon JDBC connector, can we try to create the table if it is not
> existing? May be we can let the users to pass the actual create table
> statement as another parameter with options.  IMHO it will be more user
> friendly if we could do that, WDYT?
>

Yes. +1. For tables created using CarbonAnalytics it is possible to provide
the table schema as below [1]. I believe we can use the similar approach in
CarbonJDBC also to  provide the create table query.

As per the current implementation what happens is even though the table is
created manually before the script execution, "insert overwrite..."
statement execution will delete the original table and recreate a new table
using a generated schema(schema information is generated using the original
table structure). In this approach, table that is re-created at the query
execution will not have primary keys and indexes of the original table(if
there were any). So if we can provide a complete create table query, we can
preserve original table structure too.

On the other hand, I believe we should also support "insert into.."
statements in CarbonJDBC. "insert into.." statements will not delete and
recreate the table like the "insert overwrite..." statements, and it will
only update the existing table[2].


[1] CREATE TEMPORARY TABLE plugUsage
USING CarbonAnalytics
OPTIONS (tableName "plug_usage",
* schema "house_id INT, household_id INT, plug_id INT, usage FLOAT"*
,
 primaryKeys "household_id, plug_id"
);

[2] [Dev] [Architecture] Carbon Spark JDBC connector


>
> Thanks,
> Sinthuja.
>
>
>> On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>>
>>>
>>> In DAS spark environment, we can't directly insert the analyzed data to
>>> our mysql table. We should create a temporary table using our datasources
>>> to manipulate them.
>>>
>>
>> Yes, can you please explain the reasons? What does this analysis do? Why
>> we cannot directly insert them to the RDBMS?
>>
>> Thanks
>>
>> On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>
>>> Hi Imesh,
>>>
>>> If we take the above scenario, I need to insert the analyzed/aggregated
>>> data which is obtained as result after spark sql processing, to my mysql
>>> table (sample_table). In order to do that, first we need to create a
>>> temporary table using the corresponding mysql database (sample_datasource)
>>> and table(sample_table) in spark environment and then only by inserting
>>> data to this temporary table in spark environment, we can update our mysql
>>> table.
>>>
>>> In DAS spark environment, we can't directly insert the analyzed data to
>>> our mysql table. We should create a temporary table using our datasources
>>> to manipulate them. I think that's why they named it as '*temporary*'
>>> table.
>>>
>>> @Niranda Please correct me if I'm wrong.
>>>
>>> Thanks.
>>>
>>> On Thu, Oct 1, 2015 at 7:00 AM, Imesh Gunaratne  wrote:
>>>
 Hi Thanuja,

 Can you please explain the purpose of these temporary tables?

 Thanks

 On Wed, Sep 30, 2015 at 11:53 PM, Thanuja Uruththirakodeeswaran <
 thanu...@wso2.com> wrote:

> Hi All,
>
> When we create temporary tables in spark environment using carbonJDBC
> option as explained in [1], we are using a datasource and tableName from
> which spark environment temporary table will get data as follow:
> CREATE TEMPORARY TABLE  using CarbonJDBC options
> (dataSource "", tableName "");
>
> I've used a mysql database (sample_datasource) for datasource and used
> mysql tables created in that database for tableName (sample_table) as
> follow:
> CREATE TEMPORARY TABLE sample using CarbonJDBC options (dataSource "
> sample_datasource", tableName "sample_table");
>
> But I'm creating the mysql database and tables by executing sql
> statements manually. Is there a way in DAS that we can add these sql
> statements inside a script and create the database and tables when we 
> start
> the server?
>
> [1]. https://docs.wso2.com/display/DAS300/Spark+Query+Language
>
> Thanks.
>
> --
> 

Re: [Dev] [DAS] MySQL Database and Table creation when using carbonJDBC option in spark environment

2015-10-01 Thread Thanuja Uruththirakodeeswaran
Hi Imesh,

Please find the answers below:

1. What does this analysis do?

What I'm processing using spark query is from the raw data I received as
thrift events, I'm counting members is different states per application and
cluster every t sec. Spark script is scheduled to execute every t sec to do
that.

2. Why we cannot directly insert them to the RDBMS?

I'm doing the above processing in DAS spark environment / DAL (Data Access
Layer), we can't insert the results directly to RDBMS, because DAL don't
know anything about our RDBMS table and we are using temporary table to do
mapping only to RDBMS table in spark environment and as I understand
'create temporary table' will not create a physical table and do a mapping
to our RDBMS table in spark environment.

Thanks.

On Thu, Oct 1, 2015 at 1:33 PM, Sinthuja Ragendran 
wrote:

> Hi Niranda,
>
> On Thu, Oct 1, 2015 at 1:28 PM, Niranda Perera  wrote:
>
>> Hi Thanuja and Imesh,
>>
>> let me clarify the use of the term "create temporary table" with regard
>> to Spark.
>> inside DAS we save ('persist') data in DAL (Dara access layer) tables. So
>> in order for us to query these tables, spark needs some sort of a mapping
>> to the tables in DAL in its runtime environment. This mapping is created in
>> the temporary table queries. These temp tables are only a mapping. Not a
>> physical table.
>>
>> @thanuja, yes you are correct! We have to manually create the tables in
>> MySQL before making the temp table mapping in Spark SQL.
>>
> With Carbon JDBC connector, can we try to create the table if it is not
> existing? May be we can let the users to pass the actual create table
> statement as another parameter with options.  IMHO it will be more user
> friendly if we could do that, WDYT?
>
> Thanks,
> Sinthuja.
>
>
>> On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>>
>>>
>>> In DAS spark environment, we can't directly insert the analyzed data to
>>> our mysql table. We should create a temporary table using our datasources
>>> to manipulate them.
>>>
>>
>> Yes, can you please explain the reasons? What does this analysis do? Why
>> we cannot directly insert them to the RDBMS?
>>
>> Thanks
>>
>> On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>
>>> Hi Imesh,
>>>
>>> If we take the above scenario, I need to insert the analyzed/aggregated
>>> data which is obtained as result after spark sql processing, to my mysql
>>> table (sample_table). In order to do that, first we need to create a
>>> temporary table using the corresponding mysql database (sample_datasource)
>>> and table(sample_table) in spark environment and then only by inserting
>>> data to this temporary table in spark environment, we can update our mysql
>>> table.
>>>
>>> In DAS spark environment, we can't directly insert the analyzed data to
>>> our mysql table. We should create a temporary table using our datasources
>>> to manipulate them. I think that's why they named it as '*temporary*'
>>> table.
>>>
>>> @Niranda Please correct me if I'm wrong.
>>>
>>> Thanks.
>>>
>>> On Thu, Oct 1, 2015 at 7:00 AM, Imesh Gunaratne  wrote:
>>>
 Hi Thanuja,

 Can you please explain the purpose of these temporary tables?

 Thanks

 On Wed, Sep 30, 2015 at 11:53 PM, Thanuja Uruththirakodeeswaran <
 thanu...@wso2.com> wrote:

> Hi All,
>
> When we create temporary tables in spark environment using carbonJDBC
> option as explained in [1], we are using a datasource and tableName from
> which spark environment temporary table will get data as follow:
> CREATE TEMPORARY TABLE  using CarbonJDBC options
> (dataSource "", tableName "");
>
> I've used a mysql database (sample_datasource) for datasource and used
> mysql tables created in that database for tableName (sample_table) as
> follow:
> CREATE TEMPORARY TABLE sample using CarbonJDBC options (dataSource "
> sample_datasource", tableName "sample_table");
>
> But I'm creating the mysql database and tables by executing sql
> statements manually. Is there a way in DAS that we can add these sql
> statements inside a script and create the database and tables when we 
> start
> the server?
>
> [1]. https://docs.wso2.com/display/DAS300/Spark+Query+Language
>
> Thanks.
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


Re: [Dev] [Vote] Release WSO2 Carbon Kernel 4.4.2 RC1

2015-10-01 Thread Manuri Amaya Perera
Hi Indunil,

As I understand, "FOREIGN KEY constraint violation" issue is a regression
issue therefore the deadlock issue cannot be resolved until foreign key
constraint violation issue is fixed, right?

Thank you.

On Thu, Oct 1, 2015 at 2:01 PM, Indunil Upeksha Rathnayake  wrote:

> Hi,
> The deadlock issue in https://wso2.org/jira/browse/MB-1326 is resolved in
> both oracle 12c and 11g r2. (Please refer previous mails in this mail
> thread to get the idea of the issue). Then after a "FOREIGN KEY constraint
> violation" issue occurred in both mssql and oracle, intermittently (Refer
> the attached file "errorLog_foriegnKeyViolation" for the error log). For
> that, issued the fix in https://github.com/wso2/carbon-kernel/pull/512,
> and it worked for oracle, but not for mssql. This is tested in following
> scenarios in MB cluster.
>
> 1. 5 queues - 5 subscribers and 5 consumers ( 1 publisher and 1 consumer
> each )
> 2. 5 Topics - 5 subscribers and 5 consumers ( in mssql, it breaks for this
> scenario)
> 3. 100 topics - 100 publishers and 100 consumers ( 1 publisher and 1
> consumer each )
> 4. 1 topic - 100 subscribers / 100 consumers
> 5. Mixed scenario where multiple queues, topics and durable topics are used
>
> I have attached all the debug logs here. Please consider this matter and
> provide your feedbacks on resolving this.
>
> Thanks and Regards
> --
> Indunil Upeksha Rathnayake
> Software Engineer | WSO2 Inc
> Emailindu...@wso2.com
>
>


-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

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