Re: [Dev] Issues with converting JAXRS response to CarbonMessage

2016-05-11 Thread SajithAR Ariyarathna
Hi Manu,

UUF is still depends on MSF4J 1.0.0 release. Hence, we still depends on
Netty.

Thanks.

On Wed, May 11, 2016 at 8:30 PM, Manuranga Perera  wrote:

> BTW, Have we moved UUF to carbon message ? Did you face any limitations?
>
> On Wed, May 11, 2016 at 8:59 AM, Afkham Azeez  wrote:
>
>> I just noticed $subject today. For example, CarbonMessage hasn't been
>> designed with multivalued headers in mind. In addition, there are many
>> things in the JAXRS response which doesn't look like they are supported in
>> CarbonMessage. Have we lost functionality by moving to CarbonMessage?
>>
>> --
>> *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*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



-- 
Sajith Janaprasad Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException on deserializing a custom message object in Hazelcast

2016-05-11 Thread Asitha Nanayakkara
Yes. Thanks

On Thu, May 12, 2016 at 10:53 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> Kalpa has already merged this. I hope you can continue the work with this
> fix.
>
> On Wed, May 11, 2016 at 1:43 PM, Asitha Nanayakkara 
> wrote:
>
>> I raised the question in Hazelcast Gitter community and they got back to
>> me saying to use the com.hazelcast.config.Config#setClassLoader(...) to set
>> the requeired class loader as the solution.
>>
>> Since the issue affects all the users of carbon Hzelcast module we have
>> to fix this in carbon Hazelcast module.
>>
>> @Kishanthan I've created a PR [1] with the suggested fix (by Hazelcast)
>> to add the carbon hazelcast module class loader as the class loader of
>> hazelcast bundle. Please review and merge.
>>
>> [1] https://github.com/wso2/carbon-kernel/pull/974
>>
>>
>> On Tue, May 10, 2016 at 5:13 PM, Asitha Nanayakkara 
>> wrote:
>>
>>> Hi All,
>>>
>>> We came across an issue with Hazelcast topics when passing custom
>>> message objects (Can occur for Maps and all the other data structures in
>>> Hazelcast) with C5 Hazelcast module. We have created an issue for this as
>>> well [1].
>>> Use case
>>>
>>> I'm working with Hazelcast reliable topics in an OSGi environment. I'm
>>> using a custom message object with Hazelcast topics ClusterNotification
>>> 
>>> .
>>>
>>> public class ClusterSubscriptionChangedListener implements 
>>> MessageListener {
>>>
>>> /**
>>>  * This method is triggered when a subscription is changed in clustered 
>>> environment.
>>>  *
>>>  * @param message contains the ClusterNotification
>>>  */
>>> @Override
>>> public void onMessage(Message message) {
>>>// message handling logic
>>> }
>>>  }
>>>
>>> I'm publishing/receiving messages to/from Hazelcast topics from another
>>> OSGi bundle.
>>> Issue
>>>
>>> I can publish messages to the topic successfully. But I don't receive
>>> the messages from the listener. This is because, when the Hazelcast topic
>>> ring buffer runners try to pick the serialized message and de-serialize, it
>>> throws a ClassNotFoundException. *And the exception is silently ignored*
>>> and the message never received.
>>> Root cause
>>>
>>> Class loader of the Hazelcast bundle cannot see the classes of my
>>> bundle. Therefore even though I can publish the message from my bundle,
>>> Within Hazelcast it can't de-serialize the ClusterNotification
>>> 
>>> object since the class loader of Hazelcast bundle cannot see the class.
>>> Solution, way forward?
>>>
>>>
>>>1. After having an offline discussion with Kishanthan we built the
>>>hazelcast bundle with *
>>>in the hazelcast pom.xml
>>>
>>>and we successfully received the messages (We didn't get the
>>>ClassNotFoundException). But we need a fix from Hazelcast.
>>>2. Another way Hazelcast has provided is to set the class loader for
>>>the HazelcastInstance. So Internally Hazelcast instance will use the
>>>provided class loader to deserialize the objects. If we provide our 
>>> bundle
>>>class loader it will properly deserialize the object without an issue.
>>>
>>>
>>> @Kishanthan I tried to set the class loader of the carbon-kernel
>>> hazelcast module to the hazelcast instance (when creating the hazelcast
>>> instance[2]) and added dynamic imports * property (to get the solution 2
>>> working from the carbon kernel hazelcast module itself). Still I'm having
>>> issues in loading the Andes classes thorough the carbon Hazelcast module
>>> class loader.
>>> [1] https://github.com/hazelcast/hazelcast/issues/8139
>>> [2]
>>> https://github.com/wso2/carbon-kernel/blob/hamming-release-poc/modules/carbon-hazelcast/component/src/main/java/org/wso2/carbon/hazelcast/internal/CarbonHazelcastComponent.java#L60
>>>
>>> Regards,
>>> Asitha
>>>
>>> --
>>> *Asitha Nanayakkara*
>>> Software Engineer
>>> WSO2, Inc. http://wso2.com/
>>> Mob: +94 77 853 0682
>>>
>>>
>>
>>
>> --
>> *Asitha Nanayakkara*
>> Software Engineer
>> WSO2, Inc. http://wso2.com/
>> Mob: +94 77 853 0682
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
*Asitha Nanayakkara*
Software Engineer
WSO2, Inc. http://wso2.com/
Mob: +94 77 853 0682
___
Dev mailing list
Dev@wso2.org

Re: [Dev] ClassNotFoundException on deserializing a custom message object in Hazelcast

2016-05-11 Thread Kishanthan Thangarajah
Kalpa has already merged this. I hope you can continue the work with this
fix.

On Wed, May 11, 2016 at 1:43 PM, Asitha Nanayakkara  wrote:

> I raised the question in Hazelcast Gitter community and they got back to
> me saying to use the com.hazelcast.config.Config#setClassLoader(...) to set
> the requeired class loader as the solution.
>
> Since the issue affects all the users of carbon Hzelcast module we have to
> fix this in carbon Hazelcast module.
>
> @Kishanthan I've created a PR [1] with the suggested fix (by Hazelcast) to
> add the carbon hazelcast module class loader as the class loader of
> hazelcast bundle. Please review and merge.
>
> [1] https://github.com/wso2/carbon-kernel/pull/974
>
>
> On Tue, May 10, 2016 at 5:13 PM, Asitha Nanayakkara 
> wrote:
>
>> Hi All,
>>
>> We came across an issue with Hazelcast topics when passing custom message
>> objects (Can occur for Maps and all the other data structures in Hazelcast)
>> with C5 Hazelcast module. We have created an issue for this as well [1].
>> Use case
>>
>> I'm working with Hazelcast reliable topics in an OSGi environment. I'm
>> using a custom message object with Hazelcast topics ClusterNotification
>> 
>> .
>>
>> public class ClusterSubscriptionChangedListener implements 
>> MessageListener {
>>
>> /**
>>  * This method is triggered when a subscription is changed in clustered 
>> environment.
>>  *
>>  * @param message contains the ClusterNotification
>>  */
>> @Override
>> public void onMessage(Message message) {
>>// message handling logic
>> }
>>  }
>>
>> I'm publishing/receiving messages to/from Hazelcast topics from another
>> OSGi bundle.
>> Issue
>>
>> I can publish messages to the topic successfully. But I don't receive the
>> messages from the listener. This is because, when the Hazelcast topic ring
>> buffer runners try to pick the serialized message and de-serialize, it
>> throws a ClassNotFoundException. *And the exception is silently ignored*
>> and the message never received.
>> Root cause
>>
>> Class loader of the Hazelcast bundle cannot see the classes of my bundle.
>> Therefore even though I can publish the message from my bundle, Within
>> Hazelcast it can't de-serialize the ClusterNotification
>> 
>> object since the class loader of Hazelcast bundle cannot see the class.
>> Solution, way forward?
>>
>>
>>1. After having an offline discussion with Kishanthan we built the
>>hazelcast bundle with *
>>in the hazelcast pom.xml
>>
>>and we successfully received the messages (We didn't get the
>>ClassNotFoundException). But we need a fix from Hazelcast.
>>2. Another way Hazelcast has provided is to set the class loader for
>>the HazelcastInstance. So Internally Hazelcast instance will use the
>>provided class loader to deserialize the objects. If we provide our bundle
>>class loader it will properly deserialize the object without an issue.
>>
>>
>> @Kishanthan I tried to set the class loader of the carbon-kernel
>> hazelcast module to the hazelcast instance (when creating the hazelcast
>> instance[2]) and added dynamic imports * property (to get the solution 2
>> working from the carbon kernel hazelcast module itself). Still I'm having
>> issues in loading the Andes classes thorough the carbon Hazelcast module
>> class loader.
>> [1] https://github.com/hazelcast/hazelcast/issues/8139
>> [2]
>> https://github.com/wso2/carbon-kernel/blob/hamming-release-poc/modules/carbon-hazelcast/component/src/main/java/org/wso2/carbon/hazelcast/internal/CarbonHazelcastComponent.java#L60
>>
>> Regards,
>> Asitha
>>
>> --
>> *Asitha Nanayakkara*
>> Software Engineer
>> WSO2, Inc. http://wso2.com/
>> Mob: +94 77 853 0682
>>
>>
>
>
> --
> *Asitha Nanayakkara*
> Software Engineer
> WSO2, Inc. http://wso2.com/
> Mob: +94 77 853 0682
>
>


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Supporting DB types for Statistical Database

2016-05-11 Thread Rukshan Premathunga
Hi Maneesha,

even though a syntax error exist, it was executed successfully in mssql.
Anyway we will fix this and commit.

Thanks and Regards.

On Thu, May 12, 2016 at 10:20 AM, Maneesha Wijesekara 
wrote:

> Hi Rukshan,
> Saw your commits in github for missing 3 db scripts for the Jira [1]. Out
> of that, mssql and oracle_rac scripts have a syntax error in '
> API_REQUEST_GEO_LOCATION_SUMMARY' table (missing a comma in  city field).
> This was already in other 4 available scripts (db2,oracle,mysql and h2) and
> I put a comment in a JIRA[2] related to that. Please update this too. Thank
> you.
>
> [1] https://wso2.org/jira/browse/ANLYAPIM-6
> [2] https://wso2.org/jira/browse/APIMANAGER-4654
>
> On Tue, May 10, 2016 at 3:54 PM, Maneesha Wijesekara 
> wrote:
>
>> Hi Rukshan,
>> Thanks for the quick reply. MSSQL script also missing in there. Please
>> update them soon.
>>
>> Regards
>> Maneesha
>>
>> On Tue, May 10, 2016 at 3:45 PM, Rukshan Premathunga 
>> wrote:
>>
>>> Hi Maneesha,
>>>
>>> APIM support dbscript are available on [APIM_HOME}/dbscripts/apimgt.
>>> Thus in stat, only postgres and oracle_rac is missing. we will update them
>>> soon.
>>>
>>> Thanks.
>>>
>>>
>>> On Tue, May 10, 2016 at 3:21 PM, Maneesha Wijesekara 
>>> wrote:
>>>
 In API Manager 2.0.0, only 4 types of db scripts (db2, h2, mysql and
 oracle) are available in here [1] to create stat database when
 configuring APIM Analytics 1.0.0.

 To create APIM databases in postgresql, derby, informix, oracle rac
 and openedge, db scripts are also available in [2]. Can you please confirm
 the reason for unavailability of those DB types when it comes to create
 stat db ?

 [1] [APIM_HOME}/dbscripts/stat/sql
 [2] [APIM_HOME}/dbscripts

 Regards
 Maneesha

 --
 Maneesha Wijesekara
 Software Engineer - QA Team
 WSO2 Inc.

 Email: manee...@wso2.com
 Linkedin: http://linkedin.com/in/maneeshawijesekara
 Mobile: +94712443119

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


>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>>
>>
>>
>>
>> --
>> Maneesha Wijesekara
>> Software Engineer - QA Team
>> WSO2 Inc.
>>
>> Email: manee...@wso2.com
>> Linkedin: http://linkedin.com/in/maneeshawijesekara
>> Mobile: +94712443119
>>
>
>
>
> --
> Maneesha Wijesekara
> Software Engineer - QA Team
> WSO2 Inc.
>
> Email: manee...@wso2.com
> Linkedin: http://linkedin.com/in/maneeshawijesekara
> Mobile: +94712443119
>



-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Supporting DB types for Statistical Database

2016-05-11 Thread Maneesha Wijesekara
Hi Rukshan,
Saw your commits in github for missing 3 db scripts for the Jira [1]. Out
of that, mssql and oracle_rac scripts have a syntax error in '
API_REQUEST_GEO_LOCATION_SUMMARY' table (missing a comma in  city field).
This was already in other 4 available scripts (db2,oracle,mysql and h2) and
I put a comment in a JIRA[2] related to that. Please update this too. Thank
you.

[1] https://wso2.org/jira/browse/ANLYAPIM-6
[2] https://wso2.org/jira/browse/APIMANAGER-4654

On Tue, May 10, 2016 at 3:54 PM, Maneesha Wijesekara 
wrote:

> Hi Rukshan,
> Thanks for the quick reply. MSSQL script also missing in there. Please
> update them soon.
>
> Regards
> Maneesha
>
> On Tue, May 10, 2016 at 3:45 PM, Rukshan Premathunga 
> wrote:
>
>> Hi Maneesha,
>>
>> APIM support dbscript are available on [APIM_HOME}/dbscripts/apimgt.
>> Thus in stat, only postgres and oracle_rac is missing. we will update them
>> soon.
>>
>> Thanks.
>>
>>
>> On Tue, May 10, 2016 at 3:21 PM, Maneesha Wijesekara 
>> wrote:
>>
>>> In API Manager 2.0.0, only 4 types of db scripts (db2, h2, mysql and
>>> oracle) are available in here [1] to create stat database when
>>> configuring APIM Analytics 1.0.0.
>>>
>>> To create APIM databases in postgresql, derby, informix, oracle rac and
>>> openedge, db scripts are also available in [2]. Can you please confirm the
>>> reason for unavailability of those DB types when it comes to create stat db
>>> ?
>>>
>>> [1] [APIM_HOME}/dbscripts/stat/sql
>>> [2] [APIM_HOME}/dbscripts
>>>
>>> Regards
>>> Maneesha
>>>
>>> --
>>> Maneesha Wijesekara
>>> Software Engineer - QA Team
>>> WSO2 Inc.
>>>
>>> Email: manee...@wso2.com
>>> Linkedin: http://linkedin.com/in/maneeshawijesekara
>>> Mobile: +94712443119
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>>
>
>
>
> --
> Maneesha Wijesekara
> Software Engineer - QA Team
> WSO2 Inc.
>
> Email: manee...@wso2.com
> Linkedin: http://linkedin.com/in/maneeshawijesekara
> Mobile: +94712443119
>



-- 
Maneesha Wijesekara
Software Engineer - QA Team
WSO2 Inc.

Email: manee...@wso2.com
Linkedin: http://linkedin.com/in/maneeshawijesekara
Mobile: +94712443119
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to load file for schema generation

2016-05-11 Thread Shakila Sivagnanarajah
Hi Nuwan,

As Vivekananthan said in thread "[Meeting Notes] Implementing static
schema for existing ESB connectors for data mapper",
I also encapsulated null with double quote ("). It works fine.

Thanks

On Wed, May 11, 2016 at 5:58 PM, Shakila Sivagnanarajah 
wrote:

> Thanks for your quick response Nuwan.
>
> On Wed, May 11, 2016 at 5:15 PM, Nuwan Pallewela  wrote:
>
>> Hi Shakila,
>>
>> Yes. This JSON message format is not yet supported in DataMapper schema
>> generator. We will inform you when it is fixed[1].
>>
>> [1] https://wso2.org/jira/browse/DEVTOOLESB-158
>>
>> Thanks,
>> Nuwan
>>
>> On Wed, May 11, 2016 at 4:51 PM, Shakila Sivagnanarajah > > wrote:
>>
>>> Hi all,
>>>
>>> Unable to load the uploaded json file to generate output schema. It says
>>> "File content cannot be parsed". Could you please check this? Please find
>>> the attachment below.
>>>
>>> Thank you.
>>>
>>> --
>>> Shakila Sivagnanarajah
>>> Associate Software Engineer
>>> Mobile :+94 (0) 768 856837
>>> shak...@wso2.com
>>>
>>
>>
>>
>> --
>> --
>>
>> *Nuwan Chamara Pallewela*
>>
>>
>> *Software Engineer*
>>
>> *WSO2, Inc. *http://wso2.com
>> *lean . enterprise . middleware*
>>
>> Email   *nuw...@wso2.com *
>> Mobile  *+94719079739 <%2B94719079739>@*
>>
>>
>>
>
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 768 856837
> shak...@wso2.com
>



-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 768 856837
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Vote] Developer Studio Kernel RC 2 released !

2016-05-11 Thread Awanthika Senarath
Hello Nuwan + ESB tooling,

I have merged the PR to master branch.

Please note that moving forward for patch requirements Developer Studio
team will not give updates for product tooling requirements and the plan
should me to move the relevant templates to the product tool itself.

Thanks and regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Wed, May 11, 2016 at 9:55 PM, Jasintha Dasanayake 
wrote:

> Hi Nuwan
>
> All these template should be moved into somewhere inside the ESB plugin
> now , these are not relevant  for kernel
>
> Thanks and Regards
> /Jasintha
>
> On Wed, May 11, 2016 at 8:36 PM, Nuwan Pallewela  wrote:
>
>> Hi All,
>>
>> There is an issue reported when creating pass though proxy services[1].
>> This is because a template file in
>> org.wso2.developerstudio.eclipse.platform.core/resources/templates/
>> proxyservices/*pass-through-proxy.xml.* I think we should fix this. I
>> have sent a PR to fix this issue[2].
>>
>> [1] https://wso2.org/jira/browse/DEVTOOLESB-166
>> [2] https://github.com/wso2/developer-studio/pull/143
>>
>> Thanks,
>> Nuwan
>>
>> On Wed, May 11, 2016 at 11:41 AM, Awanthika Senarath 
>> wrote:
>>
>>> Hello Jasintha,
>>>
>>> Noted, Please find my inline comments
>>>
>>> -All submenus should have a menu icon
>>>
>>> +1, I will look into this.
>>>
>>> -Capp and Maven preferences pages  should be removed from kernel and
>>> should only appear when that plugins are installed
>>>
>>> +1, Will remove these from Kernel and move them to appropriate platform
>>> bundles.
>>>
>>> -In Install feature dialog , WSO2 carbon UI appear before the BPS
>>> feature , seems there is bug when sorting
>>>
>>> I checked this. The sorting happens from the ID of the plugin and not
>>> the Display name. The IDs of these plugins are in such a way that when they
>>> are sorted alphabetically the order appears as mentioned. We need to
>>> revisit the feature IDs of all product plugins bearing the knowledge that
>>> the ID determines the order in which the plugins appear in the updater tool
>>>
>>> -Menu seperators are appearing in Developer studio menu , all the
>>> eclipse standard menus has menu separators
>>> -Add keyboard shortcut for relevant sub menus
>>> -better if we can add submenu under Developer studio menu to reach
>>> Developer studio preferences  directly
>>>
>>> I will look into this. Yet these are not blockers IMO.
>>>
>>> Regards
>>> Awanthika
>>>
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> On Tue, May 10, 2016 at 7:55 AM, Jasintha Dasanayake 
>>> wrote:
>>>
 I have noticed following  improvement , those are not blockers but
 better if we can get it fix in GA from usability point of view

 -Menu seperators are appearing in Developer studio menu , all the
 eclipse standard menus has menu separators
 -Add keyboard shortcut for relevant sub menus
 -All submenus should have a menu icon
 -better if we can add submenu under Developer studio menu to reach
 Developer studio preferences  directly
 -Capp and Maven preferences pages  should be removed from kernel and
 should only appear when that plugins are installed
 -In Install feature dialog , WSO2 carbon UI appear before the BPS
 feature , seems there is bug when sorting

 Apart from above important all other major features are working fine

 Thanks and Regards
 /Jasintha




 On Thu, May 5, 2016 at 3:01 PM, Awanthika Senarath 
 wrote:

> Hello Devs,
>
>
> We are pleased to announce the vote for RC-2 of
> *WSO2 Developer Studio Kernel 4.1.0.*
>
> P2 repository of WSO2 developer Studio kernel 4.1.0 is available here
> .
>  Source
> and Tag Location to be voted upon is available here
> 
> .
>
> Developer Studio 4.1.0 Kernel is released on Eclipse Mars (Eclipse
> 4.5)
>
> Developer Studio Kernel contains a single feature which has the
> bundles that are required to implement WSO2 specific product tooling on
> Eclipse.
>
>- This release contains Developer Studio migration to Eclipse mars
>- Improvements in the Developer Studio Updater tool for automatic
>updates
>
> The Features and improvements in the RC 2 :
>
>
>1. [+] Stable - go ahead and release
>2. [-]  Broken - do not release (please explain why)
>
>
>
> Regards,
> Dev Studio Team
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> ___

[Dev] use jaggeryJS for developments

2016-05-11 Thread Akila Nimantha [IT/EKO/LOITS]
Hi All,

We are planning to use JaggeryJS for a new project which is fully service 
oriented.

Jaggery is an awesome product but unfortunately didn't hear more about in the 
public last year.

Is it still on the wso2's priority list 
Is it ok to use jaggeryJS in an upcoming project???

Regards,
Akila

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this message
immediately if this is an electronic communication.

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


Re: [Dev] [EMM] Build failed due to one or more certificates rejected

2016-05-11 Thread Niranjan Karunanandham
Hi Saad,

As mentioned in [1], this is because the JVM is not trusting the
certificates. I also faced this issue when I tried to build Carbon 5 in
openjdk. Changing the 2 policy jars will not have any effect since the
trust certificate are at /jre/lib/security/cacerts [2]. I
replaced the trust keystore of openjdk with the oracle jdk for which am
able to build it successfully. If you want to analyse this more, you can
view the trust certificates[3] in your cacerts with that of a working one.
The keystore password for the cacerts is "changeit".

In a separate note, what Kernel version are you using. If it is 4.4.x then
the recommended maven version is 3.0.* as mentioned in [4]. If you are
using Carbon 5, then the maven version is 3.3.* and JDK is 1.8.

[1] - Mail Subject : "[Dev] One or more certificates rejected Issue on
product Build"
[2] - http://www.grim.se/guide/jre-cert
[3] -
http://bsnyderblog.blogspot.com/2013/01/how-to-list-all-certificates-in-jdk.html
[4] - https://docs.wso2.com/display/Carbon440/Installation+Prerequisites

Regards,
Nira

On Wed, May 11, 2016 at 10:45 PM, Saad Sahibjan  wrote:

> Hi,
>
> I tried solving the issue through downloading the JCE policy files from
> [1] and replacing it with the existing policy files in the path <$JAVA_HOME>
> /jre/lib/security
>
> Two policy files which were replaced are,
> 1. local_policy.jar
> 2. US_export_policy.jar
>
> But still was not able to solve the issue.
>
> Also i tried deleting .m2 directory and then building. Tried with java
> version 1.8 too and still i get the same exception.
>
> [1]
> http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
>
>
> Regards
> Saad Sahibjan
>
> On Wed, May 11, 2016 at 10:12 PM, Saad Sahibjan  wrote:
>
>> Hi,
>>
>> I;m trying to build product EMM. I have successfully built
>> 'carbon-device-mgt' and 'carbon-device-mgt-plugins'. But when building
>> 'product-emm', the build fails.
>>
>> Maven version - 3.3.9
>> Java version - 1.7
>>
>> I get the below exception. Trying to sort it out from a few days. Any
>> idea about the issue?
>>
>> Installation failed.
>> One or more certificates rejected. Cannot proceed with installation.
>> Application failed, log file location:
>> /home/saad/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1462984508624.log
>>
>> [INFO]
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] WSO2 MDM - Parent .. SUCCESS [
>>  1.143 s]
>> [INFO] WSO2 MDM - Mobile Device Management Admin Services . SUCCESS [
>> 14.680 s]
>> [INFO] wso2mdm-product-mobileservices . SUCCESS [
>>  0.068 s]
>> [INFO] JAX-RS Windows API . SUCCESS [
>> 13.811 s]
>> [INFO] JAX-RS Android API . SUCCESS [
>>  4.468 s]
>> [INFO] WSO2 EMM - Enterprise Mobility Manager End-user Web Application
>> SUCCESS [ 12.116 s]
>> [INFO] WSO2 EMM - Enterprise Mobility Manager Web Agent ... SUCCESS [
>>  6.781 s]
>> [INFO] WSO2 Mobile Device Manager (MDM) - UI styles ... SUCCESS [
>>  1.091 s]
>> [INFO] WSO2 Mobile Device Manager (MDM) Features .. SUCCESS [
>>  0.040 s]
>> [INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  SUCCESS [
>>  0.448 s]
>> [INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. FAILURE [
>> 44.821 s]
>> [INFO] WSO2 Mobile Device Manager (MDM) - Distribution  SKIPPED
>> [INFO] WSO2 MDM - Integration Tests ... SKIPPED
>> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
>> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
>> [INFO] WSO2 MDM - Integration Admin Clients ... SKIPPED
>> [INFO] WSO2 MDM - Integration Test Utils .. SKIPPED
>> [INFO] WSO2 MDM - Integration Test UI Pages ... SKIPPED
>> [INFO] WSO2 MDM Backend Integration Tests . SKIPPED
>> [INFO] WSO2 MDM - Integration Test UI Module .. SKIPPED
>> [INFO] WSO2 MDM Platform Integration Tests  SKIPPED
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 01:40 min
>> [INFO] Finished at: 2016-05-11T22:05:15+05:30
>> [INFO] Final Memory: 169M/1498M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product
>> (creating-worker-profile) on project wso2mdm-profile-gen: Cannot generate
>> P2 metadata: P2 publisher return code was 13 -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more 

Re: [Dev] [Docker][Puppet] [MB] Setting 'thriftServerHost' in WSO2 MB broker.xml file

2016-05-11 Thread Imesh Gunaratne
Great! Thanks for the update Thanuja!

On Tuesday, May 10, 2016, Thanuja Uruththirakodeeswaran 
wrote:

> Hi All,
>
> I have added the custom extension to wso2mb puppet module through
> 'system_file_list' method.
>
> Like we used file_list to copy files to wso2 carbon home, we can copy
> files which are added */files/system* to system using 
> *system_file_list
> *as below:
>
> wso2::system_file_list:
>   -
> file: 
> target_path: 
>
>
> I used the above approach to fix the MB thrift server issue.  Added
> wso2mb-default-init.sh extension script to wso2mb/files/system and copied
> to /usr/local/bin path using system_file_list as below:
>
> wso2::system_file_list:
>   -
> file: wso2mb-default-init.sh
> target_path: /usr/local/bin
>
>
>
> Thanks.
>
>
> On Mon, May 9, 2016 at 2:07 PM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com >
> wrote:
>
>> Hi All,
>>
>> Thanks for the suggestions !!! As Isuru suggested, the best approach
>> would be to use an extension point to update thriftServerHost with
>> container ip. Will go with this approach.
>>
>> Thanks.
>>
>> On Mon, May 9, 2016 at 2:01 PM, Akila Ravihansa Perera <
>> raviha...@wso2.com >
>> wrote:
>>
>>> Hi Pumudu,
>>>
>>> We can't use "%{::ipaddress}" in kubernetes platform since Puppet is
>>> only used to build the Docker images. The ipaddress is assigned when the
>>> Kubernetes pods/services are deployed.
>>>
>>> I think best method would be to use the extension point as explained by
>>> Isuru. This should be similar to how we replace the localMemberHost section
>>> in axis2.xml.
>>>
>>> Thanks.
>>>
>>> On Mon, May 9, 2016 at 1:34 PM, Pumudu Ruhunage >> > wrote:
>>>
 Hi,
 AFAIU, Thrift hostname should be changed to IP from puppet modules when
 configuring hiera data[1]. Following line[2] should added to
 default.yaml[3] to get the IP when initializing.

 [1]
 https://github.com/wso2/puppet-modules/wiki/Creating-a-Puppet-Module-for-a-WSO2-Product#create-the-hiera-configuration-data-set
 [2] wso2::mb_thrift_hostname : "%{::ipaddress}"
 [3]
 https://github.com/wso2/puppet-modules/blob/master/hieradata/dev/wso2/wso2mb/3.1.0/kubernetes/default.yaml

 Thanks,
 Pumudu

 On Mon, May 9, 2016 at 12:08 PM, Akalanka Pagoda Arachchi <
 darsha...@wso2.com 
 > wrote:

> Hi Thanuja,
>
> As you have mentioned, the MB needs the IP address instead of the host
> name to configure the Thrift server. So you will have to correct the 
> thrift
> server connection details mentioned in "wso2mb-default/
> 10.100.186.164:7611".
>
> Thanks,
> Akalanka.
>
> On Mon, May 9, 2016 at 11:31 AM, Isuru Haththotuwa  > wrote:
>
>> Hi Thanuja,
>>
>> There is an extension point [1] in the startup script for
>> Dockerfiles, where is looks for another script with a particular name
>> format to execute before starting the server. You should b able to use 
>> that
>> to do a find replace in the broker.xml with the container IP.
>>
>> [1].
>> https://github.com/wso2/dockerfiles/blob/master/common/scripts/entrypoint.sh#L87
>>
>> [2]. docker---init.sh
>>
>> On Mon, May 9, 2016 at 11:15 AM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com 
>> > wrote:
>>
>>> Hi All,
>>>
>>> When we try to run WSO2 MB docker image build using puppet
>>> provisioning with clustering enabled in kubernetes, I'm getting the 
>>> below
>>> error  at the server startup:
>>>
>>> TID: [-1234] [] [2016-05-09 05:39:06,811] ERROR
>>> {org.wso2.andes.server.Main} -  Exception during startup. Triggering
>>> shutdown  {org.wso2.andes.server.Main}
>>> org.wso2.andes.kernel.AndesException: Unable to initialise
>>> application registry
>>> at org.wso2.andes.server.Broker.startupImpl(Broker.java:308)
>>> at org.wso2.andes.server.Broker.startup(Broker.java:110)
>>> at org.wso2.andes.server.Main.startBroker(Main.java:217)
>>> at org.wso2.andes.server.Main.execute(Main.java:206)
>>> at org.wso2.andes.server.Main.(Main.java:54)
>>> at org.wso2.andes.server.Main.main(Main.java:47)
>>> at
>>> org.wso2.carbon.andes.internal.QpidServiceComponent.startAndesBroker(QpidServiceComponent.java:391)
>>> at
>>> org.wso2.carbon.andes.internal.QpidServiceComponent.setHazelcastInstance(QpidServiceComponent.java:250)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> 

Re: [Dev] [EMM] Build failed due to one or more certificates rejected

2016-05-11 Thread Saad Sahibjan
Hi,

I tried solving the issue through downloading the JCE policy files from [1]
and replacing it with the existing policy files in the path <$JAVA_HOME>
/jre/lib/security

Two policy files which were replaced are,
1. local_policy.jar
2. US_export_policy.jar

But still was not able to solve the issue.

Also i tried deleting .m2 directory and then building. Tried with java
version 1.8 too and still i get the same exception.

[1]
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html


Regards
Saad Sahibjan

On Wed, May 11, 2016 at 10:12 PM, Saad Sahibjan  wrote:

> Hi,
>
> I;m trying to build product EMM. I have successfully built
> 'carbon-device-mgt' and 'carbon-device-mgt-plugins'. But when building
> 'product-emm', the build fails.
>
> Maven version - 3.3.9
> Java version - 1.7
>
> I get the below exception. Trying to sort it out from a few days. Any idea
> about the issue?
>
> Installation failed.
> One or more certificates rejected. Cannot proceed with installation.
> Application failed, log file location:
> /home/saad/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1462984508624.log
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 MDM - Parent .. SUCCESS [
>  1.143 s]
> [INFO] WSO2 MDM - Mobile Device Management Admin Services . SUCCESS [
> 14.680 s]
> [INFO] wso2mdm-product-mobileservices . SUCCESS [
>  0.068 s]
> [INFO] JAX-RS Windows API . SUCCESS [
> 13.811 s]
> [INFO] JAX-RS Android API . SUCCESS [
>  4.468 s]
> [INFO] WSO2 EMM - Enterprise Mobility Manager End-user Web Application
> SUCCESS [ 12.116 s]
> [INFO] WSO2 EMM - Enterprise Mobility Manager Web Agent ... SUCCESS [
>  6.781 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - UI styles ... SUCCESS [
>  1.091 s]
> [INFO] WSO2 Mobile Device Manager (MDM) Features .. SUCCESS [
>  0.040 s]
> [INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  SUCCESS [
>  0.448 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. FAILURE [
> 44.821 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - Distribution  SKIPPED
> [INFO] WSO2 MDM - Integration Tests ... SKIPPED
> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
> [INFO] WSO2 MDM - Integration Admin Clients ... SKIPPED
> [INFO] WSO2 MDM - Integration Test Utils .. SKIPPED
> [INFO] WSO2 MDM - Integration Test UI Pages ... SKIPPED
> [INFO] WSO2 MDM Backend Integration Tests . SKIPPED
> [INFO] WSO2 MDM - Integration Test UI Module .. SKIPPED
> [INFO] WSO2 MDM Platform Integration Tests  SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 01:40 min
> [INFO] Finished at: 2016-05-11T22:05:15+05:30
> [INFO] Final Memory: 169M/1498M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product
> (creating-worker-profile) on project wso2mdm-profile-gen: Cannot generate
> P2 metadata: P2 publisher return code was 13 -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn  -rf :wso2mdm-profile-gen
>
>
> Regards
> Saad
>
> --
> Saad Sahibjan
> *Software Engineer - Intern*
> E-mail : s...@wso2.com
> Mobile : +94779303127
>



-- 
Saad Sahibjan
*Software Engineer - Intern*
E-mail : s...@wso2.com
Mobile : +94779303127
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Build failed due to one or more certificates rejected

2016-05-11 Thread Bhathiya Jayasekara
If you are using java 1.7_80, try downgrading to 1.7_79.

Thanks,
Bhathiya

On Wed, May 11, 2016 at 10:12 PM, Saad Sahibjan  wrote:

> Hi,
>
> I;m trying to build product EMM. I have successfully built
> 'carbon-device-mgt' and 'carbon-device-mgt-plugins'. But when building
> 'product-emm', the build fails.
>
> Maven version - 3.3.9
> Java version - 1.7
>
> I get the below exception. Trying to sort it out from a few days. Any idea
> about the issue?
>
> Installation failed.
> One or more certificates rejected. Cannot proceed with installation.
> Application failed, log file location:
> /home/saad/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1462984508624.log
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 MDM - Parent .. SUCCESS [
>  1.143 s]
> [INFO] WSO2 MDM - Mobile Device Management Admin Services . SUCCESS [
> 14.680 s]
> [INFO] wso2mdm-product-mobileservices . SUCCESS [
>  0.068 s]
> [INFO] JAX-RS Windows API . SUCCESS [
> 13.811 s]
> [INFO] JAX-RS Android API . SUCCESS [
>  4.468 s]
> [INFO] WSO2 EMM - Enterprise Mobility Manager End-user Web Application
> SUCCESS [ 12.116 s]
> [INFO] WSO2 EMM - Enterprise Mobility Manager Web Agent ... SUCCESS [
>  6.781 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - UI styles ... SUCCESS [
>  1.091 s]
> [INFO] WSO2 Mobile Device Manager (MDM) Features .. SUCCESS [
>  0.040 s]
> [INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  SUCCESS [
>  0.448 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. FAILURE [
> 44.821 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - Distribution  SKIPPED
> [INFO] WSO2 MDM - Integration Tests ... SKIPPED
> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
> [INFO] WSO2 MDM - Integration Admin Clients ... SKIPPED
> [INFO] WSO2 MDM - Integration Test Utils .. SKIPPED
> [INFO] WSO2 MDM - Integration Test UI Pages ... SKIPPED
> [INFO] WSO2 MDM Backend Integration Tests . SKIPPED
> [INFO] WSO2 MDM - Integration Test UI Module .. SKIPPED
> [INFO] WSO2 MDM Platform Integration Tests  SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 01:40 min
> [INFO] Finished at: 2016-05-11T22:05:15+05:30
> [INFO] Final Memory: 169M/1498M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product
> (creating-worker-profile) on project wso2mdm-profile-gen: Cannot generate
> P2 metadata: P2 publisher return code was 13 -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn  -rf :wso2mdm-profile-gen
>
>
> Regards
> Saad
>
> --
> Saad Sahibjan
> *Software Engineer - Intern*
> E-mail : s...@wso2.com
> Mobile : +94779303127
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

*Phone: +94715478185 <%2B94715478185>*
*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] [EMM] Build failed due to one or more certificates rejected

2016-05-11 Thread Aruna Karunarathna
Seems like a similar issue @dev in [1], can you check the solution given?

[1]. [Dev] One or more certificates rejected Issue on product Build

On Wed, May 11, 2016 at 10:12 PM, Saad Sahibjan  wrote:

> Hi,
>
> I;m trying to build product EMM. I have successfully built
> 'carbon-device-mgt' and 'carbon-device-mgt-plugins'. But when building
> 'product-emm', the build fails.
>
> Maven version - 3.3.9
> Java version - 1.7
>
> I get the below exception. Trying to sort it out from a few days. Any idea
> about the issue?
>
> Installation failed.
> One or more certificates rejected. Cannot proceed with installation.
> Application failed, log file location:
> /home/saad/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1462984508624.log
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 MDM - Parent .. SUCCESS [
>  1.143 s]
> [INFO] WSO2 MDM - Mobile Device Management Admin Services . SUCCESS [
> 14.680 s]
> [INFO] wso2mdm-product-mobileservices . SUCCESS [
>  0.068 s]
> [INFO] JAX-RS Windows API . SUCCESS [
> 13.811 s]
> [INFO] JAX-RS Android API . SUCCESS [
>  4.468 s]
> [INFO] WSO2 EMM - Enterprise Mobility Manager End-user Web Application
> SUCCESS [ 12.116 s]
> [INFO] WSO2 EMM - Enterprise Mobility Manager Web Agent ... SUCCESS [
>  6.781 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - UI styles ... SUCCESS [
>  1.091 s]
> [INFO] WSO2 Mobile Device Manager (MDM) Features .. SUCCESS [
>  0.040 s]
> [INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  SUCCESS [
>  0.448 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. FAILURE [
> 44.821 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - Distribution  SKIPPED
> [INFO] WSO2 MDM - Integration Tests ... SKIPPED
> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
> [INFO] WSO2 MDM - Integration Admin Clients ... SKIPPED
> [INFO] WSO2 MDM - Integration Test Utils .. SKIPPED
> [INFO] WSO2 MDM - Integration Test UI Pages ... SKIPPED
> [INFO] WSO2 MDM Backend Integration Tests . SKIPPED
> [INFO] WSO2 MDM - Integration Test UI Module .. SKIPPED
> [INFO] WSO2 MDM Platform Integration Tests  SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 01:40 min
> [INFO] Finished at: 2016-05-11T22:05:15+05:30
> [INFO] Final Memory: 169M/1498M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product
> (creating-worker-profile) on project wso2mdm-profile-gen: Cannot generate
> P2 metadata: P2 publisher return code was 13 -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn  -rf :wso2mdm-profile-gen
>
>
> Regards
> Saad
>
> --
> Saad Sahibjan
> *Software Engineer - Intern*
> E-mail : s...@wso2.com
> Mobile : +94779303127
>



-- 

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


[Dev] [EMM] Build failed due to one or more certificates rejected

2016-05-11 Thread Saad Sahibjan
Hi,

I;m trying to build product EMM. I have successfully built
'carbon-device-mgt' and 'carbon-device-mgt-plugins'. But when building
'product-emm', the build fails.

Maven version - 3.3.9
Java version - 1.7

I get the below exception. Trying to sort it out from a few days. Any idea
about the issue?

Installation failed.
One or more certificates rejected. Cannot proceed with installation.
Application failed, log file location:
/home/saad/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1462984508624.log

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 MDM - Parent .. SUCCESS [
 1.143 s]
[INFO] WSO2 MDM - Mobile Device Management Admin Services . SUCCESS [
14.680 s]
[INFO] wso2mdm-product-mobileservices . SUCCESS [
 0.068 s]
[INFO] JAX-RS Windows API . SUCCESS [
13.811 s]
[INFO] JAX-RS Android API . SUCCESS [
 4.468 s]
[INFO] WSO2 EMM - Enterprise Mobility Manager End-user Web Application
SUCCESS [ 12.116 s]
[INFO] WSO2 EMM - Enterprise Mobility Manager Web Agent ... SUCCESS [
 6.781 s]
[INFO] WSO2 Mobile Device Manager (MDM) - UI styles ... SUCCESS [
 1.091 s]
[INFO] WSO2 Mobile Device Manager (MDM) Features .. SUCCESS [
 0.040 s]
[INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  SUCCESS [
 0.448 s]
[INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. FAILURE [
44.821 s]
[INFO] WSO2 Mobile Device Manager (MDM) - Distribution  SKIPPED
[INFO] WSO2 MDM - Integration Tests ... SKIPPED
[INFO] WSO2 MDM Integration Test Common ... SKIPPED
[INFO] WSO2 MDM Integration Test Common ... SKIPPED
[INFO] WSO2 MDM - Integration Admin Clients ... SKIPPED
[INFO] WSO2 MDM - Integration Test Utils .. SKIPPED
[INFO] WSO2 MDM - Integration Test UI Pages ... SKIPPED
[INFO] WSO2 MDM Backend Integration Tests . SKIPPED
[INFO] WSO2 MDM - Integration Test UI Module .. SKIPPED
[INFO] WSO2 MDM Platform Integration Tests  SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 01:40 min
[INFO] Finished at: 2016-05-11T22:05:15+05:30
[INFO] Final Memory: 169M/1498M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product
(creating-worker-profile) on project wso2mdm-profile-gen: Cannot generate
P2 metadata: P2 publisher return code was 13 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn  -rf :wso2mdm-profile-gen


Regards
Saad

-- 
Saad Sahibjan
*Software Engineer - Intern*
E-mail : s...@wso2.com
Mobile : +94779303127
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Vote] Developer Studio Kernel RC 2 released !

2016-05-11 Thread Jasintha Dasanayake
Hi Nuwan

All these template should be moved into somewhere inside the ESB plugin now
, these are not relevant  for kernel

Thanks and Regards
/Jasintha

On Wed, May 11, 2016 at 8:36 PM, Nuwan Pallewela  wrote:

> Hi All,
>
> There is an issue reported when creating pass though proxy services[1].
> This is because a template file in
> org.wso2.developerstudio.eclipse.platform.core/resources/templates/
> proxyservices/*pass-through-proxy.xml.* I think we should fix this. I
> have sent a PR to fix this issue[2].
>
> [1] https://wso2.org/jira/browse/DEVTOOLESB-166
> [2] https://github.com/wso2/developer-studio/pull/143
>
> Thanks,
> Nuwan
>
> On Wed, May 11, 2016 at 11:41 AM, Awanthika Senarath 
> wrote:
>
>> Hello Jasintha,
>>
>> Noted, Please find my inline comments
>>
>> -All submenus should have a menu icon
>>
>> +1, I will look into this.
>>
>> -Capp and Maven preferences pages  should be removed from kernel and
>> should only appear when that plugins are installed
>>
>> +1, Will remove these from Kernel and move them to appropriate platform
>> bundles.
>>
>> -In Install feature dialog , WSO2 carbon UI appear before the BPS
>> feature , seems there is bug when sorting
>>
>> I checked this. The sorting happens from the ID of the plugin and not the
>> Display name. The IDs of these plugins are in such a way that when they are
>> sorted alphabetically the order appears as mentioned. We need to revisit
>> the feature IDs of all product plugins bearing the knowledge that the ID
>> determines the order in which the plugins appear in the updater tool
>>
>> -Menu seperators are appearing in Developer studio menu , all the eclipse
>> standard menus has menu separators
>> -Add keyboard shortcut for relevant sub menus
>> -better if we can add submenu under Developer studio menu to reach
>> Developer studio preferences  directly
>>
>> I will look into this. Yet these are not blockers IMO.
>>
>> Regards
>> Awanthika
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Tue, May 10, 2016 at 7:55 AM, Jasintha Dasanayake 
>> wrote:
>>
>>> I have noticed following  improvement , those are not blockers but
>>> better if we can get it fix in GA from usability point of view
>>>
>>> -Menu seperators are appearing in Developer studio menu , all the
>>> eclipse standard menus has menu separators
>>> -Add keyboard shortcut for relevant sub menus
>>> -All submenus should have a menu icon
>>> -better if we can add submenu under Developer studio menu to reach
>>> Developer studio preferences  directly
>>> -Capp and Maven preferences pages  should be removed from kernel and
>>> should only appear when that plugins are installed
>>> -In Install feature dialog , WSO2 carbon UI appear before the BPS
>>> feature , seems there is bug when sorting
>>>
>>> Apart from above important all other major features are working fine
>>>
>>> Thanks and Regards
>>> /Jasintha
>>>
>>>
>>>
>>>
>>> On Thu, May 5, 2016 at 3:01 PM, Awanthika Senarath 
>>> wrote:
>>>
 Hello Devs,


 We are pleased to announce the vote for RC-2 of
 *WSO2 Developer Studio Kernel 4.1.0.*

 P2 repository of WSO2 developer Studio kernel 4.1.0 is available here
 .
  Source
 and Tag Location to be voted upon is available here
 
 .

 Developer Studio 4.1.0 Kernel is released on Eclipse Mars (Eclipse 4.5)

 Developer Studio Kernel contains a single feature which has the bundles
 that are required to implement WSO2 specific product tooling on Eclipse.

- This release contains Developer Studio migration to Eclipse mars
- Improvements in the Developer Studio Updater tool for automatic
updates

 The Features and improvements in the RC 2 :


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



 Regards,
 Dev Studio Team
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



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


>>>
>>>
>>> --
>>>
>>> *Jasintha Dasanayake*
>>>
>>> *Senior Software EngineerWSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware*
>>>
>>>
>>> *mobile :- 0711368118 <0711368118>*
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> 

Re: [Dev] [DEV][Puppet Modules] Finalizing wso2/puppet-modules 2.0.0 release

2016-05-11 Thread Chamila De Alwis
We've completed the Default platform test task as well. Some of the issues
found and fixed are as follows.


   1. Issues in GREG Hiera YAML -
   https://github.com/wso2/puppet-modules/pull/42
   2. Fixing MB data sources properly -
   https://github.com/wso2/puppet-modules/pull/40
   3. Incorrect YAML config for DAS -
   
https://github.com/wso2/puppet-modules/commit/71900dab7f78d424dec9b99badf105a8d6952f07
   4. Adding property  java.util.prefs.systemRoot as a workaround for Could
   not lock System Prefs issue -
   
https://github.com/wso2/puppet-modules/commit/9f30595772e304c56e569d40fa041859ff79c947

   5. Proper clustering YAML configs for AM  -
   
https://github.com/wso2/puppet-modules/commit/1e626a294f3f86a6e1acbe5dbb389c3cffea92fe
   6. Incorrect Facter name ::ip -
   
https://github.com/wso2/puppet-modules/commit/0d410584dfb4a0da7586e43a36130bad089f5ccc

We will be opening the release vote for wso2/puppet-modules 2.0.0 soon.


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Tue, May 10, 2016 at 10:24 PM, Chamila De Alwis 
wrote:

> We've completed the following tasks up to now.
>
>- Smoke test each product on the Kubernetes platform with clustering
>- Fix minor issues found during testing the products
>   - Consistent structure of the YAML file
>   - Style corrections
>   - Missing values that are crucial for product functionality from a
>   Smoke test's point of view
>- Improve and verify the README content
>
> Testing of Default platform is ongoing. Let's scope this so that default
> profile of every product is working on the Vagrant setup OOB. For the
> specific profiles, refactoring the YAML to be consistent with already
> tested products will be adequate since the configuration details are bound
> to change in a real world application.
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Tue, May 10, 2016 at 1:36 PM, Chamila De Alwis 
> wrote:
>
>> I added a GitHub wiki page including this range information [1].
>>
>> [1] -
>> https://github.com/wso2/puppet-modules/wiki/Proxy-Port-Range-Use-for-Kubernetes-Platform
>>
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Tue, May 10, 2016 at 12:44 PM, Imesh Gunaratne  wrote:
>>
>>>
>>>
>>> On Tue, May 10, 2016 at 10:02 AM, Anuruddha Liyanarachchi <
>>> anurudd...@wso2.com> wrote:
>>>
 Hi,

 Please find the node port ranges used in puppet modules. We should add
 this to wiki.

>>>
>>> Thanks for listing this out Anuruddha! We might need to mention that
>>> this is specifically for the Kubernetes platform.
>>>
>>> Thanks
>>>

 Product
 Port Range
 Min Port Max Port
 wso2am 32000 32020
 wso2as 32021 32030
 wso2bps 32031 32040
 wso2brs 32041 32050
 wso2cep 32051 32060
 wso2das 32061 32070
 wso2dss 32071 32080
 wso2es 32081 32090
 wso2esb 32091 32100
 wso2greg 32101 32110
 wso2is 32110 32120
 wso2mb 32120 32130



 On Tue, May 10, 2016 at 6:19 AM, Chamila De Alwis 
 wrote:

> Hi Akila,
>
> On Tue, May 10, 2016 at 6:14 AM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> WARNING: class inherits across module namespaces
>> WARNING: line has more than 80 characters
>>
>
> I think we can ignore these as they were considered in the decision
> process. I'll change the release notes to amend the line about vm_type.
>
>
> 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
>
>


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


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


Re: [Dev] Xpath expression to fetch a property which has space in name

2016-05-11 Thread Praneesha Chandrasiri
hi Rajith,

I added the above information under a topic named "Converting spaces" in
docs of ESB 4.9.0 and above, as for example in [1].

Also, I added a comment in the JIRA in [2].

Thanks for the support!

[1]
https://docs.wso2.com/display/ESB500/JSON+Support#JSONSupport-ConvertingapayloadbetweenXMLandJSON
[2] https://wso2.org/jira/browse/ESBJAVA-4492

On Wed, May 11, 2016 at 10:22 AM, Rajith Vitharana  wrote:

> Hi All,
>
> This can be avoided by using "synapse.commons.json.buildValidNCNames" to
> value "true" in /repository/conf/synapse.properties file, This
> will replace space in the json to "JsonReader_32" value. So sample would be
> as follows
>
> input Json -
> {
>  "abc nnn": "value1"
> }
>
> output XML -
> value1
>
>
> And this works other way around as well, say you need to convert XML to
> json and json element should need to have a space within it, then you can
> use "JsonReader_32" in xml to get the space in json output, for example,
>
> input xml -
> value1
>
> output json -
> {
> "abc nnn": "value1"
> }
>
> I have added this info to jira as well,
> @Praneesha, IMO better have it in docs as well.
>
> Thanks,
>
> On Thu, May 5, 2016 at 2:40 PM, Udara Liyanage  wrote:
>
>> Hi,
>>
>> i think option 1 is better, As I remember earlier ESB versions uses
>> underscore for space.
>>
>> On Thu, May 5, 2016 at 1:53 AM, Rajith Vitharana 
>> wrote:
>>
>>> Hi,
>>>
>>> So what would be the best convention to follow
>>> 1 - just throw a error saying can't convert to XML because of the space
>>> character
>>> 2 - encode that space (will need to support this when converting back to
>>> json as well)
>>>
>>> Thanks,
>>>
>>> On Tue, Mar 8, 2016 at 9:37 AM, Udara Liyanage  wrote:
>>>
 Hi,

 Yes, I also think it is a bug in json to xml conversion. I will create
 a jira for this.

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


>>>
>>>
>>> --
>>> Rajith Vitharana
>>>
>>> Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94715883223
>>> Blog : http://lankavitharana.blogspot.com/
>>>
>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>



-- 
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: pranee...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Supporting javax.ws.rs.core.Request instead of org.wso2.msf4j.Request

2016-05-11 Thread Afkham Azeez
Can support javax.ws.rs.core.Request instead of org.wso2.msf4j.Request with
@Context?

-- 
*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] Issues with converting JAXRS response to CarbonMessage

2016-05-11 Thread Afkham Azeez
Sorry for the noise.

org.wso2.msf4j.Response handles multivalues headers.


On Wed, May 11, 2016 at 6:29 PM, Afkham Azeez  wrote:

> I just noticed $subject today. For example, CarbonMessage hasn't been
> designed with multivalued headers in mind. In addition, there are many
> things in the JAXRS response which doesn't look like they are supported in
> CarbonMessage. Have we lost functionality by moving to CarbonMessage?
>
> --
> *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/
* *
*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] [Vote] Developer Studio Kernel RC 2 released !

2016-05-11 Thread Nuwan Pallewela
Hi All,

There is an issue reported when creating pass though proxy services[1].
This is because a template file in
org.wso2.developerstudio.eclipse.platform.core/resources/templates/
proxyservices/*pass-through-proxy.xml.* I think we should fix this. I have
sent a PR to fix this issue[2].

[1] https://wso2.org/jira/browse/DEVTOOLESB-166
[2] https://github.com/wso2/developer-studio/pull/143

Thanks,
Nuwan

On Wed, May 11, 2016 at 11:41 AM, Awanthika Senarath 
wrote:

> Hello Jasintha,
>
> Noted, Please find my inline comments
>
> -All submenus should have a menu icon
>
> +1, I will look into this.
>
> -Capp and Maven preferences pages  should be removed from kernel and
> should only appear when that plugins are installed
>
> +1, Will remove these from Kernel and move them to appropriate platform
> bundles.
>
> -In Install feature dialog , WSO2 carbon UI appear before the BPS feature
> , seems there is bug when sorting
>
> I checked this. The sorting happens from the ID of the plugin and not the
> Display name. The IDs of these plugins are in such a way that when they are
> sorted alphabetically the order appears as mentioned. We need to revisit
> the feature IDs of all product plugins bearing the knowledge that the ID
> determines the order in which the plugins appear in the updater tool
>
> -Menu seperators are appearing in Developer studio menu , all the eclipse
> standard menus has menu separators
> -Add keyboard shortcut for relevant sub menus
> -better if we can add submenu under Developer studio menu to reach
> Developer studio preferences  directly
>
> I will look into this. Yet these are not blockers IMO.
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Tue, May 10, 2016 at 7:55 AM, Jasintha Dasanayake 
> wrote:
>
>> I have noticed following  improvement , those are not blockers but better
>> if we can get it fix in GA from usability point of view
>>
>> -Menu seperators are appearing in Developer studio menu , all the eclipse
>> standard menus has menu separators
>> -Add keyboard shortcut for relevant sub menus
>> -All submenus should have a menu icon
>> -better if we can add submenu under Developer studio menu to reach
>> Developer studio preferences  directly
>> -Capp and Maven preferences pages  should be removed from kernel and
>> should only appear when that plugins are installed
>> -In Install feature dialog , WSO2 carbon UI appear before the BPS
>> feature , seems there is bug when sorting
>>
>> Apart from above important all other major features are working fine
>>
>> Thanks and Regards
>> /Jasintha
>>
>>
>>
>>
>> On Thu, May 5, 2016 at 3:01 PM, Awanthika Senarath 
>> wrote:
>>
>>> Hello Devs,
>>>
>>>
>>> We are pleased to announce the vote for RC-2 of
>>> *WSO2 Developer Studio Kernel 4.1.0.*
>>>
>>> P2 repository of WSO2 developer Studio kernel 4.1.0 is available here
>>> .
>>>  Source
>>> and Tag Location to be voted upon is available here
>>> 
>>> .
>>>
>>> Developer Studio 4.1.0 Kernel is released on Eclipse Mars (Eclipse 4.5)
>>>
>>> Developer Studio Kernel contains a single feature which has the bundles
>>> that are required to implement WSO2 specific product tooling on Eclipse.
>>>
>>>- This release contains Developer Studio migration to Eclipse mars
>>>- Improvements in the Developer Studio Updater tool for automatic
>>>updates
>>>
>>> The Features and improvements in the RC 2 :
>>>
>>>
>>>1. [+] Stable - go ahead and release
>>>2. [-]  Broken - do not release (please explain why)
>>>
>>>
>>>
>>> Regards,
>>> Dev Studio Team
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Jasintha Dasanayake*
>>
>> *Senior Software EngineerWSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware*
>>
>>
>> *mobile :- 0711368118*
>>
>
>
> ___
> 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@*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issues with converting JAXRS response to CarbonMessage

2016-05-11 Thread Manuranga Perera
BTW, Have we moved UUF to carbon message ? Did you face any limitations?

On Wed, May 11, 2016 at 8:59 AM, Afkham Azeez  wrote:

> I just noticed $subject today. For example, CarbonMessage hasn't been
> designed with multivalued headers in mind. In addition, there are many
> things in the JAXRS response which doesn't look like they are supported in
> CarbonMessage. Have we lost functionality by moving to CarbonMessage?
>
> --
> *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*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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] Releasing carbon-appmgt 1.1.3

2016-05-11 Thread Hasunie Adikari
Hi Thilini,

There was a issue in installing mobile apps from AppStore.I'm getting
following backend error and INSTALL_APPLICATION operation is also not added
to the operation table.

[2016-05-11 19:51:35,641] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
org.mozilla.javascript.EcmaError: TypeError: Cannot call method "split" of
undefined (/store/extensions/assets/mobileapp/modules/mod-ent-install.js#31)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: TypeError: Cannot call method "split" of
undefined (/store/extensions/assets/mobileapp/modules/mod-ent-install.js#31)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
at
org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at
org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.invoke(WebappAuthenticationValve.java:44)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method
"split" of undefined
(/store/extensions/assets/mobileapp/modules/mod-ent-install.js#31)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
at
org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
at

[Dev] Issues with converting JAXRS response to CarbonMessage

2016-05-11 Thread Afkham Azeez
I just noticed $subject today. For example, CarbonMessage hasn't been
designed with multivalued headers in mind. In addition, there are many
things in the JAXRS response which doesn't look like they are supported in
CarbonMessage. Have we lost functionality by moving to CarbonMessage?

-- 
*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] Developer Studio Server Modification to add Product based Servers

2016-05-11 Thread Awanthika Senarath
if we open dashboard once, we persist this info so it will appear in show
view -> servers as well, but if customer first do  show view -> servers it
wont come, since that action is eclipse inbuilt action we cannot capture
that event.

We will have to go with a start up option if we have to execute this on
startup, but since we have a startup method in kernel as well, I don't want
to introduce more complexity there, we cannot move carbon based
implementation to kernel as it brakes the kernel concept we are trying to
have moving forward.



Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Wed, May 11, 2016 at 6:14 PM, Susinda Perera  wrote:

> Hi Awanthika
> Can't we do the same on the first time we do show view -> servers option.
> And then we persists this info.
>
>
> On Tue, May 10, 2016 at 10:15 AM, Awanthika Senarath 
> wrote:
>
>> Hello all,
>>
>> We have completed $subject as an improvement for user experience as
>> follows,
>>
>> We have enabled dynamic extension point generation in Developer Studio,
>> we retrieve the Specific display name from the product plugins when they
>> register their servers as given in the following example :
>>
>> * > *point="org.wso2.developerstudio.carbon.product.server.registry">*
>> * > *   carbon.server.version="carbon.server.40"*
>> *   server.display.name ="WSO2 ESB
>> Server 3.3">*
>> * *
>> *  > *   carbon.server.version="carbon.server.40"*
>> *   server.display.name ="WSO2 CEP
>> Server 3.9">*
>> * *
>> * > *   carbon.server.version="carbon.server.42"*
>> *   server.display.name ="WSO2 ESB
>> Server 3.7">*
>> * *
>> *  > *   carbon.server.version="carbon.server.42"*
>> *   server.display.name ="WSO2 CEP
>> Server 3.0">*
>> * *
>> * > *   carbon.server.version="carbon.server.44"*
>> *   server.display.name ="WSO2 ESB
>> Server 3.0">*
>> * *
>> *  > *   carbon.server.version="carbon.server.44"*
>> *   server.display.name ="WSO2 CEP
>> Server 3.2">*
>> * *
>> *  *
>>
>>
>> The product server can decide which versions of their servers they plan
>> to support from their tooling versions released.
>>
>> *We will be removing the previous support we had for integrating servers
>> based on the carbon versions, hence it is mandatory that product teams
>> include these servers versions in their tooling plugins, in the plugin xml
>> as described above.*
>>
>> Also note that the carbon.server.version should contain one of
>> carbon.server.40
>> carbon.server.42
>> carbon.server.44
>>
>> as Developer Studio Kernel 4.1.0 we are only going to follow those carbon
>> versions, If you mention any String other than what is given the extension
>> point will be ignored by kernel.
>>
>> Adopted Approach :
>>
>>
>> ​
>>
>> *@ Jasintha / Susinda/ Viraj :* Currently this server retrieval from
>> product plugins is bind to Developer Studio Dashboard opening action, since
>> we are accessing WSO2 servers from the dashboard. We need to configure this
>> in an Eclipse generic startup method if we are to display these servers in
>> show view -> servers option via eclipse menu.
>> Since eclipse discourages usage of early startups IMO it is OK to display
>> the servers only via the dashboard server option.
>>
>> WDYT ?
>>
>>
>> [1] Associated Jira : https://wso2.org/jira/browse/DEVTOOLPFM-1
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Developer Studio Server Modification to add Product based Servers

2016-05-11 Thread Susinda Perera
Hi Awanthika
Can't we do the same on the first time we do show view -> servers option.
And then we persists this info.


On Tue, May 10, 2016 at 10:15 AM, Awanthika Senarath 
wrote:

> Hello all,
>
> We have completed $subject as an improvement for user experience as
> follows,
>
> We have enabled dynamic extension point generation in Developer Studio, we
> retrieve the Specific display name from the product plugins when they
> register their servers as given in the following example :
>
> *  *point="org.wso2.developerstudio.carbon.product.server.registry">*
> *  *   carbon.server.version="carbon.server.40"*
> *   server.display.name ="WSO2 ESB
> Server 3.3">*
> * *
> *   *   carbon.server.version="carbon.server.40"*
> *   server.display.name ="WSO2 CEP
> Server 3.9">*
> * *
> *  *   carbon.server.version="carbon.server.42"*
> *   server.display.name ="WSO2 ESB
> Server 3.7">*
> * *
> *   *   carbon.server.version="carbon.server.42"*
> *   server.display.name ="WSO2 CEP
> Server 3.0">*
> * *
> *  *   carbon.server.version="carbon.server.44"*
> *   server.display.name ="WSO2 ESB
> Server 3.0">*
> * *
> *   *   carbon.server.version="carbon.server.44"*
> *   server.display.name ="WSO2 CEP
> Server 3.2">*
> * *
> *  *
>
>
> The product server can decide which versions of their servers they plan to
> support from their tooling versions released.
>
> *We will be removing the previous support we had for integrating servers
> based on the carbon versions, hence it is mandatory that product teams
> include these servers versions in their tooling plugins, in the plugin xml
> as described above.*
>
> Also note that the carbon.server.version should contain one of
> carbon.server.40
> carbon.server.42
> carbon.server.44
>
> as Developer Studio Kernel 4.1.0 we are only going to follow those carbon
> versions, If you mention any String other than what is given the extension
> point will be ignored by kernel.
>
> Adopted Approach :
>
>
> ​
>
> *@ Jasintha / Susinda/ Viraj :* Currently this server retrieval from
> product plugins is bind to Developer Studio Dashboard opening action, since
> we are accessing WSO2 servers from the dashboard. We need to configure this
> in an Eclipse generic startup method if we are to display these servers in
> show view -> servers option via eclipse menu.
> Since eclipse discourages usage of early startups IMO it is OK to display
> the servers only via the dashboard server option.
>
> WDYT ?
>
>
> [1] Associated Jira : https://wso2.org/jira/browse/DEVTOOLPFM-1
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
*Susinda Perera*
Software Engineer
B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
Mobile:(+94)716049075
Blog: susinda.blogspot.com
WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to load file for schema generation

2016-05-11 Thread Shakila Sivagnanarajah
Thanks for your quick response Nuwan.

On Wed, May 11, 2016 at 5:15 PM, Nuwan Pallewela  wrote:

> Hi Shakila,
>
> Yes. This JSON message format is not yet supported in DataMapper schema
> generator. We will inform you when it is fixed[1].
>
> [1] https://wso2.org/jira/browse/DEVTOOLESB-158
>
> Thanks,
> Nuwan
>
> On Wed, May 11, 2016 at 4:51 PM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi all,
>>
>> Unable to load the uploaded json file to generate output schema. It says
>> "File content cannot be parsed". Could you please check this? Please find
>> the attachment below.
>>
>> Thank you.
>>
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 768 856837
>> shak...@wso2.com
>>
>
>
>
> --
> --
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> *lean . enterprise . middleware*
>
> Email   *nuw...@wso2.com *
> Mobile  *+94719079739 <%2B94719079739>@*
>
>
>


-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 768 856837
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to load file for schema generation

2016-05-11 Thread Nuwan Pallewela
Hi Shakila,

Yes. This JSON message format is not yet supported in DataMapper schema
generator. We will inform you when it is fixed[1].

[1] https://wso2.org/jira/browse/DEVTOOLESB-158

Thanks,
Nuwan

On Wed, May 11, 2016 at 4:51 PM, Shakila Sivagnanarajah 
wrote:

> Hi all,
>
> Unable to load the uploaded json file to generate output schema. It says
> "File content cannot be parsed". Could you please check this? Please find
> the attachment below.
>
> Thank you.
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 768 856837
> shak...@wso2.com
>



-- 
--

*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


[Dev] [ES] Publisher Store Separated Setup Documentation Clarifications

2016-05-11 Thread Isuru Haththotuwa
Hi Devs,

In ES 2.0.0 distributed deployment documentation [1], it is mentioned that
its using SSO with Identity Server. However, the store node's
publisher.json file's identityProviderURL is pointing to the publisher node
[2]. Is this intentional? Are we using the Publisher node also as an IDP?
If so, shouldn't both Publisher and Store point to the same IDP URL?

[1]. https://docs.wso2.com/display/CLUSTER44x/Clustering+ES+2.0.0

[2]. "identityProviderURL":"https://publisher.es-wso2.com/samlsso;,


-- 
Thanks and Regards,

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


[Dev] Unable to load file for schema generation

2016-05-11 Thread Shakila Sivagnanarajah
Hi all,

Unable to load the uploaded json file to generate output schema. It says
"File content cannot be parsed". Could you please check this? Please find
the attachment below.

Thank you.

-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 768 856837
shak...@wso2.com


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


Re: [Dev] Human Task in wso2 bps

2016-05-11 Thread Milinda Perera
Hi Lakshitha,

The problem is in ApproveClaim-output.jsp

The error is in your response message. You are creating the response
message as follows:

if (outputVal == 'approve') {
return 'http://www.example.com/claims/schema
">true';
} else if (outputVal == 'disapprove') {
return 'http://www.example.com/claims/schema
">false';
}

if (outputYesNo == 'yes') {
return 'http://www.example.com/claims/schema
">true';
} else if (outputYesNo == 'no') {
return 'http://www.example.com/claims/schema
">false';
}


in above you are missing "yesorno" element in the response. The response
should be in format:

http://www.example.com/claims/schema;>
true
*false*


And also, the logic of the response message creation is also wrong.

*NOTE :* WSO2 BPS 3.5.0 onward we have introduced humantask rendering
support. So creating .jsp files are not mandatory. With that release we
have introduces webapp for humantasks [1] so you no longer need to use the
management console. With the help of HT-Rendering support, you can create
humantask without creating .jsp files with that humantask explorer will
auto generate  user input interface. Please refer [2] for more information.

[1] https://docs.wso2.com/display/BPS350/Customizing+Human+Task+Explorer
[2]
http://milindaperera.blogspot.com/2015/10/humantask-rendering-in-wso2-business.html

Thanks,
Milinda

On Tue, May 10, 2016 at 6:47 PM, Lakshitha Warnakulasuriya <
lakshitha...@gmail.com> wrote:

> Thanx Milinda,
>
> Here I have attached the ht file,wsdl file and output and response jsp
> files. Can you please check and give me the solution. It's really helpful.
>
> Thanx a lot.
>
> Regards,
> Lakshitha.
> On 10 May 2016 18:13, "Milinda Perera"  wrote:
>
>> Hi,
>>
>> To add another input to humantask you have to change humantask definition
>> (.ht file) and WSDLs. only changing .jsp files doesn't work. If you have
>> done relevant changes for humantask definition and WSDLs, please share the
>> .jsp files.
>>
>> BTW which version of BPS are you using?, WSO2 BPS 3.5.0 onwards we
>> support HT rendering which is easier with web app UI (humantask-explorer),
>> you can create humantask without creating .jsp files.
>>
>> thanks,
>> Milinda
>>
>> On Tue, May 10, 2016 at 5:44 PM, Lakshitha Warnakulasuriya <
>> lakshitha...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I want to add another pair of radio buttions in output.jsp and get
>>> response of these radio buttions to the response.jsp in Claim Approvel Task
>>> project. I tried it but not successful. Is their any way to do this.
>>> Any help can be really appreciated.
>>>
>>> Thanks and Regards,
>>> Lakshitha.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Milinda Perera
>> Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>


-- 
Milinda Perera
Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ES] [PC] Unable to locate tenant configurations in order to retrieve activated assets Error

2016-05-11 Thread Waruna Jayaweera
Hi,
After moving to carbon store version 2.3.11-SNAPSHOT, I am getting error
[1] in store(process explorer). This happens when I click on
a process (asset) to view its information or when navigating through tabs
in process page. Appreciate any suggestions to fix this issue.

Thanks,
Waruna

[1]
[2016-05-11 15:25:46,386]  WARN {app-core} -  Unable to locate tenant
configurations in order to retrieve activated assets
[2016-05-11 15:25:46,387] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.JavaScriptException: Unable to locate tenant
configurations in order to retrieve activated assets
(/scripts/app/app.js#656)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.JavaScriptException: Unable to locate tenant
configurations in order to retrieve activated assets
(/scripts/app/app.js#656)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.mozilla.javascript.JavaScriptException: Unable to locate
tenant configurations in order to retrieve activated assets
(/scripts/app/app.js#656)
at
org.jaggeryjs.rhino..scripts.app.c0._c_anonymous_54(/scripts/app/app.js:656)
at org.jaggeryjs.rhino..scripts.app.c0.call(/scripts/app/app.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.store.controllers.c2._c_anonymous_6(/store/controllers/assets-router.jag:126)
at

[Dev] [IS] RESTful Fine Grained Authorization-as-a-Service (AZaaS)

2016-05-11 Thread Manujith Pallewatte
Hi Pushpalanka,

I managed to setup the development environment and build all the sources
(thanks to Omindu :))
Then I made the PEP client using the entitlement stubs as you have
mentioned in a previous thread. It's working in an accepted state. But I
encountered some questions during the process, so I'm currently building a
doc with all the questions so I can document them and their answers for
future reference.
Other than that I'm trying to write different policies using XACML

Also please let me know of any other steps i can follow to get familiar
with the components, specially the code since I'm only focusing on
Entitlement service right now

Thank You
Manujith
-- 



[image: Manujith Pallewatte on about.me]

Manujith Pallewatte
about.me/manzzup
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IOTS] [IS] Getting an exception after upgrading carbon.identity to 5.1.1-SNAPSHOT

2016-05-11 Thread Milan Perera
Hi all,

We are getting the following exception while building the product
after upgrading carbon.identity to 5.1.1-SNAPSHOT.

Status ERROR: org.eclipse.equinox.p2.artifact.repository code=0 For input
string: "${equinox" java.lang.NumberFormatException: For input string:
"${equinox"

Product publishing ended with the following exception:
java.lang.NumberFormatException: For input string: "${equinox"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.parseInt(Integer.java:527)
at org.osgi.framework.Version.(Version.java:127)
at org.osgi.framework.Version.parseVersion(Version.java:225)
at
org.eclipse.osgi.service.resolver.VersionRange.(VersionRange.java:92)
at
org.eclipse.osgi.internal.resolver.StateBuilder.getVersionRange(StateBuilder.java:686)
at
org.eclipse.osgi.internal.resolver.StateBuilder.addImportPackages(StateBuilder.java:289)
at
org.eclipse.osgi.internal.resolver.StateBuilder.createImportPackages(StateBuilder.java:268)
at
org.eclipse.osgi.internal.resolver.StateBuilder.createBundleDescription(StateBuilder.java:113)
at
org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createBundleDescription(StateObjectFactoryImpl.java:32)
at
org.eclipse.equinox.p2.publisher.eclipse.BundlesAction.createBundleDescription(BundlesAction.java:531)
at
org.eclipse.equinox.p2.publisher.eclipse.BundlesAction.createBundleDescription(BundlesAction.java:546)
at
org.eclipse.equinox.p2.publisher.eclipse.BundlesAction.getBundleDescriptions(BundlesAction.java:846)
at
org.eclipse.equinox.p2.publisher.eclipse.BundlesAction.perform(BundlesAction.java:657)
at
org.eclipse.equinox.p2.publisher.Publisher$ArtifactProcess.run(Publisher.java:207)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.executeBatch(SimpleArtifactRepository.java:1294)
at org.eclipse.equinox.p2.publisher.Publisher.publish(Publisher.java:231)
at
org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:283)
at
org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:253)
at
org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.start(AbstractPublisherApplication.java:315)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
at java.lang.Thread.run(Thread.java:722)

​While searching for a reason, it has been noticed that in [1]​, even
though the version is mentioned, the version declaration is not available
in the [2].
Hence the error throws. Once we remove that version declaration (version="
${equinox.osgi.stax-api.imp.pkg.version.range}") from [1], problem was
solved.

Since we are getting javax.xml.stream from the platform, do ​we need to
explicitly declare the version there ?


​[1]
https://github.com/wso2-extensions/identity-user-ws/blob/master/components/org.wso2.carbon.um.ws.api/pom.xml#L97
[2]
https://github.com/wso2-extensions/identity-extension-parent/blob/master/pom.xml

-- 
*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] Fwd: [GSoC 16'] Proposal 20: [IS] SCIM 2.0 Support to WSO2 Identity Server

2016-05-11 Thread Pushpalanka Jayawardhana
Hi Manujith,

Hope you progressing with the initial steps of the project.
Please start a new thread to track the progress, so that we can finish this
off within time.

Thanks,
Pushpalanka

On Fri, Mar 25, 2016 at 10:22 PM, Manujith Pallewatte  wrote:

> Hi all,
>
> I added the final proposal to the gsoc site, thank you all for the support
> and guidance.
>
> On Fri, Mar 25, 2016 at 11:26 AM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi Chamila,
>>
>> I added the draft to GSoC site and selected the share draft option as well
>> But didn't upload the FInal PDF still, since there's still 13 hours
>> remaining
>>
>> Thanks
>>
>> On Fri, Mar 25, 2016 at 11:23 AM, Chamila Wijayarathna 
>> wrote:
>>
>>> Hi Manujith,
>>>
>>> I strongly suggest you to submit your proposal to GSoC site with current
>>> progress. You can update it until the deadline.
>>>
>>> Thank You!
>>>
>>> On Fri, Mar 25, 2016 at 11:17 AM, Manujith Pallewatte <
>>> manujith...@gmail.com> wrote:
>>>
 Hi all,

 I added the automated unit test and integration tests under the
 implementation phase. Since I'm still in process of doing the PEP client
 simulation, I couldn't enter it in the blog, so I didn't mention in it the
 proposal. If I'm to find it before the deadline I will blog and insert it.
 Thank you all again for the many support and guidance!

 On Thu, Mar 24, 2016 at 3:12 PM, Omindu Rathnaweera 
 wrote:

> Hi Manujith,
>
> It's better to include implementation of automation tests in your
> proposal. The automation tests include unit & integration tests and if
> needed, UI tests.  Also you can start blogging about your findings so far
> and add them in your proposal.
>
> Regards,
> Omindu.
>
> On Thu, Mar 24, 2016 at 2:27 AM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi all,
>>
>> Thank you very much for the comments, I revised and changed as much
>> as possible.
>> About the confusion by Entitlement Engine I wanted to refer to the
>> EntitlementEngine.java class in src since it has the main entry points to
>> the service
>> But it is really a confusing detail and i changed it to Identity
>> Server instead
>> Also i added a few illustrations to make some points clear
>> Please give me feedback on the revised proposal
>>
>>
>> https://docs.google.com/document/d/1dz8FcqUHargRM1q0UG0Ln4FHo_zHH-ENz6oc1hjeLYY/edit?usp=sharing
>>
>> Thankx alot again!
>>
>> On Wed, Mar 23, 2016 at 3:41 PM, Pushpalanka Jayawardhana <
>> la...@wso2.com> wrote:
>>
>>> Hi Manujith,
>>>
>>> Added the comments and suggestions. Please have a look and correct.
>>> Please also note that the entitlement engine we have in PDP
>>> component is the Balana engine and there is no seperate entitlelment 
>>> engine
>>> within IS.
>>> IS provides XACML support on top of Balana engine, with other
>>> required functionality for PEP, PAP and PIP.
>>>
>>> Thanks,
>>> Pushpalanka
>>>
>>> On Wed, Mar 23, 2016 at 3:13 PM, Manujith Pallewatte <
>>> manujith...@gmail.com> wrote:
>>>
 Hi all,

 Thankx alot for the input and I added them in the proposal so far
 I have attached the proposal with the mail
 Please review it and let me know points of improvement and any
 additional details I'm missing in it

 Thank You

 On Wed, Mar 23, 2016 at 12:05 PM, Pushpalanka Jayawardhana <
 la...@wso2.com> wrote:

>
>
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Wed, Mar 23, 2016 at 11:58 AM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi all,
>>
>> I will certainly start off with the client, would be a good
>> starting point to observer the responses I think.
>> Thank to Omindu I was able to use SoapUI to simulate a request
>> for now, I'm trying to develop on that as well. Should those things 
>> go in
>> the
>> proposal as well?
>> I have a drafted a basic proposal which I will send asap for your
>> feedback, then once I complete task 1, I can document it too
>>
> This is good progress. It is better to mention what you have tried
> upto now regarding the project in brief, in the proposal.
>
>>
>> Thank You
>>
>> On Wed, Mar 23, 2016 at 11:35 AM, Pushpalanka Jayawardhana <
>> 

Re: [Dev] Releasing carbon-appmgt 1.1.3

2016-05-11 Thread Hasunie Adikari
Hi Dinusha,

Noted.

Thanks

On Wed, May 11, 2016 at 1:30 PM, Dinusha Senanayaka 
wrote:

> Thanks Maheshika. @Hasunie: Please note.
>
> On Wed, May 11, 2016 at 1:20 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> H Dinusha
>>
>> Staged;
>> https://maven.wso2.org/nexus/content/repositories/orgwso2carbonappmgt-1001/
>>
>> On Wed, May 11, 2016 at 12:27 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> Hi Maheshika,
>>>
>>> Can you stage this again and send the URL.
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Tue, May 10, 2016 at 6:45 PM, Dinusha Senanayaka 
>>> wrote:
>>>
 Maheshika, Please drop the staging repo. We will let you know once
 issue is fixed and ready to re-stage.

 Regards,
 Dinusha.

 On Tue, May 10, 2016 at 6:42 PM, Thilini Shanika 
 wrote:

> Hi Hasunie,
>
> The issue is fixed and committed to release-1.1.3 branch [1].
>
> [1] -
> https://github.com/wso2/carbon-appmgt/commit/db32a4d989457066f38f77be16babd3f1926626f
>
> On Tue, May 10, 2016 at 6:23 PM, Inosh Perera  wrote:
>
>> +Dinusha
>>
>> On Tue, May 10, 2016 at 6:20 PM, Hasunie Adikari 
>> wrote:
>>
>>> Hi Dinusha,
>>>
>>> There was a issue in getting image of the Mobile App icon from get
>>> all assets option in AppStore( /store/assets), but its working properly
>>> while its getting from Mobile apps option( ./store/assets/mobileapp ). 
>>> It
>>> seems instead of getting image path, it just takes the file name of the
>>> image.
>>>
>>> thanks.
>>>
>>> On Thu, May 5, 2016 at 8:35 AM, Dinusha Senanayaka >> > wrote:
>>>
 Thanks Maheshika.

 @EMM Team, please verify and confirm.

 Regards,
 Dinusha.

 On Thu, May 5, 2016 at 8:29 AM, Maheshika Goonetilleke <
 mahesh...@wso2.com> wrote:

> Hi Dinusha
>
> Staged
> https://maven.wso2.org/nexus/content/repositories/orgwso2carbonappmgt-1000/
>
> On Wed, May 4, 2016 at 11:37 PM, Dinusha Senanayaka <
> dinu...@wso2.com> wrote:
>
>> Hi Build team,
>>
>> Please stage carbon-appmgt-1.1.3.
>>
>> org.wso2.carbon.appmgt
>> carbon-appmgt
>> 1.1.3
>>
>> Regards,
>> Dinusha.
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com *lean . enterprise .
> middleware
>
>
>
>
>


 --
 Dinusha Dilrukshi
 Associate Technical Lead
 WSO2 Inc.: http://wso2.com/
 Mobile: +94725255071
 Blog: http://dinushasblog.blogspot.com/

 --
 You received this message because you are subscribed to the Google
 Groups "WSO2 Engineering Group" group.
 To unsubscribe from this group and stop receiving emails from it,
 send an email to engineering-group+unsubscr...@wso2.com.
 For more options, visit
 https://groups.google.com/a/wso2.com/d/optout.

>>>
>>>
>>>
>>> --
>>> *Hasunie Adikari*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> blog http://hasuniea.blogspot.com
>>> Mobile:+94715139495
>>>
>>
>>
>>
>> --
>> Inosh Perera
>> Software Engineer, WSO2 Inc.
>> Tel: 077813 7285, 0785293686
>>
>
>
>
> --
> Thilini Shanika
> Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>


 --
 Dinusha Dilrukshi
 Associate Technical Lead
 WSO2 Inc.: http://wso2.com/
 Mobile: +94725255071
 Blog: http://dinushasblog.blogspot.com/

>>>
>>>
>>>
>>> --
>>> Dinusha Dilrukshi
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94725255071
>>> Blog: http://dinushasblog.blogspot.com/
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "WSO2 Engineering Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to engineering-group+unsubscr...@wso2.com.
>>> For more options, visit 

[Dev] Fwd: GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-11 Thread Mahesh Dananjaya
-- Forwarded message --
From: Mahesh Dananjaya 
Date: Wed, May 11, 2016 at 1:43 PM
Subject: Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data
for WSO2 Machine Learner
To: Maheshakya Wijewardena 


Hi Maheshakya,
sorry for not updating. I did what you wanted me to do. I checked the code
base and train functions. I went through those java docs. I went through
the carbon-ml current implementation of LG and K-Mean. And i had Apache
Spark and i tried with several examples. Now i want to implements some
machine learning algorithms with importing mllib and want to run within
your code base. Can you help me with that.
And i want to see how event streams are coming from cep. As i think it is
not in a RDD format since it is arriving as the individual samples. I will
send a email to dev asking about how to get the streams. I debugged many of
those functions in the code base. So need further instructions to
proceed.thank you.
regards,
Mahesh.

On Wed, May 11, 2016 at 10:32 AM, Maheshakya Wijewardena <
mahesha...@wso2.com> wrote:

> Hi Mahesh,
>
> Any update on your progress?
>
> Best regards.
>
> On Wed, May 4, 2016 at 8:35 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi Mahesh,
>>
>> is that "Put break points in train methods in Linear Regression class"
>>> means the spark/algorithms/ LinearRegrassion.java class in the
>>> org.wso2.carbon.ml.core? is that the correct file?
>>
>>
>> Yes, this is the correct place.
>>
>> You can refer to spark programming guide[1][2] as well as our ML code
>> base when you try those algorithms out. Please try to do rough
>> implementations of the streaming versions of linear regression, logistic
>> regression and k-means clustering as we have discussed in the proposal in
>> plain Java. It's better if you can create a git repo and share your code
>> once you have made some progress.
>>
>> Were you able debug and understand the flow of the ML siddhi extension? I
>> hope you haven't encountered more errors after switching the released
>> version of CEP.
>>
>> Is this Friday okay for you? Afternoon at 2:00 pm?
>>
>> Best regards.
>>
>>
>> Best regards.
>>
>> [1] http://spark.apache.org/docs/latest/programming-guide.html
>> [2] http://spark.apache.org/docs/latest/mllib-guide.html
>>
>> On Wed, May 4, 2016 at 1:07 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshakya,
>>> I have been looking into some algorithms related to stochastic gradient
>>> descent based algorithms.anything i should focus please let me know.Ans
>>> also i will be available for calling this week and next week.thank you.
>>> BR,
>>> Mahesh.
>>>
>>> On Tue, May 3, 2016 at 5:05 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi Maheshakya,
 thank you.that's good. i have been trying to fix that for couple of
 days. please inform me when it will be fixed.now i have been testing the ML
 algorithms and trying to identify the flow and the hierarchy. is that "Put
 break points in train methods in Linear Regression class" means the
 spark/algorithms/ LinearRegrassion.java class in the
 org.wso2.carbon.ml.core? is that the correct file?
 And also i am planning to write some programs to use apache spark mllib
 algorithms. and i refer to [1] and some wso2 documentations to get some
 idea about ML structure.thank you.

 BR,
 Mahesh.

 [1]nirmalfdo.blogspot.com

 On Tue, May 3, 2016 at 4:36 PM, Maheshakya Wijewardena <
 mahesha...@wso2.com> wrote:

> Hi Mahesh,
>
> I have checked. It seems the issue you have encountered is cause only
> in the current development branch of the product-cep. It doesn't identify
> the ML siddhi extension as an extension. ML siddhi extension works fine in
> the latest release of CEP (4.1.0) [1].
> Until we figure out the reason and come up with a solution, can you
> use the latest CEP release for your work. It's fine to use that since you
> haven't started actual development yet.
>
> Best regards.
>
> [1] http://wso2.com/products/complex-event-processor/
>
> On Tue, May 3, 2016 at 3:19 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi Mahesh,
>>
>>
>>> Is is vital to use those local repo in my upcoming implementation?
>>
>>
>> Yes. The remote p2-repo contains the p2-repos of released versions.
>> What you have to develop on is the current master of the carbon-ml and
>> product-ml. You can try out with the modification I have suggested. In 
>> the
>> meantime, I'll verify whether the current repos are working as expected.
>>
>> And also i am trying to debug the carbon-ml org.wso2.carbon.ml.core
>>> by putting some break point in the spark/algorithms/Linear Regression
>>
>>
>> It's great that you have started looking at the implementation 

Re: [Dev] ClassNotFoundException on deserializing a custom message object in Hazelcast

2016-05-11 Thread Asitha Nanayakkara
I raised the question in Hazelcast Gitter community and they got back to me
saying to use the com.hazelcast.config.Config#setClassLoader(...) to set
the requeired class loader as the solution.

Since the issue affects all the users of carbon Hzelcast module we have to
fix this in carbon Hazelcast module.

@Kishanthan I've created a PR [1] with the suggested fix (by Hazelcast) to
add the carbon hazelcast module class loader as the class loader of
hazelcast bundle. Please review and merge.

[1] https://github.com/wso2/carbon-kernel/pull/974

On Tue, May 10, 2016 at 5:13 PM, Asitha Nanayakkara  wrote:

> Hi All,
>
> We came across an issue with Hazelcast topics when passing custom message
> objects (Can occur for Maps and all the other data structures in Hazelcast)
> with C5 Hazelcast module. We have created an issue for this as well [1].
> Use case
>
> I'm working with Hazelcast reliable topics in an OSGi environment. I'm
> using a custom message object with Hazelcast topics ClusterNotification
> 
> .
>
> public class ClusterSubscriptionChangedListener implements 
> MessageListener {
>
> /**
>  * This method is triggered when a subscription is changed in clustered 
> environment.
>  *
>  * @param message contains the ClusterNotification
>  */
> @Override
> public void onMessage(Message message) {
>// message handling logic
> }
>  }
>
> I'm publishing/receiving messages to/from Hazelcast topics from another
> OSGi bundle.
> Issue
>
> I can publish messages to the topic successfully. But I don't receive the
> messages from the listener. This is because, when the Hazelcast topic ring
> buffer runners try to pick the serialized message and de-serialize, it
> throws a ClassNotFoundException. *And the exception is silently ignored*
> and the message never received.
> Root cause
>
> Class loader of the Hazelcast bundle cannot see the classes of my bundle.
> Therefore even though I can publish the message from my bundle, Within
> Hazelcast it can't de-serialize the ClusterNotification
> 
> object since the class loader of Hazelcast bundle cannot see the class.
> Solution, way forward?
>
>
>1. After having an offline discussion with Kishanthan we built the
>hazelcast bundle with *
>in the hazelcast pom.xml
>
>and we successfully received the messages (We didn't get the
>ClassNotFoundException). But we need a fix from Hazelcast.
>2. Another way Hazelcast has provided is to set the class loader for
>the HazelcastInstance. So Internally Hazelcast instance will use the
>provided class loader to deserialize the objects. If we provide our bundle
>class loader it will properly deserialize the object without an issue.
>
>
> @Kishanthan I tried to set the class loader of the carbon-kernel hazelcast
> module to the hazelcast instance (when creating the hazelcast instance[2])
> and added dynamic imports * property (to get the solution 2 working from
> the carbon kernel hazelcast module itself). Still I'm having issues in
> loading the Andes classes thorough the carbon Hazelcast module class
> loader.
> [1] https://github.com/hazelcast/hazelcast/issues/8139
> [2]
> https://github.com/wso2/carbon-kernel/blob/hamming-release-poc/modules/carbon-hazelcast/component/src/main/java/org/wso2/carbon/hazelcast/internal/CarbonHazelcastComponent.java#L60
>
> Regards,
> Asitha
>
> --
> *Asitha Nanayakkara*
> Software Engineer
> WSO2, Inc. http://wso2.com/
> Mob: +94 77 853 0682
>
>


-- 
*Asitha Nanayakkara*
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] Releasing carbon-appmgt 1.1.3

2016-05-11 Thread Dinusha Senanayaka
Thanks Maheshika. @Hasunie: Please note.

On Wed, May 11, 2016 at 1:20 PM, Maheshika Goonetilleke 
wrote:

> H Dinusha
>
> Staged;
> https://maven.wso2.org/nexus/content/repositories/orgwso2carbonappmgt-1001/
>
> On Wed, May 11, 2016 at 12:27 PM, Dinusha Senanayaka 
> wrote:
>
>> Hi Maheshika,
>>
>> Can you stage this again and send the URL.
>>
>> Regards,
>> Dinusha.
>>
>> On Tue, May 10, 2016 at 6:45 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> Maheshika, Please drop the staging repo. We will let you know once issue
>>> is fixed and ready to re-stage.
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Tue, May 10, 2016 at 6:42 PM, Thilini Shanika 
>>> wrote:
>>>
 Hi Hasunie,

 The issue is fixed and committed to release-1.1.3 branch [1].

 [1] -
 https://github.com/wso2/carbon-appmgt/commit/db32a4d989457066f38f77be16babd3f1926626f

 On Tue, May 10, 2016 at 6:23 PM, Inosh Perera  wrote:

> +Dinusha
>
> On Tue, May 10, 2016 at 6:20 PM, Hasunie Adikari 
> wrote:
>
>> Hi Dinusha,
>>
>> There was a issue in getting image of the Mobile App icon from get
>> all assets option in AppStore( /store/assets), but its working properly
>> while its getting from Mobile apps option( ./store/assets/mobileapp ). It
>> seems instead of getting image path, it just takes the file name of the
>> image.
>>
>> thanks.
>>
>> On Thu, May 5, 2016 at 8:35 AM, Dinusha Senanayaka 
>> wrote:
>>
>>> Thanks Maheshika.
>>>
>>> @EMM Team, please verify and confirm.
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Thu, May 5, 2016 at 8:29 AM, Maheshika Goonetilleke <
>>> mahesh...@wso2.com> wrote:
>>>
 Hi Dinusha

 Staged
 https://maven.wso2.org/nexus/content/repositories/orgwso2carbonappmgt-1000/

 On Wed, May 4, 2016 at 11:37 PM, Dinusha Senanayaka <
 dinu...@wso2.com> wrote:

> Hi Build team,
>
> Please stage carbon-appmgt-1.1.3.
>
> org.wso2.carbon.appmgt
> carbon-appmgt
> 1.1.3
>
> Regards,
> Dinusha.
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



 --

 Thanks & Best Regards,

 Maheshika Goonetilleke
 Engineering Process Coordinator

 *WSO2 Inc*
 *email   : mahesh...@wso2.com *
 *mobile : +94 773 596707 <%2B94%20773%20596707>*
 *www: :http://wso2.com *lean . enterprise .
 middleware





>>>
>>>
>>> --
>>> Dinusha Dilrukshi
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94725255071
>>> Blog: http://dinushasblog.blogspot.com/
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "WSO2 Engineering Group" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an email to engineering-group+unsubscr...@wso2.com.
>>> For more options, visit
>>> https://groups.google.com/a/wso2.com/d/optout.
>>>
>>
>>
>>
>> --
>> *Hasunie Adikari*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> blog http://hasuniea.blogspot.com
>> Mobile:+94715139495
>>
>
>
>
> --
> Inosh Perera
> Software Engineer, WSO2 Inc.
> Tel: 077813 7285, 0785293686
>



 --
 Thilini Shanika
 Software Engineer
 WSO2, Inc.; http://wso2.com
 20, Palmgrove Avenue, Colombo 3

 E-mail: tgtshan...@gmail.com


>>>
>>>
>>> --
>>> Dinusha Dilrukshi
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94725255071
>>> Blog: http://dinushasblog.blogspot.com/
>>>
>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Engineering Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to engineering-group+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com *lean 

Re: [Dev] Releasing carbon-appmgt 1.1.3

2016-05-11 Thread Maheshika Goonetilleke
H Dinusha

Staged;
https://maven.wso2.org/nexus/content/repositories/orgwso2carbonappmgt-1001/

On Wed, May 11, 2016 at 12:27 PM, Dinusha Senanayaka 
wrote:

> Hi Maheshika,
>
> Can you stage this again and send the URL.
>
> Regards,
> Dinusha.
>
> On Tue, May 10, 2016 at 6:45 PM, Dinusha Senanayaka 
> wrote:
>
>> Maheshika, Please drop the staging repo. We will let you know once issue
>> is fixed and ready to re-stage.
>>
>> Regards,
>> Dinusha.
>>
>> On Tue, May 10, 2016 at 6:42 PM, Thilini Shanika 
>> wrote:
>>
>>> Hi Hasunie,
>>>
>>> The issue is fixed and committed to release-1.1.3 branch [1].
>>>
>>> [1] -
>>> https://github.com/wso2/carbon-appmgt/commit/db32a4d989457066f38f77be16babd3f1926626f
>>>
>>> On Tue, May 10, 2016 at 6:23 PM, Inosh Perera  wrote:
>>>
 +Dinusha

 On Tue, May 10, 2016 at 6:20 PM, Hasunie Adikari 
 wrote:

> Hi Dinusha,
>
> There was a issue in getting image of the Mobile App icon from get all
> assets option in AppStore( /store/assets), but its working properly while
> its getting from Mobile apps option( ./store/assets/mobileapp ). It seems
> instead of getting image path, it just takes the file name of the image.
>
> thanks.
>
> On Thu, May 5, 2016 at 8:35 AM, Dinusha Senanayaka 
> wrote:
>
>> Thanks Maheshika.
>>
>> @EMM Team, please verify and confirm.
>>
>> Regards,
>> Dinusha.
>>
>> On Thu, May 5, 2016 at 8:29 AM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Dinusha
>>>
>>> Staged
>>> https://maven.wso2.org/nexus/content/repositories/orgwso2carbonappmgt-1000/
>>>
>>> On Wed, May 4, 2016 at 11:37 PM, Dinusha Senanayaka <
>>> dinu...@wso2.com> wrote:
>>>
 Hi Build team,

 Please stage carbon-appmgt-1.1.3.

 org.wso2.carbon.appmgt
 carbon-appmgt
 1.1.3

 Regards,
 Dinusha.

 --
 Dinusha Dilrukshi
 Associate Technical Lead
 WSO2 Inc.: http://wso2.com/
 Mobile: +94725255071
 Blog: http://dinushasblog.blogspot.com/

>>>
>>>
>>>
>>> --
>>>
>>> Thanks & Best Regards,
>>>
>>> Maheshika Goonetilleke
>>> Engineering Process Coordinator
>>>
>>> *WSO2 Inc*
>>> *email   : mahesh...@wso2.com *
>>> *mobile : +94 773 596707 <%2B94%20773%20596707>*
>>> *www: :http://wso2.com *lean . enterprise .
>>> middleware
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "WSO2 Engineering Group" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to engineering-group+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout
>> .
>>
>
>
>
> --
> *Hasunie Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> blog http://hasuniea.blogspot.com
> Mobile:+94715139495
>



 --
 Inosh Perera
 Software Engineer, WSO2 Inc.
 Tel: 077813 7285, 0785293686

>>>
>>>
>>>
>>> --
>>> Thilini Shanika
>>> Software Engineer
>>> WSO2, Inc.; http://wso2.com
>>> 20, Palmgrove Avenue, Colombo 3
>>>
>>> E-mail: tgtshan...@gmail.com
>>>
>>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Engineering Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to engineering-group+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

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


Re: [Dev] [C5] BPS Server startup hangs after a NPE.

2016-05-11 Thread Niranjan Karunanandham
Hi Hasitha,

Looks like this issue is similar to that mentioned in stackoverflow[1]. I
will look into this and get back to you.

[1] -
http://stackoverflow.com/questions/30590378/java-8-stream-api-exceptions-when-modifying-lists

Regards,
Nira

On Tue, May 10, 2016 at 12:44 PM, Niranjan Karunanandham 
wrote:

> Hi Hasitha,
>
> I am currently making the changes to msf4j with the improvement startup
> resolver changes which is done in C 5.1.0-alpha2.
>
> Regards,
> Nira
>
> On Tue, May 10, 2016 at 12:02 PM, Hasitha Aravinda 
> wrote:
>
>> Hi Kernel team,
>>
>> I am getting following NPE when server startup. Please have a look.
>>
>> [2016-05-10 11:52:55,080]  INFO
>> {org.wso2.msf4j.internal.MicroservicesServerSC} - All microservices are
>> available
>> [2016-05-10 11:52:55,081]  INFO
>> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
>> - All CarbonNettyServerInitializers are available
>> [2016-05-10 11:52:55,082]  INFO
>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
>> Netty Http Transport Listener
>> [2016-05-10 11:52:55,301]  INFO
>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
>> Listener starting on port 
>> [2016-05-10 11:52:55,302]  INFO
>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
>> Netty Http Transport Listener
>> [2016-05-10 11:52:55,352]  INFO
>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
>> Listener starting on port 
>> *Exception in thread "Timer-1" java.lang.NullPointerException*
>> at
>> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$2.lambda$run$7(StartupOrderResolver.java:239)
>> at java.util.ArrayList.forEach(ArrayList.java:1249)
>> at
>> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$2.run(StartupOrderResolver.java:236)
>> at java.util.TimerThread.mainLoop(Timer.java:555)
>> at java.util.TimerThread.run(Timer.java:505)
>>
>>
>> Thanks,
>> Hasitha.
>>
>> --
>> --
>> Hasitha Aravinda,
>> Senior Software Engineer,
>> WSO2 Inc.
>> Email: hasi...@wso2.com
>> Mobile : +94 718 210 200
>>
>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 

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


Re: [Dev] Release tag's not available in ML repo

2016-05-11 Thread Manoj Kumara
Great Thanks Supun.

*Manoj Kumara*
WSO2 Inc. *| **lean. enterprise. middleware.*
*Mobile:* +94 713 448188

On Wed, May 11, 2016 at 12:30 PM, Supun Sethunga  wrote:

> Hi Manoj,
>
> Yes, latest RCs contain the released versions of dependencies. Please go
> ahead with 1.0.0-RC2 and 1.1.0-RC5.
>
> We'll create a release tag as well.
>
> Regards,
> Supun
>
> On Wed, May 11, 2016 at 12:16 PM, Manoj Kumara  wrote:
>
>> Hi ML Team,
>>
>> I'll looking into released tags of each product to issue an security
>> patch and noticed that tag correspond to 1.0.0 and 1.1.0 version is not
>> available in the repo.
>>
>> Can I assume the latest RC tag contain the released version of each
>> dependency repo's. IMO this tag need to be created as well for supporting
>> purposes.
>>
>> Regards,
>> Manoj
>>
>
>
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Release tag's not available in ML repo

2016-05-11 Thread Supun Sethunga
Hi Manoj,

Yes, latest RCs contain the released versions of dependencies. Please go
ahead with 1.0.0-RC2 and 1.1.0-RC5.

We'll create a release tag as well.

Regards,
Supun

On Wed, May 11, 2016 at 12:16 PM, Manoj Kumara  wrote:

> Hi ML Team,
>
> I'll looking into released tags of each product to issue an security patch
> and noticed that tag correspond to 1.0.0 and 1.1.0 version is not available
> in the repo.
>
> Can I assume the latest RC tag contain the released version of each
> dependency repo's. IMO this tag need to be created as well for supporting
> purposes.
>
> Regards,
> Manoj
>



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


Re: [Dev] Releasing carbon-appmgt 1.1.3

2016-05-11 Thread Dinusha Senanayaka
Hi Maheshika,

Can you stage this again and send the URL.

Regards,
Dinusha.

On Tue, May 10, 2016 at 6:45 PM, Dinusha Senanayaka 
wrote:

> Maheshika, Please drop the staging repo. We will let you know once issue
> is fixed and ready to re-stage.
>
> Regards,
> Dinusha.
>
> On Tue, May 10, 2016 at 6:42 PM, Thilini Shanika 
> wrote:
>
>> Hi Hasunie,
>>
>> The issue is fixed and committed to release-1.1.3 branch [1].
>>
>> [1] -
>> https://github.com/wso2/carbon-appmgt/commit/db32a4d989457066f38f77be16babd3f1926626f
>>
>> On Tue, May 10, 2016 at 6:23 PM, Inosh Perera  wrote:
>>
>>> +Dinusha
>>>
>>> On Tue, May 10, 2016 at 6:20 PM, Hasunie Adikari 
>>> wrote:
>>>
 Hi Dinusha,

 There was a issue in getting image of the Mobile App icon from get all
 assets option in AppStore( /store/assets), but its working properly while
 its getting from Mobile apps option( ./store/assets/mobileapp ). It seems
 instead of getting image path, it just takes the file name of the image.

 thanks.

 On Thu, May 5, 2016 at 8:35 AM, Dinusha Senanayaka 
 wrote:

> Thanks Maheshika.
>
> @EMM Team, please verify and confirm.
>
> Regards,
> Dinusha.
>
> On Thu, May 5, 2016 at 8:29 AM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Dinusha
>>
>> Staged
>> https://maven.wso2.org/nexus/content/repositories/orgwso2carbonappmgt-1000/
>>
>> On Wed, May 4, 2016 at 11:37 PM, Dinusha Senanayaka > > wrote:
>>
>>> Hi Build team,
>>>
>>> Please stage carbon-appmgt-1.1.3.
>>>
>>> org.wso2.carbon.appmgt
>>> carbon-appmgt
>>> 1.1.3
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> --
>>> Dinusha Dilrukshi
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94725255071
>>> Blog: http://dinushasblog.blogspot.com/
>>>
>>
>>
>>
>> --
>>
>> Thanks & Best Regards,
>>
>> Maheshika Goonetilleke
>> Engineering Process Coordinator
>>
>> *WSO2 Inc*
>> *email   : mahesh...@wso2.com *
>> *mobile : +94 773 596707 <%2B94%20773%20596707>*
>> *www: :http://wso2.com *lean . enterprise .
>> middleware
>>
>>
>>
>>
>>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "WSO2 Engineering Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to engineering-group+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



 --
 *Hasunie Adikari*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 blog http://hasuniea.blogspot.com
 Mobile:+94715139495

>>>
>>>
>>>
>>> --
>>> Inosh Perera
>>> Software Engineer, WSO2 Inc.
>>> Tel: 077813 7285, 0785293686
>>>
>>
>>
>>
>> --
>> Thilini Shanika
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>> 20, Palmgrove Avenue, Colombo 3
>>
>> E-mail: tgtshan...@gmail.com
>>
>>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-transport feature does not contain netty-transports.yml

2016-05-11 Thread Senduran Balasubramaniyam
Hi All,

We'll update the feature pom with resource plugin

Regards
Senduran

On Wed, May 11, 2016 at 11:48 AM, Afkham Azeez  wrote:

> Yes, it has to be added
>
> On Wed, May 11, 2016 at 9:02 AM, Niranjan Karunanandham  > wrote:
>
>> Hi all,
>>
>> When I tried installing carbon-transports feature to Carbon-Kernel 5.1.0
>> and started the pack, I noticed that it requires a config file
>> (netty-transports.yml). Shouldn't this file be added via the feature?
>>
>> Regards,
>> Nira
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> *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*
>



-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Release tag's not available in ML repo

2016-05-11 Thread Manoj Kumara
Hi ML Team,

I'll looking into released tags of each product to issue an security patch
and noticed that tag correspond to 1.0.0 and 1.1.0 version is not available
in the repo.

Can I assume the latest RC tag contain the released version of each
dependency repo's. IMO this tag need to be created as well for supporting
purposes.

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


Re: [Dev] GReg 5.0.1 tag is not available in Git repo

2016-05-11 Thread Manoj Kumara
Great. Thanks for the confirmation.

*Manoj Kumara*
WSO2 Inc. *| **lean. enterprise. middleware.*
*Mobile:* +94 713 448188

On Wed, May 11, 2016 at 12:13 PM, Sameera Kannangara 
wrote:

> Hi Manoj,
>
> v5.0.1-RC3 is the the tag for G-Reg 5.0.1 release.
> I'll look in to creating a tag to represent 5.0.1 release.Thanks for
> pointing out the missing tag.
>
> Thank you,
> SameeraK.
>
> On Wed, May 11, 2016 at 12:05 PM, Manoj Kumara  wrote:
>
>> Hi Greg Team,
>>
>> I'll looking into released tags of each product to issue an security
>> patch and noticed that tag correspond to 5.1.0 version is not available in
>> the repo.
>>
>> Can I assume the v5.0.0-rc3 tag contain the released version of each
>> dependency repo's. IMO this tag need to be created as well for supporting
>> purposes.
>>
>> Regards,
>> Manoj
>>
>
>
>
> --
> *Sameera Kannangara*
> Software Engineer
> Platform TG; WSO2 Inc. http://wso2.com
> Contact:
> phone: +94719541577
> Lean . Enterprise . Middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GReg 5.0.1 tag is not available in Git repo

2016-05-11 Thread Sameera Kannangara
Hi Manoj,

v5.0.1-RC3 is the the tag for G-Reg 5.0.1 release.
I'll look in to creating a tag to represent 5.0.1 release.Thanks for
pointing out the missing tag.

Thank you,
SameeraK.

On Wed, May 11, 2016 at 12:05 PM, Manoj Kumara  wrote:

> Hi Greg Team,
>
> I'll looking into released tags of each product to issue an security patch
> and noticed that tag correspond to 5.1.0 version is not available in the
> repo.
>
> Can I assume the v5.0.0-rc3 tag contain the released version of each
> dependency repo's. IMO this tag need to be created as well for supporting
> purposes.
>
> Regards,
> Manoj
>



-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC2016-Contact Development Team Feature

2016-05-11 Thread Nathiesha Maddage
Hi all,

Regarding the preference settings, as I have read, the plugins that are
started early are listed in preferences-general-startup and shutdown page.
So the user can deselect the plugin from that list and then it will not be
started once Eclipse starts. Is this what is expected? Or I can add an
option for the user to configure the start up settings of the error
reporting plugin, in a separate preference page, that I am going to develop
for the Error Reporting plugin settings.

And regarding the multi status of IStatus, I will look into that and I will
try to fetch all the previously failed operation information. Here I have
attached a error report that Eclipse error reporting tool produces. Please
have a look at the information listed in that report regarding the error.
As you have mentioned earlier, I will add the previously failed operation
details if available. Other than previously failed operations and the
information listed in the attached report , what else need to be added to
the error report? Or is that information sufficient for the development
team?

And thank you for the tips about getting the run time details. That saved
my time. I will try those. And as you have suggested, it is good to use the
proper coding standards from the beginning. I will get an idea from the
example project you have sent me, and I will refactor the code accordingly.


Thanks and regards

Nathiesha



On Wed, May 11, 2016 at 10:08 AM, Kavith Lokuhewage  wrote:

> Hi Nathiesha,
>
> Great start! Just some heads up for your next steps.
>
> An IStatus instance sometimes could be a multi status instance where you
> can get other IStatus instances associated with it using the getChildren()
> method[1]. This simply means that a series of operations failed and
> information about previously failed operations are also valuable when
> making the report.
>
> There are multiple ways to read java run-time version, the easiest would
> be to read the system property called "java.runtime.version".
>
> Furthermore, org.eclipse.core.runtime.Platform class [2] provides multiple
> methods to fetch run-time environment information such as OS name,
> architecture and windowing library etc. It will also be helpful for you
> fetch additional information about the run-time environment.
>
> On a side note, I would suggest that it will be good if you starts coding
> with the proper coding standards we use, from the beginning. This will
> reduce the time it takes to refactor the code later, in a great amount. As
> a start you can refactor the current package hierarchy to a proper package
> hierarchy we use for developer studio plugins [get an idea from - 3].
>
> I am attaching the license header and eclipse code cleanup and formatting
> templates for java.
> Go to Window -> Preferences -> Java-> Code Style
>1. Set attached templates as cleanup and formatting templates
> (next format current classes)
>2. Set the contents of license header file as the java file
> comment template in code templates section.
>
> Thanks,
> Kavith Lokuhewage
>
> [1]
> http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fcore%2Fruntime%2FIStatus.html
> [2]
> http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fcore%2Fruntime%2FPlatform.html
> [3]
> https://github.com/wso2/developer-studio/tree/master/plugins/org.wso2.developerstudio.eclipse.updater
>
>
>
> On Wed, May 11, 2016 at 9:25 AM, Nathiesha Maddage <
> nathieshamadd...@gmail.com> wrote:
>
>> Hi all,
>>
>> I created a git hub repository, so the project progress can easily be
>> tracked.
>>
>> I could start up the plugin when the IDE starts up, by implementing
>> Istartup interface. I tested it as well. Then I created a log listener
>> class and attached that to the platform log, so any error is notified.
>> The next task is to filter the Dev studio plugin errors out of them. For
>> testing purposes, currently my code filters out the errors caused
>> by org.eclipse.core.runtime, and that seem to work fine. I created a very
>> basic dialog to notify the error, which will be triggered when an error
>> occurs. I will further improve the UI later.
>> And currently I am working on collecting the information regarding the
>> error, that need to be included in the report. Certain information like
>> plugin id, error message and severity can be easily obtained by the Istatus
>> object, and now I am searching for ways to fetch the other information like
>> java version, plugin version, osgi and bundle related information.
>>
>> GitHub Link- https://github.com/nathiesha/ErrorReportingTool.git
>>
>>
>> Regards
>>
>> Nathiesha
>>
>> On Thu, May 5, 2016 at 6:39 PM, Nathiesha Maddage <
>> nathieshamadd...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> This is the summary of the facts we discussed during the chat.
>>>
>>>
>>>- Original project proposal was discussed 

[Dev] GReg 5.0.1 tag is not available in Git repo

2016-05-11 Thread Manoj Kumara
Hi Greg Team,

I'll looking into released tags of each product to issue an security patch
and noticed that tag correspond to 5.1.0 version is not available in the
repo.

Can I assume the v5.0.0-rc3 tag contain the released version of each
dependency repo's. IMO this tag need to be created as well for supporting
purposes.

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


Re: [Dev] What should be the default port for analytics servers

2016-05-11 Thread Isabelle Mauny
+1. This is only for Dev Iranga, not a real deployment.

On Wednesday, May 11, 2016, Chanaka Fernando  wrote:

> Hi Iranga,
>
> What we are considering here is a scenario where we deploy ESB and
> analytics server in a development environment (local machine). If you do a
> real deployment, you need to know about the port offset values and have
> more control over that. But for the simplest deployment (local
> development), having offset of 1 would work and I don't see a requirement
> to have another parameter and complicate the things.
>
> On Wed, May 11, 2016 at 11:19 AM, Iranga Muthuthanthri  > wrote:
>
>> Should not we have a different offset than 1 and use a 'different-offset'
>> (e.g:10?), since for single node deployment  there could  include multiple
>>  runtimes  such as   ESB(runtime) + API-M(runtime)  with  one analytical
>> server ( having multiple product analytics features).  'different- offset'
>> might be more easier for cloud deployment setup as well
>>
>> On Tue, May 10, 2016 at 10:18 PM, Chanaka Fernando > > wrote:
>>
>>> +1 for having an offset of 1 for analytics server.
>>>
>>> On Tue, May 10, 2016 at 7:25 PM, Isabelle Mauny >> > wrote:
>>>
 Very good catch :)

 +1 to consistency. Let’s go for offset 1 for Analytics across the board
 if everybody is happy with that ..
 __

 Isabelle Mauny
 VP, Product Management; WSO2, Inc.;  http://wso2.com/

 On May 10, 2016, at 2:41 PM, Asanka Vithanage > wrote:

 Hi All,

 As per the new strategy, Product is considered as a collection of
 runtime + Analytics + tooling. So ideally users should be able to run and
 try both runtime and analytics servers without any configuration changes.

 ESB runtime and ESB analytics servers currently start on port 9443. So
 we have to add port offset on one of the server.
 But in API Manager, Analytics server comes with port offset 1. so there
 is no standard about $Subject.

 Shouldn't we ship all the analytics servers with a standard port
 offset? WDYT?



 --
 Asanka Vithanage
 Senior Software Engineer -QA
 Mobile: +94 0716286708
 Email: asan...@wso2.com
 
 WSO2 Inc. www.wso2.com



>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Iranga Muthuthanthri
>> (M) -0777-255773
>> Team Product Management
>>
>>
>
>
> --
> 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
>
>
>
>
>

-- 
-
*Isabelle Mauny*
VP, Product Management - WSO2, Inc. - http://wso2.com/
email: isabe...@wso2.com - mobile (Spain) : +34 616050684 - mobile (Sri
Lanka) +94 (0)774777663
Landline:  +1 (650) 745 4499  (USA)  or +94 (11) 214 534 (SL) Extension :
7302
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-transport feature does not contain netty-transports.yml

2016-05-11 Thread Afkham Azeez
Yes, it has to be added

On Wed, May 11, 2016 at 9:02 AM, Niranjan Karunanandham 
wrote:

> Hi all,
>
> When I tried installing carbon-transports feature to Carbon-Kernel 5.1.0
> and started the pack, I noticed that it requires a config file
> (netty-transports.yml). Shouldn't this file be added via the feature?
>
> Regards,
> Nira
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 
*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] [Vote] Developer Studio Kernel RC 2 released !

2016-05-11 Thread Awanthika Senarath
Hello Jasintha,

Noted, Please find my inline comments

-All submenus should have a menu icon

+1, I will look into this.

-Capp and Maven preferences pages  should be removed from kernel and should
only appear when that plugins are installed

+1, Will remove these from Kernel and move them to appropriate platform
bundles.

-In Install feature dialog , WSO2 carbon UI appear before the BPS feature ,
seems there is bug when sorting

I checked this. The sorting happens from the ID of the plugin and not the
Display name. The IDs of these plugins are in such a way that when they are
sorted alphabetically the order appears as mentioned. We need to revisit
the feature IDs of all product plugins bearing the knowledge that the ID
determines the order in which the plugins appear in the updater tool

-Menu seperators are appearing in Developer studio menu , all the eclipse
standard menus has menu separators
-Add keyboard shortcut for relevant sub menus
-better if we can add submenu under Developer studio menu to reach
Developer studio preferences  directly

I will look into this. Yet these are not blockers IMO.

Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Tue, May 10, 2016 at 7:55 AM, Jasintha Dasanayake 
wrote:

> I have noticed following  improvement , those are not blockers but better
> if we can get it fix in GA from usability point of view
>
> -Menu seperators are appearing in Developer studio menu , all the eclipse
> standard menus has menu separators
> -Add keyboard shortcut for relevant sub menus
> -All submenus should have a menu icon
> -better if we can add submenu under Developer studio menu to reach
> Developer studio preferences  directly
> -Capp and Maven preferences pages  should be removed from kernel and
> should only appear when that plugins are installed
> -In Install feature dialog , WSO2 carbon UI appear before the BPS feature
> , seems there is bug when sorting
>
> Apart from above important all other major features are working fine
>
> Thanks and Regards
> /Jasintha
>
>
>
>
> On Thu, May 5, 2016 at 3:01 PM, Awanthika Senarath 
> wrote:
>
>> Hello Devs,
>>
>>
>> We are pleased to announce the vote for RC-2 of
>> *WSO2 Developer Studio Kernel 4.1.0.*
>>
>> P2 repository of WSO2 developer Studio kernel 4.1.0 is available here
>> .
>>  Source
>> and Tag Location to be voted upon is available here
>> 
>> .
>>
>> Developer Studio 4.1.0 Kernel is released on Eclipse Mars (Eclipse 4.5)
>>
>> Developer Studio Kernel contains a single feature which has the bundles
>> that are required to implement WSO2 specific product tooling on Eclipse.
>>
>>- This release contains Developer Studio migration to Eclipse mars
>>- Improvements in the Developer Studio Updater tool for automatic
>>updates
>>
>> The Features and improvements in the RC 2 :
>>
>>
>>1. [+] Stable - go ahead and release
>>2. [-]  Broken - do not release (please explain why)
>>
>>
>>
>> Regards,
>> Dev Studio Team
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Jasintha Dasanayake*
>
> *Senior Software EngineerWSO2 Inc. | http://wso2.com
> lean . enterprise . middleware*
>
>
> *mobile :- 0711368118*
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Reading headers/form fields of a multipart/form-data request in msf4j

2016-05-11 Thread Samiyuru Senarathne
When I was looking into form processing in MSF4J, I was looking at
modifying apache commons [1][2] to meet our needs since it has multipart
support and it is widely used with servlets. But IMO we wont be able to use
it directly out of the box as a library to parse the byte buffer we have
because it starts processing from a servlet request object.

[1] - https://commons.apache.org/proper/commons-fileupload/using.html
[2] - https://commons.apache.org/proper/commons-fileupload/streaming.html

On Wed, May 11, 2016 at 11:18 AM, Himasha Guruge  wrote:

> In C4 we have used [1] for this purpose.
>
> [1] http://cxf.apache.org/docs/jax-rs-multiparts.html
>
> On Wed, May 11, 2016 at 11:12 AM, Afkham Azeez  wrote:
>
>> Any libraries you are familiar with? Since BPS folks are using the code
>> from the MSF4J master branch, we may be able to quickly implement it.
>>
>> On Wed, May 11, 2016 at 11:09 AM, Samiyuru Senarathne 
>> wrote:
>>
>>> Hi Azeez,
>>>
>>> Yes I looked at this sometime back. But it was not progressed to the
>>> implementation level.
>>>
>>> For the moment we will have to use a multipart/form-data parsing library
>>> to parse the raw HTTP body. We can get the raw HTTP body by injecting an
>>> org.wso2.msf4j.Request object to the resource method using @Context
>>> annotation.
>>>
>>> Best Regards,
>>> Samiyuru
>>>
>>> On Wed, May 11, 2016 at 11:02 AM, Afkham Azeez  wrote:
>>>
 Samiyuru,
 You looked at this some time back right? What work is involved in
 implementing this?

 Azeez

 On Wed, May 11, 2016 at 11:00 AM, Himasha Guruge 
 wrote:

> From the offline discussion with Azeez, it seems that this is not
> supported in current msf4j implementation. How are we to proceed with the
> use case of acquiring form field values from the request?
>
>
>
> On Wed, Apr 6, 2016 at 11:22 AM, Himasha Guruge 
> wrote:
>
>> Hi All,
>>
>> I have gone through the available sample [1]  on how to process a
>> stream and read and save files in msf4j. However given a request with 
>> form
>> fields like [2] , how can we retrieve those form fields in msf4j? If it 
>> is
>> to read from the stream itself, any suggested way to do this?
>>
>> [1]
>> https://github.com/wso2/msf4j/blob/652435ee7f8fdf31307667adb888e9a13513f6d8/samples/petstore/microservices/fileserver/src/main/java/org/wso2/msf4j/examples/petstore/fileserver/FileServerService.java
>>
>> [2] curl --form
>> "fileupload=@Desktop/bigdot.png;filename=desired-filename.txt" --form
>> param1=value1 --form param2=value2
>> http://localhost:8080/bps/repo/stream
>>
>> Thanks,
>>
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

>>>
>>>
>>>
>>> --
>>> Samiyuru Senarathne
>>> *Software Engineer*
>>> Mobile : +94 (0) 71 134 6087
>>> samiy...@wso2.com
>>>
>>
>>
>>
>> --
>> *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*
>>
>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
Samiyuru Senarathne
*Software Engineer*
Mobile : +94 (0) 71 134 6087
samiy...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev