Re: [Dev] [MSF4J] Issue with registering ExceptionMappers.

2016-06-20 Thread Hemika Kodikara
Hi Azeez,

I was not able to get it reproduced in the fatjar so far. It comes
intermittently in my tests as well.

After all 3 of my exception mappers are registered, the map will have the
following :

[org.wso2.msf4j.internal.MicroservicesRegistry] : EXCEPTION MAPPERS :
{class
java.lang.Throwable=org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper@32018c32
}

Throwable being the key and MessageNotFoundMapper being the value.

The exception that is being thrown by my test case by purpose
is org.wso2.carbon.andes.service.exceptions.InternalServerException.

Since the key is Throwable, the MessageNotFoundMapper is returned by

entry.getKey().isAssignableFrom(throwable.getClass()))[1]

[1] -
https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/internal/MicroservicesRegistry.java#L100

Regards,
Hemika



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

Mobile : +9477762

On Mon, Jun 20, 2016 at 7:55 PM, Afkham Azeez  wrote:

> Can this be reproduced in the standalone (fatjar) mode as well?
>
> On Mon, Jun 20, 2016 at 7:53 PM, Afkham Azeez  wrote:
>
>> So what has happened in the wrong exception mapper for an exception has
>> got registered?
>>
>> On Mon, Jun 20, 2016 at 7:03 PM, Hemika Kodikara  wrote:
>>
>>> Hi All,
>>>
>>> I am currently writing unit test cases where exception mappers are being
>>> used in my service. Intermittently I get the following error when running
>>> my tests :
>>>
>>> ==
>>> java.lang.ClassCastException:
>>> org.wso2.carbon.andes.service.exceptions.InternalServerException cannot be
>>> cast to org.wso2.carbon.andes.service.exceptions.MessageNotFoundException
>>> at
>>> org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(MessageNotFoundMapper.java:30)
>>> at
>>> org.wso2.msf4j.internal.MSF4JMessageProcessor.handleThrowable(MSF4JMessageProcessor.java:138)
>>> at
>>> org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JMessageProcessor.java:81)
>>> at
>>> org.wso2.carbon.transport.http.netty.listener.WorkerPoolDispatchingSourceHandler$1.run(WorkerPoolDispatchingSourceHandler.java:125)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>> at java.lang.Thread.run(Thread.java:745)
>>> ==
>>>
>>> In the above exception, "MessageNotFoundException" maps to
>>> "MessageNotFoundMapper" and "InternalServerException" maps to
>>> "InternalServerErrorMapper".
>>>
>>> The 2 exception classes have nothing in common and the 2 mapper classes
>>> also have nothing in common.
>>>
>>> I debugged further to find the issue with the attached
>>> patch(ex-map-msf4j.diff) for logging(not sure whether I have the latest
>>> code).
>>>
>>> Following is the output when the error occurs :
>>>
>>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>>> javax.ws.rs.core.Response
>>> org.wso2.carbon.andes.service.internal.exception.mappers.DestinationNotFoundMapper.toResponse(
>>> *java.lang.Throwable*)
>>> 
>>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>>> javax.ws.rs.core.Response
>>> org.wso2.carbon.andes.service.internal.exception.mappers.InternalServerErrorMapper.toResponse(
>>> *java.lang.Throwable*)
>>> 
>>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>>> javax.ws.rs.core.Response
>>> org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(
>>> *java.lang.Throwable*)
>>>
>>> The issue here is that the paramtype is as "java.lang.Throwable". The
>>> correct value should be as follows since there is a comparator for the
>>> exceptionMapper map :
>>>
>>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>>> javax.ws.rs.core.Response
>>> org.wso2.carbon.andes.service.internal.exception.mappers.DestinationNotFoundMapper.toResponse(
>>> *org.wso2.carbon.andes.service.exceptions.DestinationNotFoundException*)
>>> .
>>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>>> javax.ws.rs.core.Response
>>> org.wso2.carbon.andes.service.internal.exception.mappers.InternalServerErrorMapper.toResponse(
>>> *org.wso2.carbon.andes.service.exceptions.InternalServerException*)
>>> .
>>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>>> javax.ws.rs.core.Response
>>> org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(
>>> *org.wso2.carbon.andes.service.exceptions.MessageNotFoundException*)
>>>
>>>
>>> According to what I was able to find out, this is an JDK error[1][2](Bug:
>>> 8029459 )
>>> for the method "em.getClass().getMethods()"[3].
>>>
>>> Any advice on how to proceed or that needs to be checked from my side ?
>>>
>>> [1] -
>>> 

Re: [Dev] Maintaining the order for XML payloads in JSON schema - Data Mapper

2016-06-20 Thread Nuwan Pallewela
Problem is that we can not say that we are not guarantee the order of the
xml elements in data mapper. As there are some well known API's who
consider the order(some Salesforce API's), we have to support the order in
xml elements from our side. Otherwise there will be issues when user going
to use data mapper with such API's.

On Tue, Jun 21, 2016 at 10:43 AM, Harsha Thirimanna 
wrote:

> As in the spec , it can be choice, seq or mixed, right ? The ELEMENT Type
> Declaration can be used within an DTD to define the contents on an element
> within the XML document. Is that ok to make sequence for all the cases ?
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Jun 21, 2016 at 10:17 AM, Nuwan Pallewela  wrote:
>
>> Hi Harsha,
>>
>> We can find this in section 3.2.1 Element Content in the W3C
>> recommendation[1].
>>
>> [1] https://www.w3.org/TR/REC-xml/
>>
>> Thanks,
>> Nuwan
>>
>> On Tue, Jun 21, 2016 at 10:02 AM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> Thanks for pointing that, can you please point that
>>> specification location please ?
>>>
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Tue, Jun 21, 2016 at 9:45 AM, Nuwan Pallewela 
>>> wrote:
>>>
 Hi Harsha,

 On Tue, Jun 21, 2016 at 9:27 AM, Harsha Thirimanna 
 wrote:

> Hi Sohani,
> Just wanted to know one thing and please make me correct if i am wrong
> here.
>
> Normally, XML elements don't have an order and any implementation
> should not depend on the order of the elements in XML file except if it
> has a XSD and saying it as a sequence.
>
 No. In the specification it is mentioned that XML consider order. And
 there are certain api's which consider the order of the elements. So we
 should to support it in xml.

> So why do we need to concern about the order here. Any special reason
> for that ?
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Jun 20, 2016 at 2:51 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> We are in a process of $subject and the main issue we faced in
>> generating the json schema was as follows.
>>
>> When generating the json schema we mainly convert the xml to json and
>> the xml to json conversion does not guarantee the order since json object
>> is an unordered set of name/value pairs [1].
>>
>> The main reason is the usage of HashMaps instead of LinkedHashMaps in
>> instantiating the JSONObjects and we could solve the issue by using the
>> LinkedHashMaps.
>>
>> This issue again occurs in serializing the schema while iterating
>> through the gmf tree, since we are generating the schema by creating the
>> JSONObjects and JSONArrays appropriately. We could solve this issue as 
>> well
>> by using the above solution and as a result, the generated tree and the
>> schema will maintain the order of the XML payload
>>
>> [1]
>> http://stackoverflow.com/questions/26034370/inverted-order-of-json-elements-in-java-after-xml-conversion
>>
>> Thanks,
>> Sohani
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] Maintaining the order for XML payloads in JSON schema - Data Mapper

2016-06-20 Thread Harsha Thirimanna
As in the spec , it can be choice, seq or mixed, right ? The ELEMENT Type
Declaration can be used within an DTD to define the contents on an element
within the XML document. Is that ok to make sequence for all the cases ?


*Harsha Thirimanna*
Associate Tech Lead; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Tue, Jun 21, 2016 at 10:17 AM, Nuwan Pallewela  wrote:

> Hi Harsha,
>
> We can find this in section 3.2.1 Element Content in the W3C
> recommendation[1].
>
> [1] https://www.w3.org/TR/REC-xml/
>
> Thanks,
> Nuwan
>
> On Tue, Jun 21, 2016 at 10:02 AM, Harsha Thirimanna 
> wrote:
>
>> Hi Nuwan,
>>
>> Thanks for pointing that, can you please point that
>> specification location please ?
>>
>>
>> *Harsha Thirimanna*
>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Tue, Jun 21, 2016 at 9:45 AM, Nuwan Pallewela  wrote:
>>
>>> Hi Harsha,
>>>
>>> On Tue, Jun 21, 2016 at 9:27 AM, Harsha Thirimanna 
>>> wrote:
>>>
 Hi Sohani,
 Just wanted to know one thing and please make me correct if i am wrong
 here.

 Normally, XML elements don't have an order and any implementation
 should not depend on the order of the elements in XML file except if it
 has a XSD and saying it as a sequence.

>>> No. In the specification it is mentioned that XML consider order. And
>>> there are certain api's which consider the order of the elements. So we
>>> should to support it in xml.
>>>
 So why do we need to concern about the order here. Any special reason
 for that ?


 *Harsha Thirimanna*
 Associate Tech Lead; WSO2, Inc.; http://wso2.com
 * *
 *email: **hars...@wso2.com* * cell: +94 71 5186770 *
 *twitter: **http://twitter.com/ *
 *harshathirimannlinked-in: **http:
 **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 *

 *Lean . Enterprise . Middleware*


 On Mon, Jun 20, 2016 at 2:51 PM, Sohani Weerasinghe 
 wrote:

> Hi All,
>
> We are in a process of $subject and the main issue we faced in
> generating the json schema was as follows.
>
> When generating the json schema we mainly convert the xml to json and
> the xml to json conversion does not guarantee the order since json object
> is an unordered set of name/value pairs [1].
>
> The main reason is the usage of HashMaps instead of LinkedHashMaps in
> instantiating the JSONObjects and we could solve the issue by using the
> LinkedHashMaps.
>
> This issue again occurs in serializing the schema while iterating
> through the gmf tree, since we are generating the schema by creating the
> JSONObjects and JSONArrays appropriately. We could solve this issue as 
> well
> by using the above solution and as a result, the generated tree and the
> schema will maintain the order of the XML payload
>
> [1]
> http://stackoverflow.com/questions/26034370/inverted-order-of-json-elements-in-java-after-xml-conversion
>
> Thanks,
> Sohani
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


>>> Thanks,
>>> Nuwan
>>>
>>> --
>>> --
>>>
>>> *Nuwan Chamara Pallewela*
>>>
>>>
>>> *Software Engineer*
>>>
>>> *WSO2, Inc. *http://wso2.com
>>> *lean . enterprise . middleware*
>>>
>>> Email   *nuw...@wso2.com *
>>> Mobile  *+94719079739 <%2B94719079739>@*
>>>
>>>
>>>
>>
>
>
> --
> 

[Dev] Custom Input Mappings JSON : Could not find any matches for the incoming event with JSONPath

2016-06-20 Thread Aneela Safdar



Hi,
I have an event receiver with custom input mapping as my event format was a 
little different. It has no meta or correlational attributes.  
Example is:
{"ts":"2016-05-08T08:59:47.363764Z",
"uid":"CLuCgz3HHzG7LpLwH9",
"id.orig_h":"172.30.26.119",
"id.orig_p":51976,
"id.resp_h":"172.30.26.160",
"id.resp_p":22,
"version":2,
"client":"SSH-2.0-OpenSSH_5.0",
"server":"SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6",
"cipher_alg":"arcfour256",
"mac_alg":"hmac-md5",
"compression_alg":"none",
"kex_alg":"diffie-hellman-group-exchange-sha1",
"host_key_alg":"ssh-rsa",
"host_key":"8d:df:71:ac:29:1f:67:6f:f3:dd:c3:e5:2e:5f:3e:b4"}
There is no newline, I have added to make it readable. Accordingly I created an 
event receiver with a custom input mapping :

http://wso2.org/carbon/eventreceiver;>
    
    all
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

The sample event of input stream is :
{
    "event": {
    "payloadData": {
    "ts": "data5",
    "uid": "data5",
    "id_orig_h": "data1",
    "id_orig_p": 70,
    "id_resp_h": "data3",
    "id_resp_p": 4,
    "version": 50,
    "client": "data1",
    "server": "data2",
    "cipher_alg": "data5",
    "mac_alg": "data3",
    "compression_alg": "data3",
    "kex_alg": "data4",
    "host_key_alg": "data4",
    "host_key": "data4"
    }
    }
}
I dont have event and payload tags in my events as it is a simple log file. 
When I try to send events, I got an error on console saying :


ERROR {org.wso2.carbon.event.receiver.core.internal.type.json.JSONInputMapper} 
-  Could not find any matches for the incoming event with JSONPath : 
com.jayway.jsonpath.JsonPath@543abe49 ,hence dropping the event

Have I done custom input mapping wrong or what else I need to do? Regards, 
Aneela Safdar

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


[Dev] DataPublisher clients should check the returned value of tryPublish API

2016-06-20 Thread Nirmal Fernando
Hi All,

While doing a performance test using a data publisher client, it was
realized that it's important to check the returned value of tryPublish API
and if it is false (i.e. if the event wasn't sent) Clients' should slow
down a bit (use a sleep or similar)  to avoid spinning the CPU.

Please note this especially when you write a data publisher client to do a
migration, a performance test etc.

We need to add a note in
https://docs.wso2.com/pages/viewpage.action?pageId=48288495#PublishingDataUsingJavaClientThroughThrift/Binary-Datapublishersample
too IMO.

-- 

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] [GSOC 16] Initial Project Progress

2016-06-20 Thread Isuru Haththotuwa
Hi Osura,

I went through the code at [1] briefly. Some general comments:

   - The code is not properly formatted
   - The code has a SNAPSHOT dependency for org.wso2.carbon.utils. If you
   do not have a specific reason to do so, its better to use a released
   version.
   - To parse the responses from the rest API, you are directly
   manipulating JSON objects. Have a look at the Kubernetes Membership Scheme.
   Its using Jackson to parse the API responses using bean classes. This would
   be much easier than directly interacting with JSON structures. Or else, you
   can use Netflix Feign as a REST API client [2], in which the amount of code
   you have to write is very less.
   - System.exit(1) is used in few places to handle error scenarios, which
   is wrong. Please use a proper Exception for the purpose

Noted that you have updated the README file, which is great. Lets have a
code review this week to go through the functional aspects at a more fine
grained level.

[1]. https://github.com/osuran/azure-membership-scheme.git

[2]. https://github.com/Netflix/feign

On Thu, Jun 16, 2016 at 11:23 AM, Osura Rathnayake 
wrote:

> Hi Isuru,
>
> That's great, will do the demo at 3 o'clock in the evening today.
> thanks
>
> On Thu, Jun 16, 2016 at 11:21 AM, Isuru Haththotuwa 
> wrote:
>
>>
>>
>> On Thu, Jun 16, 2016 at 11:10 AM, Osura Rathnayake 
>> wrote:
>>
>>> Hi Mentors,
>>>
>>> Thank you for the update.
>>> Yes I can demonstrate it anytime today.
>>>
>> Great! Shall we have a hangout at 3.00 PM? The main purpose would be to
>> demonstrate the membership scheme functionality with a carbon cluster
>> deployed in Azure.
>>
>>>
>>>
>>> thanks
>>>
>>> On Thu, Jun 16, 2016 at 10:11 AM, Isuru Haththotuwa 
>>> wrote:
>>>
 Hi Osura,

 Would you be able to demonstrate the functionality of the membership
 scheme today?

 Also, please keep an eye on the timeline for the project [1], as the
 midterm evaluations will be starting on 20th.

 [1]. https://developers.google.com/open-source/gsoc/timeline

 On Thu, Jun 16, 2016 at 6:46 AM, Imesh Gunaratne 
 wrote:

>
>
> On Wed, Jun 15, 2016 at 2:46 PM, Osura Rathnayake 
> wrote:
>
>> Hi Mentors,
>>
>> As we discussed at the very beginning, next in line is to see how
>> each of the following can be setup on Azure using native features:
>>
>>- Auto healing
>>- Autoscaling
>>- Dynamic load balancing
>>- Centralized logging
>>- Monitoring
>>- Metering
>>
>> For auto healing, we can implement it in both VM level and
>> application level. In VM level, we can poll for VM statuses and check if 
>> a
>> given VM is down or not. And then we can up them if they have gone down,
>> using api calls. for application level of course we will have to run a
>> shell script to determine the status of a given application and will have
>> to up it accordingly. I'm looking forward to hear from you regarding 
>> this.
>>
>
> ​No, auto healing and autoscaling should be handled by Azure. We might
> not need to write code to handle that.
>
> Thanks​
>
>
>>
>> thanks,
>>
>> On Mon, Jun 13, 2016 at 10:53 AM, Osura Rathnayake <
>> osura...@gmail.com> wrote:
>>
>>> Hi Isuru,
>>>
>>> Can you please tell me when you would be free to have a hangout to
>>> do a code review and discuss next project goals?
>>>
>>> Thanks,
>>>
>>> On Saturday, June 11, 2016, Osura Rathnayake 
>>> wrote:
>>>
 Hi Isuru,

 Thank you very much.
 Yes there was a misconfiguration in registry mounts and now it
 works properly.
 Okay will have a code review next week.


 On Fri, Jun 10, 2016 at 9:45 AM, Isuru Haththotuwa  wrote:

> Hi Osura,
>
> This is great progress! This shows that a clustered deployment of
> WSO2 products on Azure is possible with this membership scheme.
>
> About the error, what is says is that a particular resource that
> the first node is expecting to find in the config registry is not 
> found.
> This can be due to a mis-configured registry mounts. Did you mount the
> config and governance registries? If not please do so by referring 
> [1].
>
> Lets schedule a code review early next week for the membership
> scheme.
>
> [1].
> https://docs.wso2.com/display/CLUSTER44x/Setting+up+the+Database
>
> On Fri, Jun 10, 2016 at 12:42 AM, Osura Rathnayake <
> osura...@gmail.com> wrote:
>
>> Hi Mentors,
>>
>> I have two application 

Re: [Dev] Maintaining the order for XML payloads in JSON schema - Data Mapper

2016-06-20 Thread Nuwan Pallewela
Hi Harsha,

We can find this in section 3.2.1 Element Content in the W3C
recommendation[1].

[1] https://www.w3.org/TR/REC-xml/

Thanks,
Nuwan

On Tue, Jun 21, 2016 at 10:02 AM, Harsha Thirimanna 
wrote:

> Hi Nuwan,
>
> Thanks for pointing that, can you please point that specification location
> please ?
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Jun 21, 2016 at 9:45 AM, Nuwan Pallewela  wrote:
>
>> Hi Harsha,
>>
>> On Tue, Jun 21, 2016 at 9:27 AM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Sohani,
>>> Just wanted to know one thing and please make me correct if i am wrong
>>> here.
>>>
>>> Normally, XML elements don't have an order and any implementation should
>>> not depend on the order of the elements in XML file except if it has a XSD
>>> and saying it as a sequence.
>>>
>> No. In the specification it is mentioned that XML consider order. And
>> there are certain api's which consider the order of the elements. So we
>> should to support it in xml.
>>
>>> So why do we need to concern about the order here. Any special reason
>>> for that ?
>>>
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Mon, Jun 20, 2016 at 2:51 PM, Sohani Weerasinghe 
>>> wrote:
>>>
 Hi All,

 We are in a process of $subject and the main issue we faced in
 generating the json schema was as follows.

 When generating the json schema we mainly convert the xml to json and
 the xml to json conversion does not guarantee the order since json object
 is an unordered set of name/value pairs [1].

 The main reason is the usage of HashMaps instead of LinkedHashMaps in
 instantiating the JSONObjects and we could solve the issue by using the
 LinkedHashMaps.

 This issue again occurs in serializing the schema while iterating
 through the gmf tree, since we are generating the schema by creating the
 JSONObjects and JSONArrays appropriately. We could solve this issue as well
 by using the above solution and as a result, the generated tree and the
 schema will maintain the order of the XML payload

 [1]
 http://stackoverflow.com/questions/26034370/inverted-order-of-json-elements-in-java-after-xml-conversion

 Thanks,
 Sohani
 Sohani Weerasinghe
 Senior Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>> Thanks,
>> Nuwan
>>
>> --
>> --
>>
>> *Nuwan Chamara Pallewela*
>>
>>
>> *Software Engineer*
>>
>> *WSO2, Inc. *http://wso2.com
>> *lean . enterprise . middleware*
>>
>> Email   *nuw...@wso2.com *
>> Mobile  *+94719079739 <%2B94719079739>@*
>>
>>
>>
>


-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *http://wso2.com
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739@*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Maintaining the order for XML payloads in JSON schema - Data Mapper

2016-06-20 Thread Harsha Thirimanna
Hi Nuwan,

Thanks for pointing that, can you please point that specification location
please ?


*Harsha Thirimanna*
Associate Tech Lead; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Tue, Jun 21, 2016 at 9:45 AM, Nuwan Pallewela  wrote:

> Hi Harsha,
>
> On Tue, Jun 21, 2016 at 9:27 AM, Harsha Thirimanna 
> wrote:
>
>> Hi Sohani,
>> Just wanted to know one thing and please make me correct if i am wrong
>> here.
>>
>> Normally, XML elements don't have an order and any implementation should
>> not depend on the order of the elements in XML file except if it has a XSD
>> and saying it as a sequence.
>>
> No. In the specification it is mentioned that XML consider order. And
> there are certain api's which consider the order of the elements. So we
> should to support it in xml.
>
>> So why do we need to concern about the order here. Any special reason for
>> that ?
>>
>>
>> *Harsha Thirimanna*
>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Mon, Jun 20, 2016 at 2:51 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> We are in a process of $subject and the main issue we faced in
>>> generating the json schema was as follows.
>>>
>>> When generating the json schema we mainly convert the xml to json and
>>> the xml to json conversion does not guarantee the order since json object
>>> is an unordered set of name/value pairs [1].
>>>
>>> The main reason is the usage of HashMaps instead of LinkedHashMaps in
>>> instantiating the JSONObjects and we could solve the issue by using the
>>> LinkedHashMaps.
>>>
>>> This issue again occurs in serializing the schema while iterating
>>> through the gmf tree, since we are generating the schema by creating the
>>> JSONObjects and JSONArrays appropriately. We could solve this issue as well
>>> by using the above solution and as a result, the generated tree and the
>>> schema will maintain the order of the XML payload
>>>
>>> [1]
>>> http://stackoverflow.com/questions/26034370/inverted-order-of-json-elements-in-java-after-xml-conversion
>>>
>>> Thanks,
>>> Sohani
>>> Sohani Weerasinghe
>>> Senior Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
> Thanks,
> Nuwan
>
> --
> --
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> *lean . enterprise . middleware*
>
> Email   *nuw...@wso2.com *
> Mobile  *+94719079739 <%2B94719079739>@*
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] DSS Tryit Page issue

2016-06-20 Thread Anupama Pathirage
Hi,

When we build the product DSS [1] with the latest Kernel Release (4.4.6),
we have observed following issues in "Try it" page.  Appreciate any clue on
this to get them resolved.

*1) *In Https mode, Try it requests gives following error on send [2][3].

WARN {org.owasp.csrfguard.log.JavaLogger} -  potential cross-site request
forgery (CSRF) attack thwarted (user:, ip:10.100.7.118,
method:POST, uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp,
error:required token is missing from the request)

Private proxy protocol will be attempted as cross-domain browser
restrictions might be enforced for this endpoint.

http://tryit.carbon.wso2.org;>
   Error connecting to the Tryit ajax proxy


*2)* Try it page does not load properly in Chrome. It loads correctly in
Firefox. It gives the following error on chrome [4].

Refused to execute script from '
https://localhost:9443/services/echo?wsdl2form=editarea/edit_area_full.js'

because its MIME type ('text/html') is not executable, and strict MIME type
checking is enabled.
Uncaught ReferenceError: editAreaLoader is not defined.

[1] https://github.com/wso2/product-dss/
[2] https://drive.google.com/open?id=0B16LG8jdYeP8ZEpyV1F5cmRsTDA
[3] https://drive.google.com/open?id=0B16LG8jdYeP8LWF2elVTbzFQOWs
[4] https://drive.google.com/open?id=0B16LG8jdYeP8VmtlWXEtdmRJUjQ

Regards,
-- 
Anupama Pathirage
Associate Technical Lead
WSO2, Inc.  http://wso2.com/
Email: anup...@wso2.com
Mobile:+94 71 8273 979
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Maintaining the order for XML payloads in JSON schema - Data Mapper

2016-06-20 Thread Nuwan Pallewela
Hi Harsha,

On Tue, Jun 21, 2016 at 9:27 AM, Harsha Thirimanna  wrote:

> Hi Sohani,
> Just wanted to know one thing and please make me correct if i am wrong
> here.
>
> Normally, XML elements don't have an order and any implementation should
> not depend on the order of the elements in XML file except if it has a XSD
> and saying it as a sequence.
>
No. In the specification it is mentioned that XML consider order. And there
are certain api's which consider the order of the elements. So we should to
support it in xml.

> So why do we need to concern about the order here. Any special reason for
> that ?
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Jun 20, 2016 at 2:51 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> We are in a process of $subject and the main issue we faced in generating
>> the json schema was as follows.
>>
>> When generating the json schema we mainly convert the xml to json and the
>> xml to json conversion does not guarantee the order since json object is an
>> unordered set of name/value pairs [1].
>>
>> The main reason is the usage of HashMaps instead of LinkedHashMaps in
>> instantiating the JSONObjects and we could solve the issue by using the
>> LinkedHashMaps.
>>
>> This issue again occurs in serializing the schema while iterating through
>> the gmf tree, since we are generating the schema by creating the
>> JSONObjects and JSONArrays appropriately. We could solve this issue as well
>> by using the above solution and as a result, the generated tree and the
>> schema will maintain the order of the XML payload
>>
>> [1]
>> http://stackoverflow.com/questions/26034370/inverted-order-of-json-elements-in-java-after-xml-conversion
>>
>> Thanks,
>> Sohani
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
Thanks,
Nuwan

-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *http://wso2.com
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739@*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Analytics for MT scenarios?

2016-06-20 Thread Srinath Perera
We had a chat about this.

This is supported. However, current implementation will run spark jobs per
each tenant. So it will have performance concerns with a large number of
tenants.

Anjana, can you give the details and potential solutions?

Summary is that DAS team has implemented the support for reading tenant
data from super tenant so we can run a one Spark Job for all tenants. But
we will need to change the queries and figure out how tenant dashboards can
get access to results in super tenant's space.

Can we do a 5.1 addressing this?

--Srinath

On Tue, Jun 21, 2016 at 9:15 AM, Kasun Indrasiri  wrote:

> Please note that this will be an essential feature for our integration
> cloud. So, we need to decide how should we proceed with this soon.
>
> On Fri, Jun 17, 2016 at 1:57 AM, Kasun Indrasiri  wrote:
>
>> How about the $subject? I don't think there's no any limitation from the
>> mediation engine side on collecting these stats. We need to have this for
>> ESB 5.
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



-- 

Srinath Perera, Ph.D.
   http://people.apache.org/~hemapani/
   http://srinathsview.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Mesos] Let's use Marathon CLI for deploying artifacts

2016-06-20 Thread Thanuja Uruththirakodeeswaran
On Mon, Jun 20, 2016 at 8:54 PM, Akila Ravihansa Perera 
wrote:

> Hi,
>
> Shall we do $subject? Marathon CLI is available for Windows, OS X, Linux
> [1]. It supports operations that we need provided via REST API. Main
> advantage is it handles authentication if the REST API is secured. Also it
> simplifies the bash scripts that we need to develop to deploy services.
>

+1


>
> [1] https://docs.mesosphere.com/1.7/usage/cli/install/
> [2] https://docs.mesosphere.com/1.7/usage/cli/command-reference/
>
> Thanks.
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



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


Re: [Dev] Maintaining the order for XML payloads in JSON schema - Data Mapper

2016-06-20 Thread Harsha Thirimanna
Hi Sohani,
Just wanted to know one thing and please make me correct if i am wrong here.

Normally, XML elements don't have an order and any implementation should
not depend on the order of the elements in XML file except if it has a XSD
and saying it as a sequence.
So why do we need to concern about the order here. Any special reason for
that ?


*Harsha Thirimanna*
Associate Tech Lead; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Mon, Jun 20, 2016 at 2:51 PM, Sohani Weerasinghe  wrote:

> Hi All,
>
> We are in a process of $subject and the main issue we faced in generating
> the json schema was as follows.
>
> When generating the json schema we mainly convert the xml to json and the
> xml to json conversion does not guarantee the order since json object is an
> unordered set of name/value pairs [1].
>
> The main reason is the usage of HashMaps instead of LinkedHashMaps in
> instantiating the JSONObjects and we could solve the issue by using the
> LinkedHashMaps.
>
> This issue again occurs in serializing the schema while iterating through
> the gmf tree, since we are generating the schema by creating the
> JSONObjects and JSONArrays appropriately. We could solve this issue as well
> by using the above solution and as a result, the generated tree and the
> schema will maintain the order of the XML payload
>
> [1]
> http://stackoverflow.com/questions/26034370/inverted-order-of-json-elements-in-java-after-xml-conversion
>
> Thanks,
> Sohani
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Removing duplicated methods from UserIdentityManagementAdminService

2016-06-20 Thread Harsha Thirimanna
Since we are going to achieve account lock , disable features as handlers
and triggered through the user store operation, do we need to have those
methods also ?


*Harsha Thirimanna*
Associate Tech Lead; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Mon, Jun 20, 2016 at 1:27 PM, Isura Karunaratne  wrote:

> +1
>
> You can also remove getAllPromotedUserChallenge method too.
>
> Thanks
> Isura
>
> On Mon, Jun 20, 2016 at 1:07 PM, Farasath Ahamed 
> wrote:
>
>> Hi All,
>>
>> We will be removing the following methods from
>> the UserIdentityManagementAdminService[1] since the same functionality
>> could be achieved using the RemoteUserStoreManager[2] service. Therefore,
>> we are planning to remove the below methods since the functionality is
>> duplicated.
>>
>>
>> // Admin deletes a user from the system. This is an irreversible
>> operation.
>> *public void deleteUser(String userName) *
>>
>> // Admin resets the password of the user
>> *public void resetUserPassword(String userName, String newPassword)*
>>
>> //User updates/add account recovery data such as the email address or the
>> phone number etc.
>> *public void updateUserIdentityClaims(UserIdentityClaimDTO[]
>> userIdentityClaims)*
>>
>> // Returns all user claims which can be used in the identity recovery
>> *public UserIdentityClaimDTO[] getAllUserIdentityClaims() *
>>
>> // User changes the password of the user.
>> *public void changeUserPassword(String newPassword, String oldPassword)*
>>
>>
>> [1]
>> https://github.com/wso2/carbon-identity-framework/blob/master/components/identity-mgt/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/services/UserIdentityManagementAdminService.java
>>
>> [2]
>> https://github.com/wso2-extensions/identity-userstore-remote/blob/master/components/org.wso2.carbon.identity.user.store.remote/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java
>>
>>
>> Please raise if there are any concerns.
>>
>> Thanks,
>> Farasath Ahamed
>> Software Engineer,
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> Email: farasa...@wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>>
>
>
>
> --
> Isura Dilhara Karunaratne
> Senior Software Engineer
>
> Mob +94 772 254 810
>
>
> ___
> 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] ESB Analytics for MT scenarios?

2016-06-20 Thread Kasun Indrasiri
Please note that this will be an essential feature for our integration
cloud. So, we need to decide how should we proceed with this soon.

On Fri, Jun 17, 2016 at 1:57 AM, Kasun Indrasiri  wrote:

> How about the $subject? I don't think there's no any limitation from the
> mediation engine side on collecting these stats. We need to have this for
> ESB 5.
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-06-20 Thread Supun Sethunga
Hi Misgana,

I have two issues:
1. Issue:

Exception in thread "pool-17-thread-7" java.lang.IllegalArgumentException:
> No enum constant org.wso2.carbon.ml.commons.con
> stants.MLConstants.SUPERVISED_ALGORITHM.STACKING
> at java.lang.Enum.valueOf(Enum.java:238)
> at org.wso2.carbon.ml.commons.constants.MLConstants$SUPERVISED_
> ALGORITHM.valueOf(MLConstants.java:225)
> at org.wso2.carbon.ml.core.spark.algorithms.SupervisedSparkMode
> lBuilder.build(SupervisedSparkModelBuilder.java:158)

Which approach did you try? putting the jar as a patch (patch)? or
build the carbon-ml and product ml respectively? If it was patching method,
did you build org.wso2.carbon.ml.commons as well?

Caused by: org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException:
> An error occurred while inserting hyper parameter  to the database: Value
> too long for column "VALUE VARCHAR(50)": "'rO0ABXNyABNqYXZhLnV0aWwuQXJy
> YXlMaXN0eIHSHZnHYZ0DAAFJAARzaXpleHACdwQCc3IAEWphdmEu
> dXRpbC5IYXNoTWFwBQfawcMWYNEDAAJGAApsb2F... (372)"; SQL statement:
> INSERT INTO ML_HYPER_PARAMETER(ANALYSIS_ID, ALGORITHM_NAME, NAME, VALUE,
> LAST_MODIFIED_TIME) VALUES(?,?,?,?, CURRENT_TIMESTAMP()) [90005-140]
> The Logic is: The hyperparameters of base-algorithms are serialized and
> passed in the product-ml hyperparamters script file.This is a serialized
> string of List of Maps, where each map contains hyperparameters of each
> base-algorithm and will be deserialized in buildStackingModel() in
> SupervisedSparkModelBuilder and fed to Stacking train().
> Current idea to solve it is:
>  1. Increase column capacity more than VALUE VARCHAR(50)
>  2. Change serialization logic
> What do you think?


I believe we don't need to pass a serialized a map and put the string in
DB. Can we store the hyperparamerets as follows, in the ML_HYPER_PARAMETER
table?

*ANALYSIS_ID* *ALGORITHM_NAME* *NAME* *VALUE* *LAST_MODIFIED_TIME*
123 Meta_Algorithm_1 Learning Rate 0.001 
123 Meta_Algorithm_1 Num_Trees 10 
123 Meta_Algorithm_1 Max_Depth 0.001 
123 Meta_Algorithm_1 Seed 4567 
123 Meta_Algorithm_2 Learning Rate 0.001 
123 Meta_Algorithm_2 Iterations 100 
123 Meta_Algorithm_2 Seed 789 
… … … … …
123 Base_Algorithm Learning Rate 0.001 
123 Base_Algorithm Iterations 100 
123 Base_Algorithm Seed 6325 

Do you see any complications/issues in doing so?



Thanks,
Supun

On Mon, Jun 20, 2016 at 6:58 PM, Misgana Negassi <
negas...@tf.uni-freiburg.de> wrote:

> Hi Supun,
>
> I have two issues:
> 1. Issue:
>
> Exception in thread "pool-17-thread-7" java.lang.IllegalArgumentException:
> No enum constant
> org.wso2.carbon.ml.commons.constants.MLConstants.SUPERVISED_ALGORITHM.STACKING
> at java.lang.Enum.valueOf(Enum.java:238)
> at
> org.wso2.carbon.ml.commons.constants.MLConstants$SUPERVISED_ALGORITHM.valueOf(MLConstants.java:225)
> at
> org.wso2.carbon.ml.core.spark.algorithms.SupervisedSparkModelBuilder.build(SupervisedSparkModelBuilder.java:158)
>
>
> It doesn't recognize STACKING although I have built carbonml as you have
> described.
>
> 2. Issue
>
>
> Caused by:
> org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException: An error
> occurred while inserting hyper parameter  to the database: Value too long
> for column "VALUE VARCHAR(50)":
> "'rO0ABXNyABNqYXZhLnV0aWwuQXJyYXlMaXN0eIHSHZnHYZ0DAAFJAARzaXpleHACdwQCc3IAEWphdmEudXRpbC5IYXNoTWFwBQfawcMWYNEDAAJGAApsb2F...
> (372)"; SQL statement:
> INSERT INTO ML_HYPER_PARAMETER(ANALYSIS_ID, ALGORITHM_NAME, NAME, VALUE,
> LAST_MODIFIED_TIME) VALUES(?,?,?,?, CURRENT_TIMESTAMP()) [90005-140]
>
> The Logic is: The hyperparameters of base-algorithms are serialized and
> passed in the product-ml hyperparamters script file.This is a serialized
> string of List of Maps, where each map contains hyperparameters of each
> base-algorithm and will be deserialized in buildStackingModel() in
> SupervisedSparkModelBuilder and fed to Stacking train().
>
> Current idea to solve it is:
>  1. Increase column capacity more than VALUE VARCHAR(50)
>  2. Change serialization logic
>
> What do you think?
>
> Regards,
> Misgana
>
>
>
>
> Can you specify why what was the error? Is there any error/stack trace?
>>
>
>


-- 
*Supun Sethunga*
Senior Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
Blog: http://supunsetunga.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC Dockerfiles] Add ability to silently run docker image

2016-06-20 Thread Abhishek Tiwari
Hi Chamila,

That's a neat idea as well, I will incorporate this in the current
implementation.

Thanks,
Abhishek

On Mon, Jun 20, 2016 at 6:12 AM, Chamila De Alwis  wrote:

>
> On Mon, Jun 20, 2016 at 1:17 PM, Abhishek Tiwari <
> abhishek.tiwari0...@gmail.com> wrote:
>
>> It would be nice to have the ability to silent the questioning so that
>> the test scripts can continue without having to pause for the input.
>
>
> Alternatively you could try an expect script to automatically input values
> when prompted.
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Mesos] Let's use Marathon CLI for deploying artifacts

2016-06-20 Thread Isuru Haththotuwa
On Mon, Jun 20, 2016 at 8:54 PM, Akila Ravihansa Perera 
wrote:

> Hi,
>
> Shall we do $subject? Marathon CLI is available for Windows, OS X, Linux
> [1]. It supports operations that we need provided via REST API. Main
> advantage is it handles authentication if the REST API is secured. Also it
> simplifies the bash scripts that we need to develop to deploy services.
>
+1

>
>
> [1] https://docs.mesosphere.com/1.7/usage/cli/install/
> [2] https://docs.mesosphere.com/1.7/usage/cli/command-reference/
>
> Thanks.
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-06-20 Thread Heshan Jayasinghe
github url - https://github.com/heshanjse/BPMNEditor

On Tue, Jun 21, 2016 at 6:57 AM, Heshan Jayasinghe 
wrote:

> Hi Isuru,
>
> This is the milestone plan we discussed in the last week.
>
> 24/6  - draw flows when moving a node
>  - add properties to the flow
>  - create delete functionality to every node.
>  - add arrow and text to the toolbox
> 1/7- add text to the task
>  - task resizing
>  - change task/event/gateway icon according to the selected
> property type
> 8/7- change flow shape from start and end point
>  - add mutiple connection points in the nodes
> 15/7  - add zoom event to svg and scroll
> 29/7  - create property list
> 5/8- export json in to BPMN
> 19/8  - redraw element using json array after upload a BPMN file
>
> Thanks
> regards,
> Heshan Jayasinghe
>
>
>
> On Mon, Jun 20, 2016 at 2:32 PM, Isuru Wijesinghe 
> wrote:
>
>> Hi Heshan,
>>
>> Please update the meeting notes. In addition to that can you please share
>> with us the milestone plan as we discussed in the last week.
>>
>> Thanks,
>> Isuru.
>>
>> On Thu, May 26, 2016 at 11:04 PM, Heshan Jayasinghe 
>> wrote:
>>
>>> github url - https://github.com/heshanjse/BPMNEditor
>>>
>>> On Thu, May 19, 2016 at 12:52 PM, Heshan Jayasinghe 
>>> wrote:
>>>
 Hi Isuru,
 I completed Start Event,End Event,Gateways and Task.Currently these
 component can move in the canvas.As we discussed in our last meeting I am
 working for packaging the current source code,drawing flows,component
 re-sizing,creating property window and adding text areas to Task
 component.After I applying packaging structure i will share my github
 code.Hope I can send it soon.
 Thank you,
 Regards,
 Heshan Jayasinghe

 On Wed, May 18, 2016 at 10:04 AM, Isuru Wijesinghe 
 wrote:

> Hi Heshan,
>
> Any update on your progress? Could you please share with us your code
> through github. Then we can give some feedback.
>
> Thanks,
> Isuru
>
> On Thu, Mar 24, 2016 at 1:23 PM, Heshan Jayasinghe  > wrote:
>
>> Hi,
>> I submit my final proposal through GSOC site.Could you please read my
>> proposal and add some comments.
>> Thank you!
>> regards,
>> Heshan Jayasinghe
>>
>> On Wed, Mar 23, 2016 at 8:38 AM, Isuru Wijesinghe 
>> wrote:
>>
>>> Hi Heshan,
>>>
>>> We have already added few comments. Could you please fix them and
>>> share the updated proposal ?
>>>
>>> Thanks and Best Regards,
>>>
>>> On Fri, Mar 18, 2016 at 9:48 PM, Isuru Wijesinghe 
>>> wrote:
>>>
 Hi Heshan,

 We appreciate your quick response. The main deliverable of this
 project is a javascript/D3 based BPMN editor which allows Process 
 Center
 users to define business processes using a graphical notation from the 
 *web
 UI*. (No server side involvement). Keep on progressing on the
 project and if you get stuck at any point, don't hesitate to contact 
 us.

 Thanks and Best Regards,


 On Fri, Mar 18, 2016 at 11:35 AM, Heshan Jayasinghe <
 shanu...@gmail.com> wrote:

> HI,
> Could you please tell me how server side involve in this project?
> Web Editor can developed as a single page application and we can run 
> it in
> java server.hope this application haven't any server side
> development.Please let me know if there server side development 
> involve.if
> there any server side development i willing to complete that task too.
>
> I already complete my proposal and now I am doing final fine
> tuning of my proposal.I will send it tomorrow.from today onwards I 
> start my
> development  for first iteration.
>
> Thank you!
> regards,
> Heshan Jayasinghe
>
>
>
> On Tue, Mar 15, 2016 at 9:37 AM, Isuru Wijesinghe <
> isur...@wso2.com> wrote:
>
>> Great. My contact number :
>>
>>
>> *0710933706*
>> Thanks and Best Regards,
>>
>> On Tue, Mar 15, 2016 at 9:30 AM, Heshan Jayasinghe <
>> shanu...@gmail.com> wrote:
>>
>>> Hi Isuru,
>>> My proposal 70% over now.I will send you copy soon.could you
>>> please send me your contact number to get more information.
>>> Thank you!
>>> regards,
>>> Heshan jayasinghe
>>>
>>>
>>
>>
>> --
>> Isuru Wijesinghe
>> *Software Engineer*
>> WSO2 inc : http://wso2.com
>> lean.enterprise.middleware
>> 

Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-06-20 Thread Heshan Jayasinghe
Hi Isuru,

This is the milestone plan we discussed in the last week.

24/6  - draw flows when moving a node
 - add properties to the flow
 - create delete functionality to every node.
 - add arrow and text to the toolbox
1/7- add text to the task
 - task resizing
 - change task/event/gateway icon according to the selected
property type
8/7- change flow shape from start and end point
 - add mutiple connection points in the nodes
15/7  - add zoom event to svg and scroll
29/7  - create property list
5/8- export json in to BPMN
19/8  - redraw element using json array after upload a BPMN file

Thanks
regards,
Heshan Jayasinghe



On Mon, Jun 20, 2016 at 2:32 PM, Isuru Wijesinghe  wrote:

> Hi Heshan,
>
> Please update the meeting notes. In addition to that can you please share
> with us the milestone plan as we discussed in the last week.
>
> Thanks,
> Isuru.
>
> On Thu, May 26, 2016 at 11:04 PM, Heshan Jayasinghe 
> wrote:
>
>> github url - https://github.com/heshanjse/BPMNEditor
>>
>> On Thu, May 19, 2016 at 12:52 PM, Heshan Jayasinghe 
>> wrote:
>>
>>> Hi Isuru,
>>> I completed Start Event,End Event,Gateways and Task.Currently these
>>> component can move in the canvas.As we discussed in our last meeting I am
>>> working for packaging the current source code,drawing flows,component
>>> re-sizing,creating property window and adding text areas to Task
>>> component.After I applying packaging structure i will share my github
>>> code.Hope I can send it soon.
>>> Thank you,
>>> Regards,
>>> Heshan Jayasinghe
>>>
>>> On Wed, May 18, 2016 at 10:04 AM, Isuru Wijesinghe 
>>> wrote:
>>>
 Hi Heshan,

 Any update on your progress? Could you please share with us your code
 through github. Then we can give some feedback.

 Thanks,
 Isuru

 On Thu, Mar 24, 2016 at 1:23 PM, Heshan Jayasinghe 
 wrote:

> Hi,
> I submit my final proposal through GSOC site.Could you please read my
> proposal and add some comments.
> Thank you!
> regards,
> Heshan Jayasinghe
>
> On Wed, Mar 23, 2016 at 8:38 AM, Isuru Wijesinghe 
> wrote:
>
>> Hi Heshan,
>>
>> We have already added few comments. Could you please fix them and
>> share the updated proposal ?
>>
>> Thanks and Best Regards,
>>
>> On Fri, Mar 18, 2016 at 9:48 PM, Isuru Wijesinghe 
>> wrote:
>>
>>> Hi Heshan,
>>>
>>> We appreciate your quick response. The main deliverable of this
>>> project is a javascript/D3 based BPMN editor which allows Process Center
>>> users to define business processes using a graphical notation from the 
>>> *web
>>> UI*. (No server side involvement). Keep on progressing on the
>>> project and if you get stuck at any point, don't hesitate to contact us.
>>>
>>> Thanks and Best Regards,
>>>
>>>
>>> On Fri, Mar 18, 2016 at 11:35 AM, Heshan Jayasinghe <
>>> shanu...@gmail.com> wrote:
>>>
 HI,
 Could you please tell me how server side involve in this project?
 Web Editor can developed as a single page application and we can run 
 it in
 java server.hope this application haven't any server side
 development.Please let me know if there server side development 
 involve.if
 there any server side development i willing to complete that task too.

 I already complete my proposal and now I am doing final fine tuning
 of my proposal.I will send it tomorrow.from today onwards I start my
 development  for first iteration.

 Thank you!
 regards,
 Heshan Jayasinghe



 On Tue, Mar 15, 2016 at 9:37 AM, Isuru Wijesinghe  wrote:

> Great. My contact number :
>
>
> *0710933706*
> Thanks and Best Regards,
>
> On Tue, Mar 15, 2016 at 9:30 AM, Heshan Jayasinghe <
> shanu...@gmail.com> wrote:
>
>> Hi Isuru,
>> My proposal 70% over now.I will send you copy soon.could you
>> please send me your contact number to get more information.
>> Thank you!
>> regards,
>> Heshan jayasinghe
>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> WSO2 inc : http://wso2.com
> lean.enterprise.middleware
> Mobile: 0710933706
> isur...@wso2.com
>


>>>
>>>
>>> --
>>> Isuru Wijesinghe
>>> *Software Engineer*
>>> WSO2 inc : http://wso2.com
>>> lean.enterprise.middleware
>>> Mobile: 0710933706
>>> isur...@wso2.com
>>>
>>
>>
>>
>> --
>> Isuru Wijesinghe

Re: [Dev] Issues with MB build sequence

2016-06-20 Thread Akalanka Pagoda Arachchi
In my opinion, each transport should have their own repository, meaning
Qpid and AMQP component will be in one repo and MQTT component  and
Moquetto will be in a separate repository .etc.

With the current trends of microservices, ESB improving on their JMS and
integration layer deciding to use MB for communication between nodes,
having separate repositories per transport will be a valid scenario in the
near future with respect to release procedures.

Thanks,
Akalanka.

On Mon, Jun 20, 2016 at 5:50 AM, Asanka Abeyweera  wrote:

> +1 for the option 1, since no one else is using these components other
> than MB. But we should have separate modules for each (MB-Core, AMQP
> transport and MQTT transport) inside MB repo.
>
> On Mon, Jun 20, 2016 at 3:40 PM, Asitha Nanayakkara 
> wrote:
>
>> Hi all,
>>
>> With the recent effort to decouple MB core from Qpid code we have moved
>> all the core functionalities of the broker, which are not relevant to
>> transports to product-mb repo [1] And kept all the Qpid related code in
>> andes repo [2]. Now the MB core has zero dependency to its transports.
>>
>> Dependency structure of components is as follows,
>>
>>
>> ​
>> *Issue:*
>> With the current changes we can't build the Andes repo first since we
>> need to build the MB core before that. When it comes to the product-mb
>> repo, AMQP component requires Andes repo to be built before AMQP component.
>> Hence a cyclic dependency for the build process.
>>
>> *Solutions:*
>> To overcome this probable solutions we came up with are,
>>
>>1. Move Qpid code to the AMQP component to avoid the cyclic
>>dependency for build process.
>>2. Have separate repositories for Qpid code (andes repo), AMQP, MQTT
>>and MB core so that we can build MB core first and then the transports
>>
>> What would be the best approach?
>>
>>
>> [1] https://github.com/wso2/product-mb
>> [2] https://github.com/wso2/andes
>>
>> Regards,
>> Asitha
>> --
>> *Asitha Nanayakkara*
>> Senior Software Engineer
>> WSO2, Inc. http://wso2.com/
>> Mob: +94 77 853 0682
>>
>>
>
>
> --
> Asanka Abeyweera
> Software Engineer
> WSO2 Inc.
>
> Phone: +94 712228648
> Blog: a5anka.github.io
>



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


Re: [Dev] Difference between wso2server.bat and wso2server.sh

2016-06-20 Thread Godwin Shrimal
Hi Maduranga,

In windows you can run WSO2 Severs as windows service. Please see the link
[1]

[1] https://docs.wso2.com/display/AS530/Installing+as+a+Windows+Service


Thanks
Godwin


On Mon, Jun 20, 2016 at 4:46 PM, Maduranga Siriwardena 
wrote:

> Hi all,
>
> While going through the above mentioned files (checked in IS 5.1.0) I
> noticed that there are differences in the parameters accepted by the two
> startup scripts. While wso2server.sh accepts debug, stop, start, version,
> restart and test parameters wso2server.bat accepts only run, restart, debug
> and version.
>
> In Linux server can be started in background by passing 'start' parameter
> to the startup script. I'm looking for a similar functionality in
> Windows. wso2server.bat seems to be not providing such a functionality.
>
> Any Ideas?
>
> Thanks,
> Maduranga.
>
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
> mobile: +94718990591
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Difference between wso2server.bat and wso2server.sh

2016-06-20 Thread Maduranga Siriwardena
Hi all,

While going through the above mentioned files (checked in IS 5.1.0) I
noticed that there are differences in the parameters accepted by the two
startup scripts. While wso2server.sh accepts debug, stop, start, version,
restart and test parameters wso2server.bat accepts only run, restart, debug
and version.

In Linux server can be started in background by passing 'start' parameter
to the startup script. I'm looking for a similar functionality in
Windows. wso2server.bat seems to be not providing such a functionality.

Any Ideas?

Thanks,
Maduranga.

-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

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


[Dev] Reading transport header with JMS inbound

2016-06-20 Thread Manuranga Perera
Have some issues with $subject (jms2). Any know issues?
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-06-20 Thread Heshan Jayasinghe
HI,
These days i am restructuring my code.Untill I put my restructured code I
like to share this committed code.this code committed before proper
restructuring and with our fully completed JSON array.
github url - https://github.com/heshanjse/BPMNEditor
Thank you!
regards,
Heshan Jayasinghe



On Mon, Jun 20, 2016 at 2:44 PM, Hasitha Aravinda  wrote:

> Hi Heshan,
>
> Could you please update the code repository with your latest code ?
>
> Thanks,
> Hasitha.
>
> On Mon, Jun 20, 2016 at 2:32 PM, Isuru Wijesinghe 
> wrote:
>
>> Hi Heshan,
>>
>> Please update the meeting notes. In addition to that can you please share
>> with us the milestone plan as we discussed in the last week.
>>
>> Thanks,
>> Isuru.
>>
>> On Thu, May 26, 2016 at 11:04 PM, Heshan Jayasinghe 
>> wrote:
>>
>>> github url - https://github.com/heshanjse/BPMNEditor
>>>
>>> On Thu, May 19, 2016 at 12:52 PM, Heshan Jayasinghe 
>>> wrote:
>>>
 Hi Isuru,
 I completed Start Event,End Event,Gateways and Task.Currently these
 component can move in the canvas.As we discussed in our last meeting I am
 working for packaging the current source code,drawing flows,component
 re-sizing,creating property window and adding text areas to Task
 component.After I applying packaging structure i will share my github
 code.Hope I can send it soon.
 Thank you,
 Regards,
 Heshan Jayasinghe

 On Wed, May 18, 2016 at 10:04 AM, Isuru Wijesinghe 
 wrote:

> Hi Heshan,
>
> Any update on your progress? Could you please share with us your code
> through github. Then we can give some feedback.
>
> Thanks,
> Isuru
>
> On Thu, Mar 24, 2016 at 1:23 PM, Heshan Jayasinghe  > wrote:
>
>> Hi,
>> I submit my final proposal through GSOC site.Could you please read my
>> proposal and add some comments.
>> Thank you!
>> regards,
>> Heshan Jayasinghe
>>
>> On Wed, Mar 23, 2016 at 8:38 AM, Isuru Wijesinghe 
>> wrote:
>>
>>> Hi Heshan,
>>>
>>> We have already added few comments. Could you please fix them and
>>> share the updated proposal ?
>>>
>>> Thanks and Best Regards,
>>>
>>> On Fri, Mar 18, 2016 at 9:48 PM, Isuru Wijesinghe 
>>> wrote:
>>>
 Hi Heshan,

 We appreciate your quick response. The main deliverable of this
 project is a javascript/D3 based BPMN editor which allows Process 
 Center
 users to define business processes using a graphical notation from the 
 *web
 UI*. (No server side involvement). Keep on progressing on the
 project and if you get stuck at any point, don't hesitate to contact 
 us.

 Thanks and Best Regards,


 On Fri, Mar 18, 2016 at 11:35 AM, Heshan Jayasinghe <
 shanu...@gmail.com> wrote:

> HI,
> Could you please tell me how server side involve in this project?
> Web Editor can developed as a single page application and we can run 
> it in
> java server.hope this application haven't any server side
> development.Please let me know if there server side development 
> involve.if
> there any server side development i willing to complete that task too.
>
> I already complete my proposal and now I am doing final fine
> tuning of my proposal.I will send it tomorrow.from today onwards I 
> start my
> development  for first iteration.
>
> Thank you!
> regards,
> Heshan Jayasinghe
>
>
>
> On Tue, Mar 15, 2016 at 9:37 AM, Isuru Wijesinghe <
> isur...@wso2.com> wrote:
>
>> Great. My contact number :
>>
>>
>> *0710933706*
>> Thanks and Best Regards,
>>
>> On Tue, Mar 15, 2016 at 9:30 AM, Heshan Jayasinghe <
>> shanu...@gmail.com> wrote:
>>
>>> Hi Isuru,
>>> My proposal 70% over now.I will send you copy soon.could you
>>> please send me your contact number to get more information.
>>> Thank you!
>>> regards,
>>> Heshan jayasinghe
>>>
>>>
>>
>>
>> --
>> Isuru Wijesinghe
>> *Software Engineer*
>> WSO2 inc : http://wso2.com
>> lean.enterprise.middleware
>> Mobile: 0710933706
>> isur...@wso2.com
>>
>
>


 --
 Isuru Wijesinghe
 *Software Engineer*
 WSO2 inc : http://wso2.com
 lean.enterprise.middleware
 Mobile: 0710933706
 isur...@wso2.com

>>>
>>>
>>>
>>> --
>>> Isuru Wijesinghe
>>> *Software Engineer*

Re: [Dev] [Mesos] Let's use Marathon CLI for deploying artifacts

2016-06-20 Thread Imesh Gunaratne
On Mon, Jun 20, 2016 at 8:54 PM, Akila Ravihansa Perera 
wrote:

> Hi,
>
> Shall we do $subject? Marathon CLI is available for Windows, OS X, Linux
> [1]. It supports operations that we need provided via REST API. Main
> advantage is it handles authentication if the REST API is secured. Also it
> simplifies the bash scripts that we need to develop to deploy services.
>

​+1 Yes, indeed! We followed the same in K8S.

Thanks​


>
>
> [1] https://docs.mesosphere.com/1.7/usage/cli/install/
> [2] https://docs.mesosphere.com/1.7/usage/cli/command-reference/
>
> Thanks.
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



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


Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-06-20 Thread Heshan Jayasinghe
*milestone plan*


   - flow remove and redraw when move a node -24/6
   - add properties to the flow - 24/6
   - add delete functionality (delete flow if delete a node,delete only
   flow if we delete flow) -24/6
   - put arrow and text to tooltip -24/6
   - text centre (multi line )  -1/7
   - task resize -1/7
   - add task/event/gateway icon when select a task type using property -1/7
   - flow change from two points -8/7
   - put multiple connection points -8/7
   - add zoom event to svg and scroll -15/7
   - create property list -29/7
   - export json in to BPMN -5/8
   - redraw element using json array (convert BPMN and create json
   array)-19/8


On Mon, Jun 20, 2016 at 2:32 PM, Isuru Wijesinghe  wrote:

> Hi Heshan,
>
> Please update the meeting notes. In addition to that can you please share
> with us the milestone plan as we discussed in the last week.
>
> Thanks,
> Isuru.
>
> On Thu, May 26, 2016 at 11:04 PM, Heshan Jayasinghe 
> wrote:
>
>> github url - https://github.com/heshanjse/BPMNEditor
>>
>> On Thu, May 19, 2016 at 12:52 PM, Heshan Jayasinghe 
>> wrote:
>>
>>> Hi Isuru,
>>> I completed Start Event,End Event,Gateways and Task.Currently these
>>> component can move in the canvas.As we discussed in our last meeting I am
>>> working for packaging the current source code,drawing flows,component
>>> re-sizing,creating property window and adding text areas to Task
>>> component.After I applying packaging structure i will share my github
>>> code.Hope I can send it soon.
>>> Thank you,
>>> Regards,
>>> Heshan Jayasinghe
>>>
>>> On Wed, May 18, 2016 at 10:04 AM, Isuru Wijesinghe 
>>> wrote:
>>>
 Hi Heshan,

 Any update on your progress? Could you please share with us your code
 through github. Then we can give some feedback.

 Thanks,
 Isuru

 On Thu, Mar 24, 2016 at 1:23 PM, Heshan Jayasinghe 
 wrote:

> Hi,
> I submit my final proposal through GSOC site.Could you please read my
> proposal and add some comments.
> Thank you!
> regards,
> Heshan Jayasinghe
>
> On Wed, Mar 23, 2016 at 8:38 AM, Isuru Wijesinghe 
> wrote:
>
>> Hi Heshan,
>>
>> We have already added few comments. Could you please fix them and
>> share the updated proposal ?
>>
>> Thanks and Best Regards,
>>
>> On Fri, Mar 18, 2016 at 9:48 PM, Isuru Wijesinghe 
>> wrote:
>>
>>> Hi Heshan,
>>>
>>> We appreciate your quick response. The main deliverable of this
>>> project is a javascript/D3 based BPMN editor which allows Process Center
>>> users to define business processes using a graphical notation from the 
>>> *web
>>> UI*. (No server side involvement). Keep on progressing on the
>>> project and if you get stuck at any point, don't hesitate to contact us.
>>>
>>> Thanks and Best Regards,
>>>
>>>
>>> On Fri, Mar 18, 2016 at 11:35 AM, Heshan Jayasinghe <
>>> shanu...@gmail.com> wrote:
>>>
 HI,
 Could you please tell me how server side involve in this project?
 Web Editor can developed as a single page application and we can run 
 it in
 java server.hope this application haven't any server side
 development.Please let me know if there server side development 
 involve.if
 there any server side development i willing to complete that task too.

 I already complete my proposal and now I am doing final fine tuning
 of my proposal.I will send it tomorrow.from today onwards I start my
 development  for first iteration.

 Thank you!
 regards,
 Heshan Jayasinghe



 On Tue, Mar 15, 2016 at 9:37 AM, Isuru Wijesinghe  wrote:

> Great. My contact number :
>
>
> *0710933706*
> Thanks and Best Regards,
>
> On Tue, Mar 15, 2016 at 9:30 AM, Heshan Jayasinghe <
> shanu...@gmail.com> wrote:
>
>> Hi Isuru,
>> My proposal 70% over now.I will send you copy soon.could you
>> please send me your contact number to get more information.
>> Thank you!
>> regards,
>> Heshan jayasinghe
>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> WSO2 inc : http://wso2.com
> lean.enterprise.middleware
> Mobile: 0710933706
> isur...@wso2.com
>


>>>
>>>
>>> --
>>> Isuru Wijesinghe
>>> *Software Engineer*
>>> WSO2 inc : http://wso2.com
>>> lean.enterprise.middleware
>>> Mobile: 0710933706
>>> isur...@wso2.com
>>>
>>
>>
>>
>> --
>> Isuru Wijesinghe
>> *Software Engineer*

Re: [Dev] Kubernetes and developer studio

2016-06-20 Thread Pubudu Gunatilaka
Hi Ramon,

You can refer the article in [1] to connect Dev Studio with any WSO2
server. In Kubernetes we expose WSO2 server ports as in [2]. As you already
know you can use only the nodePort to access the WSO2 server from outside.
According to [2] that would be 32096 instead of 9443 port. Please use the
relevant node ports in Dev Studio configurations to access the WSO2 server.


[1] -
https://www.yenlo.com/blog/wso2-tutorial-connection-to-wso2-carbon-server-within-the-wso2-developer-studio
[2] -
https://github.com/wso2/kubernetes-artifacts/blob/master/wso2esb/wso2esb-manager-service.yaml

Thank you!

On Mon, Jun 20, 2016 at 4:28 PM, Ramon Gordillo 
wrote:

> Hi.
>
> Has anyone connected directly Developer Studio with any carbon product
> deployed in kubernetes as a remote server?
>
> If so, which ports should be configured in dev studio?
>
> Thanks.
>
> Ramon
>
> ___
> 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 : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge

2016-06-20 Thread Manuranga Perera
$subject https://github.com/wso2/puppet-modules/pull/64

-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Analytics] Error running server.sh script with spaces in the directory path

2016-06-20 Thread Mohanadarshan Vivekanandalingam
On Mon, Jun 20, 2016 at 9:13 PM, Dulindra Wijethilake 
wrote:

> Will do Mohan. However, is there any reason which you can think of Carbon
> 4.4.3 starting without an error where as IS analytics getting this error?


Yes.. In DAS, they are copying a separate wso2server.sh file than using the
same wso2sever.sh file which is coming from kernal because there are some
customization required. May be they are using an older version of
wso2server.sh file which does not have required fix..

Thanks,
Mohan


> Regards,
>
>
> On Monday, June 20, 2016, Mohanadarshan Vivekanandalingam 
> wrote:
>
>>
>>
>> On Mon, Jun 20, 2016 at 3:17 PM, Dulindra Wijethilake 
>> wrote:
>>
>>> Hi Niranjan,
>>> It seems IS analytics is based on Carbon 4.4.3.
>>>
>>> @DAS team,
>>> Do we have any plans to update the carbon version to a newer version?
>>>
>>
>> Yes, we have to move Carbon 4.4.6.. Already. ground work is going on
>> this.. Anyway, can you please raise a jira on this ? It will help to track
>>
>> Thanks,
>> Mohan
>>
>>
>>>
>>> On Mon, Jun 20, 2016 at 3:02 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Dulindra,

 This was a known issue in windows and we have fixed it by using the
 short path. I have tested with spaces in the folder name for Kenerl 4.4.5
 in Ubuntu 14.04 (with JDK Oracle 1.7) and I did not get any issues. Will
 you be able to verify this in Kernel 4.4.5?

 Regardsm
 Nira

 On Mon, Jun 20, 2016 at 2:33 PM, Dulindra Wijethilake <
 dulin...@wso2.com> wrote:

> Hi All,
>
> While trying to run IS Analytics [1], I got the error below:
>
> *..*
>
> *Dulindras-MacBook-Pro:bin dulindrawijethilake$ sh wso2server.sh*
>
> *JAVA_HOME environment variable is set to
> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home*
>
> *CARBON_HOME environment variable is set to
> /Users/dulindrawijethilake/Documents/WSO2 - Products/IS/IS
> Analytics/wso2analytics-is-1.0.0-beta*
>
> *wso2server.sh: line 286: /Users/dulindrawijethilake/Documents/WSO2:
> No such file or directory*
>
> *.*
>
> I realized that there is an issue with the wso2server.sh script when
> there are spaces used in the directory path. Once spaces were removed, the
> script worked as expected.
>
> Is this something already known which we have addressed in the kernel?
>
>
>
> [1]
> https://github.com/wso2/analytics-is/releases/download/v1.0.0-beta/wso2analytics-is-1.0.0-beta.zip
>
> --
> Dulindra Wijethilake
> Senior Product Manager
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
> mobile- +94 71 312 0005
>



 --


 *Niranjan Karunanandham*
 Associate Technical Lead - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> Dulindra Wijethilake
>>> Senior Product Manager
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> mobile- +94 71 312 0005
>>>
>>
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Associate Tech Lead,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: mo...@wso2.com
>> phone:(+94) 771117673
>>
>
>
> --
> Dulindra Wijethilake
> Senior Product Manager
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
> mobile- +94 71 312 0005
>
>


-- 
*V. Mohanadarshan*
*Associate Tech Lead,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 ESB Synapse Config and kubernetes

2016-06-20 Thread Ramon Gordillo
Hi.

Is there any way to store synapse configurarion for ESB in a database, or
should we provision an kubernetes pvc to persist the esb configuration?

Thanks in advance.

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


Re: [Dev] [Analytics] Error running server.sh script with spaces in the directory path

2016-06-20 Thread Dulindra Wijethilake
Will do Mohan. However, is there any reason which you can think of Carbon
4.4.3 starting without an error where as IS analytics getting this error?

Regards,

On Monday, June 20, 2016, Mohanadarshan Vivekanandalingam 
wrote:

>
>
> On Mon, Jun 20, 2016 at 3:17 PM, Dulindra Wijethilake  > wrote:
>
>> Hi Niranjan,
>> It seems IS analytics is based on Carbon 4.4.3.
>>
>> @DAS team,
>> Do we have any plans to update the carbon version to a newer version?
>>
>
> Yes, we have to move Carbon 4.4.6.. Already. ground work is going on
> this.. Anyway, can you please raise a jira on this ? It will help to track
>
> Thanks,
> Mohan
>
>
>>
>> On Mon, Jun 20, 2016 at 3:02 PM, Niranjan Karunanandham <
>> niran...@wso2.com >
>> wrote:
>>
>>> Hi Dulindra,
>>>
>>> This was a known issue in windows and we have fixed it by using the
>>> short path. I have tested with spaces in the folder name for Kenerl 4.4.5
>>> in Ubuntu 14.04 (with JDK Oracle 1.7) and I did not get any issues. Will
>>> you be able to verify this in Kernel 4.4.5?
>>>
>>> Regardsm
>>> Nira
>>>
>>> On Mon, Jun 20, 2016 at 2:33 PM, Dulindra Wijethilake >> > wrote:
>>>
 Hi All,

 While trying to run IS Analytics [1], I got the error below:

 *..*

 *Dulindras-MacBook-Pro:bin dulindrawijethilake$ sh wso2server.sh*

 *JAVA_HOME environment variable is set to
 /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home*

 *CARBON_HOME environment variable is set to
 /Users/dulindrawijethilake/Documents/WSO2 - Products/IS/IS
 Analytics/wso2analytics-is-1.0.0-beta*

 *wso2server.sh: line 286: /Users/dulindrawijethilake/Documents/WSO2: No
 such file or directory*

 *.*

 I realized that there is an issue with the wso2server.sh script when
 there are spaces used in the directory path. Once spaces were removed, the
 script worked as expected.

 Is this something already known which we have addressed in the kernel?



 [1]
 https://github.com/wso2/analytics-is/releases/download/v1.0.0-beta/wso2analytics-is-1.0.0-beta.zip

 --
 Dulindra Wijethilake
 Senior Product Manager
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware
 mobile- +94 71 312 0005

>>>
>>>
>>>
>>> --
>>>
>>>
>>> *Niranjan Karunanandham*
>>> Associate Technical Lead - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> Dulindra Wijethilake
>> Senior Product Manager
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>> mobile- +94 71 312 0005
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com 
> phone:(+94) 771117673
>


-- 
Dulindra Wijethilake
Senior Product Manager
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware
mobile- +94 71 312 0005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Mesos] Let's use Marathon CLI for deploying artifacts

2016-06-20 Thread Akila Ravihansa Perera
Hi,

Shall we do $subject? Marathon CLI is available for Windows, OS X, Linux
[1]. It supports operations that we need provided via REST API. Main
advantage is it handles authentication if the REST API is secured. Also it
simplifies the bash scripts that we need to develop to deploy services.


[1] https://docs.mesosphere.com/1.7/usage/cli/install/
[2] https://docs.mesosphere.com/1.7/usage/cli/command-reference/

Thanks.

-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

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


[Dev] WSO2 App Manager 1.2.0-Beta Released!

2016-06-20 Thread Lahiru Cooray
*WSO2 App Manager 1.2.0-Beta Released!*


WSO2 App Manager team is pleased to announce WSO2 App Manager 1.2.0-BETA
release. Download distribution here
.
This release comes with following new features, improvements and bug fixes.

New Features
[APPM-1442]  - New asset type -
Sites.
[APPM-1443]  - Configurable
subscription options for Web App and Sites asset types.
[APPM-1444]  - Multiple version
support for Web App and Sites  asset types.
[APPM-1446]  - Java APIs for all
key App Manager functionalities that need to be integrated with device
management functionalities.
[APPM-1445]  - Role based
visibility control for mobile apps
[APPM-1441]  - Redesign product
REST APIs with JAX-RS implementation and secure with OAuth
[APPM-1447]  - Business Owner
concept implementation
[APPM-1493]  - Supporting custom
fields to be added in publisher UI and new REST APIs
[APPM-1492]  - One time download
link support for mobile apps
Improvements
[APPM-1437]  - Navigation
improvement to Store
[APPM-1440]  - New theme for store
UI
Tasks
[APPM-1438]  - Responsive store UI
by Boostrap3 upgrade
[APPM-1439]  - Kernal version
upgrade to 4.4.5


Bug Fixes
WSO2 App Manager 1.2.0-beta resolved issues





Reporting Problems
Issues can be reported through public JIRA
 project assigned to WSO2 AppM.


Thanks,
App Manager team

-- 
*Lahiru Cooray*
Software Engineer
WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware

Mobile: +94 715 654154
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Issue with registering ExceptionMappers.

2016-06-20 Thread Afkham Azeez
Can this be reproduced in the standalone (fatjar) mode as well?

On Mon, Jun 20, 2016 at 7:53 PM, Afkham Azeez  wrote:

> So what has happened in the wrong exception mapper for an exception has
> got registered?
>
> On Mon, Jun 20, 2016 at 7:03 PM, Hemika Kodikara  wrote:
>
>> Hi All,
>>
>> I am currently writing unit test cases where exception mappers are being
>> used in my service. Intermittently I get the following error when running
>> my tests :
>>
>> ==
>> java.lang.ClassCastException:
>> org.wso2.carbon.andes.service.exceptions.InternalServerException cannot be
>> cast to org.wso2.carbon.andes.service.exceptions.MessageNotFoundException
>> at
>> org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(MessageNotFoundMapper.java:30)
>> at
>> org.wso2.msf4j.internal.MSF4JMessageProcessor.handleThrowable(MSF4JMessageProcessor.java:138)
>> at
>> org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JMessageProcessor.java:81)
>> at
>> org.wso2.carbon.transport.http.netty.listener.WorkerPoolDispatchingSourceHandler$1.run(WorkerPoolDispatchingSourceHandler.java:125)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>> ==
>>
>> In the above exception, "MessageNotFoundException" maps to
>> "MessageNotFoundMapper" and "InternalServerException" maps to
>> "InternalServerErrorMapper".
>>
>> The 2 exception classes have nothing in common and the 2 mapper classes
>> also have nothing in common.
>>
>> I debugged further to find the issue with the attached
>> patch(ex-map-msf4j.diff) for logging(not sure whether I have the latest
>> code).
>>
>> Following is the output when the error occurs :
>>
>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>> javax.ws.rs.core.Response
>> org.wso2.carbon.andes.service.internal.exception.mappers.DestinationNotFoundMapper.toResponse(
>> *java.lang.Throwable*)
>> 
>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>> javax.ws.rs.core.Response
>> org.wso2.carbon.andes.service.internal.exception.mappers.InternalServerErrorMapper.toResponse(
>> *java.lang.Throwable*)
>> 
>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>> javax.ws.rs.core.Response
>> org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(
>> *java.lang.Throwable*)
>>
>> The issue here is that the paramtype is as "java.lang.Throwable". The
>> correct value should be as follows since there is a comparator for the
>> exceptionMapper map :
>>
>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>> javax.ws.rs.core.Response
>> org.wso2.carbon.andes.service.internal.exception.mappers.DestinationNotFoundMapper.toResponse(
>> *org.wso2.carbon.andes.service.exceptions.DestinationNotFoundException*)
>> .
>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>> javax.ws.rs.core.Response
>> org.wso2.carbon.andes.service.internal.exception.mappers.InternalServerErrorMapper.toResponse(
>> *org.wso2.carbon.andes.service.exceptions.InternalServerException*)
>> .
>> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
>> javax.ws.rs.core.Response
>> org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(
>> *org.wso2.carbon.andes.service.exceptions.MessageNotFoundException*)
>>
>>
>> According to what I was able to find out, this is an JDK error[1][2](Bug:
>> 8029459 )
>> for the method "em.getClass().getMethods()"[3].
>>
>> Any advice on how to proceed or that needs to be checked from my side ?
>>
>> [1] -
>> http://www.oracle.com/technetwork/java/javase/8-known-issues-2157115.html
>> [2] - http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8029459
>> [3] -
>> https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/internal/MicroservicesRegistry.java#L84
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *

Re: [Dev] [MSF4J] Issue with registering ExceptionMappers.

2016-06-20 Thread Afkham Azeez
So what has happened in the wrong exception mapper for an exception has got
registered?

On Mon, Jun 20, 2016 at 7:03 PM, Hemika Kodikara  wrote:

> Hi All,
>
> I am currently writing unit test cases where exception mappers are being
> used in my service. Intermittently I get the following error when running
> my tests :
>
> ==
> java.lang.ClassCastException:
> org.wso2.carbon.andes.service.exceptions.InternalServerException cannot be
> cast to org.wso2.carbon.andes.service.exceptions.MessageNotFoundException
> at
> org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(MessageNotFoundMapper.java:30)
> at
> org.wso2.msf4j.internal.MSF4JMessageProcessor.handleThrowable(MSF4JMessageProcessor.java:138)
> at
> org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JMessageProcessor.java:81)
> at
> org.wso2.carbon.transport.http.netty.listener.WorkerPoolDispatchingSourceHandler$1.run(WorkerPoolDispatchingSourceHandler.java:125)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> ==
>
> In the above exception, "MessageNotFoundException" maps to
> "MessageNotFoundMapper" and "InternalServerException" maps to
> "InternalServerErrorMapper".
>
> The 2 exception classes have nothing in common and the 2 mapper classes
> also have nothing in common.
>
> I debugged further to find the issue with the attached
> patch(ex-map-msf4j.diff) for logging(not sure whether I have the latest
> code).
>
> Following is the output when the error occurs :
>
> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
> javax.ws.rs.core.Response
> org.wso2.carbon.andes.service.internal.exception.mappers.DestinationNotFoundMapper.toResponse(
> *java.lang.Throwable*)
> 
> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
> javax.ws.rs.core.Response
> org.wso2.carbon.andes.service.internal.exception.mappers.InternalServerErrorMapper.toResponse(
> *java.lang.Throwable*)
> 
> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
> javax.ws.rs.core.Response
> org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(
> *java.lang.Throwable*)
>
> The issue here is that the paramtype is as "java.lang.Throwable". The
> correct value should be as follows since there is a comparator for the
> exceptionMapper map :
>
> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
> javax.ws.rs.core.Response
> org.wso2.carbon.andes.service.internal.exception.mappers.DestinationNotFoundMapper.toResponse(
> *org.wso2.carbon.andes.service.exceptions.DestinationNotFoundException*)
> .
> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
> javax.ws.rs.core.Response
> org.wso2.carbon.andes.service.internal.exception.mappers.InternalServerErrorMapper.toResponse(
> *org.wso2.carbon.andes.service.exceptions.InternalServerException*)
> .
> [org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
> javax.ws.rs.core.Response
> org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(
> *org.wso2.carbon.andes.service.exceptions.MessageNotFoundException*)
>
>
> According to what I was able to find out, this is an JDK error[1][2](Bug:
> 8029459 ) for
> the method "em.getClass().getMethods()"[3].
>
> Any advice on how to proceed or that needs to be checked from my side ?
>
> [1] -
> http://www.oracle.com/technetwork/java/javase/8-known-issues-2157115.html
> [2] - http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8029459
> [3] -
> https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/internal/MicroservicesRegistry.java#L84
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] Naming convention for WSO2 docker images based on the platform

2016-06-20 Thread Anuruddha Liyanarachchi
Hi,

+1 for the platform postfix in docker images.

On Mon, Jun 20, 2016 at 7:57 AM, Pubudu Gunatilaka  wrote:

> Hi Devs,
>
> At the moment, we have docker images which can be run on the following
> platforms.
>
> 1. Kubernetes [1]
> 2. Mesos [2]
> 3. Default docker [3]
>
> For each and every platform we have a different docker image which
> includes platform specific configurations. Currently, the naming convention
> is as follows.
>
> wso2esb:4.9.0
> wso2esb-manger:4.9.0
> wso2esb-worker:4.9.0
>
> This naming convention does not distinguish images based on the platform
> and it would be difficult to manage images with the existing naming
> convention. This is already raised in [4]. Following naming convention is
> proposed.
>
> {product_name}-{product_profile}-{platform}:{product_version}
>
> *For Kubernetes*
>
> wso2esb-kubernetes:4.9.0
> wso2esb-manger-kubernetes:4.9.0
> wso2esb-worker-kubernetes:4.9.0
>
> *For Mesos*
>
> wso2esb-mesos:4.9.0
> wso2esb-manger-mesos:4.9.0
> wso2esb-worker-mesos:4.9.0
>
> *For Default Docker*
>
> wso2esb:4.9.0
> wso2esb-manger:4.9.0
> wso2esb-worker:4.9.0
>
> Please share your thoughts.
>
> [1] - https://github.com/wso2/kubernetes-artifacts
> [2] - https://github.com/wso2-incubator/mesos-artifacts
> [3] - https://github.com/wso2/dockerfiles
> [4] - https://github.com/wso2/dockerfiles/issues/48
>
> Thank you!
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel  : +94 112 145 345
a nurudd...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Analytics] Error running server.sh script with spaces in the directory path

2016-06-20 Thread Mohanadarshan Vivekanandalingam
On Mon, Jun 20, 2016 at 3:17 PM, Dulindra Wijethilake 
wrote:

> Hi Niranjan,
> It seems IS analytics is based on Carbon 4.4.3.
>
> @DAS team,
> Do we have any plans to update the carbon version to a newer version?
>

Yes, we have to move Carbon 4.4.6.. Already. ground work is going on this..
Anyway, can you please raise a jira on this ? It will help to track

Thanks,
Mohan


>
> On Mon, Jun 20, 2016 at 3:02 PM, Niranjan Karunanandham  > wrote:
>
>> Hi Dulindra,
>>
>> This was a known issue in windows and we have fixed it by using the short
>> path. I have tested with spaces in the folder name for Kenerl 4.4.5 in
>> Ubuntu 14.04 (with JDK Oracle 1.7) and I did not get any issues. Will you
>> be able to verify this in Kernel 4.4.5?
>>
>> Regardsm
>> Nira
>>
>> On Mon, Jun 20, 2016 at 2:33 PM, Dulindra Wijethilake 
>> wrote:
>>
>>> Hi All,
>>>
>>> While trying to run IS Analytics [1], I got the error below:
>>>
>>> *..*
>>>
>>> *Dulindras-MacBook-Pro:bin dulindrawijethilake$ sh wso2server.sh*
>>>
>>> *JAVA_HOME environment variable is set to
>>> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home*
>>>
>>> *CARBON_HOME environment variable is set to
>>> /Users/dulindrawijethilake/Documents/WSO2 - Products/IS/IS
>>> Analytics/wso2analytics-is-1.0.0-beta*
>>>
>>> *wso2server.sh: line 286: /Users/dulindrawijethilake/Documents/WSO2: No
>>> such file or directory*
>>>
>>> *.*
>>>
>>> I realized that there is an issue with the wso2server.sh script when
>>> there are spaces used in the directory path. Once spaces were removed, the
>>> script worked as expected.
>>>
>>> Is this something already known which we have addressed in the kernel?
>>>
>>>
>>>
>>> [1]
>>> https://github.com/wso2/analytics-is/releases/download/v1.0.0-beta/wso2analytics-is-1.0.0-beta.zip
>>>
>>> --
>>> Dulindra Wijethilake
>>> Senior Product Manager
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> mobile- +94 71 312 0005
>>>
>>
>>
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> Dulindra Wijethilake
> Senior Product Manager
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
> mobile- +94 71 312 0005
>



-- 
*V. Mohanadarshan*
*Associate Tech Lead,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Thanuja Jayasinghe
Hi Pushpalanka/Isura,


On Mon, Jun 20, 2016 at 4:50 PM, Pushpalanka Jayawardhana 
wrote:

> Hi Isura,
>
> On Mon, Jun 20, 2016 at 10:52 AM, Isura Karunaratne 
> wrote:
>
>> HI all,
>>
>> I am working on $subject for WSO2 Identity Sever 5.3.0 release. Following
>> are the currently identified improvements,
>>
>>
>>- Password History -
>>
>> Last 'n' number of passwords need to be maintained in user's history.
>> When user updates his password we don't allow him to choose one of these
>> 'n' passwords again.
>>
>>
>>- Periodic Password Reset -
>>
>> Force the user to periodically (configurable period) reset his password.
>> When doing this we need to leverage the password history feature as well.
>>
>>
>> CREATE TABLE IF NOT EXISTS idn_password_history_data
>>  (
>>   user_name   *VARCHAR*(255) NOT NULL,
>>   user_domain *VARCHAR*(255) NOT NULL,
>>   tenant_id   *INTEGER* DEFAULT -1,
>>   hash*VARCHAR*(255) NOT NULL,
>>   time_created *TIMESTAMP* NOT NULL DEFAULT
>> CURRENT_TIMESTAMP,
>>   PRIMARY KEY (user_name,user_domain,tenant_id,
>> hash),
>>  )
>>
>>
>> All the passwords which are supposed to store in this table are old
>> passwords (expired).
>>
>> - I think we don't need to use the same  password hashing algorithm (with
>> or without salted value) which is defined user-mgt.xml for password history
>> validation.
>> - admin users can change other user's passwords without giving their old
>> passwords. In that case, how can we find the old password hash value to
>> store for password history validation?
>>
> In the given table schema we may need to pay special attention to handle
> user_domain, as secondary user store domain can be changed. Ideally we
> should incorporate a *unique user store domain id* than using user domain
> here.
>

We already have a listener to handle user store domains related operations
called 'AbstractUserStoreConfigListener'. This listener provides "
onUserStoreNamePreUpdate" and "onUserStorePreDelete" methods, which we can
use here to modify "idn_password_history_data" table accordingly.  Also
these methods work with user store domain name.
You can refer [1] for such implementation.


>
>>
>> Your comments and suggestions are highly appreciated.
>>
>> Thanks
>> Isura.
>>
>>
>> Isura Dilhara Karunaratne
>> Senior Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> 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
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
[1] -
https://github.com/wso2-extensions/identity-user-account-association/blob/master/components/org.wso2.carbon.identity.user.account.association/src/main/java/org/wso2/carbon/identity/user/account/association/internal/UserStoreConfigListenerImpl.java

-- 
*Thanuja Lakmal*
Senior Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94715979891 +94758009992
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MSF4J] Issue with registering ExceptionMappers.

2016-06-20 Thread Hemika Kodikara
Hi All,

I am currently writing unit test cases where exception mappers are being
used in my service. Intermittently I get the following error when running
my tests :

==
java.lang.ClassCastException:
org.wso2.carbon.andes.service.exceptions.InternalServerException cannot be
cast to org.wso2.carbon.andes.service.exceptions.MessageNotFoundException
at
org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(MessageNotFoundMapper.java:30)
at
org.wso2.msf4j.internal.MSF4JMessageProcessor.handleThrowable(MSF4JMessageProcessor.java:138)
at
org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JMessageProcessor.java:81)
at
org.wso2.carbon.transport.http.netty.listener.WorkerPoolDispatchingSourceHandler$1.run(WorkerPoolDispatchingSourceHandler.java:125)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
==

In the above exception, "MessageNotFoundException" maps to
"MessageNotFoundMapper" and "InternalServerException" maps to
"InternalServerErrorMapper".

The 2 exception classes have nothing in common and the 2 mapper classes
also have nothing in common.

I debugged further to find the issue with the attached
patch(ex-map-msf4j.diff) for logging(not sure whether I have the latest
code).

Following is the output when the error occurs :

[org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
javax.ws.rs.core.Response
org.wso2.carbon.andes.service.internal.exception.mappers.DestinationNotFoundMapper.toResponse(
*java.lang.Throwable*)

[org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
javax.ws.rs.core.Response
org.wso2.carbon.andes.service.internal.exception.mappers.InternalServerErrorMapper.toResponse(
*java.lang.Throwable*)

[org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
javax.ws.rs.core.Response
org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(
*java.lang.Throwable*)

The issue here is that the paramtype is as "java.lang.Throwable". The
correct value should be as follows since there is a comparator for the
exceptionMapper map :

[org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
javax.ws.rs.core.Response
org.wso2.carbon.andes.service.internal.exception.mappers.DestinationNotFoundMapper.toResponse(
*org.wso2.carbon.andes.service.exceptions.DestinationNotFoundException*)
.
[org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
javax.ws.rs.core.Response
org.wso2.carbon.andes.service.internal.exception.mappers.InternalServerErrorMapper.toResponse(
*org.wso2.carbon.andes.service.exceptions.InternalServerException*)
.
[org.wso2.msf4j.internal.MicroservicesRegistry] : CLASS : public
javax.ws.rs.core.Response
org.wso2.carbon.andes.service.internal.exception.mappers.MessageNotFoundMapper.toResponse(
*org.wso2.carbon.andes.service.exceptions.MessageNotFoundException*)


According to what I was able to find out, this is an JDK error[1][2](Bug:
8029459 ) for
the method "em.getClass().getMethods()"[3].

Any advice on how to proceed or that needs to be checked from my side ?

[1] -
http://www.oracle.com/technetwork/java/javase/8-known-issues-2157115.html
[2] - http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8029459
[3] -
https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/internal/MicroservicesRegistry.java#L84

Regards,
Hemika

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

Mobile : +9477762
diff --git 
a/core/src/main/java/org/wso2/msf4j/internal/MicroservicesRegistry.java 
b/core/src/main/java/org/wso2/msf4j/internal/MicroservicesRegistry.java
index 075b4e7..44e35e2 100644
--- a/core/src/main/java/org/wso2/msf4j/internal/MicroservicesRegistry.java
+++ b/core/src/main/java/org/wso2/msf4j/internal/MicroservicesRegistry.java
@@ -86,7 +86,9 @@ public class MicroservicesRegistry {
 findAny().
 ifPresent(method -> {
 try {
+log.info("CLASS : " + method.toString());
 
exceptionMappers.put(Class.forName(method.getGenericParameterTypes()[0].getTypeName()),
 em);
+log.info("MAPPING ADDER : " + exceptionMappers);
 } catch (ClassNotFoundException e) {
 log.error("Could not load class", e);
 }
@@ -95,6 +97,7 @@ public class MicroservicesRegistry {
 }
 
 Optional getExceptionMapper(Throwable throwable) {
+log.info("EXCEPTION MAPPERS : " + exceptionMappers);
 return exceptionMappers.entrySet().
 stream().
 filter(entry -> 
entry.getKey().isAssignableFrom(throwable.getClass())).
@@ -110,6 +113,7 

[Dev] Automation test suit sets keystore path to "javax.net.ssl.trustStore"

2016-06-20 Thread Bhathiya Jayasekara
Hi Automation team,

In automation platform, what it sets for "javax.net.ssl.trustStore" is
keystore path[1]. So installing certs to truststore has no effect. I had to
install client certs to keystore to get it working. Please fix this.

[1]
https://github.com/wso2/carbon-platform-integration-utils/blob/973e12f0ce5445b2c567bd43844b0c37cd663e65/common-framework-utils/src/main/java/org/wso2/carbon/integration/common/utils/clients/SecureAxisServiceClient.java#L73

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

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC Dockerfiles] Add ability to silently run docker image

2016-06-20 Thread Chamila De Alwis
On Mon, Jun 20, 2016 at 1:17 PM, Abhishek Tiwari <
abhishek.tiwari0...@gmail.com> wrote:

> It would be nice to have the ability to silent the questioning so that the
> test scripts can continue without having to pause for the input.


Alternatively you could try an expect script to automatically input values
when prompted.


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB/MB] Issue with numeric Transport headers with JMS Message Store and Processor

2016-06-20 Thread Godwin Shrimal
Hi Shafren,

This is a Sampling Message Processor and accessing the value from Sequence
configured in Message Processor.

Thanks
Godwin


On Sun, Jun 19, 2016 at 11:27 PM, Shafreen Anfar  wrote:

> Hi Godwin,
>
> Is it Sampling Message Processor or Forwarding Message Processor. If it is
> Forwarding Message Processor, I believe you are talking about accessing the
> value from the reply sequence right ?
>
> On Mon, Jun 20, 2016 at 3:03 AM, Godwin Shrimal  wrote:
>
>> Hi All,
>>
>> Having an issue with numeric values in transport headers when we use
>> Message Store and Processor with JMS. There is a Script mediator as below
>> inside a sequence to set the transport header *REDELIVERY_ATTEMPTS*. When
>> we use JMS message store (connected WSO2 MB) it gives null value when it
>> consume from Message Processor (Inside a Sequence which Message processor
>> calls), Same one work fine with InMemory message Store and give expected
>> value.
>>
>> > mc.getProperty('REDELIVERY_ATTEMPTS');
>>
>> var intAttempts = 0;
>>
>> if(attempts != null || attempts != ""){
>>
>>intAttempts = parseInt(attempts);
>>
>> }
>>
>> intAttempts = intAttempts + 1;
>>
>> *mc.setProperty("REDELIVERY_ATTEMPTS", intAttempts);*
>>
>> 
>> If I change the setting transport header as below it works fine.
>>
>> *mc.setProperty("REDELIVERY_ATTEMPTS", intAttempts + "");*
>>
>> I don't have any blocker in this and can achieve the requirement from
>> above solution. But what is the reason for above behaviour ?
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
> Regards,
> *Shafreen*
> Software Engineer
> WSO2 Inc
> Mobile : 077-556-395-1
>



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Issue while using Conditional Group

2016-06-20 Thread Amila De Silva
Implemented this with the following PRs
1. https://github.com/wso2/carbon-apimgt/pull/2551
2. https://github.com/wso2/carbon-apimgt/pull/2532


On Fri, Jun 17, 2016 at 6:20 AM, Amila De Silva  wrote:

> Hi Uvindra, Harsha,
>
> I don't think it's possible to get CEP do this. If we'd been calling CEP
> and waiting on its decision to let the request through, it would have been
> possible. Then for each request, CEP would evaluate the query and tell
> which conditions are applicable for that incoming request, and if the
> throttling quota defined by that policy has exceeded.
>
> With the current approach, what CEP does is, determining which counters
> should be incremented based on the published message and sending a message
> when any of the conditions have been throttled out. Gateway only have a
> bunch of throttled out keys, so it should have  a means of finding which
> keys are to be checked with each request.
>
> Rather than evaluating all the conditions for each request, we can
> optimise it (like first checking if any throttled out records are present
> for that API and then only evaluate the conditions), but the check needed
> to be done at the GW seems to be inevitable.
>
> On Thu, Jun 16, 2016 at 10:46 PM, Harsha Kumara  wrote:
>
>> Hi Amila,
>>
>> Are we going to evaluate the condition from the GW side? We will need to
>> check the possibility of doing this in CEP.  Otherwise it will performance
>> may degrade drastically. Again I'm doubt whether we can do it from the CEP
>> side as we publish set of data and take decisions based on the data coming
>> on the stream. It's independent of the request. Unless we have specific key
>> combination or identification pattern we won't be able to do it in the CEP
>> side as well.
>>
>> We will need to have a way to identify which condition group triggered
>> based on the data coming. Asynchronous behavior of data processing make it
>> harder to identify it from the CEP and transfer it to the gateway.
>>
>> Thanks,
>> Harsha
>>
>> On Sun, Jun 12, 2016 at 9:13 PM, Uvindra Dias Jayasinha > > wrote:
>>
>>> Hi Amila,
>>>
>>> I think it defeats the purpose if we need to evaluate conditions again
>>> on the GW side(GW starts to do part of the decision manager role), is it
>>> possible to fix this by asking CEP to provide the aggregate result of all
>>> the available conditions?
>>>
>>>
>>>
>>> On 11 June 2016 at 12:12, Amila De Silva  wrote:
>>>
 Hi All,

 This is related to the discussion had with Harsha on a particular
 behaviour observed when having Conditional Groups.

 Suppose we have a throttling policy like below;

 *default* - 1000 req/min

 *Condition* - 50 req/min if IP is 10.100.0.5


 The expected behaviour is, if requests are coming from 10.100.0.5, only
 to allow 50 req/min, but if coming from a different destination, allow 
 1000.

 But we observed that, when requests coming from 10.100.0.5 have been
 throttled out after utilising it’s full quota (50 req/min) , GW won’t
 accept any requests even from a different destination.


 While investigating the issue found that it was due to the way we
 enforce throttling at the GW.

 If we consider creating the above condition, then;

 1. Two Condition elements gets created (one for the default and the
 other for the actual condition) and get saved in the DB.

 2. Two execution plans are created to handle the conditions and are
 deployed in the CEP.


 As APIs are invoked

 1. CEP runs the queries and correctly evaluates which condition has
 been fulfilled .Say that we are invoking with the specified IP, then CEP
 will keep incrementing the counter related to IP based condition.

 2. Once the limit has reached, CEP publishes the condition which has
 been throttled out.

 3. When GW start to enforce throttling, it simply gets all the
 throttling conditions attached with the resource. So now the resource has
 two conditions attached - the default one and the ip based one.

 4. GW doesn’t determine which condition should be checked (If a request
 is made from a different destination GW should look at the default
 condition, but with the current implementation it doesn’t) . It simply
 checks if any of the conditions attached with the resource have been
 throttled out.


 Due to this, if one of the conditions engaged with the request gets
 throttled out, no additional request can make through the GW, until time
 duration elapses.


 This is a bug and we have to fix this, but we also have to be aware of
 the downsides of fixing this;

 If we are to correctly fix this,

 1. First at the GW, we have to determine which condition is applicable
 for the incoming request.

 2. To do this, 

[Dev] Naming convention for WSO2 docker images based on the platform

2016-06-20 Thread Pubudu Gunatilaka
Hi Devs,

At the moment, we have docker images which can be run on the following
platforms.

1. Kubernetes [1]
2. Mesos [2]
3. Default docker [3]

For each and every platform we have a different docker image which includes
platform specific configurations. Currently, the naming convention is as
follows.

wso2esb:4.9.0
wso2esb-manger:4.9.0
wso2esb-worker:4.9.0

This naming convention does not distinguish images based on the platform
and it would be difficult to manage images with the existing naming
convention. This is already raised in [4]. Following naming convention is
proposed.

{product_name}-{product_profile}-{platform}:{product_version}

*For Kubernetes*

wso2esb-kubernetes:4.9.0
wso2esb-manger-kubernetes:4.9.0
wso2esb-worker-kubernetes:4.9.0

*For Mesos*

wso2esb-mesos:4.9.0
wso2esb-manger-mesos:4.9.0
wso2esb-worker-mesos:4.9.0

*For Default Docker*

wso2esb:4.9.0
wso2esb-manger:4.9.0
wso2esb-worker:4.9.0

Please share your thoughts.

[1] - https://github.com/wso2/kubernetes-artifacts
[2] - https://github.com/wso2-incubator/mesos-artifacts
[3] - https://github.com/wso2/dockerfiles
[4] - https://github.com/wso2/dockerfiles/issues/48

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


Re: [Dev] ClassCastException when using datamapper

2016-06-20 Thread Keerthika Mahendralingam
Hi Viraj,

I used the schema from connector and also I tried to create the schema from
the exact payload that I received before the data mapper. In both cases I'm
getting the same error.

Please find the payload and input output schama:

{
   "id":"PS9VE7M",
   "incident_number":3,
   "created_on":"2016-06-15T11:33:51Z",
   "status":"resolved",
   "pending_actions":[

   ],
   "html_url":"https://connectordemo.pagerduty.com/incidents/PS9VE7M;,
   "incident_key":"3c45415469ed415d8137b8ea9fe2fc03",
   "service":{
  "id":"P4OWETP",
  "name":"testService",
  "html_url":"https://connectordemo.pagerduty.com/services/P4OWETP;,
  "deleted_at":null,
  "description":"This is for testing purpose"
   },
   "escalation_policy":{
  "id":"PDJQDGY",
  "name":"Default",
  "deleted_at":null
   },
   "assigned_to_user":null,
   "trigger_summary_data":{
  "subject":"serviceTest"
   },
   "trigger_details_html_url":"
https://connectordemo.pagerduty.com/incidents/PS9VE7M/log_entries/Q324O08PK4VLJV
",
   "trigger_type":"web_trigger",
   "last_status_change_on":"2016-06-15T15:33:51Z",
   "last_status_change_by":null,
   "number_of_escalations":0,
   "resolved_by_user":null,
   "assigned_to":[

   ],
   "urgency":"high"
}



==

*pdJiraConfig_inputSchema.json :*

{
  "id" : "http://wso2jsonschema.org;,
  "title" : "root",
  "$schema" : "http://json-schema.org/draft-04/schema#;,
  "properties" : {
"last_status_change_on" : {
  "id" : "http://wso2jsonschema.org/last_status_change_on;,
  "type" : "string"
},
"status" : {
  "id" : "http://wso2jsonschema.org/status;,
  "type" : "string"
},
"created_on" : {
  "id" : "http://wso2jsonschema.org/created_on;,
  "type" : "string"
},
"last_status_change_by" : {
  "id" : "http://wso2jsonschema.org/last_status_change_by;,
  "type" : "string"
},
"incident_key" : {
  "id" : "http://wso2jsonschema.org/incident_key;,
  "type" : "string"
},
"trigger_type" : {
  "id" : "http://wso2jsonschema.org/trigger_type;,
  "type" : "string"
},
"resolved_by_user" : {
  "id" : "http://wso2jsonschema.org/resolved_by_user;,
  "type" : "string"
},
"incident_number" : {
  "id" : "http://wso2jsonschema.org/incident_number;,
  "type" : "number"
},
"urgency" : {
  "id" : "http://wso2jsonschema.org/urgency;,
  "type" : "string"
},
"id" : {
  "id" : "http://wso2jsonschema.org/id;,
  "type" : "string"
},
"html_url" : {
  "id" : "http://wso2jsonschema.org/html_url;,
  "type" : "string"
},
"assigned_to_user" : {
  "id" : "http://wso2jsonschema.org/assigned_to_user;,
  "type" : "string"
},
"number_of_escalations" : {
  "id" : "http://wso2jsonschema.org/number_of_escalations;,
  "type" : "number"
},
"service" : {
  "id" : "http://wso2jsonschema.org/service;,
  "properties" : {
"html_url" : {
  "id" : "http://wso2jsonschema.org/service/html_url;,
  "type" : "string"
},
"id" : {
  "id" : "http://wso2jsonschema.org/service/id;,
  "type" : "string"
},
"description" : {
  "id" : "http://wso2jsonschema.org/service/description;,
  "type" : "string"
},
"name" : {
  "id" : "http://wso2jsonschema.org/service/name;,
  "type" : "string"
},
"deleted_at" : {
  "id" : "http://wso2jsonschema.org/service/deleted_at;,
  "type" : "string"
}
  },
  "type" : "object"
},
"escalation_policy" : {
  "id" : "http://wso2jsonschema.org/escalation_policy;,
  "properties" : {
"id" : {
  "id" : "http://wso2jsonschema.org/escalation_policy/id;,
  "type" : "string"
},
"name" : {
  "id" : "http://wso2jsonschema.org/escalation_policy/name;,
  "type" : "string"
},
"deleted_at" : {
  "id" : "http://wso2jsonschema.org/escalation_policy/deleted_at;,
  "type" : "string"
}
  },
  "type" : "object"
},
"trigger_summary_data" : {
  "id" : "http://wso2jsonschema.org/trigger_summary_data;,
  "properties" : {
"subject" : {
  "id" : "http://wso2jsonschema.org/trigger_summary_data/subject;,
  "type" : "string"
}
  },
  "type" : "object"
},
"trigger_details_html_url" : {
  "id" : "http://wso2jsonschema.org/trigger_details_html_url;,
  "type" : "string"
}
  },
  "type" : "object"
}



===
*pdJiraConfig_outputSchema.json:*

{
  "id" : "http://wso2jsonschema.org;,
  "title" : "root",
  "$schema" : "http://json-schema.org/draft-04/schema#;,
  "properties" : {
"issueFields" : {
  "id" : "http://wso2jsonschema.org/issueFields;,
  "properties" : {
 

Re: [Dev] ClassCastException when using datamapper

2016-06-20 Thread Viraj Rajaguru
Hi Keerthika,

It seems the schema and the received payload doesn't match each other. Can
you send us the payload just before the datamapper mediator.(Log
level="full") We will find input and output schemas from [1] and [2]. Hope
connector store contains updated connectors with schemas. Or else please
share gov:datamapper/pdJiraConfig_inputSchema.json and gov:datamapper/
pdJiraConfig_outputSchema.json as well.

Thanks,
Viraj.

[1] -
https://store.wso2.com/store/assets/esbconnector/6f3b4bb7-054a-4aaf-a579-3f32c3eca2d3
[2] -
https://store.wso2.com/store/assets/esbconnector/b6424572-c92c-4422-a8e2-36db83d98e81


On Mon, Jun 20, 2016 at 4:39 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Nuwan,
>
> Using ESB 5.0.0-BETA.
>
> Thanks,
> Keerthika
>
> On Mon, Jun 20, 2016 at 4:25 PM, Nuwan Pallewela  wrote:
>
>> Hi Keerthika,
>>
>> What is the ESB version you are using?
>>
>> Thanks,
>> Nuwan
>>
>> On Mon, Jun 20, 2016 at 4:03 PM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I am getting the following error when I used data mapper to create an
>>> integration scenario. I installed the tool from
>>> http://builder1.us1.wso2.org/~developerstudio/devstudio-tooling-esb/5.0.0/Beta/composite/
>>> and used input output schema from jira and pagerduty connector schema.
>>>
>>> I have added the proxy and data mapper configuration at the end.
>>>
>>> What could be the reason for the following error?
>>>
>>> [2016-06-20 15:11:10,720] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>>> "[\r][\n]"
>>>
>>> [2016-06-20 15:11:10,720] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>>> "352[\r][\n]"
>>>
>>> [2016-06-20 15:11:10,721] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >> "
>>> {"id":"PS9VE7M","incident_number":3,"created_on":"2016-06-15T11:33:51Z","status":"resolved","pending_actions":[],"html_url":"
>>> https://connectordemo.pagerduty.com/incidents/PS9VE7M
>>> ","incident_key":"3c45415469ed415d8137b8ea9fe2fc03","service":{"id":"P4OWETP","name":"testService","html_url":"
>>> https://connectordemo.pagerduty.com/services/P4OWETP","deleted_at":null,"description":"This
>>> is for testing
>>> purpose"},"escalation_policy":{"id":"PDJQDGY","name":"Default","deleted_at":null},"assigned_to_user":null,"trigger_summary_data":{"subject":"serviceTest"},"trigger_details_html_url":"
>>> https://connectordemo.pagerduty.com/incidents/PS9VE7M/log_entries/Q324O08PK4VLJV
>>> ","trigger_type":"web_trigger","last_status_change_on":"2016-06-15T15:33:51Z","last_status_change_by":null,"number_of_escalations":0,"resolved_by_user":null,"assigned_to":[],"urgency":"high"}
>>> [\r][\n]"
>>>
>>> [2016-06-20 15:11:10,722] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>>> "0[\r][\n]"
>>>
>>> [2016-06-20 15:11:10,723] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>>> "[\r][\n]"
>>>
>>> [2016-06-20 15:11:10,731]  WARN - JacksonJSONSchema Element name not
>>> found : jsonObject
>>>
>>> [2016-06-20 15:11:10,732]  WARN - JacksonJSONSchema Element name not
>>> found : jsonObject
>>>
>>> [2016-06-20 15:11:10,732] ERROR - SequenceMediator java.lang.String
>>> cannot be cast to java.util.Map
>>>
>>> java.lang.ClassCastException: java.lang.String cannot be cast to
>>> java.util.Map
>>>
>>> at
>>> org.wso2.carbon.mediator.datamapper.engine.core.schemas.JacksonJSONSchema.getElementTypeByName(JacksonJSONSchema.java:111)
>>>
>>> at
>>> org.wso2.carbon.mediator.datamapper.engine.input.readers.XMLReader.startElement(XMLReader.java:141)
>>>
>>> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>>> Source)
>>>
>>> at
>>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
>>> Source)
>>>
>>> at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>>> Source)
>>>
>>> at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>>> Source)
>>>
>>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>>
>>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>>
>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>>
>>> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>>>
>>> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>>> Source)
>>>
>>> at
>>> org.wso2.carbon.mediator.datamapper.engine.input.readers.XMLReader.read(XMLReader.java:95)
>>>
>>> at
>>> org.wso2.carbon.mediator.datamapper.engine.input.InputModelBuilder.buildInputModel(InputModelBuilder.java:52)
>>>
>>> at
>>> org.wso2.carbon.mediator.datamapper.engine.core.mapper.MappingHandler.doMap(MappingHandler.java:59)
>>>
>>> at
>>> org.wso2.carbon.mediator.datamapper.DataMapperMediator.transform(DataMapperMediator.java:245)
>>>
>>> at
>>> org.wso2.carbon.mediator.datamapper.DataMapperMediator.mediate(DataMapperMediator.java:217)
>>>
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:87)
>>>
>>> at
>>> 

Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Darshana Gunawardana
Hi,

As I see these two requirements are orthogonal and better to discuss in
separate threads. If we consider one by one,

1. Password History Validation.

This is another layer of password pattern validation, which is done when an
user try to change his password.

Hashing method of old password matters only to this requirement and IMO we
should treat old passwords in the same manner for the current password,
hence the default option would be set the same hashing mechanism for both
old and current passwords. Having a configuration to override this
behaviour and set any password hashing mechanism is fine..

But if we implement  "allowing to change hashing algorithm", it would be
tricky to move current password to idn_password_history_data table with the
new hashing in scenarios like "password recovery", "change password by
admin" where old password is not provided.

One other thing should take note is, password hashing algorithm can vary
from one user store to another, hence hashing algorithm should be a picked
from idn_password_history_data table.


2. Force Password Reset.

This policy enforced when an user try to login.

During login, if user subjected to this policy, the default behaviour would
be to force to change password. As Dulanja mentioned, it will be useful
make password reset optional and give user to skip it, if the admin enable
that option.

If user wanted\have to change the password, it would initiate password
change flow... then depending on the Password history validation feature is
enabled or any other password policy is enabled, user have to enter suited
new password. My point is, Force password reset feature should take care
upto only initiating the password change flow, rest of the password change
flow is depends on password policy features.

As I recall, there was some other requirement came up with this feature
where an user should get an notification before (2weeks, 3days, 1day...
etc) he\she reach to the threshold period. We should implement these
features, in a way we could easily implement such supplementary requirments
as well.


If we consider generally for both these features,

1. What would needed to be configurable for service provider \ application
wise?
> IMO, Force Password Reset feature would be a configurable option for
service provider wise. Having this feature enabled for a service provider
would contribute towards to strong authentication index.

2. How to get use of underlying user store implementations?
> Some userstore implementations (LDAP\AD) do have OOTB support for both
these features. Its better if we can come up with a model where we can get
use of those implementations.

Thanks,
Darshana

On Mon, Jun 20, 2016 at 3:43 PM, Omindu Rathnaweera  wrote:

> Hi,
>
>
>> All the passwords which are supposed to store in this table are old
>>> passwords (expired).
>>>
>>> - I think we don't need to use the same  password hashing algorithm
>>> (with or without salted value) which is defined user-mgt.xml for password
>>> history validation.
>>>
>>
>> IMO using the same hashing algo is cleaner. Isn't the current password
>> also stored in this table? If stored, it's mandatory to use salting.
>>
>
> I believe we should use either the hashing algorithm specified in the
> user-mgt.xml or provide a separate config to specify a hashing algo for
> password history.
>
> Consider the following scenario.
>
> Let's say we have specified the hashing algo in user-mgt.xml as SHA-512
> and we use SHA-256 (hard coded) to store old passwords. Given that the user
> has the option to maintain the old password during a periodic password
> reset, then the old password will be the same as the existing password if
> the user decides to stick with the old password. Now, in the history table
> the current password will be stored in a much weaker hash. This doesn't
> seems right, does it ? Also using the hashing algorithm specified in the
> user-mgt.xml or a different config means that we'll have to store the
> hashing algo in the history table.
>
> Regards,
> Omindu.
>
>
>>
>>
>>> - admin users can change other user's passwords without giving their old
>>> passwords. In that case, how can we find the old password hash value to
>>> store for password history validation?
>>>
>>>
>>> Your comments and suggestions are highly appreciated.
>>>
>>> Thanks
>>> Isura.
>>>
>>>
>>> Isura Dilhara Karunaratne
>>> Senior Software Engineer
>>>
>>> Mob +94 772 254 810
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Dulanja Liyanage
>> Lead, Platform Security Team
>> WSO2 Inc.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Omindu Rathnaweera
> Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,


*Darshana Gunawardana*Associate Technical 

Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Pushpalanka Jayawardhana
Hi Isura,

On Mon, Jun 20, 2016 at 10:52 AM, Isura Karunaratne  wrote:

> HI all,
>
> I am working on $subject for WSO2 Identity Sever 5.3.0 release. Following
> are the currently identified improvements,
>
>
>- Password History -
>
> Last 'n' number of passwords need to be maintained in user's history. When
> user updates his password we don't allow him to choose one of these 'n'
> passwords again.
>
>
>- Periodic Password Reset -
>
> Force the user to periodically (configurable period) reset his password.
> When doing this we need to leverage the password history feature as well.
>
>
> CREATE TABLE IF NOT EXISTS idn_password_history_data
>  (
>   user_name   *VARCHAR*(255) NOT NULL,
>   user_domain *VARCHAR*(255) NOT NULL,
>   tenant_id   *INTEGER* DEFAULT -1,
>   hash*VARCHAR*(255) NOT NULL,
>   time_created *TIMESTAMP* NOT NULL DEFAULT
> CURRENT_TIMESTAMP,
>   PRIMARY KEY (user_name,user_domain,tenant_id,
> hash),
>  )
>
>
> All the passwords which are supposed to store in this table are old
> passwords (expired).
>
> - I think we don't need to use the same  password hashing algorithm (with
> or without salted value) which is defined user-mgt.xml for password history
> validation.
> - admin users can change other user's passwords without giving their old
> passwords. In that case, how can we find the old password hash value to
> store for password history validation?
>
In the given table schema we may need to pay special attention to handle
user_domain, as secondary user store domain can be changed. Ideally we
should incorporate a *unique user store domain id* than using user domain
here.

>
>
> Your comments and suggestions are highly appreciated.
>
> Thanks
> Isura.
>
>
> Isura Dilhara Karunaratne
> Senior Software Engineer
>
> Mob +94 772 254 810
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassCastException when using datamapper

2016-06-20 Thread Keerthika Mahendralingam
Hi Nuwan,

Using ESB 5.0.0-BETA.

Thanks,
Keerthika

On Mon, Jun 20, 2016 at 4:25 PM, Nuwan Pallewela  wrote:

> Hi Keerthika,
>
> What is the ESB version you are using?
>
> Thanks,
> Nuwan
>
> On Mon, Jun 20, 2016 at 4:03 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi All,
>>
>> I am getting the following error when I used data mapper to create an
>> integration scenario. I installed the tool from
>> http://builder1.us1.wso2.org/~developerstudio/devstudio-tooling-esb/5.0.0/Beta/composite/
>> and used input output schema from jira and pagerduty connector schema.
>>
>> I have added the proxy and data mapper configuration at the end.
>>
>> What could be the reason for the following error?
>>
>> [2016-06-20 15:11:10,720] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>> "[\r][\n]"
>>
>> [2016-06-20 15:11:10,720] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>> "352[\r][\n]"
>>
>> [2016-06-20 15:11:10,721] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >> "
>> {"id":"PS9VE7M","incident_number":3,"created_on":"2016-06-15T11:33:51Z","status":"resolved","pending_actions":[],"html_url":"
>> https://connectordemo.pagerduty.com/incidents/PS9VE7M
>> ","incident_key":"3c45415469ed415d8137b8ea9fe2fc03","service":{"id":"P4OWETP","name":"testService","html_url":"
>> https://connectordemo.pagerduty.com/services/P4OWETP","deleted_at":null,"description":"This
>> is for testing
>> purpose"},"escalation_policy":{"id":"PDJQDGY","name":"Default","deleted_at":null},"assigned_to_user":null,"trigger_summary_data":{"subject":"serviceTest"},"trigger_details_html_url":"
>> https://connectordemo.pagerduty.com/incidents/PS9VE7M/log_entries/Q324O08PK4VLJV
>> ","trigger_type":"web_trigger","last_status_change_on":"2016-06-15T15:33:51Z","last_status_change_by":null,"number_of_escalations":0,"resolved_by_user":null,"assigned_to":[],"urgency":"high"}
>> [\r][\n]"
>>
>> [2016-06-20 15:11:10,722] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>> "0[\r][\n]"
>>
>> [2016-06-20 15:11:10,723] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
>> "[\r][\n]"
>>
>> [2016-06-20 15:11:10,731]  WARN - JacksonJSONSchema Element name not
>> found : jsonObject
>>
>> [2016-06-20 15:11:10,732]  WARN - JacksonJSONSchema Element name not
>> found : jsonObject
>>
>> [2016-06-20 15:11:10,732] ERROR - SequenceMediator java.lang.String
>> cannot be cast to java.util.Map
>>
>> java.lang.ClassCastException: java.lang.String cannot be cast to
>> java.util.Map
>>
>> at
>> org.wso2.carbon.mediator.datamapper.engine.core.schemas.JacksonJSONSchema.getElementTypeByName(JacksonJSONSchema.java:111)
>>
>> at
>> org.wso2.carbon.mediator.datamapper.engine.input.readers.XMLReader.startElement(XMLReader.java:141)
>>
>> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>> Source)
>>
>> at
>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
>> Source)
>>
>> at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>> Source)
>>
>> at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>> Source)
>>
>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>
>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>
>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>
>> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>>
>> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>> Source)
>>
>> at
>> org.wso2.carbon.mediator.datamapper.engine.input.readers.XMLReader.read(XMLReader.java:95)
>>
>> at
>> org.wso2.carbon.mediator.datamapper.engine.input.InputModelBuilder.buildInputModel(InputModelBuilder.java:52)
>>
>> at
>> org.wso2.carbon.mediator.datamapper.engine.core.mapper.MappingHandler.doMap(MappingHandler.java:59)
>>
>> at
>> org.wso2.carbon.mediator.datamapper.DataMapperMediator.transform(DataMapperMediator.java:245)
>>
>> at
>> org.wso2.carbon.mediator.datamapper.DataMapperMediator.mediate(DataMapperMediator.java:217)
>>
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:87)
>>
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:292)
>>
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:774)
>>
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:282)
>>
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:546)
>>
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:179)
>>
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>
>> at
>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:255)
>>
>> at
>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>
>> at
>> 

Re: [Dev] [Analytics] Error running server.sh script with spaces in the directory path

2016-06-20 Thread Niranjan Karunanandham
On Mon, Jun 20, 2016 at 3:48 PM, Dulindra Wijethilake 
wrote:

> Hi Niranjan,
>
> Yes it is a mac. Tested with a fresh a Carbon 4.4.3 and didn't find any
> issues in booting it up.
>
Hmm.. Looks like this is not an issue with the kernel pack. We need to
check if the wso2server.sh IS Analytics is the same as that of the Kernel.


>
>
> Regards,
> Dulindra
>
> On Mon, Jun 20, 2016 at 3:22 PM, Niranjan Karunanandham  > wrote:
>
>> Hi Dulindra,
>>
>> Tested it in fresh Carbon 4.4.3 with folder names with spaces in Ubuntu.
>> I believe you are using Mac. Can you test if the same issue is there when
>> you use Kernel 4.4.3 in Mac?
>>
>> Regards,
>> Nira
>>
>> On Mon, Jun 20, 2016 at 3:17 PM, Dulindra Wijethilake 
>> wrote:
>>
>>> Hi Niranjan,
>>> It seems IS analytics is based on Carbon 4.4.3.
>>>
>>> @DAS team,
>>> Do we have any plans to update the carbon version to a newer version?
>>>
>>> On Mon, Jun 20, 2016 at 3:02 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Dulindra,

 This was a known issue in windows and we have fixed it by using the
 short path. I have tested with spaces in the folder name for Kenerl 4.4.5
 in Ubuntu 14.04 (with JDK Oracle 1.7) and I did not get any issues. Will
 you be able to verify this in Kernel 4.4.5?

 Regardsm
 Nira

 On Mon, Jun 20, 2016 at 2:33 PM, Dulindra Wijethilake <
 dulin...@wso2.com> wrote:

> Hi All,
>
> While trying to run IS Analytics [1], I got the error below:
>
> *..*
>
> *Dulindras-MacBook-Pro:bin dulindrawijethilake$ sh wso2server.sh*
>
> *JAVA_HOME environment variable is set to
> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home*
>
> *CARBON_HOME environment variable is set to
> /Users/dulindrawijethilake/Documents/WSO2 - Products/IS/IS
> Analytics/wso2analytics-is-1.0.0-beta*
>
> *wso2server.sh: line 286: /Users/dulindrawijethilake/Documents/WSO2:
> No such file or directory*
>
> *.*
>
> I realized that there is an issue with the wso2server.sh script when
> there are spaces used in the directory path. Once spaces were removed, the
> script worked as expected.
>
> Is this something already known which we have addressed in the kernel?
>
>
>
> [1]
> https://github.com/wso2/analytics-is/releases/download/v1.0.0-beta/wso2analytics-is-1.0.0-beta.zip
>
> --
> Dulindra Wijethilake
> Senior Product Manager
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
> mobile- +94 71 312 0005
>



 --


 *Niranjan Karunanandham*
 Associate Technical Lead - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> Dulindra Wijethilake
>>> Senior Product Manager
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> mobile- +94 71 312 0005
>>>
>>
>>
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> Dulindra Wijethilake
> Senior Product Manager
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
> mobile- +94 71 312 0005
>


Regards,
Nira

-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Kubernetes and developer studio

2016-06-20 Thread Ramon Gordillo
Hi.

Has anyone connected directly Developer Studio with any carbon product
deployed in kubernetes as a remote server?

If so, which ports should be configured in dev studio?

Thanks.

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


Re: [Dev] ClassCastException when using datamapper

2016-06-20 Thread Nuwan Pallewela
Hi Keerthika,

What is the ESB version you are using?

Thanks,
Nuwan

On Mon, Jun 20, 2016 at 4:03 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi All,
>
> I am getting the following error when I used data mapper to create an
> integration scenario. I installed the tool from
> http://builder1.us1.wso2.org/~developerstudio/devstudio-tooling-esb/5.0.0/Beta/composite/
> and used input output schema from jira and pagerduty connector schema.
>
> I have added the proxy and data mapper configuration at the end.
>
> What could be the reason for the following error?
>
> [2016-06-20 15:11:10,720] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
> "[\r][\n]"
>
> [2016-06-20 15:11:10,720] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
> "352[\r][\n]"
>
> [2016-06-20 15:11:10,721] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >> "
> {"id":"PS9VE7M","incident_number":3,"created_on":"2016-06-15T11:33:51Z","status":"resolved","pending_actions":[],"html_url":"
> https://connectordemo.pagerduty.com/incidents/PS9VE7M
> ","incident_key":"3c45415469ed415d8137b8ea9fe2fc03","service":{"id":"P4OWETP","name":"testService","html_url":"
> https://connectordemo.pagerduty.com/services/P4OWETP","deleted_at":null,"description":"This
> is for testing
> purpose"},"escalation_policy":{"id":"PDJQDGY","name":"Default","deleted_at":null},"assigned_to_user":null,"trigger_summary_data":{"subject":"serviceTest"},"trigger_details_html_url":"
> https://connectordemo.pagerduty.com/incidents/PS9VE7M/log_entries/Q324O08PK4VLJV
> ","trigger_type":"web_trigger","last_status_change_on":"2016-06-15T15:33:51Z","last_status_change_by":null,"number_of_escalations":0,"resolved_by_user":null,"assigned_to":[],"urgency":"high"}
> [\r][\n]"
>
> [2016-06-20 15:11:10,722] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
> "0[\r][\n]"
>
> [2016-06-20 15:11:10,723] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
> "[\r][\n]"
>
> [2016-06-20 15:11:10,731]  WARN - JacksonJSONSchema Element name not found
> : jsonObject
>
> [2016-06-20 15:11:10,732]  WARN - JacksonJSONSchema Element name not found
> : jsonObject
>
> [2016-06-20 15:11:10,732] ERROR - SequenceMediator java.lang.String cannot
> be cast to java.util.Map
>
> java.lang.ClassCastException: java.lang.String cannot be cast to
> java.util.Map
>
> at
> org.wso2.carbon.mediator.datamapper.engine.core.schemas.JacksonJSONSchema.getElementTypeByName(JacksonJSONSchema.java:111)
>
> at
> org.wso2.carbon.mediator.datamapper.engine.input.readers.XMLReader.startElement(XMLReader.java:141)
>
> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
>
> at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>
> at
> org.wso2.carbon.mediator.datamapper.engine.input.readers.XMLReader.read(XMLReader.java:95)
>
> at
> org.wso2.carbon.mediator.datamapper.engine.input.InputModelBuilder.buildInputModel(InputModelBuilder.java:52)
>
> at
> org.wso2.carbon.mediator.datamapper.engine.core.mapper.MappingHandler.doMap(MappingHandler.java:59)
>
> at
> org.wso2.carbon.mediator.datamapper.DataMapperMediator.transform(DataMapperMediator.java:245)
>
> at
> org.wso2.carbon.mediator.datamapper.DataMapperMediator.mediate(DataMapperMediator.java:217)
>
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:87)
>
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:292)
>
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:774)
>
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:282)
>
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:546)
>
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:179)
>
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:255)
>
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>
> at java.lang.Thread.run(Thread.java:722)
>
> *Proxy Service:*
>
> 
> http://ws.apache.org/ns/synapse;
> 

Re: [Dev] Maintaining the order for XML payloads in JSON schema - Data Mapper

2016-06-20 Thread Sohani Weerasinghe
Thanks Chanaka for the input

Regards,
Sohani

Sohani Weerasinghe
Senior Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Mon, Jun 20, 2016 at 4:20 PM, Chanaka Fernando  wrote:

> Hi Sohani,
>
> +1 to use LinkedHashMaps instead of HashMaps since former make sure the
> order of the items as you have mentioned. LinkedHashMaps has a higher
> memory footprint but it has a better performance when accessing values in
> the map (refer [1]). If we need a guarantee in the order of items we insert
> into the map, there is no option than using the LinkedHashMap.
>
> [1]
> http://stackoverflow.com/questions/12998568/hashmap-vs-linkedhashmap-performance-in-iteration-over-values
>
> Thanks,
> Chanaka
>
> On Mon, Jun 20, 2016 at 2:51 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> We are in a process of $subject and the main issue we faced in generating
>> the json schema was as follows.
>>
>> When generating the json schema we mainly convert the xml to json and the
>> xml to json conversion does not guarantee the order since json object is an
>> unordered set of name/value pairs [1].
>>
>> The main reason is the usage of HashMaps instead of LinkedHashMaps in
>> instantiating the JSONObjects and we could solve the issue by using the
>> LinkedHashMaps.
>>
>> This issue again occurs in serializing the schema while iterating through
>> the gmf tree, since we are generating the schema by creating the
>> JSONObjects and JSONArrays appropriately. We could solve this issue as well
>> by using the above solution and as a result, the generated tree and the
>> schema will maintain the order of the XML payload
>>
>> [1]
>> http://stackoverflow.com/questions/26034370/inverted-order-of-json-elements-in-java-after-xml-conversion
>>
>> Thanks,
>> Sohani
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issues with MB build sequence

2016-06-20 Thread Asanka Abeyweera
+1 for the option 1, since no one else is using these components other than
MB. But we should have separate modules for each (MB-Core, AMQP transport
and MQTT transport) inside MB repo.

On Mon, Jun 20, 2016 at 3:40 PM, Asitha Nanayakkara  wrote:

> Hi all,
>
> With the recent effort to decouple MB core from Qpid code we have moved
> all the core functionalities of the broker, which are not relevant to
> transports to product-mb repo [1] And kept all the Qpid related code in
> andes repo [2]. Now the MB core has zero dependency to its transports.
>
> Dependency structure of components is as follows,
>
>
> ​
> *Issue:*
> With the current changes we can't build the Andes repo first since we need
> to build the MB core before that. When it comes to the product-mb repo,
> AMQP component requires Andes repo to be built before AMQP component. Hence
> a cyclic dependency for the build process.
>
> *Solutions:*
> To overcome this probable solutions we came up with are,
>
>1. Move Qpid code to the AMQP component to avoid the cyclic dependency
>for build process.
>2. Have separate repositories for Qpid code (andes repo), AMQP, MQTT
>and MB core so that we can build MB core first and then the transports
>
> What would be the best approach?
>
>
> [1] https://github.com/wso2/product-mb
> [2] https://github.com/wso2/andes
>
> Regards,
> Asitha
> --
> *Asitha Nanayakkara*
> Senior Software Engineer
> WSO2, Inc. http://wso2.com/
> Mob: +94 77 853 0682
>
>


-- 
Asanka Abeyweera
Software Engineer
WSO2 Inc.

Phone: +94 712228648
Blog: a5anka.github.io
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Maintaining the order for XML payloads in JSON schema - Data Mapper

2016-06-20 Thread Chanaka Fernando
Hi Sohani,

+1 to use LinkedHashMaps instead of HashMaps since former make sure the
order of the items as you have mentioned. LinkedHashMaps has a higher
memory footprint but it has a better performance when accessing values in
the map (refer [1]). If we need a guarantee in the order of items we insert
into the map, there is no option than using the LinkedHashMap.

[1]
http://stackoverflow.com/questions/12998568/hashmap-vs-linkedhashmap-performance-in-iteration-over-values

Thanks,
Chanaka

On Mon, Jun 20, 2016 at 2:51 PM, Sohani Weerasinghe  wrote:

> Hi All,
>
> We are in a process of $subject and the main issue we faced in generating
> the json schema was as follows.
>
> When generating the json schema we mainly convert the xml to json and the
> xml to json conversion does not guarantee the order since json object is an
> unordered set of name/value pairs [1].
>
> The main reason is the usage of HashMaps instead of LinkedHashMaps in
> instantiating the JSONObjects and we could solve the issue by using the
> LinkedHashMaps.
>
> This issue again occurs in serializing the schema while iterating through
> the gmf tree, since we are generating the schema by creating the
> JSONObjects and JSONArrays appropriately. We could solve this issue as well
> by using the above solution and as a result, the generated tree and the
> schema will maintain the order of the XML payload
>
> [1]
> http://stackoverflow.com/questions/26034370/inverted-order-of-json-elements-in-java-after-xml-conversion
>
> Thanks,
> Sohani
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>



-- 
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ClassCastException when using datamapper

2016-06-20 Thread Keerthika Mahendralingam
Hi All,

I am getting the following error when I used data mapper to create an
integration scenario. I installed the tool from
http://builder1.us1.wso2.org/~developerstudio/devstudio-tooling-esb/5.0.0/Beta/composite/
and used input output schema from jira and pagerduty connector schema.

I have added the proxy and data mapper configuration at the end.

What could be the reason for the following error?

[2016-06-20 15:11:10,720] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
"[\r][\n]"

[2016-06-20 15:11:10,720] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
"352[\r][\n]"

[2016-06-20 15:11:10,721] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >> "
{"id":"PS9VE7M","incident_number":3,"created_on":"2016-06-15T11:33:51Z","status":"resolved","pending_actions":[],"html_url":"
https://connectordemo.pagerduty.com/incidents/PS9VE7M
","incident_key":"3c45415469ed415d8137b8ea9fe2fc03","service":{"id":"P4OWETP","name":"testService","html_url":"
https://connectordemo.pagerduty.com/services/P4OWETP","deleted_at":null,"description":"This
is for testing
purpose"},"escalation_policy":{"id":"PDJQDGY","name":"Default","deleted_at":null},"assigned_to_user":null,"trigger_summary_data":{"subject":"serviceTest"},"trigger_details_html_url":"
https://connectordemo.pagerduty.com/incidents/PS9VE7M/log_entries/Q324O08PK4VLJV
","trigger_type":"web_trigger","last_status_change_on":"2016-06-15T15:33:51Z","last_status_change_by":null,"number_of_escalations":0,"resolved_by_user":null,"assigned_to":[],"urgency":"high"}
[\r][\n]"

[2016-06-20 15:11:10,722] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
"0[\r][\n]"

[2016-06-20 15:11:10,723] DEBUG - wire HTTPS-Sender I/O dispatcher-3 >>
"[\r][\n]"

[2016-06-20 15:11:10,731]  WARN - JacksonJSONSchema Element name not found
: jsonObject

[2016-06-20 15:11:10,732]  WARN - JacksonJSONSchema Element name not found
: jsonObject

[2016-06-20 15:11:10,732] ERROR - SequenceMediator java.lang.String cannot
be cast to java.util.Map

java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.Map

at
org.wso2.carbon.mediator.datamapper.engine.core.schemas.JacksonJSONSchema.getElementTypeByName(JacksonJSONSchema.java:111)

at
org.wso2.carbon.mediator.datamapper.engine.input.readers.XMLReader.startElement(XMLReader.java:141)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

at
org.wso2.carbon.mediator.datamapper.engine.input.readers.XMLReader.read(XMLReader.java:95)

at
org.wso2.carbon.mediator.datamapper.engine.input.InputModelBuilder.buildInputModel(InputModelBuilder.java:52)

at
org.wso2.carbon.mediator.datamapper.engine.core.mapper.MappingHandler.doMap(MappingHandler.java:59)

at
org.wso2.carbon.mediator.datamapper.DataMapperMediator.transform(DataMapperMediator.java:245)

at
org.wso2.carbon.mediator.datamapper.DataMapperMediator.mediate(DataMapperMediator.java:217)

at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:87)

at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:292)

at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:774)

at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:282)

at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:546)

at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:179)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)

at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:255)

at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:722)

*Proxy Service:*


http://ws.apache.org/ns/synapse;
   name="createIssue"
   transports="https,http"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   
  
 
PS9VE7M
 
 
 
{json-eval($.issueFields)}
 
 
  
  
  
   
   


*pdJiraConfig.dmc:*

function map_S_root_S_root( ){
var outputroot={};


outputroot 

Re: [Dev] [Analytics] Error running server.sh script with spaces in the directory path

2016-06-20 Thread Dulindra Wijethilake
Hi Niranjan,

Yes it is a mac. Tested with a fresh a Carbon 4.4.3 and didn't find any
issues in booting it up.


Regards,
Dulindra

On Mon, Jun 20, 2016 at 3:22 PM, Niranjan Karunanandham 
wrote:

> Hi Dulindra,
>
> Tested it in fresh Carbon 4.4.3 with folder names with spaces in Ubuntu. I
> believe you are using Mac. Can you test if the same issue is there when you
> use Kernel 4.4.3 in Mac?
>
> Regards,
> Nira
>
> On Mon, Jun 20, 2016 at 3:17 PM, Dulindra Wijethilake 
> wrote:
>
>> Hi Niranjan,
>> It seems IS analytics is based on Carbon 4.4.3.
>>
>> @DAS team,
>> Do we have any plans to update the carbon version to a newer version?
>>
>> On Mon, Jun 20, 2016 at 3:02 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Dulindra,
>>>
>>> This was a known issue in windows and we have fixed it by using the
>>> short path. I have tested with spaces in the folder name for Kenerl 4.4.5
>>> in Ubuntu 14.04 (with JDK Oracle 1.7) and I did not get any issues. Will
>>> you be able to verify this in Kernel 4.4.5?
>>>
>>> Regardsm
>>> Nira
>>>
>>> On Mon, Jun 20, 2016 at 2:33 PM, Dulindra Wijethilake >> > wrote:
>>>
 Hi All,

 While trying to run IS Analytics [1], I got the error below:

 *..*

 *Dulindras-MacBook-Pro:bin dulindrawijethilake$ sh wso2server.sh*

 *JAVA_HOME environment variable is set to
 /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home*

 *CARBON_HOME environment variable is set to
 /Users/dulindrawijethilake/Documents/WSO2 - Products/IS/IS
 Analytics/wso2analytics-is-1.0.0-beta*

 *wso2server.sh: line 286: /Users/dulindrawijethilake/Documents/WSO2: No
 such file or directory*

 *.*

 I realized that there is an issue with the wso2server.sh script when
 there are spaces used in the directory path. Once spaces were removed, the
 script worked as expected.

 Is this something already known which we have addressed in the kernel?



 [1]
 https://github.com/wso2/analytics-is/releases/download/v1.0.0-beta/wso2analytics-is-1.0.0-beta.zip

 --
 Dulindra Wijethilake
 Senior Product Manager
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware
 mobile- +94 71 312 0005

>>>
>>>
>>>
>>> --
>>>
>>>
>>> *Niranjan Karunanandham*
>>> Associate Technical Lead - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> Dulindra Wijethilake
>> Senior Product Manager
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>> mobile- +94 71 312 0005
>>
>
>
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 
Dulindra Wijethilake
Senior Product Manager
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware
mobile- +94 71 312 0005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Omindu Rathnaweera
Hi,


> All the passwords which are supposed to store in this table are old
>> passwords (expired).
>>
>> - I think we don't need to use the same  password hashing algorithm (with
>> or without salted value) which is defined user-mgt.xml for password history
>> validation.
>>
>
> IMO using the same hashing algo is cleaner. Isn't the current password
> also stored in this table? If stored, it's mandatory to use salting.
>

I believe we should use either the hashing algorithm specified in the
user-mgt.xml or provide a separate config to specify a hashing algo for
password history.

Consider the following scenario.

Let's say we have specified the hashing algo in user-mgt.xml as SHA-512 and
we use SHA-256 (hard coded) to store old passwords. Given that the user has
the option to maintain the old password during a periodic password reset,
then the old password will be the same as the existing password if the user
decides to stick with the old password. Now, in the history table the
current password will be stored in a much weaker hash. This doesn't seems
right, does it ? Also using the hashing algorithm specified in the
user-mgt.xml or a different config means that we'll have to store the
hashing algo in the history table.

Regards,
Omindu.


>
>
>> - admin users can change other user's passwords without giving their old
>> passwords. In that case, how can we find the old password hash value to
>> store for password history validation?
>>
>>
>> Your comments and suggestions are highly appreciated.
>>
>> Thanks
>> Isura.
>>
>>
>> Isura Dilhara Karunaratne
>> Senior Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>
>
> --
> Thanks & Regards,
> Dulanja Liyanage
> Lead, Platform Security Team
> WSO2 Inc.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Omindu Rathnaweera
Software Engineer, WSO2 Inc.
Mobile: +94 771 197 211
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issues with MB build sequence

2016-06-20 Thread Asitha Nanayakkara
Hi all,

With the recent effort to decouple MB core from Qpid code we have moved all
the core functionalities of the broker, which are not relevant to
transports to product-mb repo [1] And kept all the Qpid related code in
andes repo [2]. Now the MB core has zero dependency to its transports.

Dependency structure of components is as follows,


​
*Issue:*
With the current changes we can't build the Andes repo first since we need
to build the MB core before that. When it comes to the product-mb repo,
AMQP component requires Andes repo to be built before AMQP component. Hence
a cyclic dependency for the build process.

*Solutions:*
To overcome this probable solutions we came up with are,

   1. Move Qpid code to the AMQP component to avoid the cyclic dependency
   for build process.
   2. Have separate repositories for Qpid code (andes repo), AMQP, MQTT and
   MB core so that we can build MB core first and then the transports

What would be the best approach?


[1] https://github.com/wso2/product-mb
[2] https://github.com/wso2/andes

Regards,
Asitha
-- 
*Asitha Nanayakkara*
Senior Software Engineer
WSO2, Inc. http://wso2.com/
Mob: +94 77 853 0682
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Isura Karunaratne
Hi Dulanja,

On Mon, Jun 20, 2016 at 12:14 PM, Dulanja Liyanage  wrote:

>
>
> On Mon, Jun 20, 2016 at 12:11 PM, Dulanja Liyanage 
> wrote:
>
>>
>>
>> On Mon, Jun 20, 2016 at 10:52 AM, Isura Karunaratne 
>> wrote:
>>
>>> HI all,
>>>
>>> I am working on $subject for WSO2 Identity Sever 5.3.0 release.
>>> Following are the currently identified improvements,
>>>
>>>
>>>- Password History -
>>>
>>> Last 'n' number of passwords need to be maintained in user's history.
>>> When user updates his password we don't allow him to choose one of these
>>> 'n' passwords again.
>>>
>>>
>>>- Periodic Password Reset -
>>>
>>> Force the user to periodically (configurable period) reset his password.
>>> When doing this we need to leverage the password history feature as well.
>>>
>>>
> There can be a requirement where the system forces the user to change the
> password, but at the same time give him the option to use the old password.
> I've seen some financial organizations doing this.
>
If we are going to support this cofiguration, I think it is better to user
same hashing method.


>
>>>
>>> CREATE TABLE IF NOT EXISTS idn_password_history_data
>>>  (
>>>   user_name   *VARCHAR*(255) NOT NULL,
>>>   user_domain *VARCHAR*(255) NOT NULL,
>>>   tenant_id   *INTEGER* DEFAULT -1,
>>>   hash*VARCHAR*(255) NOT NULL,
>>>   time_created *TIMESTAMP* NOT NULL DEFAULT
>>> CURRENT_TIMESTAMP,
>>>   PRIMARY KEY (user_name,user_domain,tenant_id,
>>> hash),
>>>  )
>>>
>>>
>>> All the passwords which are supposed to store in this table are old
>>> passwords (expired).
>>>
>>> - I think we don't need to use the same  password hashing algorithm
>>> (with or without salted value) which is defined user-mgt.xml for password
>>> history validation.
>>>
>>
>> IMO using the same hashing algo is cleaner. Isn't the current password
>> also stored in this table? If stored, it's mandatory to use salting.
>>
> Current password will not store in the new table.

>
>>
>>> - admin users can change other user's passwords without giving their old
>>> passwords. In that case, how can we find the old password hash value to
>>> store for password history validation?
>>>
>>>
>>> Your comments and suggestions are highly appreciated.
>>>
>>> Thanks
>>> Isura.
>>>
>>>
>>> Isura Dilhara Karunaratne
>>> Senior Software Engineer
>>>
>>> Mob +94 772 254 810
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Dulanja Liyanage
>> Lead, Platform Security Team
>> WSO2 Inc.
>>
>
>
>
> --
> Thanks & Regards,
> Dulanja Liyanage
> Lead, Platform Security Team
> WSO2 Inc.
>



-- 
Isura Dilhara Karunaratne
Senior Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Analytics] Error running server.sh script with spaces in the directory path

2016-06-20 Thread Niranjan Karunanandham
Hi Dulindra,

Tested it in fresh Carbon 4.4.3 with folder names with spaces in Ubuntu. I
believe you are using Mac. Can you test if the same issue is there when you
use Kernel 4.4.3 in Mac?

Regards,
Nira

On Mon, Jun 20, 2016 at 3:17 PM, Dulindra Wijethilake 
wrote:

> Hi Niranjan,
> It seems IS analytics is based on Carbon 4.4.3.
>
> @DAS team,
> Do we have any plans to update the carbon version to a newer version?
>
> On Mon, Jun 20, 2016 at 3:02 PM, Niranjan Karunanandham  > wrote:
>
>> Hi Dulindra,
>>
>> This was a known issue in windows and we have fixed it by using the short
>> path. I have tested with spaces in the folder name for Kenerl 4.4.5 in
>> Ubuntu 14.04 (with JDK Oracle 1.7) and I did not get any issues. Will you
>> be able to verify this in Kernel 4.4.5?
>>
>> Regardsm
>> Nira
>>
>> On Mon, Jun 20, 2016 at 2:33 PM, Dulindra Wijethilake 
>> wrote:
>>
>>> Hi All,
>>>
>>> While trying to run IS Analytics [1], I got the error below:
>>>
>>> *..*
>>>
>>> *Dulindras-MacBook-Pro:bin dulindrawijethilake$ sh wso2server.sh*
>>>
>>> *JAVA_HOME environment variable is set to
>>> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home*
>>>
>>> *CARBON_HOME environment variable is set to
>>> /Users/dulindrawijethilake/Documents/WSO2 - Products/IS/IS
>>> Analytics/wso2analytics-is-1.0.0-beta*
>>>
>>> *wso2server.sh: line 286: /Users/dulindrawijethilake/Documents/WSO2: No
>>> such file or directory*
>>>
>>> *.*
>>>
>>> I realized that there is an issue with the wso2server.sh script when
>>> there are spaces used in the directory path. Once spaces were removed, the
>>> script worked as expected.
>>>
>>> Is this something already known which we have addressed in the kernel?
>>>
>>>
>>>
>>> [1]
>>> https://github.com/wso2/analytics-is/releases/download/v1.0.0-beta/wso2analytics-is-1.0.0-beta.zip
>>>
>>> --
>>> Dulindra Wijethilake
>>> Senior Product Manager
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> mobile- +94 71 312 0005
>>>
>>
>>
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> Dulindra Wijethilake
> Senior Product Manager
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
> mobile- +94 71 312 0005
>



-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Analytics] Error running server.sh script with spaces in the directory path

2016-06-20 Thread Dulindra Wijethilake
Hi Niranjan,
It seems IS analytics is based on Carbon 4.4.3.

@DAS team,
Do we have any plans to update the carbon version to a newer version?

On Mon, Jun 20, 2016 at 3:02 PM, Niranjan Karunanandham 
wrote:

> Hi Dulindra,
>
> This was a known issue in windows and we have fixed it by using the short
> path. I have tested with spaces in the folder name for Kenerl 4.4.5 in
> Ubuntu 14.04 (with JDK Oracle 1.7) and I did not get any issues. Will you
> be able to verify this in Kernel 4.4.5?
>
> Regardsm
> Nira
>
> On Mon, Jun 20, 2016 at 2:33 PM, Dulindra Wijethilake 
> wrote:
>
>> Hi All,
>>
>> While trying to run IS Analytics [1], I got the error below:
>>
>> *..*
>>
>> *Dulindras-MacBook-Pro:bin dulindrawijethilake$ sh wso2server.sh*
>>
>> *JAVA_HOME environment variable is set to
>> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home*
>>
>> *CARBON_HOME environment variable is set to
>> /Users/dulindrawijethilake/Documents/WSO2 - Products/IS/IS
>> Analytics/wso2analytics-is-1.0.0-beta*
>>
>> *wso2server.sh: line 286: /Users/dulindrawijethilake/Documents/WSO2: No
>> such file or directory*
>>
>> *.*
>>
>> I realized that there is an issue with the wso2server.sh script when
>> there are spaces used in the directory path. Once spaces were removed, the
>> script worked as expected.
>>
>> Is this something already known which we have addressed in the kernel?
>>
>>
>>
>> [1]
>> https://github.com/wso2/analytics-is/releases/download/v1.0.0-beta/wso2analytics-is-1.0.0-beta.zip
>>
>> --
>> Dulindra Wijethilake
>> Senior Product Manager
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>> mobile- +94 71 312 0005
>>
>
>
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 
Dulindra Wijethilake
Senior Product Manager
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware
mobile- +94 71 312 0005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove the heading-label of collapsible Metadata menu specific UI features on Carbon Mgt Console

2016-06-20 Thread Samitha Chathuranga
Hi Thusitha & All,

The feature you mentioned (
org.wso2.carbon.registry.ui.menu.governance.feature) too could not be
removed as it was required as a dependency for another feature.

Anyway I could solve the issue via a different approach.  I didn't remove
any feature at all. (removing org.wso2.carbon.governance.metadata.ui.feature
too caused the removal of Custom View of asset rxt in mgt console). Menus
(such as Meta Data menu) to displayed in the mgt console ui, are defined
in  /repository/resources/component.xml.

So what I did was replacing that
/repository/resources/component.xml in the product
distribution package (zip) in build-time so that it won't contain
metadata_menu element or its sub elements. Replacement was done by the
modules/distribution/pom.xml. This solution might not be the most
efficient, but was the only solution found.

Thanks for the suggestions and support.

Regards


On Tue, Jun 14, 2016 at 12:17 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Samitha,
>
> AFAIU this is coming from org.wso2.carbon.ui.menu.governance component
> and it packs with org.wso2.carbon.registry.ui.menu.governance.feature[1]
> Can you try to remove that and check if the menu still available?
>
> [1] -
> https://github.com/wso2/carbon-registry/blob/master/features/registry-core/org.wso2.carbon.registry.ui.menu.governance.feature/pom.xml
> 
>
> Thanks
>
> On Mon, Jun 13, 2016 at 12:31 PM, Samitha Chathuranga 
> wrote:
>
>> Hi Denuwanthi,
>>
>> Thanks for the suggestion. I removed the lifecycle UI feature too and the
>> build is now ok. We will consider about the permission restriction for the
>> expected requirement.
>>
>> Regards.
>>
>> On Mon, Jun 13, 2016 at 12:07 PM, Denuwanthi De Silva <
>> denuwan...@wso2.com> wrote:
>>
>>> Hi Samitha,
>>>
>>> Since you don't need meta data ui, there is no point of having a
>>> lifecycle ui as well(as there are no metadata view to do lifecycle
>>> operations). Then you can go on and remove the lifecycle UI feature and
>>> just use the lifecycle server feature.
>>>
>>> Anyway, the kind of requirement you need, can be achieved via permission
>>> management.
>>> That is, you restrict the permissions to WSO2 PC users/roles according
>>> to the operations you want to be restricted to each role. So some roles
>>> will not be able to modify metadata etc.
>>>
>>>
>>> Thanks.
>>>
>>> On Mon, Jun 13, 2016 at 11:50 AM, Samitha Chathuranga 
>>> wrote:
>>>
 Hi Denuwanthi,

 This is the error log.

 Cannot complete the install because one or more required items could
 not be found.
  Software being installed: WSO2 Carbon - Governance Lifecycle
 Management Feature 4.6.4.SNAPSHOT
 (org.wso2.carbon.governance.lifecycle.management.feature.group
 4.6.4.SNAPSHOT)
  Missing requirement: WSO2 Carbon - Governance Lifecycle Management UI
 Feature 4.6.4.SNAPSHOT
 (org.wso2.carbon.governance.lifecycle.management.ui.feature.group
 4.6.4.SNAPSHOT) requires
 'org.wso2.carbon.registry.extensions.ui.feature.group
 [4.6.4.SNAPSHOT,4.7.0)' but it could not be found
  Cannot satisfy dependency:
   From: WSO2 Carbon - Governance Lifecycle Management Feature
 4.6.4.SNAPSHOT
 (org.wso2.carbon.governance.lifecycle.management.feature.group
 4.6.4.SNAPSHOT)
   To: org.wso2.carbon.governance.lifecycle.management.ui.feature.group
 [4.6.4.SNAPSHOT]
 Application failed, log file location:
 /home/samithac/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1465798066460.log
 .

 Anyway I am not sure that the solution for my task is removing
 org.wso2.carbon.registry.extensions.ui.feature. Because it seems that other
 features need it and so we cannot remove it.

 Thanks.


 On Mon, Jun 13, 2016 at 11:34 AM, Denuwanthi De Silva <
 denuwan...@wso2.com> wrote:

> Hi Samitha,
>
> Can you mention the error log you get when the build fails (when
> removing org.wso2.carbon.registry.extensions.ui.feature)?
>
> Thanks
>
> On Mon, Jun 13, 2016 at 11:25 AM, Samitha Chathuranga <
> sami...@wso2.com> wrote:
>
>> Hi,
>>
>> I wanted to remove Main - > Metadata section on the mgt console (In
>> WSO2 PC). So I removed,
>>
>> org.wso2.carbon.governance.metadata.ui.feature
>> ( by removing, org.wso2.carbon.governance.metadata.feature and adding 
>> org.wso2.carbon.governance.metadata.server.feature.)
>>
>> But this was half a success as it removed all the sub links / buttons 
>> under "Metadata" section, but the specific collapsible menu (only with 
>> the heading label) is still left. So I want to remove that empty 
>> collapsible Metadata
>> menu heading too. How to do 

Re: [Dev] [Analytics] Error running server.sh script with spaces in the directory path

2016-06-20 Thread Niranjan Karunanandham
Hi Dulindra,

This was a known issue in windows and we have fixed it by using the short
path. I have tested with spaces in the folder name for Kenerl 4.4.5 in
Ubuntu 14.04 (with JDK Oracle 1.7) and I did not get any issues. Will you
be able to verify this in Kernel 4.4.5?

Regardsm
Nira

On Mon, Jun 20, 2016 at 2:33 PM, Dulindra Wijethilake 
wrote:

> Hi All,
>
> While trying to run IS Analytics [1], I got the error below:
>
> *..*
>
> *Dulindras-MacBook-Pro:bin dulindrawijethilake$ sh wso2server.sh*
>
> *JAVA_HOME environment variable is set to
> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home*
>
> *CARBON_HOME environment variable is set to
> /Users/dulindrawijethilake/Documents/WSO2 - Products/IS/IS
> Analytics/wso2analytics-is-1.0.0-beta*
>
> *wso2server.sh: line 286: /Users/dulindrawijethilake/Documents/WSO2: No
> such file or directory*
>
> *.*
>
> I realized that there is an issue with the wso2server.sh script when there
> are spaces used in the directory path. Once spaces were removed, the script
> worked as expected.
>
> Is this something already known which we have addressed in the kernel?
>
>
>
> [1]
> https://github.com/wso2/analytics-is/releases/download/v1.0.0-beta/wso2analytics-is-1.0.0-beta.zip
>
> --
> Dulindra Wijethilake
> Senior Product Manager
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
> mobile- +94 71 312 0005
>



-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Maintaining the order for XML payloads in JSON schema - Data Mapper

2016-06-20 Thread Sohani Weerasinghe
Hi All,

We are in a process of $subject and the main issue we faced in generating
the json schema was as follows.

When generating the json schema we mainly convert the xml to json and the
xml to json conversion does not guarantee the order since json object is an
unordered set of name/value pairs [1].

The main reason is the usage of HashMaps instead of LinkedHashMaps in
instantiating the JSONObjects and we could solve the issue by using the
LinkedHashMaps.

This issue again occurs in serializing the schema while iterating through
the gmf tree, since we are generating the schema by creating the
JSONObjects and JSONArrays appropriately. We could solve this issue as well
by using the above solution and as a result, the generated tree and the
schema will maintain the order of the XML payload

[1]
http://stackoverflow.com/questions/26034370/inverted-order-of-json-elements-in-java-after-xml-conversion

Thanks,
Sohani
Sohani Weerasinghe
Senior Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Milan Perera
>
> My suggestion is: default should be to force the user and not give him/her
>> the option to use the old password, but make it configurable so the
>> scenarios I mentioned above could be catered, if required. WDYT?
>>
>
​+1 for having it as an configurable option​


-- 
*Milan Perera *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 77 309 7088 | Work: +94 11 214 5345
Email: mi...@wso2.com  | Web: www.wso2.com

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


Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-06-20 Thread Hasitha Aravinda
Hi Heshan,

Could you please update the code repository with your latest code ?

Thanks,
Hasitha.

On Mon, Jun 20, 2016 at 2:32 PM, Isuru Wijesinghe  wrote:

> Hi Heshan,
>
> Please update the meeting notes. In addition to that can you please share
> with us the milestone plan as we discussed in the last week.
>
> Thanks,
> Isuru.
>
> On Thu, May 26, 2016 at 11:04 PM, Heshan Jayasinghe 
> wrote:
>
>> github url - https://github.com/heshanjse/BPMNEditor
>>
>> On Thu, May 19, 2016 at 12:52 PM, Heshan Jayasinghe 
>> wrote:
>>
>>> Hi Isuru,
>>> I completed Start Event,End Event,Gateways and Task.Currently these
>>> component can move in the canvas.As we discussed in our last meeting I am
>>> working for packaging the current source code,drawing flows,component
>>> re-sizing,creating property window and adding text areas to Task
>>> component.After I applying packaging structure i will share my github
>>> code.Hope I can send it soon.
>>> Thank you,
>>> Regards,
>>> Heshan Jayasinghe
>>>
>>> On Wed, May 18, 2016 at 10:04 AM, Isuru Wijesinghe 
>>> wrote:
>>>
 Hi Heshan,

 Any update on your progress? Could you please share with us your code
 through github. Then we can give some feedback.

 Thanks,
 Isuru

 On Thu, Mar 24, 2016 at 1:23 PM, Heshan Jayasinghe 
 wrote:

> Hi,
> I submit my final proposal through GSOC site.Could you please read my
> proposal and add some comments.
> Thank you!
> regards,
> Heshan Jayasinghe
>
> On Wed, Mar 23, 2016 at 8:38 AM, Isuru Wijesinghe 
> wrote:
>
>> Hi Heshan,
>>
>> We have already added few comments. Could you please fix them and
>> share the updated proposal ?
>>
>> Thanks and Best Regards,
>>
>> On Fri, Mar 18, 2016 at 9:48 PM, Isuru Wijesinghe 
>> wrote:
>>
>>> Hi Heshan,
>>>
>>> We appreciate your quick response. The main deliverable of this
>>> project is a javascript/D3 based BPMN editor which allows Process Center
>>> users to define business processes using a graphical notation from the 
>>> *web
>>> UI*. (No server side involvement). Keep on progressing on the
>>> project and if you get stuck at any point, don't hesitate to contact us.
>>>
>>> Thanks and Best Regards,
>>>
>>>
>>> On Fri, Mar 18, 2016 at 11:35 AM, Heshan Jayasinghe <
>>> shanu...@gmail.com> wrote:
>>>
 HI,
 Could you please tell me how server side involve in this project?
 Web Editor can developed as a single page application and we can run 
 it in
 java server.hope this application haven't any server side
 development.Please let me know if there server side development 
 involve.if
 there any server side development i willing to complete that task too.

 I already complete my proposal and now I am doing final fine tuning
 of my proposal.I will send it tomorrow.from today onwards I start my
 development  for first iteration.

 Thank you!
 regards,
 Heshan Jayasinghe



 On Tue, Mar 15, 2016 at 9:37 AM, Isuru Wijesinghe  wrote:

> Great. My contact number :
>
>
> *0710933706*
> Thanks and Best Regards,
>
> On Tue, Mar 15, 2016 at 9:30 AM, Heshan Jayasinghe <
> shanu...@gmail.com> wrote:
>
>> Hi Isuru,
>> My proposal 70% over now.I will send you copy soon.could you
>> please send me your contact number to get more information.
>> Thank you!
>> regards,
>> Heshan jayasinghe
>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> WSO2 inc : http://wso2.com
> lean.enterprise.middleware
> Mobile: 0710933706
> isur...@wso2.com
>


>>>
>>>
>>> --
>>> Isuru Wijesinghe
>>> *Software Engineer*
>>> WSO2 inc : http://wso2.com
>>> lean.enterprise.middleware
>>> Mobile: 0710933706
>>> isur...@wso2.com
>>>
>>
>>
>>
>> --
>> Isuru Wijesinghe
>> *Software Engineer*
>> WSO2 inc : http://wso2.com
>> lean.enterprise.middleware
>> Mobile: 0710933706
>> isur...@wso2.com
>>
>
>


 --
 Isuru Wijesinghe
 *Software Engineer*
 WSO2 inc : http://wso2.com
 lean.enterprise.middleware
 Mobile: 0710933706
 isur...@wso2.com

>>>
>>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> WSO2 inc : http://wso2.com
> lean.enterprise.middleware
> Mobile: 0710933706
> isur...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> 

[Dev] [Analytics] Error running server.sh script with spaces in the directory path

2016-06-20 Thread Dulindra Wijethilake
Hi All,

While trying to run IS Analytics [1], I got the error below:

*..*

*Dulindras-MacBook-Pro:bin dulindrawijethilake$ sh wso2server.sh*

*JAVA_HOME environment variable is set to
/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home*

*CARBON_HOME environment variable is set to
/Users/dulindrawijethilake/Documents/WSO2 - Products/IS/IS
Analytics/wso2analytics-is-1.0.0-beta*

*wso2server.sh: line 286: /Users/dulindrawijethilake/Documents/WSO2: No
such file or directory*

*.*

I realized that there is an issue with the wso2server.sh script when there
are spaces used in the directory path. Once spaces were removed, the script
worked as expected.

Is this something already known which we have addressed in the kernel?



[1]
https://github.com/wso2/analytics-is/releases/download/v1.0.0-beta/wso2analytics-is-1.0.0-beta.zip

-- 
Dulindra Wijethilake
Senior Product Manager
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware
mobile- +94 71 312 0005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [GSoC Dockerfiles] Project status update

2016-06-20 Thread Abhishek Tiwari
Hi All,

I have completed the following tasks planned from last week:

1. Add the ability to read exposed ports from the Dockerfile
2. Modify the launch script to silence console log and redirect them to a
log file, which will later be parsed for any errors/warnings
3. Access WSO2 carbon logs from the container and report errors/exceptions

The changes are committed to the test framework repository [1]. I will demo
these on our next status meeting.  I am working towards tests specific for
ESB now.

Thanks
Abhishek

[1]. https://github.com/abhishek0198/test-framework
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-06-20 Thread Isuru Wijesinghe
Hi Heshan,

Please update the meeting notes. In addition to that can you please share
with us the milestone plan as we discussed in the last week.

Thanks,
Isuru.

On Thu, May 26, 2016 at 11:04 PM, Heshan Jayasinghe 
wrote:

> github url - https://github.com/heshanjse/BPMNEditor
>
> On Thu, May 19, 2016 at 12:52 PM, Heshan Jayasinghe 
> wrote:
>
>> Hi Isuru,
>> I completed Start Event,End Event,Gateways and Task.Currently these
>> component can move in the canvas.As we discussed in our last meeting I am
>> working for packaging the current source code,drawing flows,component
>> re-sizing,creating property window and adding text areas to Task
>> component.After I applying packaging structure i will share my github
>> code.Hope I can send it soon.
>> Thank you,
>> Regards,
>> Heshan Jayasinghe
>>
>> On Wed, May 18, 2016 at 10:04 AM, Isuru Wijesinghe 
>> wrote:
>>
>>> Hi Heshan,
>>>
>>> Any update on your progress? Could you please share with us your code
>>> through github. Then we can give some feedback.
>>>
>>> Thanks,
>>> Isuru
>>>
>>> On Thu, Mar 24, 2016 at 1:23 PM, Heshan Jayasinghe 
>>> wrote:
>>>
 Hi,
 I submit my final proposal through GSOC site.Could you please read my
 proposal and add some comments.
 Thank you!
 regards,
 Heshan Jayasinghe

 On Wed, Mar 23, 2016 at 8:38 AM, Isuru Wijesinghe 
 wrote:

> Hi Heshan,
>
> We have already added few comments. Could you please fix them and
> share the updated proposal ?
>
> Thanks and Best Regards,
>
> On Fri, Mar 18, 2016 at 9:48 PM, Isuru Wijesinghe 
> wrote:
>
>> Hi Heshan,
>>
>> We appreciate your quick response. The main deliverable of this
>> project is a javascript/D3 based BPMN editor which allows Process Center
>> users to define business processes using a graphical notation from the 
>> *web
>> UI*. (No server side involvement). Keep on progressing on the
>> project and if you get stuck at any point, don't hesitate to contact us.
>>
>> Thanks and Best Regards,
>>
>>
>> On Fri, Mar 18, 2016 at 11:35 AM, Heshan Jayasinghe <
>> shanu...@gmail.com> wrote:
>>
>>> HI,
>>> Could you please tell me how server side involve in this project?
>>> Web Editor can developed as a single page application and we can run it 
>>> in
>>> java server.hope this application haven't any server side
>>> development.Please let me know if there server side development 
>>> involve.if
>>> there any server side development i willing to complete that task too.
>>>
>>> I already complete my proposal and now I am doing final fine tuning
>>> of my proposal.I will send it tomorrow.from today onwards I start my
>>> development  for first iteration.
>>>
>>> Thank you!
>>> regards,
>>> Heshan Jayasinghe
>>>
>>>
>>>
>>> On Tue, Mar 15, 2016 at 9:37 AM, Isuru Wijesinghe 
>>> wrote:
>>>
 Great. My contact number :


 *0710933706*
 Thanks and Best Regards,

 On Tue, Mar 15, 2016 at 9:30 AM, Heshan Jayasinghe <
 shanu...@gmail.com> wrote:

> Hi Isuru,
> My proposal 70% over now.I will send you copy soon.could you
> please send me your contact number to get more information.
> Thank you!
> regards,
> Heshan jayasinghe
>
>


 --
 Isuru Wijesinghe
 *Software Engineer*
 WSO2 inc : http://wso2.com
 lean.enterprise.middleware
 Mobile: 0710933706
 isur...@wso2.com

>>>
>>>
>>
>>
>> --
>> Isuru Wijesinghe
>> *Software Engineer*
>> WSO2 inc : http://wso2.com
>> lean.enterprise.middleware
>> Mobile: 0710933706
>> isur...@wso2.com
>>
>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> WSO2 inc : http://wso2.com
> lean.enterprise.middleware
> Mobile: 0710933706
> isur...@wso2.com
>


>>>
>>>
>>> --
>>> Isuru Wijesinghe
>>> *Software Engineer*
>>> WSO2 inc : http://wso2.com
>>> lean.enterprise.middleware
>>> Mobile: 0710933706
>>> isur...@wso2.com
>>>
>>
>>
>


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


[Dev] WSO2 Carbon Kernel 4.4.6 Released

2016-06-20 Thread Kalpa Welivitigoda
The Carbon team is pleased to announce the release of Carbon Kernel 4.4.6.

*Improvements and Bug fixes*
https://wso2.org/jira/issues/?filter=13090

*Known Issues*
https://wso2.org/jira/issues/?filter=13103

*How to Contribute*

   - WSO2 Carbon Kernel code is hosted in github.
   - The Git repository is https://github.com/wso2/carbon-kernel/
   - Carbon Kernel 4.4.6 release tag is
https://github.com/wso2/carbon-kernel/releases/tag/v4.4.6
   - Please report issues at Carbon Jira,
https://wso2.org/jira/browse/CARBON

*Contact Us*

​WSO2 Carbon developers​ can be contacted via following mailing lists:

   - WSO2 Developers List: dev@wso2.org
   - WSO2 Architecture List: architect...@wso2.org

​You can download the released distribution from the following location.
http://wso2.com/products/carbon/

​Thank you for your interest in WSO2 Carbon Kernel​.

Best Regards
Carbon Team​
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Removing duplicated methods from UserIdentityManagementAdminService

2016-06-20 Thread Isura Karunaratne
+1

You can also remove getAllPromotedUserChallenge method too.

Thanks
Isura

On Mon, Jun 20, 2016 at 1:07 PM, Farasath Ahamed  wrote:

> Hi All,
>
> We will be removing the following methods from
> the UserIdentityManagementAdminService[1] since the same functionality
> could be achieved using the RemoteUserStoreManager[2] service. Therefore,
> we are planning to remove the below methods since the functionality is
> duplicated.
>
>
> // Admin deletes a user from the system. This is an irreversible operation.
> *public void deleteUser(String userName) *
>
> // Admin resets the password of the user
> *public void resetUserPassword(String userName, String newPassword)*
>
> //User updates/add account recovery data such as the email address or the
> phone number etc.
> *public void updateUserIdentityClaims(UserIdentityClaimDTO[]
> userIdentityClaims)*
>
> // Returns all user claims which can be used in the identity recovery
> *public UserIdentityClaimDTO[] getAllUserIdentityClaims() *
>
> // User changes the password of the user.
> *public void changeUserPassword(String newPassword, String oldPassword)*
>
>
> [1]
> https://github.com/wso2/carbon-identity-framework/blob/master/components/identity-mgt/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/services/UserIdentityManagementAdminService.java
>
> [2]
> https://github.com/wso2-extensions/identity-userstore-remote/blob/master/components/org.wso2.carbon.identity.user.store.remote/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java
>
>
> Please raise if there are any concerns.
>
> Thanks,
> Farasath Ahamed
> Software Engineer,
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> Email: farasa...@wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
>



-- 
Isura Dilhara Karunaratne
Senior Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [GSoC Dockerfiles] Add ability to silently run docker image

2016-06-20 Thread Abhishek Tiwari
Hi All,

Currently, running wso2 product images with just default profile, asks the
user if they wish to connect to the running container. It would be nice to
have the ability to silent the questioning so that the test scripts can
continue without having to pause for the input.

This requirement originates from Dockerfiles test framework. I have the
feature implemented, would like someone to review and merge the PR [1].
Thanks,
Abhishek

[1]. https://github.com/wso2/dockerfiles/pull/53
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 ESB tests

2016-06-20 Thread Irham Iqbal
Hi Abhishek,

You can refer the doc[1] to write ESB integration test and run.

[1] https://docs.wso2.com/display/TA430/Writing+a+Test+Case+for+ESB

Thanks,
Iqbal

On Sun, Jun 19, 2016 at 1:28 AM, Abhishek Tiwari <
abhishek.tiwari0...@gmail.com> wrote:

> Hi Nuwan,
>
> Thanks a lot for your prompt response. Are there any docs on running these
> tests in a standalone ESB deployment (without Docker) ? That will give a
> clear idea on what configs to deploy and how to start these tests.
>
> Thanks
> Abhishek
>
> On Fri, Jun 17, 2016 at 10:36 AM, Nuwan Pallewela  wrote:
>
>> Hi Abhishek,
>>
>> You can find the existing test cases from the product-esb source[1].
>> What you may basically have to do is save proxy or API configs as files
>> and then deploy them in ESB server and test by sending requests. By
>> referring to already written test cases you can easily understand.
>>
>> [1]
>> https://github.com/wso2/product-esb/tree/master/modules/integration/tests-integration
>>
>> Thanks,
>> Nuwan
>>
>> On Fri, Jun 17, 2016 at 10:12 PM, Abhishek Tiwari <
>> abhishek.tiwari0...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> My name is Abhishek, and I am a GSoC student,  working on the test
>>> framework for WSO2 Dockerfiles. As part of that, I am writing tests for
>>> individual products once they have been deployed using Docker container.
>>> Currently I am writing tests for ESB. I plan to write tests for
>>> - Creating and testing proxy service
>>> - Creating and testing APIs
>>> - Applying WS-Security to proxy services and testing the applied security
>>>
>>> Are there existing smoke tests in ESB which I can use as reference?
>>> Where can I get the details around creating proxies, APIs programmatically?
>>>
>>> Thanks
>>> Abhishek
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> --
>>
>> *Nuwan Chamara Pallewela*
>>
>>
>> *Software Engineer*
>>
>> *WSO2, Inc. *http://wso2.com
>> *lean . enterprise . middleware*
>>
>> Email   *nuw...@wso2.com *
>> Mobile  *+94719079739 <%2B94719079739>@*
>>
>>
>>
>
> ___
> 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] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Prasad Tissera
+1 for having an configurable option to use an old password. This gives
security admins the flexibility to decide what best suite there security
policies.

On Mon, Jun 20, 2016 at 4:35 PM, Dulanja Liyanage  wrote:

> Yes, but in a scenario where multi-factor authentication is used, risk
> might be minimal. Also, if the server is catering only internal
> requirements, like in a corporate department, and not exposed to the
> outside, having to change the password every 3 months or so on might affect
> the usability. People tend to run out of passwords that could be easily
> remembered. Then they might opt to write it somewhere.
>
> My suggestion is: default should be to force the user and not give him/her
> the option to use the old password, but make it configurable so the
> scenarios I mentioned above could be catered, if required. WDYT?
>
> On Mon, Jun 20, 2016 at 12:44 PM, Milan Perera  wrote:
>
>>
>> ​Hi Dulanja,​
>>
>>
>>> There can be a requirement where the system forces the user to change
>>> the password, but at the same time give him the option to use the old
>>> password. I've seen some financial organizations doing this.
>>>

>
>> IMO, letting use of one of ​old password again creates a security threat.
>> Isn't it?
>>
>> Regards,
>> --
>> *Milan Perera *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>> Email: mi...@wso2.com  | Web: www.wso2.com
>> 
>>
>
>
>
> --
> Thanks & Regards,
> Dulanja Liyanage
> Lead, Platform Security Team
> WSO2 Inc.
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


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


[Dev] [IS] Removing duplicated methods from UserIdentityManagementAdminService

2016-06-20 Thread Farasath Ahamed
Hi All,

We will be removing the following methods from
the UserIdentityManagementAdminService[1] since the same functionality
could be achieved using the RemoteUserStoreManager[2] service. Therefore,
we are planning to remove the below methods since the functionality is
duplicated.


// Admin deletes a user from the system. This is an irreversible operation.
*public void deleteUser(String userName) *

// Admin resets the password of the user
*public void resetUserPassword(String userName, String newPassword)*

//User updates/add account recovery data such as the email address or the
phone number etc.
*public void updateUserIdentityClaims(UserIdentityClaimDTO[]
userIdentityClaims)*

// Returns all user claims which can be used in the identity recovery
*public UserIdentityClaimDTO[] getAllUserIdentityClaims() *

// User changes the password of the user.
*public void changeUserPassword(String newPassword, String oldPassword)*


[1]
https://github.com/wso2/carbon-identity-framework/blob/master/components/identity-mgt/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/services/UserIdentityManagementAdminService.java

[2]
https://github.com/wso2-extensions/identity-userstore-remote/blob/master/components/org.wso2.carbon.identity.user.store.remote/src/main/java/org/wso2/carbon/identity/user/store/remote/CarbonRemoteUserStoreManger.java


Please raise if there are any concerns.

Thanks,
Farasath Ahamed
Software Engineer,
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


Email: farasa...@wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Dulanja Liyanage
Yes, but in a scenario where multi-factor authentication is used, risk
might be minimal. Also, if the server is catering only internal
requirements, like in a corporate department, and not exposed to the
outside, having to change the password every 3 months or so on might affect
the usability. People tend to run out of passwords that could be easily
remembered. Then they might opt to write it somewhere.

My suggestion is: default should be to force the user and not give him/her
the option to use the old password, but make it configurable so the
scenarios I mentioned above could be catered, if required. WDYT?

On Mon, Jun 20, 2016 at 12:44 PM, Milan Perera  wrote:

>
> ​Hi Dulanja,​
>
>
>> There can be a requirement where the system forces the user to change the
>> password, but at the same time give him the option to use the old
>> password. I've seen some financial organizations doing this.
>>
>>>

> IMO, letting use of one of ​old password again creates a security threat.
> Isn't it?
>
> Regards,
> --
> *Milan Perera *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
> Email: mi...@wso2.com  | Web: www.wso2.com
> 
>



-- 
Thanks & Regards,
Dulanja Liyanage
Lead, Platform Security Team
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue with default API with param in URL path

2016-06-20 Thread Niranjan Karunanandham
@abimaran: Noted! Thanks..

Regards,
Nira
On Jun 20, 2016 12:48 PM, "Abimaran Kugathasan"  wrote:

> Hi Niranjan,
>
> This was fixed in latest 2.0.0 release which isn't released yet.
>
> On Mon, Jun 20, 2016 at 12:25 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi APIM Team,
>>
>> I have created an API which has param in the URL path [1] and selected it
>> as the default API. I am able to access the API when I call it using the
>> version, but when I call without the version (default), I get the message
>> "No matching resource found in the API for the given request". Is this a
>> known issue?
>>
>> [1] - URL Pattern: /testing/1.0.0/{param1}/{param2} - GET Method
>>
>> Regards,
>> Nira
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue with default API with param in URL path

2016-06-20 Thread Abimaran Kugathasan
Hi Niranjan,

This was fixed in latest 2.0.0 release which isn't released yet.

On Mon, Jun 20, 2016 at 12:25 PM, Niranjan Karunanandham 
wrote:

> Hi APIM Team,
>
> I have created an API which has param in the URL path [1] and selected it
> as the default API. I am able to access the API when I call it using the
> version, but when I call without the version (default), I get the message
> "No matching resource found in the API for the given request". Is this a
> known issue?
>
> [1] - URL Pattern: /testing/1.0.0/{param1}/{param2} - GET Method
>
> Regards,
> Nira
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer

Email : abima...@wso2.com
Mobile : +94 773922820


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


Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Milan Perera
​Hi Dulanja,​


> There can be a requirement where the system forces the user to change the
> password, but at the same time give him the option to use the old password.
> I've seen some financial organizations doing this.
>
>>
>>>
IMO, letting use of one of ​old password again creates a security threat.
Isn't it?

Regards,
-- 
*Milan Perera *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 77 309 7088 | Work: +94 11 214 5345
Email: mi...@wso2.com  | Web: www.wso2.com

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


Re: [Dev] [CEP] wso2 cep java.lang.OutOfMemoryError: GC overhead limit exceeded

2016-06-20 Thread Charini Nanayakkara
Hi,

Heap issue was resolved using -Xms2048m -Xmx2048m -XX:MaxPermSize=1024m.
Thanks Grainier, Abimaran and Sajith

Regards,
Charini

On Mon, Jun 20, 2016 at 12:01 PM, Sajith Ravindra  wrote:

> Hi Charini,
>
> How large are these events ? It's unlikely that Max attribute aggregator
> has caused this since it only keeps the values. The most probable reason is
> memory is not enough to hold the 3min window. We should be able to confirm
> this by analyzing the generated hepdump.
>
> As Abimaran has mentioned you should be able to overcome this issue by
> increasing the Xms and Xmx values. I assume you have used the default
> values for Xms and Xmx.
>
> Thanks
> *,Sajith Ravindra*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273550
> blog: http://sajithr.blogspot.com/
> 
>
> On Mon, Jun 20, 2016 at 10:32 AM, Abimaran Kugathasan 
> wrote:
>
>> Hi Charini,
>>
>> You have to either increase the allocated heap size (-Xmx) or the limit
>> check can be disabled by adding the option -XX:-UseGCOverheadLimit to
>> the command line.
>>
>> More information can be found here [1]
>>
>>
>> [1] :
>> http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#par_gc.oom
>>
>> On Mon, Jun 20, 2016 at 10:02 AM, Charini Nanayakkara 
>> wrote:
>>
>>> Hi,
>>>
>>> I get $subject when attempting to execute Max aggregate function when a
>>> 3 min duration is considered on an external time stamp. The overhead limit
>>> is likely to have exceeded due to 9 000 000  events arriving within this 3
>>> min duration. Any suggestions on resolving this issue are appreciated.
>>>
>>> Thank you
>>> Charini
>>>
>>> --
>>> Charini Vimansha Nanayakkara
>>> Software Engineer at WSO2
>>> Mobile: 0714126293
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Charini Vimansha Nanayakkara
Software Engineer at WSO2
Mobile: 0714126293
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Docker images layered composition

2016-06-20 Thread Akila Ravihansa Perera
Hi Isuru,

Do you have any specific concerns about using a wso2base image? On average
there is a spike of 100MB when using a wso2base image, but that's a small
price to pay when considering benefits users would gain out of this. Note
that users can use "default" provisioning method to package any
jars/configs to the image. The main problem here is the time taken to run
apt-get update and package installation. Especially having to download
files over I'net every time a Docker image is built which I think is
unnecessary. wdyt?

Thanks.

On Wed, Jun 1, 2016 at 10:31 PM, Isuru Haththotuwa  wrote:

> Hi Akila and Imesh,
>
> Without creating a base image, if we package everything in a product
> specific image, host it in a local registry, and provide instructions to
> create a local Dockerfile extending from that image, the time taken to
> build the local image would be lesser. This will speedup the
> development/testing procedure even more. The developers can package any
> apps/jars/configs via the local Dockerfile (using volume mounts, etc.), for
> testing. I have seen this pattern used in some Docker images, for an
> example in the haproxy Docker image [1].
>
> One downside is, as you mentioned, we cannot push the image to Dockerhub
> with Oracle JDK distribution included. Maybe we can create the product
> Docker image with the relevant utilities (wget, zip, unzip, etc.) + the
> product distribution, and push it to Docker hub. Then provide an option to
> package the JDK via a local Dockerfile extending from the product
> Dockerfile.
>
> WDYT?
>
> [1]. https://hub.docker.com/_/haproxy/
>
> On Mon, May 30, 2016 at 12:48 PM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> Hi,
>>
>> Currently we don't have a base image for WSO2 Docker images due to image
>> size issues we had with it. But later we found out that this was mainly due
>> to multiple RUN commands, which caused Docker to add unnecessary layers.
>>
>> I think we should bring back the base image for couple of reasons;
>>
>> 1. wso2base image with minimum packages installed (wget, puppet etc) will
>> eliminate the need for having to run apt-get commands (which are very
>> expensive, time-wise) each and every time
>>
>> 2. wso2base image can be hosted publicly (without Oracle JDK of course)
>> so that users don't have to build wso2base but rather pull it from
>> DockerHub.
>>
>> 3. wso2base image provides a Docker layer which reduces the amount of
>> traffic carried when pulling images from a Docker registry over a long
>> period of time. This is because base image is very unlikely to be changed,
>> but product images can change very rapidly (due to artifacts or
>> configuration change, product version etc.). It is unnecessary to carry the
>> information in the lower level layers each time a product image is changed.
>>
>> If you must use a single image, I found this cool Docker tool written in
>> Python which can be used to squash Docker layers called docker-squash [1].
>> Following is a comparison of Docker images built with/without wso2base and
>> squashed images;
>>
>> [image: Inline image 3]
>>
>> In summary;
>> wso2am-1.10.0 with base image: 1.079GB
>> wso2am-1.10.0 with base image and *squashed*: 948MB
>> wso2am-1.10.0 *without* base image: 969MB
>>
>> wso2esb-4.9.0 with base image: 794MB
>> wso2esb-4.9.0 with base image and *squashed*: 664MB
>> wso2esb-4.9.0 *without* base image: 685MB
>>
>> In conclusion, introducing a base image with minimum packages has a image
>> size overhead of around 100+MB, but having individual images without a
>> hierarchy can cause a significant amount of unnecessary information being
>> transferred over the network when pull/push'ing to/from a registry.
>>
>> I've created a PR for this feature at [2]. Also used
>> "--no-install-recommends" option to apt-get when installing packages to
>> prevent unnecessary packages being installed. Please share your thoughts.
>>
>> [1] https://github.com/goldmann/docker-squash
>> [2] https://github.com/wso2/dockerfiles/pull/46/files
>>
>> Thanks.
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

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


[Dev] Issue with default API with param in URL path

2016-06-20 Thread Niranjan Karunanandham
Hi APIM Team,

I have created an API which has param in the URL path [1] and selected it
as the default API. I am able to access the API when I call it using the
version, but when I call without the version (default), I get the message
"No matching resource found in the API for the given request". Is this a
known issue?

[1] - URL Pattern: /testing/1.0.0/{param1}/{param2} - GET Method

Regards,
Nira

-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Kasun Bandara
Hi Harsha,

Agree. This use case is normally valid when the password recovery option is
disabled.

Thanks,
Kasun.

On Mon, Jun 20, 2016 at 12:04 PM, Harsha Thirimanna 
wrote:

> Hi Kasun,
> User has a password recovery option to do that. No need to do that by
> admin. Please make me correct if I am wrong.
> On Jun 20, 2016 11:41 AM, "Kasun Bandara"  wrote:
>
>> Hi Harsha,
>>
>> On Mon, Jun 20, 2016 at 11:27 AM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Isura,
>>>
>>> I have one concern , please read the inline comments.
>>>
>>> On Mon, Jun 20, 2016 at 10:52 AM, Isura Karunaratne 
>>> wrote:
>>>
 HI all,

 I am working on $subject for WSO2 Identity Sever 5.3.0 release.
 Following are the currently identified improvements,


- Password History -

 Last 'n' number of passwords need to be maintained in user's history.
 When user updates his password we don't allow him to choose one of these
 'n' passwords again.


- Periodic Password Reset -

 Force the user to periodically (configurable period) reset his
 password. When doing this we need to leverage the password history feature
 as well.



 CREATE TABLE IF NOT EXISTS idn_password_history_data
  (
   user_name   *VARCHAR*(255) NOT NULL,
   user_domain *VARCHAR*(255) NOT NULL,
   tenant_id   *INTEGER* DEFAULT -1,
   hash*VARCHAR*(255) NOT NULL,
   time_created *TIMESTAMP* NOT NULL DEFAULT
 CURRENT_TIMESTAMP,
   PRIMARY KEY (user_name,user_domain,tenant_id,
 hash),
  )


 All the passwords which are supposed to store in this table are old
 passwords (expired).

 - I think we don't need to use the same  password hashing algorithm
 (with or without salted value) which is defined user-mgt.xml for password
 history validation.
 - admin users can change other user's passwords without giving their
 old passwords. In that case, how can we find the old password hash value to
 store for password history validation?

 *Do we allow to change user password by the admin user ? Is that
>>> correct practice ?*
>>>
>>
>> I think this is a valid use case when user forgets the password, which
>> gives the admin to first reset the password with some random value.
>> Subsequently user can alter the password, after the first login.
>>
>>
>>> ​
>>>

 Your comments and suggestions are highly appreciated.

 Thanks
 Isura.


 Isura Dilhara Karunaratne
 Senior Software Engineer

 Mob +94 772 254 810


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


>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> Kasun Bandara
>> *Software Engineer*
>> Mobile : +94 (0) 718 338 360
>> <%2B94%20%280%29%20773%20451194>
>> kas...@wso2.com 
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Kasun Bandara
*Software Engineer*
Mobile : +94 (0) 718 338 360
<%2B94%20%280%29%20773%20451194>
kas...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Dulanja Liyanage
On Mon, Jun 20, 2016 at 12:11 PM, Dulanja Liyanage  wrote:

>
>
> On Mon, Jun 20, 2016 at 10:52 AM, Isura Karunaratne 
> wrote:
>
>> HI all,
>>
>> I am working on $subject for WSO2 Identity Sever 5.3.0 release. Following
>> are the currently identified improvements,
>>
>>
>>- Password History -
>>
>> Last 'n' number of passwords need to be maintained in user's history.
>> When user updates his password we don't allow him to choose one of these
>> 'n' passwords again.
>>
>>
>>- Periodic Password Reset -
>>
>> Force the user to periodically (configurable period) reset his password.
>> When doing this we need to leverage the password history feature as well.
>>
>>
There can be a requirement where the system forces the user to change the
password, but at the same time give him the option to use the old password.
I've seen some financial organizations doing this.

>
>>
>> CREATE TABLE IF NOT EXISTS idn_password_history_data
>>  (
>>   user_name   *VARCHAR*(255) NOT NULL,
>>   user_domain *VARCHAR*(255) NOT NULL,
>>   tenant_id   *INTEGER* DEFAULT -1,
>>   hash*VARCHAR*(255) NOT NULL,
>>   time_created *TIMESTAMP* NOT NULL DEFAULT
>> CURRENT_TIMESTAMP,
>>   PRIMARY KEY (user_name,user_domain,tenant_id,
>> hash),
>>  )
>>
>>
>> All the passwords which are supposed to store in this table are old
>> passwords (expired).
>>
>> - I think we don't need to use the same  password hashing algorithm (with
>> or without salted value) which is defined user-mgt.xml for password history
>> validation.
>>
>
> IMO using the same hashing algo is cleaner. Isn't the current password
> also stored in this table? If stored, it's mandatory to use salting.
>
>
>> - admin users can change other user's passwords without giving their old
>> passwords. In that case, how can we find the old password hash value to
>> store for password history validation?
>>
>>
>> Your comments and suggestions are highly appreciated.
>>
>> Thanks
>> Isura.
>>
>>
>> Isura Dilhara Karunaratne
>> Senior Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>
>
> --
> Thanks & Regards,
> Dulanja Liyanage
> Lead, Platform Security Team
> WSO2 Inc.
>



-- 
Thanks & Regards,
Dulanja Liyanage
Lead, Platform Security Team
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Dulanja Liyanage
On Mon, Jun 20, 2016 at 10:52 AM, Isura Karunaratne  wrote:

> HI all,
>
> I am working on $subject for WSO2 Identity Sever 5.3.0 release. Following
> are the currently identified improvements,
>
>
>- Password History -
>
> Last 'n' number of passwords need to be maintained in user's history. When
> user updates his password we don't allow him to choose one of these 'n'
> passwords again.
>
>
>- Periodic Password Reset -
>
> Force the user to periodically (configurable period) reset his password.
> When doing this we need to leverage the password history feature as well.
>
>
> CREATE TABLE IF NOT EXISTS idn_password_history_data
>  (
>   user_name   *VARCHAR*(255) NOT NULL,
>   user_domain *VARCHAR*(255) NOT NULL,
>   tenant_id   *INTEGER* DEFAULT -1,
>   hash*VARCHAR*(255) NOT NULL,
>   time_created *TIMESTAMP* NOT NULL DEFAULT
> CURRENT_TIMESTAMP,
>   PRIMARY KEY (user_name,user_domain,tenant_id,
> hash),
>  )
>
>
> All the passwords which are supposed to store in this table are old
> passwords (expired).
>
> - I think we don't need to use the same  password hashing algorithm (with
> or without salted value) which is defined user-mgt.xml for password history
> validation.
>

IMO using the same hashing algo is cleaner. Isn't the current password also
stored in this table? If stored, it's mandatory to use salting.


> - admin users can change other user's passwords without giving their old
> passwords. In that case, how can we find the old password hash value to
> store for password history validation?
>
>
> Your comments and suggestions are highly appreciated.
>
> Thanks
> Isura.
>
>
> Isura Dilhara Karunaratne
> Senior Software Engineer
>
> Mob +94 772 254 810
>
>


-- 
Thanks & Regards,
Dulanja Liyanage
Lead, Platform Security Team
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Harsha Thirimanna
Hi Kasun,
User has a password recovery option to do that. No need to do that by
admin. Please make me correct if I am wrong.
On Jun 20, 2016 11:41 AM, "Kasun Bandara"  wrote:

> Hi Harsha,
>
> On Mon, Jun 20, 2016 at 11:27 AM, Harsha Thirimanna 
> wrote:
>
>> Hi Isura,
>>
>> I have one concern , please read the inline comments.
>>
>> On Mon, Jun 20, 2016 at 10:52 AM, Isura Karunaratne 
>> wrote:
>>
>>> HI all,
>>>
>>> I am working on $subject for WSO2 Identity Sever 5.3.0 release.
>>> Following are the currently identified improvements,
>>>
>>>
>>>- Password History -
>>>
>>> Last 'n' number of passwords need to be maintained in user's history.
>>> When user updates his password we don't allow him to choose one of these
>>> 'n' passwords again.
>>>
>>>
>>>- Periodic Password Reset -
>>>
>>> Force the user to periodically (configurable period) reset his password.
>>> When doing this we need to leverage the password history feature as well.
>>>
>>>
>>>
>>> CREATE TABLE IF NOT EXISTS idn_password_history_data
>>>  (
>>>   user_name   *VARCHAR*(255) NOT NULL,
>>>   user_domain *VARCHAR*(255) NOT NULL,
>>>   tenant_id   *INTEGER* DEFAULT -1,
>>>   hash*VARCHAR*(255) NOT NULL,
>>>   time_created *TIMESTAMP* NOT NULL DEFAULT
>>> CURRENT_TIMESTAMP,
>>>   PRIMARY KEY (user_name,user_domain,tenant_id,
>>> hash),
>>>  )
>>>
>>>
>>> All the passwords which are supposed to store in this table are old
>>> passwords (expired).
>>>
>>> - I think we don't need to use the same  password hashing algorithm
>>> (with or without salted value) which is defined user-mgt.xml for password
>>> history validation.
>>> - admin users can change other user's passwords without giving their old
>>> passwords. In that case, how can we find the old password hash value to
>>> store for password history validation?
>>>
>>> *Do we allow to change user password by the admin user ? Is that correct
>> practice ?*
>>
>
> I think this is a valid use case when user forgets the password, which
> gives the admin to first reset the password with some random value.
> Subsequently user can alter the password, after the first login.
>
>
>> ​
>>
>>>
>>> Your comments and suggestions are highly appreciated.
>>>
>>> Thanks
>>> Isura.
>>>
>>>
>>> Isura Dilhara Karunaratne
>>> Senior Software Engineer
>>>
>>> Mob +94 772 254 810
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Kasun Bandara
> *Software Engineer*
> Mobile : +94 (0) 718 338 360
> <%2B94%20%280%29%20773%20451194>
> kas...@wso2.com 
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] wso2 cep java.lang.OutOfMemoryError: GC overhead limit exceeded

2016-06-20 Thread Sajith Ravindra
Hi Charini,

How large are these events ? It's unlikely that Max attribute aggregator
has caused this since it only keeps the values. The most probable reason is
memory is not enough to hold the 3min window. We should be able to confirm
this by analyzing the generated hepdump.

As Abimaran has mentioned you should be able to overcome this issue by
increasing the Xms and Xmx values. I assume you have used the default
values for Xms and Xmx.

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

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


On Mon, Jun 20, 2016 at 10:32 AM, Abimaran Kugathasan 
wrote:

> Hi Charini,
>
> You have to either increase the allocated heap size (-Xmx) or the limit
> check can be disabled by adding the option -XX:-UseGCOverheadLimit to the
> command line.
>
> More information can be found here [1]
>
>
> [1] :
> http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#par_gc.oom
>
> On Mon, Jun 20, 2016 at 10:02 AM, Charini Nanayakkara 
> wrote:
>
>> Hi,
>>
>> I get $subject when attempting to execute Max aggregate function when a 3
>> min duration is considered on an external time stamp. The overhead limit is
>> likely to have exceeded due to 9 000 000  events arriving within this 3 min
>> duration. Any suggestions on resolving this issue are appreciated.
>>
>> Thank you
>> Charini
>>
>> --
>> Charini Vimansha Nanayakkara
>> Software Engineer at WSO2
>> Mobile: 0714126293
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>
> ___
> 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] [Architecture] Force Password Reset and Password History validation

2016-06-20 Thread Kasun Bandara
Hi Harsha,

On Mon, Jun 20, 2016 at 11:27 AM, Harsha Thirimanna 
wrote:

> Hi Isura,
>
> I have one concern , please read the inline comments.
>
> On Mon, Jun 20, 2016 at 10:52 AM, Isura Karunaratne 
> wrote:
>
>> HI all,
>>
>> I am working on $subject for WSO2 Identity Sever 5.3.0 release. Following
>> are the currently identified improvements,
>>
>>
>>- Password History -
>>
>> Last 'n' number of passwords need to be maintained in user's history.
>> When user updates his password we don't allow him to choose one of these
>> 'n' passwords again.
>>
>>
>>- Periodic Password Reset -
>>
>> Force the user to periodically (configurable period) reset his password.
>> When doing this we need to leverage the password history feature as well.
>>
>>
>>
>> CREATE TABLE IF NOT EXISTS idn_password_history_data
>>  (
>>   user_name   *VARCHAR*(255) NOT NULL,
>>   user_domain *VARCHAR*(255) NOT NULL,
>>   tenant_id   *INTEGER* DEFAULT -1,
>>   hash*VARCHAR*(255) NOT NULL,
>>   time_created *TIMESTAMP* NOT NULL DEFAULT
>> CURRENT_TIMESTAMP,
>>   PRIMARY KEY (user_name,user_domain,tenant_id,
>> hash),
>>  )
>>
>>
>> All the passwords which are supposed to store in this table are old
>> passwords (expired).
>>
>> - I think we don't need to use the same  password hashing algorithm (with
>> or without salted value) which is defined user-mgt.xml for password history
>> validation.
>> - admin users can change other user's passwords without giving their old
>> passwords. In that case, how can we find the old password hash value to
>> store for password history validation?
>>
>> *Do we allow to change user password by the admin user ? Is that correct
> practice ?*
>

I think this is a valid use case when user forgets the password, which
gives the admin to first reset the password with some random value.
Subsequently user can alter the password, after the first login.


> ​
>
>>
>> Your comments and suggestions are highly appreciated.
>>
>> Thanks
>> Isura.
>>
>>
>> Isura Dilhara Karunaratne
>> Senior Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Kasun Bandara
*Software Engineer*
Mobile : +94 (0) 718 338 360
<%2B94%20%280%29%20773%20451194>
kas...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev