[Dev] WSO2 IoTS Analytics v1.0.0-ALPHA Released

2016-05-30 Thread Sriskandarajah Suhothayan
*WSO2 IoTS Analytics v1.0.0-ALPHA Released*

We are pleased to announce the alpha release of WSO2 IOTS Analytics v1.0.0 [
1 ] which is powered by WSO2 Data
Analytics Server. IoTS Analytics can be used to monitor devices and analyze
their sensor readings. Your feedback is highly appreciated, any bugs or
issues can be reported here [2 ].

This release contains the following capabilities:-

   1. Device Overview Dashboard - showing overview of device status.
   2. Geo Dashboard with predefined geographical analysis.
   3. Gadget generation wizard
   4. Analytics Execution Manager - with predefined common analytics
   solutions such as current value (number) chats, groped analysis (via bar
   charts) with Siddhi & Spark queries & stream mapping.

[1]
http://svn.wso2.org/repos/wso2/people/suho/packs/analytics-iots/wso2analytics-iots-1.0.0-SNAPSHOT.zip
[2] *https://wso2.org/jira/browse/ANLYIOTS
*

Analytics IoTS Team


-- 

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


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


Re: [Dev] Regarding Proposal 6: [ML] Predictive analytics with online data for WSO2 Machine Learner

2016-05-30 Thread Heshani Herath
Hi Maheshakya,

I would like to know what is the structure of streaming data or what type
of streaming data(video,image,etc) you except to handle here?



On Wed, Mar 23, 2016 at 11:01 AM, Supun Sethunga  wrote:

> Hi Heshani,
>
> Have you started working on the project proposal? if so can you please
> send us a draft to review?
>
> Thanks,
> Supun
>
> On Thu, Mar 3, 2016 at 2:35 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi Heshani,
>>
>> Please add WSO2 developers list as well when you are inquiring about
>> projects because the community is interested in these projects and their
>> input is vital and the decisions are made collaboratively.
>>
>> That said, about your request; this projects is targeted to be a GSoC
>> project so the scope and the time line of the project should comply with
>> the GSoC official time lines. So there should be a concrete goal and
>> associated tasks that can be completed within that time frame. These tasks
>> should be properly discussed with the community and finalized, so that they
>> can go into the project proposal.
>> If you want to continue this as your final year project, you should
>> discuss about what more can be done (in addition to the components added in
>> GSoC project) and also find a supervisor. But this should be done
>> independently from the GSoC and you need to get approval from WSO2 for that.
>>
>> As a starting point (considering GSoC), you can download Machine Learner
>> product, go through examples and quick start guide.
>> Then you can try developing small ML applications with Spark ML lib and
>> play around with Spark streaming as well.
>> After getting some concrete idea, try to write a program using Spark
>> Streaming and ML lib streaming linear regression, streaming k-means to
>> train models with streaming data and share your you experience with us.
>>
>> Best regards.
>>
>> On Thu, Mar 3, 2016 at 12:23 PM, Heshani Herath <
>> heshani7.her...@gmail.com> wrote:
>>
>>> Hi Maheshakya,
>>>
>>> I went through WSO2 ML details,as I'm doing this as the 4th year
>>> research project I need more requirements to fit for the whole year, If
>>> there are any requirements to be done please be kind enough to share with
>>> me.
>>>
>>> Thank you!
>>>
>>> On Mon, Feb 29, 2016 at 3:19 PM, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 Hi Heshani,

 Thank you for the interest for this project.

 WSO2 Machine Learner supports several learning algorithms at the
 moment[1]. This project intends is to leverage the existing algorithms in
 WSO2 Machine Learner to support streaming data. As an initiative, first you
 can get an idea about what WSO2 Machine Learner does and how it operates.
 You can download WSO2 Machine Learner from product page[2] and the the
 source code [3]. ML is using Apache Spark MLLib[4] for its' algorithms so
 it's better to read and understand what it does as well.

 In order to get an idea about the deliverables and the scope of this
 project, try to understand how Spark streaming[5] (see examples) handles
 streaming data. Also, have a look in the streaming algorithms[6][7]
 supported by MLLib. There are two approaches discussed to employ
 incremental learning in ML in the project proposals page. These streaming
 algorithms can be directly used in the first approach. For the other
 approach, the your implementation should contain a procedure to create mini
 batches from streaming data with relevant sizes (i.e. a moving window) and
 do periodic retraining of the same algorithm.

 To start with the project, you will need to come up with a suitable
 plan and an architecture first.

 Please watch the video referenced in the proposal (reference: 5). It
 will help you getting a better idea about machine learning algorithms with
 streaming data.

 Let us know if you need any help with these.

 Best regards

 [1] https://docs.wso2.com/display/ML110/Machine+Learner+Algorithms
 [2] http://wso2.com/products/machine-learner/
 [3]
 https://docs.wso2.com/display/ML110/Building+from+Source#BuildingfromSource-Downloadingthesourcecheckout
 [4] https://spark.apache.org/docs/1.4.1/mllib-guide.html
 [5]
 https://spark.apache.org/docs/1.4.1/streaming-programming-guide.html
 [6]
 https://spark.apache.org/docs/1.4.1/mllib-linear-methods.html#streaming-linear-regression
 [7]
 https://spark.apache.org/docs/1.4.1/mllib-clustering.html#streaming-k-means

 On Mon, Feb 29, 2016 at 2:54 PM, Heshani Herath <
 heshani7.her...@gmail.com> wrote:

> Hi,
>
>
> https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal6:[ML]PredictiveanalyticswithonlinedataforWSO2MachineLearner
>
> I'm a 4th year undergraduate from SLIIT faculty of
> computing(specializing in Software 

[Dev] [UUF] Functionalities related OSGi Services are not working

2016-05-30 Thread Sudharma Subasinghe
Hi,

I put sample OSGi bundle into uuf osgi/dropins folder and checked OSGi
services using 'services' command. It showed the sample osgi service.

1) Then I tested getOSGiService(..) method using sample OSGi service as
following.

function onRequest(context) {
getOSGiServices("org.wso2.mbp.sample01.Service");
}

I got the following exception when loading required page.

[2016-05-31 10:20:47,931] ERROR {org.wso2.carbon.uuf.internal.UUFRegistry}
- A server occurred while serving for request
'/bpmn-explorer/bpmn/process'. org.wso2.carbon.uuf.exception.UUFException:
Cannot create the initial context when calling OSGi service
'org.wso2.mbp.sample01.Service'.
at org.wso2.carbon.uuf.core.API.getOSGiServices(API.java:104)
at
org.wso2.carbon.uuf.handlebars.JSExecutable$$Lambda$89/1787549760.call(Unknown
Source)
at
jdk.nashorn.internal.scripts.Script$Recompilation$8$28A$\^eval\_.onRequest(/home/sudharma/Documents/carbon-uuf/product/target/wso2uuf-1.0.0-m5/deployment/uufapps/org.wso2.uuf.sample.bpmn-explorer/components/root/pages/bpmn/process.js:4)
at
jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:638)
at
jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:229)
at
jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:387)
at
jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:192)
at
jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:381)
at
jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:187)
at
org.wso2.carbon.uuf.handlebars.JSExecutable.execute(JSExecutable.java:72)
at
org.wso2.carbon.uuf.handlebars.renderable.HbsPageRenderable.executeExecutable(HbsPageRenderable.java:92)
at
org.wso2.carbon.uuf.handlebars.renderable.HbsPageRenderable.render(HbsPageRenderable.java:63)
at org.wso2.carbon.uuf.core.Page.render(Page.java:48)
at org.wso2.carbon.uuf.core.Component.renderPage(Component.java:89)
at org.wso2.carbon.uuf.core.App.renderPage(App.java:85)
at org.wso2.carbon.uuf.internal.UUFRegistry.serve(UUFRegistry.java:113)
at
org.wso2.carbon.uuf.connector.ms.UUFMicroservice.execute(UUFMicroservice.java:105)
at
org.wso2.carbon.uuf.connector.ms.UUFMicroservice.get(UUFMicroservice.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMethodInfo.java:95)
at
org.wso2.msf4j.internal.router.HttpDispatcher.channelRead0(HttpDispatcher.java:53)
at
org.wso2.msf4j.internal.router.HttpDispatcher.channelRead0(HttpDispatcher.java:31)
at
io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at
io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:32)
at
io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:299)
at
io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36)
at
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
at
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)


2) Also I tested callOSGiService() as following

function onRequest(context) {
callOSGiService("org.wso2.mbp.sample01.Service", "test", null);
}

Got the following exception for that also.


[2016-05-31 10:32:39,398] ERROR {org.wso2.carbon.uuf.internal.UUFRegistry}
- A server occurred while serving for request
'/bpmn-explorer/bpmn/process'. org.wso2.carbon.uuf.exception.UUFException:
An error occurred when executing the 'onRequest' function in JavaScript
file
'/home/sudharma/Documents/carbon-uuf/product/target/wso2uuf-1.0.0-m5/deployment/uufapps/org.wso2.uuf.sample.bpmn-explorer/components/root/pages/bpmn/process.js'
with context '{app={context=/bpmn-explorer,
config={lifecycle=[{state=adopted, show=false}, {state=new, show=true}],
elementsPerPage=10, menu={main=[{icon=fw-home, link=#home, text=Home}, {MY
TASKS=[{icon=fw fw-list, link=bpmn, text=MY TASKS}]}, {CLAIMABLE
TASKS=[{icon=fw fw-add, link=bpmn/claimableTasks, text=CLAIMABLE TASKS}]},
{COMPLETED TASKS=[{icon=fw fw-bug, link=bpmn/historicTasks, text=COMPLETED
TASKS}]}, {PROCESSES=[{icon=fw fw-list, link=bpmn/process,
text=PROCESSES}]}]}, defaultTheme=org.wso2.uuf.theme.default, appName=BPMN
Explorer, productName=Unified UI Base}}, request={"method": "GET",
"protocol": "HTTP/1.1", "uri": "/bpmn-explorer/bpmn/process",
"queryString": "null"}, 

Re: [Dev] Deprecating File Connector V1

2016-05-30 Thread Vivekananthan Sivanayagam
+ dev

File Connector V1 has been deprecated.






*Thank youVivekananthan Sivanayagam*

*Associate Software Engineer | WSO2*

*E:vivekanant...@wso2.com *
*M:+94752786138*

On Mon, May 30, 2016 at 12:21 PM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> +1
>
>
>
>
> *Thank youVivekananthan Sivanayagam*
>
> *Associate Software Engineer | WSO2*
>
> *E:vivekanant...@wso2.com *
> *M:+94752786138 <%2B94752786138>*
>
> On Mon, May 30, 2016 at 12:18 PM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Yep. +1
>>
>> Best Regards,
>> Yashothara.S
>>
>> Software Engineer
>> WSO2
>>
>>
>> On Mon, May 30, 2016 at 12:16 PM, Malaka Silva  wrote:
>>
>>> Shall we deprecate v1 since we have released v2 with all functions?
>>>
>>> On Mon, May 23, 2016 at 8:55 AM, Yashothara Shanmugarajah <
>>> yashoth...@wso2.com> wrote:
>>>
 Yep. I have profiled the memory and it is same as ESB profiling.

 Best Regards,
 Yashothara.S

 Software Engineer
 WSO2


 On Mon, May 23, 2016 at 8:53 AM, Malaka Silva  wrote:

> ​Did we profile the memory while doing this?​
>
> On Mon, May 23, 2016 at 8:49 AM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Hi all,
>>
>> I have completed the adding streaming feature to file read method in
>> File connector version 2. It works fine until 1 Gb as ESB.
>>
>> Thanks.
>>
>> Best Regards,
>> Yashothara.S
>>
>> Software Engineer
>> WSO2
>>
>>
>> On Wed, May 4, 2016 at 10:40 AM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> Hi ,
>>>
>>> The method FileRename includes in file connector version 1, but not
>>> in a version 2. We can do this using FileMove operation. We can 
>>> deprecate
>>> V1.
>>>
>>>
>>>
>>>
>>> *Thank youVivekananthan Sivanayagam*
>>>
>>> *Associate Software Engineer | WSO2*
>>>
>>> *E:vivekanant...@wso2.com *
>>> *M:+94752786138 <%2B94752786138>*
>>>
>>> On Wed, May 4, 2016 at 9:18 AM, Yashothara Shanmugarajah <
>>> yashoth...@wso2.com> wrote:
>>>
 We can add streaming parameter to read operation in version 2.

 Best Regards,
 Yashothara.S

 Software Engineer
 WSO2


 On Wed, May 4, 2016 at 9:11 AM, Malaka Silva 
 wrote:

> Yashothara yes you are correct. Best is we incorporate streaming
> to read operation with the new sender operation (you are already 
> writing)
> then deprecate V1.
>
> Any other use cases?
>
> On Wed, May 4, 2016 at 9:01 AM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> In file connector Version 2, there is no streaming parameter in
>> file read method. But in version 1 it has. Is it ok?
>>
>> Best Regards,
>> Yashothara.S
>>
>> Software Engineer
>> WSO2
>>
>>
>> On Wed, May 4, 2016 at 8:09 AM, Malaka Silva 
>> wrote:
>>
>>> Hi,
>>>
>>> Currently we have two connector versions for file operations
>>> with ESB. [1]
>>>
>>> Reason we implemented another version is to make the ESB
>>> integration flows more user friendly and better error handling
>>>
>>> Use cases covered by v1 is already covered with v2 in addition
>>> to new methods.
>>>
>>> If there are objections please raise with a valid reason.
>>>
>>> [1] https://store.wso2.com/store/assets/esbconnector/?query=File
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>> https://store.wso2.com/store/
>>>
>>> Save a tree -Conserve nature & Save the world for your future.
>>> Print this email only if it is absolutely necessary.
>>>
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : 

Re: [Dev] Should we ship custom error pages with product?

2016-05-30 Thread Samisa Abeysinghe
No, I want to know as a user the things like
   - where are the files that I have to edit
   - do I have to edit config files

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Delivery

WSO2 Inc.
http://wso2.com


On Tue, May 31, 2016 at 8:40 AM, Vanjikumaran Sivajothy 
wrote:

> @samisa, IMO, we can give a sample but ideally client has the create their
> own impl.
>
> On Mon, May 30, 2016 at 8:09 PM, Samisa Abeysinghe 
> wrote:
>
>> And where is the doc for how to customise new implementation (e.g. I want
>> to edit and have my custom error message in there)
>>
>> Thanks,
>> Samisa...
>>
>>
>> Samisa Abeysinghe
>>
>> Vice President Delivery
>>
>> WSO2 Inc.
>> http://wso2.com
>>
>>
>> On Tue, May 31, 2016 at 8:34 AM, Samisa Abeysinghe 
>> wrote:
>>
>>> OK cool. This is yet to be released right?
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Delivery
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>> On Tue, May 31, 2016 at 8:20 AM, Aruna Karunarathna 
>>> wrote:
>>>
 Hi Samisa,

 This is already been addressed. See [1], [2].

 [1]. https://wso2.org/jira/browse/CARBON-15894
 [2].
 https://github.com/wso2/carbon-kernel/tree/release-4.4.6/core/org.wso2.carbon.ui/src/main/resources/web/errors

 Regards,
 Aruna

 On Tue, May 31, 2016 at 7:14 AM, Samisa Abeysinghe 
 wrote:

> Shall we consider $subject and ship
> https://github.com/vanjikumaran/CustomErrorPages with the product?
>
> Looks like this is a common need for IS folks.
> See
> https://wso2.org/jira/browse/CARBON-15651
>
> http://stackoverflow.com/questions/33808615/wso2-identity-server-cannot-configure-custom-catch-all-exception-page/37535521#37535521
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Delivery
>
> WSO2 Inc.
> http://wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 *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


>>>
>>>
>>
>
>
> --
> Vanjikumaran Sivajothy
> *Associate Technical Lead*
> *WSO2 Inc. http://wso2.com *
>  *+1-925-464-6816*
> [image: Facebook]  [image: Twitter]
>  [image: LinkedIn]
>  [image:
> Blogger]  [image: SlideShare]
> 
>
> This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may
> have received this communication in error, please reply to the
> sender indicating that fact and delete the copy you received and in
> addition, you should not print, copy, re-transmit, disseminate, or
> otherwise use the information contained in this communication.
> Internet communications cannot be guaranteed to be timely, secure, error
> or virus-free. The sender does not accept liability for any errors
> or omissions
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Should we ship custom error pages with product?

2016-05-30 Thread Vanjikumaran Sivajothy
@samisa, IMO, we can give a sample but ideally client has the create their
own impl.

On Mon, May 30, 2016 at 8:09 PM, Samisa Abeysinghe  wrote:

> And where is the doc for how to customise new implementation (e.g. I want
> to edit and have my custom error message in there)
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Delivery
>
> WSO2 Inc.
> http://wso2.com
>
>
> On Tue, May 31, 2016 at 8:34 AM, Samisa Abeysinghe 
> wrote:
>
>> OK cool. This is yet to be released right?
>>
>> Thanks,
>> Samisa...
>>
>>
>> Samisa Abeysinghe
>>
>> Vice President Delivery
>>
>> WSO2 Inc.
>> http://wso2.com
>>
>>
>> On Tue, May 31, 2016 at 8:20 AM, Aruna Karunarathna 
>> wrote:
>>
>>> Hi Samisa,
>>>
>>> This is already been addressed. See [1], [2].
>>>
>>> [1]. https://wso2.org/jira/browse/CARBON-15894
>>> [2].
>>> https://github.com/wso2/carbon-kernel/tree/release-4.4.6/core/org.wso2.carbon.ui/src/main/resources/web/errors
>>>
>>> Regards,
>>> Aruna
>>>
>>> On Tue, May 31, 2016 at 7:14 AM, Samisa Abeysinghe 
>>> wrote:
>>>
 Shall we consider $subject and ship
 https://github.com/vanjikumaran/CustomErrorPages with the product?

 Looks like this is a common need for IS folks.
 See
 https://wso2.org/jira/browse/CARBON-15651

 http://stackoverflow.com/questions/33808615/wso2-identity-server-cannot-configure-custom-catch-all-exception-page/37535521#37535521

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Delivery

 WSO2 Inc.
 http://wso2.com


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


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


-- 
Vanjikumaran Sivajothy
*Associate Technical Lead*
*WSO2 Inc. http://wso2.com *
 *+1-925-464-6816*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Should we ship custom error pages with product?

2016-05-30 Thread Samisa Abeysinghe
And where is the doc for how to customise new implementation (e.g. I want
to edit and have my custom error message in there)

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Delivery

WSO2 Inc.
http://wso2.com


On Tue, May 31, 2016 at 8:34 AM, Samisa Abeysinghe  wrote:

> OK cool. This is yet to be released right?
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Delivery
>
> WSO2 Inc.
> http://wso2.com
>
>
> On Tue, May 31, 2016 at 8:20 AM, Aruna Karunarathna 
> wrote:
>
>> Hi Samisa,
>>
>> This is already been addressed. See [1], [2].
>>
>> [1]. https://wso2.org/jira/browse/CARBON-15894
>> [2].
>> https://github.com/wso2/carbon-kernel/tree/release-4.4.6/core/org.wso2.carbon.ui/src/main/resources/web/errors
>>
>> Regards,
>> Aruna
>>
>> On Tue, May 31, 2016 at 7:14 AM, Samisa Abeysinghe 
>> wrote:
>>
>>> Shall we consider $subject and ship
>>> https://github.com/vanjikumaran/CustomErrorPages with the product?
>>>
>>> Looks like this is a common need for IS folks.
>>> See
>>> https://wso2.org/jira/browse/CARBON-15651
>>>
>>> http://stackoverflow.com/questions/33808615/wso2-identity-server-cannot-configure-custom-catch-all-exception-page/37535521#37535521
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Delivery
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *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


Re: [Dev] Should we ship custom error pages with product?

2016-05-30 Thread Aruna Karunarathna
Yep this is for 4.4.6. release.

On Tue, May 31, 2016 at 8:34 AM, Samisa Abeysinghe  wrote:

> OK cool. This is yet to be released right?
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Delivery
>
> WSO2 Inc.
> http://wso2.com
>
>
> On Tue, May 31, 2016 at 8:20 AM, Aruna Karunarathna 
> wrote:
>
>> Hi Samisa,
>>
>> This is already been addressed. See [1], [2].
>>
>> [1]. https://wso2.org/jira/browse/CARBON-15894
>> [2].
>> https://github.com/wso2/carbon-kernel/tree/release-4.4.6/core/org.wso2.carbon.ui/src/main/resources/web/errors
>>
>> Regards,
>> Aruna
>>
>> On Tue, May 31, 2016 at 7:14 AM, Samisa Abeysinghe 
>> wrote:
>>
>>> Shall we consider $subject and ship
>>> https://github.com/vanjikumaran/CustomErrorPages with the product?
>>>
>>> Looks like this is a common need for IS folks.
>>> See
>>> https://wso2.org/jira/browse/CARBON-15651
>>>
>>> http://stackoverflow.com/questions/33808615/wso2-identity-server-cannot-configure-custom-catch-all-exception-page/37535521#37535521
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Delivery
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *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
>>
>>
>
>


-- 

*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


Re: [Dev] Should we ship custom error pages with product?

2016-05-30 Thread Samisa Abeysinghe
OK cool. This is yet to be released right?

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Delivery

WSO2 Inc.
http://wso2.com


On Tue, May 31, 2016 at 8:20 AM, Aruna Karunarathna  wrote:

> Hi Samisa,
>
> This is already been addressed. See [1], [2].
>
> [1]. https://wso2.org/jira/browse/CARBON-15894
> [2].
> https://github.com/wso2/carbon-kernel/tree/release-4.4.6/core/org.wso2.carbon.ui/src/main/resources/web/errors
>
> Regards,
> Aruna
>
> On Tue, May 31, 2016 at 7:14 AM, Samisa Abeysinghe 
> wrote:
>
>> Shall we consider $subject and ship
>> https://github.com/vanjikumaran/CustomErrorPages with the product?
>>
>> Looks like this is a common need for IS folks.
>> See
>> https://wso2.org/jira/browse/CARBON-15651
>>
>> http://stackoverflow.com/questions/33808615/wso2-identity-server-cannot-configure-custom-catch-all-exception-page/37535521#37535521
>>
>> Thanks,
>> Samisa...
>>
>>
>> Samisa Abeysinghe
>>
>> Vice President Delivery
>>
>> WSO2 Inc.
>> http://wso2.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *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


Re: [Dev] Should we ship custom error pages with product?

2016-05-30 Thread Aruna Karunarathna
Hi Samisa,

This is already been addressed. See [1], [2].

[1]. https://wso2.org/jira/browse/CARBON-15894
[2].
https://github.com/wso2/carbon-kernel/tree/release-4.4.6/core/org.wso2.carbon.ui/src/main/resources/web/errors

Regards,
Aruna

On Tue, May 31, 2016 at 7:14 AM, Samisa Abeysinghe  wrote:

> Shall we consider $subject and ship
> https://github.com/vanjikumaran/CustomErrorPages with the product?
>
> Looks like this is a common need for IS folks.
> See
> https://wso2.org/jira/browse/CARBON-15651
>
> http://stackoverflow.com/questions/33808615/wso2-identity-server-cannot-configure-custom-catch-all-exception-page/37535521#37535521
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Delivery
>
> WSO2 Inc.
> http://wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*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] Should we ship custom error pages with product?

2016-05-30 Thread Samisa Abeysinghe
Shall we consider $subject and ship
https://github.com/vanjikumaran/CustomErrorPages with the product?

Looks like this is a common need for IS folks.
See
https://wso2.org/jira/browse/CARBON-15651
http://stackoverflow.com/questions/33808615/wso2-identity-server-cannot-configure-custom-catch-all-exception-page/37535521#37535521

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Delivery

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


Re: [Dev] Eclipse GEF EditParts are not getting refreshed after editing - Visual DataMapper Editor

2016-05-30 Thread Jasintha Dasanayake
Hi Sohani

In a Jface tree ,a node has a method called "setIterativeRefresh(true)"
check whether "GEF" based trees' may also has similar way to do this

Thanks and Regards
/Jasintha


On Mon, May 30, 2016 at 3:44 PM, Sohani Weerasinghe  wrote:

> Hi Susinda,
>
> I have debugged and confirmed that it hits the createInNode method.
>
> I used refreshChildren() method of the 
> org.eclipse.gef.editparts.AbstractEditPart
> which gets the children of the particular edit part ( the edited node) and
> then it refreshes that editpart. I could not find any method to pass the
> parent as a parameter to refresh
>
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Mon, May 30, 2016 at 3:18 PM, Susinda Perera  wrote:
>
>> Hi Sohani
>> can you put some logs to the aforesaid method confirm that it actually
>> hits the createInNode method. Also once you add a child try to refresh the
>> parent.
>>
>> Thanks
>> Susinda
>>
>> On Mon, May 30, 2016 at 11:49 AM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi Viraj/Susinda,
>>>
>>> I have a requirement to edit the nodes of the tree while creating the
>>> tree by hand. With the current level of implementation for the leaf nodes
>>> mapping, if I add an object which holds a value eg:   >> primary="true">071655339 then the connector should be enabled for
>>> that tree node(phone).  Please refer addFixedChild() method at [1].
>>>
>>> Initially if I add a tree node(object) to the tree without a value and
>>> then if I edit the tree node and add a value, then in the visual
>>> representation I should see the connector arrow for the tree node which is
>>> edited.
>>> eg:
>>>
>>> 1. Create a schema as below
>>>
>>> {
>>>   "$schema" : null,
>>>   "id" : "sdada",
>>>   "title" : "NewRootType",
>>>   "type" : "object",
>>>   "properties" : {
>>> "NewObject" : {
>>>   "id" : "testID",
>>>   "type" : "object"
>>> }
>>>   }
>>> }
>>>
>>>
>>> ​
>>>
>>> 2. Then edit the object( NewObject) to hold a value
>>> {
>>>   "$schema" : schema1,
>>>   "id" : "testID",
>>>   "title" : "NewRootType",
>>>   "type" : "object",
>>>   "properties" : {
>>> "NewObject" : {
>>>   "id" : "testID",
>>>   "type" : "object",
>>> *  "value" : {*
>>> *"type" : "string"*
>>> *  }*
>>> }
>>>   }
>>> }
>>>
>>>
>>>
>>> When editing the tree node I am calling the addFixedChild()method to
>>> update the connector based on the value but the connector is not added to
>>> the node. ( If i close the editor and open it then I can view the connector
>>> as in the attached image). It seems even I call the addFixedChild() method,
>>> the EditPart is not getting refreshed.
>>>
>>> I have called the refresh() method of
>>> the org.eclipse.gef.editparts.AbstractEditPart but was unable to reflect
>>> the changes.
>>>
>>> Appreciate your input on this
>>>
>>> [1]
>>> https://github.com/wso2/devstudio-tooling-esb/blob/master/plugins/org.wso2.developerstudio.visualdatamapper.diagram/src/org/wso2/developerstudio/datamapper/diagram/edit/parts/TreeNode2EditPart.java
>>>
>>> Thanks,
>>> Sohani
>>>
>>> Sohani Weerasinghe
>>> Senior Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>
>>
>>
>> --
>> *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
>
>


-- 

*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] GSOC 2016: Proposal 7

2016-05-30 Thread Viraj Senevirathne

org.apache.synapse
synapse-nhttp-transport


On Sun, May 29, 2016 at 9:19 AM, Dinanjana Gunaratne <
dinanjanagunara...@gmail.com> wrote:

> Hello all,
> I am facing a problem when trying to create a proxy object. I couldn't
> find correct maven dependency to get class
> org.apache.synapse.transport.passthru.jmx.TransportView. Can you direct
> me to the correct dependency.
>
>
> On Sat, May 14, 2016 at 8:46 PM, Dinanjana Gunaratne <
> dinanjanagunara...@gmail.com> wrote:
>
>> Dear all,
>> I have added DynamicReports (which is an implementation based on Jasper
>> reports) as the reporting framework for the Flight recorder. It would be
>> great if I can have wso2 license headers for refactor. Direct me for
>> IntelliJ headers. All changes can be seen here [1]
>> 
>>
>> [1 ]https://github.com/dinanjana/ESBMonitor
>>
>> On Fri, May 6, 2016 at 10:43 PM, Dinanjana Gunaratne <
>> dinanjanagunara...@gmail.com> wrote:
>>
>>> [1]https://github.com/dinanjana/ESBMonitor
>>>
>>> On Fri, May 6, 2016 at 10:42 PM, Dinanjana Gunaratne <
>>> dinanjanagunara...@gmail.com> wrote:
>>>
 Hello all,
 I have started working on the project. You can have a look on what I am
 doing from this repo [1]. Currently I am implementing heap dump creator for
 this project. Can you explain me how currently heap dump analyzing take
 place with ESB OOM events ? In the current implementation of the flight
 recorder this method creates a .bin file with a snapshot of heap memory.

 On Sun, May 1, 2016 at 10:01 PM, Dinanjana Gunaratne <
 dinanjanagunara...@gmail.com> wrote:

> Hello all,
> I have started working on the project. You can have a look on what i
> will be doing on this [1] 
> repo. Meanwhile let me know if there is any coding convention I must 
> adhere
> to. And I chose Jasper reports as the reporting frame work. Hope it is 
> okay.
> [1] https://github.com/dinanjana/ESBMonitor
>
> On Wed, Apr 27, 2016 at 8:07 AM, Dinanjana Gunaratne <
> dinanjanagunara...@gmail.com> wrote:
>
>> Hi all,
>> Thanks for accepting my project proposal. :) Thank you very much on
>> helping me to prepare a good proposal. I am looking forward to get 
>> started
>> with the project ASAP
>>
>> On Sat, Mar 26, 2016 at 12:16 PM, Isuru Udana 
>> wrote:
>>
>>> Hi Dinanjana,
>>>
>>>
>>>
>>> On Sat, Mar 26, 2016 at 8:31 AM, Dinanjana Gunaratne <
>>> dinanjanagunara...@gmail.com> wrote:
>>>
 Hi Kasun,
 So shall I update the draft ? What do you think. I think the best
 approach is to make this a separate application. Otherwise it will 
 anyways
 have an effect on the performance of ESB. Because this tool includes 
 some
 serious IO operations

>>> Even though we built it as a separate application while we are
>>> taking thread-dumps, etc, can lead to a degrade in performance to a 
>>> great
>>> extent, that's why we need to design it carefully.
>>>
>>> Thanks.
>>>

 On Sat, Mar 26, 2016 at 8:25 AM, Kasun Indrasiri 
 wrote:

> It's fine. But just want to make sure this is added to the project
> plan as we move forward.
>
> On Sat, Mar 26, 2016 at 8:01 AM, Dinanjana Gunaratne <
> dinanjanagunara...@gmail.com> wrote:
>
>> Hi Kasun ,
>> It's now I saw this mail. Can I do the change now ? I guess it's
>> too late now. Anyway on your second point I have said that making 
>> flight
>> recorder a separate application will stop applying any performance
>> degradation on ESB. Anyway it would have been better if I have added 
>> the
>> comparison.Can I do those changes now ?And i am really sorry for the 
>> late
>> reply.
>>
>> On Fri, Mar 25, 2016 at 11:54 PM, Kasun Indrasiri > > wrote:
>>
>>> Dinanjana, can you please include several use cases related to
>>> possible production issues in an ESB (such as out of memory, CPU 
>>> spinning,
>>> deadlock etc.). Also, running the ESB flight recorder should have 
>>> minimal
>>> impact on the ESB performance. Hence your proposal should include 
>>> an ESB
>>> performance comparison with and without flight recorder.
>>>
>>> The proposal looks good.
>>>
>>> Thanks,
>>> Kasun
>>>
>>> On Fri, Mar 25, 2016 at 6:37 PM, Dinanjana Gunaratne <
>>> dinanjanagunara...@gmail.com> wrote:
>>>
 Hi Isuru ,
 Thanks for the input :)

 On Fri, Mar 25, 2016 at 6:37 PM, Dinanjana Gunaratne <
 

Re: [Dev] [ESB][JMS] Missing messages when using "transport.Transactionality" parameter

2016-05-30 Thread Dilshani Subasinghe
Hi all,

Update: Issue can be reproduce with ActiveMQ Client libraries which are
having versions greater than 5.9.

Regards,
Dilshani


On Fri, May 27, 2016 at 4:26 PM, Dilshani Subasinghe 
wrote:

> Hi Nuwan,
>
> When I am going to test JMS parameters according to a given support issue,
> it was not released BETA pack and used ALPHA pack. But I tested this
> scenario again with BETA pack and still see the same issue.
>
> Reported an jira[1] with the issue.
>
> [1] https://wso2.org/jira/browse/ESBJAVA-4632
>
> Regards,
> Dilshani
>
>
> On Fri, May 27, 2016 at 2:53 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Dilshani,
>>
>> Which ESB version are you using to test this scenario. Can you please
>> check this on ESB 5.0.0-BETA pack?
>> I could not observe such a behaviour in ESB 5.0.0-BETA.
>>
>> Thanks,
>> Nuwanw
>>
>> On Thu, May 26, 2016 at 2:50 PM, Dilshani Subasinghe 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> Thank you for your response. I tried with both
>>>
>>>
>>> *java.naming.provider.url=failover:tcp://localhost:61616, and *
>>>
>>>
>>> *java.naming.provider.url=failover:(tcp://localhost:61616).*
>>> But still missing messages.
>>>
>>> Regards,
>>> Dilshani
>>>
>>>
>>> On Thu, May 26, 2016 at 2:15 PM, Nuwan Wimalasekara 
>>> wrote:
>>>
 Hi Dilshani,


 On Thu, May 26, 2016 at 1:35 PM, Dilshani Subasinghe  wrote:

> Hi Nuwan,
>
> Yes I configured jms url with failover. Actually I used failover
> syntax as u asked me to change
> (java.naming.provider.url=failover:(tcp://localhost:61616) or
>  java.naming.provider.url=failover:tcp://localhost:61616)
>
> Proxy config:
>
>  uri="jms:/MyQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactoryjava.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
> *java.naming.provider.url=failover:tcp://localhost:61616*
> transport.jms.DestinationType=queuetransport.jms.SessionTransacted=truetransport.Transactionality=local"/>
>


>
> I'm really sorry I didn't get your suggestion. Can you point out the
> error within my config?
>
 The problem in your config is , that there is no '*,*'  at the end of
 the url.
 It should be as bellow.

 *java.naming.provider.url=failover:tcp://localhost:61616,*

 New Config:
 >>> uri="jms:/MyQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactoryjava.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
 *java.naming.provider.url=failover:tcp://localhost:61616,*
 transport.jms.DestinationType=queuetransport.jms.SessionTransacted=truetransport.Transactionality=local"/>

 Thanks,
 Nuwanw



> Regards,
> Dilshani
>
>
> On Thu, May 26, 2016 at 1:01 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Dilshani,
>>
>>  In your proxy config, you have defined a jms url with failover. Can
>> you please try the failover url syntax as one of bellow. I think it is 
>> due
>> to invalid url definition of failover for ActiveMQ.
>>
>> Please refer[1] for failover url syntax in ActiveMQ
>>
>> java.naming.provider.url=failover:(tcp://localhost:61616) or
>>  java.naming.provider.url=failover:tcp://localhost:61616,
>>
>> [1] http://activemq.apache.org/failover-transport-reference.html
>>
>> Thanks,
>> Nuwanw
>>
>> On Wed, May 25, 2016 at 11:51 AM, Dilshani Subasinghe <
>> dilsh...@wso2.com> wrote:
>>
>>> Hi ESB Team,
>>>
>>> I am testing JMS parameters and identified scenario of missing
>>> messages when using "transport.Transactionality" parameter.
>>>
>>> Configured axis2.xml as follows;
>>>
>>>   >> class="org.apache.axis2.transport.jms.JMSListener">
>>> 
>>> >> locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory
>>> >> locked="false">failover:tcp://localhost:61616
>>> >> name="transport.jms.ConnectionFactoryJNDIName"
>>> locked="false">TopicConnectionFactory
>>> >> name="transport.jms.ConnectionFactoryType" 
>>> locked="false">topic
>>> >> locked="false">topic
>>>
>>> * >> locked="false">local>> name="transport.jms.SessionTransacted" locked="false">true*
>>> 
>>>
>>> 
>>> >> locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory
>>> >> locked="false">failover:tcp://localhost:61616
>>> >> name="transport.jms.ConnectionFactoryJNDIName"
>>> locked="false">QueueConnectionFactory
>>> >> name="transport.jms.ConnectionFactoryType" 
>>> locked="false">queue

Re: [Dev] G-Reg extension for integration with API-M

2016-05-30 Thread Shazni Nazir
All the following in this implementation is completed.

   - Reading the api manager related configuration from a configuration file
   - Adding the thumbnail of the API. Currently having an issue when adding
   a thumbnail in the G-Reg 5.2.0 publisher [1]. This is however fixed in the
   G-Reg 5.3.0 (yet to be released)  As discussed in the meeting sending the
   permalink of the registry thumbnail resource (with anonymous
   permissions) we can take the thumbnail to API-M publisher.
   - The executor for the lifecycle state change. On API-M end also there's
   an issue in adding thumbnail from the REST API, for which PR is sent.
   - Add docs section to the rxt - docs can be added and deleted and it
   will sync with the API Manager. However, this is only limited to URL based
   docs. File system based docs are not added for same reasons I outlined
   earlier for custom sequence addition from file system. Inline docs would
   require UI level changes and is not possible in the rxt level.
   - Persist the consumer key and consumer secret obtained for G-Reg in
   registry
   - G-Reg publisher level customization like avoiding additions of the
   same context and adding placeholders. When the user types a duplicate
   context, user will get a warning as in the API-M publisher

[1] https://wso2.org/jira/browse/STORE-1323
[2] https://wso2.org/jira/browse/APIMANAGER-4897

TODOs

- Test the implementation in a mounted G-Reg / API-M setup
- Do some validation on publisher UI level (such as restricting the user
from creation the API if a throttling tier is not selected)
- Documenting the configurations and deployment guide (As this is an
extension)

Apart from the above this implementation can be extended to support
following areas as per the discussion had with G-Reg team and was decided
to focus on later.

- Extend the implementation to support multiple API-M environments (This
will be an invaluable addition, since lot of customers look for this
support)
- Ability to dynamically create the API artifact in the G-Reg as well as in
the API-M when a swagger doc is uploaded. Currently, G-Reg support swagger
doc additions, but what it created is a REST Service (which is a first
class asset type in the G-Reg), not the API artifact I have introduced in
this implementation. This is done with the current implementation of a
swagger media type handler. To create API instead of  the REST Service
artifact, someone can deactivate the existing custom handler and create a
new handler to create the API artifact by reading the swagger doc.

Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com

On Mon, May 23, 2016 at 6:15 PM, Shazni Nazir  wrote:

> yeah Nuwan. That's what the token regeneration part does.
>
> Shazni Nazeer
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> On Mon, May 23, 2016 at 6:13 PM, Nuwan Bandara  wrote:
>
>> ah got it, thanks. So I assume when a person is logged into the publisher
>> the API-M token is refreshed automatically if expired correct ?
>>
>> On Mon, May 23, 2016 at 8:38 AM, Shazni Nazir  wrote:
>>
>>> Hi NuwanB,
>>>
>>> ​We only need publisher integration right, so why are we doing token
 generation as thats a store function ?​
>>>
>>>
>>> To use the new API-M REST API, you need token generation. Refer
>>> following documentation [1]
>>>
>>> [1]
>>> https://docs.wso2.com/display/AM1100/apidocs/publisher/index.html#guide
>>>
>>> Shazni Nazeer
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> On Mon, May 23, 2016 at 6:06 PM, Nuwan Bandara  wrote:
>>>
 Hi Guys,

 On Mon, May 23, 2016 at 8:27 AM, Shazni Nazir  wrote:

> Last week had a meeting with G-Reg team (participants - Sagara,
> Chandana and SameeraM) and SanjeewaM from API-M to see the current work 
> and
> to get few thing clarified. Notes of the meeting can be found in the
> following [1]
>
> [1] Invitation: G-Reg extension for API-M integration design/current
> prog... @ Wed May 18, 2016 2pm - 3pm (sha...@wso2.com)
>
> Apart from that following are the the finished work and TODOs left
>
>- Handler is almost complete. Have to add copy and delete handler
>methods and do the consequent API-M operations
>- Add more fields like, in, out and fault sequence.
>- Request json payload creation for API creation - done. I
>identified an issue in the API-M REST API where the scopes and
>uri-templates are specified, those do not get added. The reason is
>explained in the email [2] and the PR also sent to the git repo.
>- Get the access and the refresh token using the API-M REST API
>- Access token regeneration when 

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

2016-05-30 Thread KasunG Gajasinghe
Tested the tools, verified the readme files and tested against
carbon-deployment. No blockers were found.

[x] Stable - Go ahead and release.


On Mon, May 30, 2016 at 2:10 PM, Jayanga Kaushalya 
wrote:

> Hi all,
>
> I have tested the carbon 5.1.0-RC1 with carbon-security-caas and didn't
> find any issues.
>
> [x] Stable - Go ahead and release.
>
> Thanks!
>
> *Jayanga Kaushalya*
> Software Engineer
> Mobile: +94777860160
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> On Fri, May 27, 2016 at 12:44 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> This is the 1st Release Candidate of WSO2 Carbon Kernel 5.1.0
>>
>> This release fixed the following issues:
>> https://wso2.org/jira/issues/?filter=13077
>>
>> Please download and test your products with Kernel 5.1.0 RC1 and vote.
>>
>> *Source and binary distribution files:*
>>
>> https://github.com/wso2/carbon-kernel/releases/download/v5.1.0-rc1/wso2carbon-kernel-5.1.0.zip
>>
>> *Maven Staging repository:*
>> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1020/
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/carbon-kernel/releases/tag/v5.1.0-rc1
>>
>> [ ] Broken - do not releaes (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you,
>> Carbon Team
>>
>> --
>>
>> *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
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Eclipse GEF EditParts are not getting refreshed after editing - Visual DataMapper Editor

2016-05-30 Thread Sohani Weerasinghe
Hi Susinda,

I have debugged and confirmed that it hits the createInNode method.

I used refreshChildren() method of the
org.eclipse.gef.editparts.AbstractEditPart
which gets the children of the particular edit part ( the edited node) and
then it refreshes that editpart. I could not find any method to pass the
parent as a parameter to refresh

Thanks,
Sohani

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

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

On Mon, May 30, 2016 at 3:18 PM, Susinda Perera  wrote:

> Hi Sohani
> can you put some logs to the aforesaid method confirm that it actually
> hits the createInNode method. Also once you add a child try to refresh the
> parent.
>
> Thanks
> Susinda
>
> On Mon, May 30, 2016 at 11:49 AM, Sohani Weerasinghe 
> wrote:
>
>> Hi Viraj/Susinda,
>>
>> I have a requirement to edit the nodes of the tree while creating the
>> tree by hand. With the current level of implementation for the leaf nodes
>> mapping, if I add an object which holds a value eg:   > primary="true">071655339 then the connector should be enabled for
>> that tree node(phone).  Please refer addFixedChild() method at [1].
>>
>> Initially if I add a tree node(object) to the tree without a value and
>> then if I edit the tree node and add a value, then in the visual
>> representation I should see the connector arrow for the tree node which is
>> edited.
>> eg:
>>
>> 1. Create a schema as below
>>
>> {
>>   "$schema" : null,
>>   "id" : "sdada",
>>   "title" : "NewRootType",
>>   "type" : "object",
>>   "properties" : {
>> "NewObject" : {
>>   "id" : "testID",
>>   "type" : "object"
>> }
>>   }
>> }
>>
>>
>> ​
>>
>> 2. Then edit the object( NewObject) to hold a value
>> {
>>   "$schema" : schema1,
>>   "id" : "testID",
>>   "title" : "NewRootType",
>>   "type" : "object",
>>   "properties" : {
>> "NewObject" : {
>>   "id" : "testID",
>>   "type" : "object",
>> *  "value" : {*
>> *"type" : "string"*
>> *  }*
>> }
>>   }
>> }
>>
>>
>>
>> When editing the tree node I am calling the addFixedChild()method to
>> update the connector based on the value but the connector is not added to
>> the node. ( If i close the editor and open it then I can view the connector
>> as in the attached image). It seems even I call the addFixedChild() method,
>> the EditPart is not getting refreshed.
>>
>> I have called the refresh() method of
>> the org.eclipse.gef.editparts.AbstractEditPart but was unable to reflect
>> the changes.
>>
>> Appreciate your input on this
>>
>> [1]
>> https://github.com/wso2/devstudio-tooling-esb/blob/master/plugins/org.wso2.developerstudio.visualdatamapper.diagram/src/org/wso2/developerstudio/datamapper/diagram/edit/parts/TreeNode2EditPart.java
>>
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>
>
>
> --
> *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] Eclipse GEF EditParts are not getting refreshed after editing - Visual DataMapper Editor

2016-05-30 Thread Susinda Perera
Hi Sohani
can you put some logs to the aforesaid method confirm that it actually hits
the createInNode method. Also once you add a child try to refresh the
parent.

Thanks
Susinda

On Mon, May 30, 2016 at 11:49 AM, Sohani Weerasinghe 
wrote:

> Hi Viraj/Susinda,
>
> I have a requirement to edit the nodes of the tree while creating the tree
> by hand. With the current level of implementation for the leaf nodes
> mapping, if I add an object which holds a value eg:primary="true">071655339 then the connector should be enabled for
> that tree node(phone).  Please refer addFixedChild() method at [1].
>
> Initially if I add a tree node(object) to the tree without a value and
> then if I edit the tree node and add a value, then in the visual
> representation I should see the connector arrow for the tree node which is
> edited.
> eg:
>
> 1. Create a schema as below
>
> {
>   "$schema" : null,
>   "id" : "sdada",
>   "title" : "NewRootType",
>   "type" : "object",
>   "properties" : {
> "NewObject" : {
>   "id" : "testID",
>   "type" : "object"
> }
>   }
> }
>
>
> ​
>
> 2. Then edit the object( NewObject) to hold a value
> {
>   "$schema" : schema1,
>   "id" : "testID",
>   "title" : "NewRootType",
>   "type" : "object",
>   "properties" : {
> "NewObject" : {
>   "id" : "testID",
>   "type" : "object",
> *  "value" : {*
> *"type" : "string"*
> *  }*
> }
>   }
> }
>
>
>
> When editing the tree node I am calling the addFixedChild()method to
> update the connector based on the value but the connector is not added to
> the node. ( If i close the editor and open it then I can view the connector
> as in the attached image). It seems even I call the addFixedChild() method,
> the EditPart is not getting refreshed.
>
> I have called the refresh() method of
> the org.eclipse.gef.editparts.AbstractEditPart but was unable to reflect
> the changes.
>
> Appreciate your input on this
>
> [1]
> https://github.com/wso2/devstudio-tooling-esb/blob/master/plugins/org.wso2.developerstudio.visualdatamapper.diagram/src/org/wso2/developerstudio/datamapper/diagram/edit/parts/TreeNode2EditPart.java
>
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>



-- 
*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] WSO2 Docker images layered composition

2016-05-30 Thread Imesh Gunaratne
+1 for the idea Akila!

I agree with all the points listed above, we experienced those during past
couple of weeks after removing the base image. Will include this change in
the next Dockerfiles release.

Thanks

On Mon, May 30, 2016 at 12:48 PM, Akila Ravihansa Perera  wrote:

> Hi,
>
> Currently we don't have a base image for WSO2 Docker images due to image
> size issues we had with it. But later we found out that this was mainly due
> to multiple RUN commands, which caused Docker to add unnecessary layers.
>
> I think we should bring back the base image for couple of reasons;
>
> 1. wso2base image with minimum packages installed (wget, puppet etc) will
> eliminate the need for having to run apt-get commands (which are very
> expensive, time-wise) each and every time
>
> 2. wso2base image can be hosted publicly (without Oracle JDK of course) so
> that users don't have to build wso2base but rather pull it from DockerHub.
>
> 3. wso2base image provides a Docker layer which reduces the amount of
> traffic carried when pulling images from a Docker registry over a long
> period of time. This is because base image is very unlikely to be changed,
> but product images can change very rapidly (due to artifacts or
> configuration change, product version etc.). It is unnecessary to carry the
> information in the lower level layers each time a product image is changed.
>
> If you must use a single image, I found this cool Docker tool written in
> Python which can be used to squash Docker layers called docker-squash [1].
> Following is a comparison of Docker images built with/without wso2base and
> squashed images;
>
> [image: Inline image 3]
>
> In summary;
> wso2am-1.10.0 with base image: 1.079GB
> wso2am-1.10.0 with base image and *squashed*: 948MB
> wso2am-1.10.0 *without* base image: 969MB
>
> wso2esb-4.9.0 with base image: 794MB
> wso2esb-4.9.0 with base image and *squashed*: 664MB
> wso2esb-4.9.0 *without* base image: 685MB
>
> In conclusion, introducing a base image with minimum packages has a image
> size overhead of around 100+MB, but having individual images without a
> hierarchy can cause a significant amount of unnecessary information being
> transferred over the network when pull/push'ing to/from a registry.
>
> I've created a PR for this feature at [2]. Also used
> "--no-install-recommends" option to apt-get when installing packages to
> prevent unnecessary packages being installed. Please share your thoughts.
>
> [1] https://github.com/goldmann/docker-squash
> [2] https://github.com/wso2/dockerfiles/pull/46/files
>
> Thanks.
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



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


Re: [Dev] clarification on api publisher on summary tables

2016-05-30 Thread Nuwan Dias
Well, it would have been ideal if the column name would have changed. But I
believe changing that now would cause a migration hassle to existing users.
If that's the case its ok to leave it as is as long as the visulalization
(graphs/charts) of the data is correct.

Thanks,
NuwanD.

On Mon, May 30, 2016 at 2:52 PM, Shavantha Weerasinghe 
wrote:

> Hi Rukshan
>
> Any update on this
>
> regards,
>
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
> On Sun, May 29, 2016 at 11:56 AM, Rukshan Premathunga 
> wrote:
>
>> Hi all,
>>
>> Still we are publishing API creator for API publisher field for all the
>> event streams. Even in registry, API publisher is not maintain and only
>> creator field is updated. So can we continue with this behavior or do we
>> need to any changes to the event stream?
>>
>> any suggestions?
>>
>> Thanks and Regards.
>>
>> On Fri, May 27, 2016 at 5:29 PM, Shavantha Weerasinghe <
>> shavan...@wso2.com> wrote:
>>
>>> Hi Nuwan/Ruckshan
>>>
>>> On API Manager if we have 3 separate users with creator/publisher and
>>> subscriber only user roles, once stats are published to analytics server,
>>> the summary tables show creator@carbon.super as the API Publisher. Is
>>> this the expected behavior.
>>>
>>> Should the system show the actual owner of the API or the person who
>>> published it
>>>
>>> regards,
>>> Shavantha Weerasinghe
>>> Senior Software Engineer QA
>>> WSO2, Inc.
>>> lean.enterprise.middleware.
>>> http://wso2.com
>>> http://wso2.org
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>>
>>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>>
>
>


-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] clarification on api publisher on summary tables

2016-05-30 Thread Shavantha Weerasinghe
Hi Rukshan

Any update on this

regards,

Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300


On Sun, May 29, 2016 at 11:56 AM, Rukshan Premathunga 
wrote:

> Hi all,
>
> Still we are publishing API creator for API publisher field for all the
> event streams. Even in registry, API publisher is not maintain and only
> creator field is updated. So can we continue with this behavior or do we
> need to any changes to the event stream?
>
> any suggestions?
>
> Thanks and Regards.
>
> On Fri, May 27, 2016 at 5:29 PM, Shavantha Weerasinghe  > wrote:
>
>> Hi Nuwan/Ruckshan
>>
>> On API Manager if we have 3 separate users with creator/publisher and
>> subscriber only user roles, once stats are published to analytics server,
>> the summary tables show creator@carbon.super as the API Publisher. Is
>> this the expected behavior.
>>
>> Should the system show the actual owner of the API or the person who
>> published it
>>
>> regards,
>> Shavantha Weerasinghe
>> Senior Software Engineer QA
>> WSO2, Inc.
>> lean.enterprise.middleware.
>> http://wso2.com
>> http://wso2.org
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-05-30 Thread Jayanga Kaushalya
Hi all,

I have tested the carbon 5.1.0-RC1 with carbon-security-caas and didn't
find any issues.

[x] Stable - Go ahead and release.

Thanks!

*Jayanga Kaushalya*
Software Engineer
Mobile: +94777860160
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware

On Fri, May 27, 2016 at 12:44 PM, Niranjan Karunanandham 
wrote:

> Hi Devs,
>
> This is the 1st Release Candidate of WSO2 Carbon Kernel 5.1.0
>
> This release fixed the following issues:
> https://wso2.org/jira/issues/?filter=13077
>
> Please download and test your products with Kernel 5.1.0 RC1 and vote.
>
> *Source and binary distribution files:*
>
> https://github.com/wso2/carbon-kernel/releases/download/v5.1.0-rc1/wso2carbon-kernel-5.1.0.zip
>
> *Maven Staging repository:*
> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1020/
>
> *The tag to be voted upon:*
> https://github.com/wso2/carbon-kernel/releases/tag/v5.1.0-rc1
>
> [ ] Broken - do not releaes (explain why)
> [ ] Stable - go ahead and release
>
> Thank you,
> Carbon Team
>
> --
>
> *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] Shindig error on DS portal startup, due to connectivity errors to google

2016-05-30 Thread Fazlan Nazeem
Hi Megala,

Please let us know once the new release is done. For now we will go with
1.0.17.

On Mon, May 30, 2016 at 1:52 PM, Ruwan Abeykoon  wrote:

> Hi Megala, Sinthuja,
> Thank you for the fix.
> Yes, I am ok if things can be fixed in DS side.
>
> Have we checked any other JS which is loaded form external servers, which
> might cause similar issues in future? We need to fix them too if there are
> any.
>
> Cheers,
> Ruwan
>
>
> On Mon, May 30, 2016 at 1:21 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi Ruwan,
>>
>> As mentioned by megala folking shindig is not an option, it's simply
>> calling for more trouble! Anyhow the fix done by megala fixes the issues in
>> startup.
>>
>> Thanks,
>> Sinthuja.
>>
>> On Mon, May 30, 2016 at 1:19 PM, Megala Uthayakumar 
>> wrote:
>>
>>> Hi All,
>>>
>>> Reason for error in new log[1] is that we did not remove the jquery
>>> feature which also requires the internet connection as we thought that
>>> feature is used by the shindig. But after a throughout testing we found
>>> that it can be removed. We have removed that feature in master branch
>>> now[2]. We can do a release for this.
>>>
>>> @Ruwan
>>> Why do we need to fork the shindig app? Since removing the feature from
>>> carbon-dashboard side is enough to avoid this error.
>>>
>>> [1] http://pastebin.com/raw/0EbCqN8v
>>> [2]
>>> https://github.com/wso2/carbon-dashboards/blob/e86f60e95b6206eb466bca5981799bb061098dd4/components/shindig-server/src/main/resources/features.txt
>>>
>>> On Mon, May 30, 2016 at 12:48 PM, Ruwan Abeykoon 
>>> wrote:
>>>
 Hi All,
 Can we fork the Shindig app and fix these issues in short term?

 It seems that shinding is not maintained any more[1]. So can we look
 for an alternative since the Gadgets is going to be a central component in
 our UIs within the platform?

 [1] https://shindig.apache.org/about_shindig_overview.html

 Cheers,
 Ruwan



 On Mon, May 30, 2016 at 12:36 PM, Fazlan Nazeem 
 wrote:

> Hi,
>
> in APIM-analytics I have upgraded the carbon.dashboards.version and
> shindig.version to fix the issue. The git diff of the changes is attached.
>
> log after the fix[1]
> log prior to the fix[2]
>
> log[1] was verified to be fine by Megala. Please let me know if there
> are any concerns.
>
> [1] http://pastebin.com/raw/0EbCqN8v
> [2] http://pastebin.com/raw/w8sGjpM0
>
> On Sat, May 28, 2016 at 8:43 PM, Fazlan Nazeem 
> wrote:
>
>> Sure will check.
>>
>> On Sat, May 28, 2016 at 8:37 PM, Nirmal Fernando 
>> wrote:
>>
>>> Thanks Deep. @Fazlan please check.
>>>
>>> On Sat, May 28, 2016 at 1:22 AM, Deependra Ariyadewa 
>>> wrote:
>>>
 This issue also exists in the  WSO2 API Manager Analytics  SNAPSHOT
 pack [1]

 [1] Build WSO2 API Manager Analytics - Distribution (May 27, 2016
 3:24:17 PM)

 On Fri, May 27, 2016 at 1:08 AM, Bhathiya Jayasekara <
 bhath...@wso2.com> wrote:

> Thanks.
>
> On Fri, May 27, 2016 at 10:37 AM, Megala Uthayakumar <
> meg...@wso2.com> wrote:
>
>> We will do a release tonight.
>>
>> Thanks
>>
>> On Fri, May 27, 2016 at 10:33 AM, Bhathiya Jayasekara <
>> bhath...@wso2.com> wrote:
>>
>>> We still have carbon dashboard 1.0.15 in APIM. Will upgrade.
>>> When are you planning to release this?
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>> On Fri, May 27, 2016 at 10:31 AM, Bhathiya Jayasekara <
>>> bhath...@wso2.com> wrote:
>>>
 +Ruwan

 On Fri, May 27, 2016 at 10:20 AM, Megala Uthayakumar <
 meg...@wso2.com> wrote:

> Hi,
> This fix is available in carbon-dashboards 1.0.17-SNAPSHOT.
> Is APIM 2.0.0 SNAPSHOT uses the same version?
>
> Thanks.
>
> On Fri, May 27, 2016 at 10:02 AM, Deependra Ariyadewa <
> d...@wso2.com> wrote:
>
>> This error still exists in the APIM 2.0.0 SNAPSHOT pack built
>> on 26th May 2016.
>>
>> On Thu, May 19, 2016 at 11:54 PM, Megala Uthayakumar <
>> meg...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> We have moved the fix for the google connectivity problem
>>> with the commit [1].
>>>
>>> [1]
>>> https://github.com/wso2/carbon-dashboards/commit/9e74ed2a788256cc429ffe35b6543c139d4c2ddb
>>>
>>> Thanks.
>>>
>>> Regards,
>>> Megala
>>>

Re: [Dev] Shindig error on DS portal startup, due to connectivity errors to google

2016-05-30 Thread Ruwan Abeykoon
Hi Megala, Sinthuja,
Thank you for the fix.
Yes, I am ok if things can be fixed in DS side.

Have we checked any other JS which is loaded form external servers, which
might cause similar issues in future? We need to fix them too if there are
any.

Cheers,
Ruwan


On Mon, May 30, 2016 at 1:21 PM, Sinthuja Ragendran 
wrote:

> Hi Ruwan,
>
> As mentioned by megala folking shindig is not an option, it's simply
> calling for more trouble! Anyhow the fix done by megala fixes the issues in
> startup.
>
> Thanks,
> Sinthuja.
>
> On Mon, May 30, 2016 at 1:19 PM, Megala Uthayakumar 
> wrote:
>
>> Hi All,
>>
>> Reason for error in new log[1] is that we did not remove the jquery
>> feature which also requires the internet connection as we thought that
>> feature is used by the shindig. But after a throughout testing we found
>> that it can be removed. We have removed that feature in master branch
>> now[2]. We can do a release for this.
>>
>> @Ruwan
>> Why do we need to fork the shindig app? Since removing the feature from
>> carbon-dashboard side is enough to avoid this error.
>>
>> [1] http://pastebin.com/raw/0EbCqN8v
>> [2]
>> https://github.com/wso2/carbon-dashboards/blob/e86f60e95b6206eb466bca5981799bb061098dd4/components/shindig-server/src/main/resources/features.txt
>>
>> On Mon, May 30, 2016 at 12:48 PM, Ruwan Abeykoon  wrote:
>>
>>> Hi All,
>>> Can we fork the Shindig app and fix these issues in short term?
>>>
>>> It seems that shinding is not maintained any more[1]. So can we look for
>>> an alternative since the Gadgets is going to be a central component in our
>>> UIs within the platform?
>>>
>>> [1] https://shindig.apache.org/about_shindig_overview.html
>>>
>>> Cheers,
>>> Ruwan
>>>
>>>
>>>
>>> On Mon, May 30, 2016 at 12:36 PM, Fazlan Nazeem 
>>> wrote:
>>>
 Hi,

 in APIM-analytics I have upgraded the carbon.dashboards.version and
 shindig.version to fix the issue. The git diff of the changes is attached.

 log after the fix[1]
 log prior to the fix[2]

 log[1] was verified to be fine by Megala. Please let me know if there
 are any concerns.

 [1] http://pastebin.com/raw/0EbCqN8v
 [2] http://pastebin.com/raw/w8sGjpM0

 On Sat, May 28, 2016 at 8:43 PM, Fazlan Nazeem 
 wrote:

> Sure will check.
>
> On Sat, May 28, 2016 at 8:37 PM, Nirmal Fernando 
> wrote:
>
>> Thanks Deep. @Fazlan please check.
>>
>> On Sat, May 28, 2016 at 1:22 AM, Deependra Ariyadewa 
>> wrote:
>>
>>> This issue also exists in the  WSO2 API Manager Analytics  SNAPSHOT
>>> pack [1]
>>>
>>> [1] Build WSO2 API Manager Analytics - Distribution (May 27, 2016
>>> 3:24:17 PM)
>>>
>>> On Fri, May 27, 2016 at 1:08 AM, Bhathiya Jayasekara <
>>> bhath...@wso2.com> wrote:
>>>
 Thanks.

 On Fri, May 27, 2016 at 10:37 AM, Megala Uthayakumar <
 meg...@wso2.com> wrote:

> We will do a release tonight.
>
> Thanks
>
> On Fri, May 27, 2016 at 10:33 AM, Bhathiya Jayasekara <
> bhath...@wso2.com> wrote:
>
>> We still have carbon dashboard 1.0.15 in APIM. Will upgrade. When
>> are you planning to release this?
>>
>> Thanks,
>> Bhathiya
>>
>> On Fri, May 27, 2016 at 10:31 AM, Bhathiya Jayasekara <
>> bhath...@wso2.com> wrote:
>>
>>> +Ruwan
>>>
>>> On Fri, May 27, 2016 at 10:20 AM, Megala Uthayakumar <
>>> meg...@wso2.com> wrote:
>>>
 Hi,
 This fix is available in carbon-dashboards 1.0.17-SNAPSHOT. Is
 APIM 2.0.0 SNAPSHOT uses the same version?

 Thanks.

 On Fri, May 27, 2016 at 10:02 AM, Deependra Ariyadewa <
 d...@wso2.com> wrote:

> This error still exists in the APIM 2.0.0 SNAPSHOT pack built
> on 26th May 2016.
>
> On Thu, May 19, 2016 at 11:54 PM, Megala Uthayakumar <
> meg...@wso2.com> wrote:
>
>> Hi,
>>
>> We have moved the fix for the google connectivity problem
>> with the commit [1].
>>
>> [1]
>> https://github.com/wso2/carbon-dashboards/commit/9e74ed2a788256cc429ffe35b6543c139d4c2ddb
>>
>> Thanks.
>>
>> Regards,
>> Megala
>>
>> On Wed, May 18, 2016 at 12:52 PM, Sinthuja Ragendran <
>> sinth...@wso2.com> wrote:
>>
>>> Hi Megala,
>>>
>>> Please check the shindig-server feature and try to remove
>>> the unwanted files from there it self, hence we can omit this 

Re: [Dev] Shindig error on DS portal startup, due to connectivity errors to google

2016-05-30 Thread Sinthuja Ragendran
Hi Ruwan,

As mentioned by megala folking shindig is not an option, it's simply
calling for more trouble! Anyhow the fix done by megala fixes the issues in
startup.

Thanks,
Sinthuja.

On Mon, May 30, 2016 at 1:19 PM, Megala Uthayakumar  wrote:

> Hi All,
>
> Reason for error in new log[1] is that we did not remove the jquery
> feature which also requires the internet connection as we thought that
> feature is used by the shindig. But after a throughout testing we found
> that it can be removed. We have removed that feature in master branch
> now[2]. We can do a release for this.
>
> @Ruwan
> Why do we need to fork the shindig app? Since removing the feature from
> carbon-dashboard side is enough to avoid this error.
>
> [1] http://pastebin.com/raw/0EbCqN8v
> [2]
> https://github.com/wso2/carbon-dashboards/blob/e86f60e95b6206eb466bca5981799bb061098dd4/components/shindig-server/src/main/resources/features.txt
>
> On Mon, May 30, 2016 at 12:48 PM, Ruwan Abeykoon  wrote:
>
>> Hi All,
>> Can we fork the Shindig app and fix these issues in short term?
>>
>> It seems that shinding is not maintained any more[1]. So can we look for
>> an alternative since the Gadgets is going to be a central component in our
>> UIs within the platform?
>>
>> [1] https://shindig.apache.org/about_shindig_overview.html
>>
>> Cheers,
>> Ruwan
>>
>>
>>
>> On Mon, May 30, 2016 at 12:36 PM, Fazlan Nazeem  wrote:
>>
>>> Hi,
>>>
>>> in APIM-analytics I have upgraded the carbon.dashboards.version and
>>> shindig.version to fix the issue. The git diff of the changes is attached.
>>>
>>> log after the fix[1]
>>> log prior to the fix[2]
>>>
>>> log[1] was verified to be fine by Megala. Please let me know if there
>>> are any concerns.
>>>
>>> [1] http://pastebin.com/raw/0EbCqN8v
>>> [2] http://pastebin.com/raw/w8sGjpM0
>>>
>>> On Sat, May 28, 2016 at 8:43 PM, Fazlan Nazeem  wrote:
>>>
 Sure will check.

 On Sat, May 28, 2016 at 8:37 PM, Nirmal Fernando 
 wrote:

> Thanks Deep. @Fazlan please check.
>
> On Sat, May 28, 2016 at 1:22 AM, Deependra Ariyadewa 
> wrote:
>
>> This issue also exists in the  WSO2 API Manager Analytics  SNAPSHOT
>> pack [1]
>>
>> [1] Build WSO2 API Manager Analytics - Distribution (May 27, 2016
>> 3:24:17 PM)
>>
>> On Fri, May 27, 2016 at 1:08 AM, Bhathiya Jayasekara <
>> bhath...@wso2.com> wrote:
>>
>>> Thanks.
>>>
>>> On Fri, May 27, 2016 at 10:37 AM, Megala Uthayakumar <
>>> meg...@wso2.com> wrote:
>>>
 We will do a release tonight.

 Thanks

 On Fri, May 27, 2016 at 10:33 AM, Bhathiya Jayasekara <
 bhath...@wso2.com> wrote:

> We still have carbon dashboard 1.0.15 in APIM. Will upgrade. When
> are you planning to release this?
>
> Thanks,
> Bhathiya
>
> On Fri, May 27, 2016 at 10:31 AM, Bhathiya Jayasekara <
> bhath...@wso2.com> wrote:
>
>> +Ruwan
>>
>> On Fri, May 27, 2016 at 10:20 AM, Megala Uthayakumar <
>> meg...@wso2.com> wrote:
>>
>>> Hi,
>>> This fix is available in carbon-dashboards 1.0.17-SNAPSHOT. Is
>>> APIM 2.0.0 SNAPSHOT uses the same version?
>>>
>>> Thanks.
>>>
>>> On Fri, May 27, 2016 at 10:02 AM, Deependra Ariyadewa <
>>> d...@wso2.com> wrote:
>>>
 This error still exists in the APIM 2.0.0 SNAPSHOT pack built
 on 26th May 2016.

 On Thu, May 19, 2016 at 11:54 PM, Megala Uthayakumar <
 meg...@wso2.com> wrote:

> Hi,
>
> We have moved the fix for the google connectivity problem with
> the commit [1].
>
> [1]
> https://github.com/wso2/carbon-dashboards/commit/9e74ed2a788256cc429ffe35b6543c139d4c2ddb
>
> Thanks.
>
> Regards,
> Megala
>
> On Wed, May 18, 2016 at 12:52 PM, Sinthuja Ragendran <
> sinth...@wso2.com> wrote:
>
>> Hi Megala,
>>
>> Please check the shindig-server feature and try to remove the
>> unwanted files from there it self, hence we can omit this 
>> behaviour.
>>
>> Thanks,
>> Sinthuja.
>>
>> On Wed, May 18, 2016 at 12:13 PM, Ruwan Abeykoon <
>> ruw...@wso2.com> wrote:
>>
>>> >>Can't we fix this during the shinding-server feature
>>> generation?
>>> +1
>>> So that every product using shindig does not have to unzip
>>> and zip the war file to fix it.
>>>
>>> Cheers,

Re: [Dev] Shindig error on DS portal startup, due to connectivity errors to google

2016-05-30 Thread Megala Uthayakumar
Hi All,

Reason for error in new log[1] is that we did not remove the jquery feature
which also requires the internet connection as we thought that feature is
used by the shindig. But after a throughout testing we found that it can be
removed. We have removed that feature in master branch now[2]. We can do a
release for this.

@Ruwan
Why do we need to fork the shindig app? Since removing the feature from
carbon-dashboard side is enough to avoid this error.

[1] http://pastebin.com/raw/0EbCqN8v
[2]
https://github.com/wso2/carbon-dashboards/blob/e86f60e95b6206eb466bca5981799bb061098dd4/components/shindig-server/src/main/resources/features.txt

On Mon, May 30, 2016 at 12:48 PM, Ruwan Abeykoon  wrote:

> Hi All,
> Can we fork the Shindig app and fix these issues in short term?
>
> It seems that shinding is not maintained any more[1]. So can we look for
> an alternative since the Gadgets is going to be a central component in our
> UIs within the platform?
>
> [1] https://shindig.apache.org/about_shindig_overview.html
>
> Cheers,
> Ruwan
>
>
>
> On Mon, May 30, 2016 at 12:36 PM, Fazlan Nazeem  wrote:
>
>> Hi,
>>
>> in APIM-analytics I have upgraded the carbon.dashboards.version and
>> shindig.version to fix the issue. The git diff of the changes is attached.
>>
>> log after the fix[1]
>> log prior to the fix[2]
>>
>> log[1] was verified to be fine by Megala. Please let me know if there are
>> any concerns.
>>
>> [1] http://pastebin.com/raw/0EbCqN8v
>> [2] http://pastebin.com/raw/w8sGjpM0
>>
>> On Sat, May 28, 2016 at 8:43 PM, Fazlan Nazeem  wrote:
>>
>>> Sure will check.
>>>
>>> On Sat, May 28, 2016 at 8:37 PM, Nirmal Fernando 
>>> wrote:
>>>
 Thanks Deep. @Fazlan please check.

 On Sat, May 28, 2016 at 1:22 AM, Deependra Ariyadewa 
 wrote:

> This issue also exists in the  WSO2 API Manager Analytics  SNAPSHOT
> pack [1]
>
> [1] Build WSO2 API Manager Analytics - Distribution (May 27, 2016
> 3:24:17 PM)
>
> On Fri, May 27, 2016 at 1:08 AM, Bhathiya Jayasekara <
> bhath...@wso2.com> wrote:
>
>> Thanks.
>>
>> On Fri, May 27, 2016 at 10:37 AM, Megala Uthayakumar > > wrote:
>>
>>> We will do a release tonight.
>>>
>>> Thanks
>>>
>>> On Fri, May 27, 2016 at 10:33 AM, Bhathiya Jayasekara <
>>> bhath...@wso2.com> wrote:
>>>
 We still have carbon dashboard 1.0.15 in APIM. Will upgrade. When
 are you planning to release this?

 Thanks,
 Bhathiya

 On Fri, May 27, 2016 at 10:31 AM, Bhathiya Jayasekara <
 bhath...@wso2.com> wrote:

> +Ruwan
>
> On Fri, May 27, 2016 at 10:20 AM, Megala Uthayakumar <
> meg...@wso2.com> wrote:
>
>> Hi,
>> This fix is available in carbon-dashboards 1.0.17-SNAPSHOT. Is
>> APIM 2.0.0 SNAPSHOT uses the same version?
>>
>> Thanks.
>>
>> On Fri, May 27, 2016 at 10:02 AM, Deependra Ariyadewa <
>> d...@wso2.com> wrote:
>>
>>> This error still exists in the APIM 2.0.0 SNAPSHOT pack built on
>>> 26th May 2016.
>>>
>>> On Thu, May 19, 2016 at 11:54 PM, Megala Uthayakumar <
>>> meg...@wso2.com> wrote:
>>>
 Hi,

 We have moved the fix for the google connectivity problem with
 the commit [1].

 [1]
 https://github.com/wso2/carbon-dashboards/commit/9e74ed2a788256cc429ffe35b6543c139d4c2ddb

 Thanks.

 Regards,
 Megala

 On Wed, May 18, 2016 at 12:52 PM, Sinthuja Ragendran <
 sinth...@wso2.com> wrote:

> Hi Megala,
>
> Please check the shindig-server feature and try to remove the
> unwanted files from there it self, hence we can omit this 
> behaviour.
>
> Thanks,
> Sinthuja.
>
> On Wed, May 18, 2016 at 12:13 PM, Ruwan Abeykoon <
> ruw...@wso2.com> wrote:
>
>> >>Can't we fix this during the shinding-server feature
>> generation?
>> +1
>> So that every product using shindig does not have to unzip
>> and zip the war file to fix it.
>>
>> Cheers,
>> Ruwan
>>
>> On Wed, May 18, 2016 at 12:01 PM, Sinthuja Ragendran <
>> sinth...@wso2.com> wrote:
>>
>>> Hi Tanya,
>>>
>>> Can't we fix this during the shinding-server feature
>>> generation?
>>>
>>> Thanks,
>>> Sinthuja.
>>>
>>> On Wed, May 18, 2016 at 11:56 

Re: [Dev] Shindig error on DS portal startup, due to connectivity errors to google

2016-05-30 Thread Ruwan Abeykoon
Hi All,
Can we fork the Shindig app and fix these issues in short term?

It seems that shinding is not maintained any more[1]. So can we look for an
alternative since the Gadgets is going to be a central component in our UIs
within the platform?

[1] https://shindig.apache.org/about_shindig_overview.html

Cheers,
Ruwan



On Mon, May 30, 2016 at 12:36 PM, Fazlan Nazeem  wrote:

> Hi,
>
> in APIM-analytics I have upgraded the carbon.dashboards.version and
> shindig.version to fix the issue. The git diff of the changes is attached.
>
> log after the fix[1]
> log prior to the fix[2]
>
> log[1] was verified to be fine by Megala. Please let me know if there are
> any concerns.
>
> [1] http://pastebin.com/raw/0EbCqN8v
> [2] http://pastebin.com/raw/w8sGjpM0
>
> On Sat, May 28, 2016 at 8:43 PM, Fazlan Nazeem  wrote:
>
>> Sure will check.
>>
>> On Sat, May 28, 2016 at 8:37 PM, Nirmal Fernando  wrote:
>>
>>> Thanks Deep. @Fazlan please check.
>>>
>>> On Sat, May 28, 2016 at 1:22 AM, Deependra Ariyadewa 
>>> wrote:
>>>
 This issue also exists in the  WSO2 API Manager Analytics  SNAPSHOT
 pack [1]

 [1] Build WSO2 API Manager Analytics - Distribution (May 27, 2016
 3:24:17 PM)

 On Fri, May 27, 2016 at 1:08 AM, Bhathiya Jayasekara  wrote:

> Thanks.
>
> On Fri, May 27, 2016 at 10:37 AM, Megala Uthayakumar 
> wrote:
>
>> We will do a release tonight.
>>
>> Thanks
>>
>> On Fri, May 27, 2016 at 10:33 AM, Bhathiya Jayasekara <
>> bhath...@wso2.com> wrote:
>>
>>> We still have carbon dashboard 1.0.15 in APIM. Will upgrade. When
>>> are you planning to release this?
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>> On Fri, May 27, 2016 at 10:31 AM, Bhathiya Jayasekara <
>>> bhath...@wso2.com> wrote:
>>>
 +Ruwan

 On Fri, May 27, 2016 at 10:20 AM, Megala Uthayakumar <
 meg...@wso2.com> wrote:

> Hi,
> This fix is available in carbon-dashboards 1.0.17-SNAPSHOT. Is
> APIM 2.0.0 SNAPSHOT uses the same version?
>
> Thanks.
>
> On Fri, May 27, 2016 at 10:02 AM, Deependra Ariyadewa <
> d...@wso2.com> wrote:
>
>> This error still exists in the APIM 2.0.0 SNAPSHOT pack built on
>> 26th May 2016.
>>
>> On Thu, May 19, 2016 at 11:54 PM, Megala Uthayakumar <
>> meg...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> We have moved the fix for the google connectivity problem with
>>> the commit [1].
>>>
>>> [1]
>>> https://github.com/wso2/carbon-dashboards/commit/9e74ed2a788256cc429ffe35b6543c139d4c2ddb
>>>
>>> Thanks.
>>>
>>> Regards,
>>> Megala
>>>
>>> On Wed, May 18, 2016 at 12:52 PM, Sinthuja Ragendran <
>>> sinth...@wso2.com> wrote:
>>>
 Hi Megala,

 Please check the shindig-server feature and try to remove the
 unwanted files from there it self, hence we can omit this 
 behaviour.

 Thanks,
 Sinthuja.

 On Wed, May 18, 2016 at 12:13 PM, Ruwan Abeykoon <
 ruw...@wso2.com> wrote:

> >>Can't we fix this during the shinding-server feature
> generation?
> +1
> So that every product using shindig does not have to unzip and
> zip the war file to fix it.
>
> Cheers,
> Ruwan
>
> On Wed, May 18, 2016 at 12:01 PM, Sinthuja Ragendran <
> sinth...@wso2.com> wrote:
>
>> Hi Tanya,
>>
>> Can't we fix this during the shinding-server feature
>> generation?
>>
>> Thanks,
>> Sinthuja.
>>
>> On Wed, May 18, 2016 at 11:56 AM, Harsha Kumara <
>> hars...@wso2.com> wrote:
>>
>>> Adding Bhathiya.
>>>
>>> We got same exception yesterday in APIM as well. We will
>>> need to same thing for DS as well.
>>>
>>> Thanks,
>>> Harsha
>>>
>>> On Wed, May 18, 2016 at 11:38 AM, Ruwan Abeykoon <
>>> ruw...@wso2.com> wrote:
>>>
 Thanks Tanya for the information. We will follow the same
 as in DS.

 On Wed, May 18, 2016 at 11:34 AM, Tanya Madurapperuma <
 ta...@wso2.com> wrote:

> Hi Ruwan,
>
> Usually this error is thrown as shindig is trying to load
> some google analytics apis. So when there 

[Dev] WSO2 Docker images layered composition

2016-05-30 Thread Akila Ravihansa Perera
Hi,

Currently we don't have a base image for WSO2 Docker images due to image
size issues we had with it. But later we found out that this was mainly due
to multiple RUN commands, which caused Docker to add unnecessary layers.

I think we should bring back the base image for couple of reasons;

1. wso2base image with minimum packages installed (wget, puppet etc) will
eliminate the need for having to run apt-get commands (which are very
expensive, time-wise) each and every time

2. wso2base image can be hosted publicly (without Oracle JDK of course) so
that users don't have to build wso2base but rather pull it from DockerHub.

3. wso2base image provides a Docker layer which reduces the amount of
traffic carried when pulling images from a Docker registry over a long
period of time. This is because base image is very unlikely to be changed,
but product images can change very rapidly (due to artifacts or
configuration change, product version etc.). It is unnecessary to carry the
information in the lower level layers each time a product image is changed.

If you must use a single image, I found this cool Docker tool written in
Python which can be used to squash Docker layers called docker-squash [1].
Following is a comparison of Docker images built with/without wso2base and
squashed images;

[image: Inline image 3]

In summary;
wso2am-1.10.0 with base image: 1.079GB
wso2am-1.10.0 with base image and *squashed*: 948MB
wso2am-1.10.0 *without* base image: 969MB

wso2esb-4.9.0 with base image: 794MB
wso2esb-4.9.0 with base image and *squashed*: 664MB
wso2esb-4.9.0 *without* base image: 685MB

In conclusion, introducing a base image with minimum packages has a image
size overhead of around 100+MB, but having individual images without a
hierarchy can cause a significant amount of unnecessary information being
transferred over the network when pull/push'ing to/from a registry.

I've created a PR for this feature at [2]. Also used
"--no-install-recommends" option to apt-get when installing packages to
prevent unnecessary packages being installed. Please share your thoughts.

[1] https://github.com/goldmann/docker-squash
[2] https://github.com/wso2/dockerfiles/pull/46/files

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

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


Re: [Dev] Shindig error on DS portal startup, due to connectivity errors to google

2016-05-30 Thread Fazlan Nazeem
Hi,

in APIM-analytics I have upgraded the carbon.dashboards.version and
shindig.version to fix the issue. The git diff of the changes is attached.

log after the fix[1]
log prior to the fix[2]

log[1] was verified to be fine by Megala. Please let me know if there are
any concerns.

[1] http://pastebin.com/raw/0EbCqN8v
[2] http://pastebin.com/raw/w8sGjpM0

On Sat, May 28, 2016 at 8:43 PM, Fazlan Nazeem  wrote:

> Sure will check.
>
> On Sat, May 28, 2016 at 8:37 PM, Nirmal Fernando  wrote:
>
>> Thanks Deep. @Fazlan please check.
>>
>> On Sat, May 28, 2016 at 1:22 AM, Deependra Ariyadewa 
>> wrote:
>>
>>> This issue also exists in the  WSO2 API Manager Analytics  SNAPSHOT pack
>>> [1]
>>>
>>> [1] Build WSO2 API Manager Analytics - Distribution (May 27, 2016
>>> 3:24:17 PM)
>>>
>>> On Fri, May 27, 2016 at 1:08 AM, Bhathiya Jayasekara 
>>> wrote:
>>>
 Thanks.

 On Fri, May 27, 2016 at 10:37 AM, Megala Uthayakumar 
 wrote:

> We will do a release tonight.
>
> Thanks
>
> On Fri, May 27, 2016 at 10:33 AM, Bhathiya Jayasekara <
> bhath...@wso2.com> wrote:
>
>> We still have carbon dashboard 1.0.15 in APIM. Will upgrade. When are
>> you planning to release this?
>>
>> Thanks,
>> Bhathiya
>>
>> On Fri, May 27, 2016 at 10:31 AM, Bhathiya Jayasekara <
>> bhath...@wso2.com> wrote:
>>
>>> +Ruwan
>>>
>>> On Fri, May 27, 2016 at 10:20 AM, Megala Uthayakumar <
>>> meg...@wso2.com> wrote:
>>>
 Hi,
 This fix is available in carbon-dashboards 1.0.17-SNAPSHOT. Is
 APIM 2.0.0 SNAPSHOT uses the same version?

 Thanks.

 On Fri, May 27, 2016 at 10:02 AM, Deependra Ariyadewa <
 d...@wso2.com> wrote:

> This error still exists in the APIM 2.0.0 SNAPSHOT pack built on
> 26th May 2016.
>
> On Thu, May 19, 2016 at 11:54 PM, Megala Uthayakumar <
> meg...@wso2.com> wrote:
>
>> Hi,
>>
>> We have moved the fix for the google connectivity problem with
>> the commit [1].
>>
>> [1]
>> https://github.com/wso2/carbon-dashboards/commit/9e74ed2a788256cc429ffe35b6543c139d4c2ddb
>>
>> Thanks.
>>
>> Regards,
>> Megala
>>
>> On Wed, May 18, 2016 at 12:52 PM, Sinthuja Ragendran <
>> sinth...@wso2.com> wrote:
>>
>>> Hi Megala,
>>>
>>> Please check the shindig-server feature and try to remove the
>>> unwanted files from there it self, hence we can omit this behaviour.
>>>
>>> Thanks,
>>> Sinthuja.
>>>
>>> On Wed, May 18, 2016 at 12:13 PM, Ruwan Abeykoon <
>>> ruw...@wso2.com> wrote:
>>>
 >>Can't we fix this during the shinding-server feature
 generation?
 +1
 So that every product using shindig does not have to unzip and
 zip the war file to fix it.

 Cheers,
 Ruwan

 On Wed, May 18, 2016 at 12:01 PM, Sinthuja Ragendran <
 sinth...@wso2.com> wrote:

> Hi Tanya,
>
> Can't we fix this during the shinding-server feature
> generation?
>
> Thanks,
> Sinthuja.
>
> On Wed, May 18, 2016 at 11:56 AM, Harsha Kumara <
> hars...@wso2.com> wrote:
>
>> Adding Bhathiya.
>>
>> We got same exception yesterday in APIM as well. We will need
>> to same thing for DS as well.
>>
>> Thanks,
>> Harsha
>>
>> On Wed, May 18, 2016 at 11:38 AM, Ruwan Abeykoon <
>> ruw...@wso2.com> wrote:
>>
>>> Thanks Tanya for the information. We will follow the same as
>>> in DS.
>>>
>>> On Wed, May 18, 2016 at 11:34 AM, Tanya Madurapperuma <
>>> ta...@wso2.com> wrote:
>>>
 Hi Ruwan,

 Usually this error is thrown as shindig is trying to load
 some google analytics apis. So when there is no internet 
 connection this
 error can be observed.
 To get rid of this error we have to remove google related
 stuff from shindig features.txt file

 *features-extras/analytics/feature.xml*
 *features-extras/com.google.gadgets.analytics/feature.xml*

 But since we don't maintain a shindig fork, we can't do
 this from carbon-dashboards level. So in the Dashboard Server 
 level we are

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

2016-05-30 Thread Hasitha Aravinda
Hi all,

I have tested carbon 5.1.0-RC1 with Carbon-Business-Process 5.0.0-SNAPSHOT
and Product-BPS 4.0.0-SNAPSHOT and didn't find any issue.

[x] Stable - go ahead and release.

Thanks,
Hasitha.

On Fri, May 27, 2016 at 12:44 PM, Niranjan Karunanandham 
wrote:

> Hi Devs,
>
> This is the 1st Release Candidate of WSO2 Carbon Kernel 5.1.0
>
> This release fixed the following issues:
> https://wso2.org/jira/issues/?filter=13077
>
> Please download and test your products with Kernel 5.1.0 RC1 and vote.
>
> *Source and binary distribution files:*
>
> https://github.com/wso2/carbon-kernel/releases/download/v5.1.0-rc1/wso2carbon-kernel-5.1.0.zip
>
> *Maven Staging repository:*
> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1020/
>
> *The tag to be voted upon:*
> https://github.com/wso2/carbon-kernel/releases/tag/v5.1.0-rc1
>
> [ ] Broken - do not releaes (explain why)
> [ ] Stable - go ahead and release
>
> Thank you,
> Carbon Team
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



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


[Dev] Eclipse GEF EditParts are not getting refreshed after editing - Visual DataMapper Editor

2016-05-30 Thread Sohani Weerasinghe
Hi Viraj/Susinda,

I have a requirement to edit the nodes of the tree while creating the tree
by hand. With the current level of implementation for the leaf nodes
mapping, if I add an object which holds a value eg:   071655339 then the connector should be enabled for
that tree node(phone).  Please refer addFixedChild() method at [1].

Initially if I add a tree node(object) to the tree without a value and then
if I edit the tree node and add a value, then in the visual representation
I should see the connector arrow for the tree node which is edited.
eg:

1. Create a schema as below

{
  "$schema" : null,
  "id" : "sdada",
  "title" : "NewRootType",
  "type" : "object",
  "properties" : {
"NewObject" : {
  "id" : "testID",
  "type" : "object"
}
  }
}


​

2. Then edit the object( NewObject) to hold a value
{
  "$schema" : schema1,
  "id" : "testID",
  "title" : "NewRootType",
  "type" : "object",
  "properties" : {
"NewObject" : {
  "id" : "testID",
  "type" : "object",
*  "value" : {*
*"type" : "string"*
*  }*
}
  }
}



When editing the tree node I am calling the addFixedChild()method to update
the connector based on the value but the connector is not added to the
node. ( If i close the editor and open it then I can view the connector as
in the attached image). It seems even I call the addFixedChild() method,
the EditPart is not getting refreshed.

I have called the refresh() method of
the org.eclipse.gef.editparts.AbstractEditPart but was unable to reflect
the changes.

Appreciate your input on this

[1]
https://github.com/wso2/devstudio-tooling-esb/blob/master/plugins/org.wso2.developerstudio.visualdatamapper.diagram/src/org/wso2/developerstudio/datamapper/diagram/edit/parts/TreeNode2EditPart.java

Thanks,
Sohani

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

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


Re: [Dev] Shindig Error

2016-05-30 Thread Damith Wickramasinghe
Hi Tanya,

Thanks for response.

Regards,
Damith.

On Mon, May 30, 2016 at 11:25 AM, Tanya Madurapperuma 
wrote:

> Yes. The same is discussed in [1] and fixed in carbon-dashboards 1.0.17
>
> [1] [Dev] Shindig error on DS portal startup, due to connectivity errors
> to google
>
> Thanks,
> Tanya
>
> On Mon, May 30, 2016 at 11:23 AM, Damith Wickramasinghe 
> wrote:
>
>> Hi all,
>>
>> I received following error when I try in my home network and it took some
>> time to load the dashboard.
>>
>> [2016-05-29 23:53:42,488]  INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>> 'admin@carbon.super [-1234]' logged in at [2016-05-29 23:53:42,487+0530]
>> [2016-05-29 23:53:42,509]  INFO {JAGGERY.modules.api:js} -  Session
>> cookie JSESSIONID=66265F732E6F943180885F0306828C56; Path=/; Secure=null;
>> HttpOnly=null
>> [2016-05-29 23:53:49,866]  INFO
>> {org.apache.shindig.gadgets.http.BasicHttpFetcher} -
>> https://localhost:9443/shindig/rpc?method=system.listMethods=-1:-1:0:*:0:0:default:1464546234
>> has timed out because of the following exception:
>> org.apache.shindig.gadgets.http.BasicHttpFetcher - Read timed out - 5,093
>> ms.
>> [2016-05-29 23:53:49,869] ERROR
>> {org.apache.shindig.gadgets.render.DefaultServiceFetcher} -  An HTTP 504
>> error occurred when fetching service methods from the
>> https://localhost:9443/shindig/rpc endpoint.
>> [2016-05-29 23:54:05,118]  INFO
>> {org.apache.shindig.gadgets.http.BasicHttpFetcher} -
>> http://www.google-analytics.com/urchin.js has timed out because of the
>> following exception: org.apache.shindig.gadgets.http.BasicHttpFetcher -
>> www.google-analytics.com: unknown error - 20,014 ms.
>> [2016-05-29 23:54:05,121]  WARN
>> {org.apache.shindig.gadgets.features.FeatureResourceLoader} -  The remote
>> library from http://www.google-analytics.com/urchin.js cannot be
>> retrieved.
>>
>>
>> Is this a known issue ?
>>
>> Regards,
>> Damith.
>>
>> --
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <%2B94728671315>*
>>
>>
>
>
> --
> Tanya Madurapperuma
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>



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

lean.enterprise.middleware

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


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

2016-05-30 Thread Chiranga Alwis
Hi all,

I have tested the following features in a Unix system.
- dropins capability during server startup
- dropins tool
- jar-to-OSGi-bundle converter functionality

No issues found.
[x] Stable - go ahead and release.



On Mon, May 30, 2016 at 10:51 AM, Indika Sampath  wrote:

> Hi All,
>
> carbon 5.1.0-rc1 tested with andes (c5 migration) and product-mb (c5
> migration). I didn't found any issue.
>
> [x] Stable - go ahead and release
>
> Cheers!
>
> On Fri, May 27, 2016 at 6:15 PM, Niranjan Karunanandham  > wrote:
>
>> Hi all,
>>
>> I have tested Carbon 5.1.0 RC1 with the following and found no issue.
>>
>>- Built carbon-datasources and tested a sample.
>>- Built msf4j and tested the stockquote sample
>>- Built carbon-caching and tested a sample
>>- Tested JMX support by connect to the server via "Local Process"
>>
>> [x] Stable - go ahead and release
>>
>> Regards,
>> Nira
>>
>> On Fri, May 27, 2016 at 5:19 PM, Nipuni Perera  wrote:
>>
>>> Hi all,
>>>
>>> I have tested features below and no issues found.
>>>
>>>1. java.util.logging
>>>2. built carbon-jndi and tested a sample
>>>
>>> [x] Stable - go ahead and release
>>>
>>> Thanks,
>>> Nipuni
>>>
>>> On Fri, May 27, 2016 at 12:44 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Devs,

 This is the 1st Release Candidate of WSO2 Carbon Kernel 5.1.0

 This release fixed the following issues:
 https://wso2.org/jira/issues/?filter=13077

 Please download and test your products with Kernel 5.1.0 RC1 and vote.

 *Source and binary distribution files:*

 https://github.com/wso2/carbon-kernel/releases/download/v5.1.0-rc1/wso2carbon-kernel-5.1.0.zip

 *Maven Staging repository:*
 https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1020/

 *The tag to be voted upon:*
 https://github.com/wso2/carbon-kernel/releases/tag/v5.1.0-rc1

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

 Thank you,
 Carbon Team

 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> Nipuni Perera
>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>> Email: nip...@wso2.com
>>> Git hub profile: https://github.com/nipuni
>>> Blog : http://nipunipererablog.blogspot.com/
>>> Mobile: +94 (71) 5626680
>>> 
>>>
>>>
>>
>>
>> --
>>
>> *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
>>
>>
>
>
> --
> Indika Sampath
> Senior Software Engineer
> WSO2 Inc.
> http://wso2.com
>
> Phone: +94 716 424 744
> Blog: http://indikasampath.blogspot.com/
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chiranga Alwis,
Software Engineering Intern,
+94 77 5930497
+94 77 6368208
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Documentation] [APIM] Where is "API Usage By User"

2016-05-30 Thread Amila Maha Arachchi
Thanks for the quick fix Tania.

On Mon, May 30, 2016 at 12:20 AM, Tania Mahanama  wrote:

> The info was split between two pages and had discrepancies. I've organized
> it better now. Thanks for reporting!
>
> On Sun, May 29, 2016 at 8:09 PM, Amila Maha Arachchi 
> wrote:
>
>> Doc and APIM Team,
>>
>> I can see a screenshot in [1] for "API Usage By User". But, AFAIU, it is
>> not there anymore in the API Publisher's statistics menu.
>>
>> I have seen users getting confused over this [2].
>>
>> Please fix the docs.
>>
>> [1] https://docs.wso2.com/display/AM1100/Viewing+API+Statistics
>> [2]
>> http://stackoverflow.com/questions/37405753/how-to-get-anatytics-per-user-per-api-version-in-wso2
>>
>> Regards,
>> Amila.
>> --
>> *Amila Maharachchi*
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Documentation Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to documentation+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>
>
> --
> Tania Mahanama
> Senior Technical Writer
>
> Contact:
> Mob: +94 077 5129270
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

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