Re: [Dev] Please Review and Merge (WebSocket Suppport for Carbon-Messaging)

2017-01-25 Thread Irunika Weeraratne
Hi all, Can you please review and merge the PR? Thanks, Irunika *Irunika Weeraratne* *Software Engineer | WSO2, Inc. * *Email : irun...@wso2.com * *LinkedIn : https://lk.linkedin.com/in/irunika * *Mobile : +94712403314*

Re: [Dev] Error when using appm restapi

2017-01-25 Thread Lahiru Cooray
Hi Susinda, Normally we see this error when the payload is invalid. First please verify the payload with [1]. And carbonContext.getLoggedInUser() can return null when the token is expired. [1] https://docs.wso2.com/display/APPM120/app-manager/publisher/#!/operations#AppsApi#appsAppTypePost On

[Dev] Error when using appm restapi

2017-01-25 Thread Susinda Perera
Hi All I'm getting following error[1] when I use following request to *https://localhost:9443/api/appm/publisher/v1.1/apps/mobileapp * to create a app. Note that Authorization Bearer header is also present. >From debug found that

Re: [Dev] Error executing script when incremental processing enabled

2017-01-25 Thread Rukshani Weerasinha
Hi all, Now I have changed [1] based on the information given in this thread about the time period. The examples given were also changed to show how the processing is done based on the minutes and hours instead of seconds and minutes. @Sachith and Shazni, can you please check the changes and let

Re: [Dev] Error executing script when incremental processing enabled

2017-01-25 Thread Rukshani Weerasinha
Thank you Shavi. I will change this and let you know once it is done. On Wed, Jan 25, 2017 at 5:15 PM, Shavindri Dissanayake wrote: > Adding Ruk. > > Thanks & Regards > Shavindri Dissanayake > Technical Writer > > WSO2 Inc. > lean.enterprise.middleware > > On Wed, Jan 25,

Re: [Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?

2017-01-25 Thread Mahesh Chinthaka
Hi Manu, Thanks for the help. I found the jira[1] related to this. And it has been fixed with the commit[2]. [1] - https://wso2.org/jira/browse/JAGGERY-359 [2] - https://github.com/wso2/jaggery/commit/a5fa00957e6686c946900e38ab5561c30f45f58a On Wed, Jan 25, 2017 at 7:54 PM, Manuranga Perera

Re: [Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?

2017-01-25 Thread Manuranga Perera
I think it's fixed in latest. Old one doesn't have a null check [1] but the new one [2] does. Can you please back port the fixed line, build, patch and try? [1]

Re: [Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?

2017-01-25 Thread Mahesh Chinthaka
Hi Jaggery Team, Actually the reason is, the endpoint im calling doesnt return anything as response. Just '204 No Content' Since the response is empty/null, it returns a null pointer exception. IMO no content responses also should be handled by hostobject. Is this fixed now? Im using

Re: [Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?

2017-01-25 Thread Mahesh Chinthaka
Even though this error occurs, http call happens succesfully. That is weird. On Wed, Jan 25, 2017 at 6:58 PM, Mahesh Chinthaka wrote: > > Hi all, > > Im using jaggery post to a http post call. > I dont need to set the headers, type and data as per my use case > when I use like

[Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?

2017-01-25 Thread Mahesh Chinthaka
Hi all, Im using jaggery post to a http post call. I dont need to set the headers, type and data as per my use case when I use like below, var result = post(url); It throws following error. Caused by: java.lang.NullPointerException at

Re: [Dev] Error executing script when incremental processing enabled

2017-01-25 Thread Shavindri Dissanayake
Adding Ruk. Thanks & Regards Shavindri Dissanayake Technical Writer WSO2 Inc. lean.enterprise.middleware On Wed, Jan 25, 2017 at 5:03 PM, Shazni Nazeer wrote: > There's also a change in the second param of the incrementalParams as DAY, > HOUR instead of number of seconds as

Re: [Dev] Error executing script when incremental processing enabled

2017-01-25 Thread Shazni Nazeer
There's also a change in the second param of the incrementalParams as DAY, HOUR instead of number of seconds as mentioned in the documentation. @Documentation - could this page be corrected? On Wed, Jan 25, 2017 at 4:52 PM, Shazni Nazeer wrote: > Thanks Fazlan. > > That'll be

Re: [Dev] Error executing script when incremental processing enabled

2017-01-25 Thread Shazni Nazeer
Thanks Fazlan. That'll be useful. Only difference I see is primary key comes prior to incrementalParams. I'll try this out. On Wed, Jan 25, 2017 at 4:44 PM, Fazlan Nazeem wrote: > Hi Shazni, > > Please check [1] for how we use incrementalParams in APIM-Analytics > scripts. >

Re: [Dev] Error executing script when incremental processing enabled

2017-01-25 Thread Fazlan Nazeem
Hi Shazni, Please check [1] for how we use incrementalParams in APIM-Analytics scripts. [1] https://git.io/vMxJq On Wed, Jan 25, 2017 at 1:29 PM, Shazni Nazeer wrote: > Hi, > > I have a spark table as shown below. > > CREATE TEMPORARY TABLE APIHourlyTrafficSummary using

Re: [Dev] Please Review and Merge (WebSocket Suppport for Carbon-Messaging)

2017-01-25 Thread Irunika Weeraratne
Hi all, I modified the Carbon-Messaging according to the requirements. Please review and merge. https://github.com/wso2/carbon-messaging/pull/40 Thanks, Irunika *Irunika Weeraratne* *Software Engineer | WSO2, Inc. * *Email : irun...@wso2.com * *LinkedIn :

Re: [Dev] Adding IoTs quick-start script

2017-01-25 Thread Rasika Perera
Hi Shavindri, The suggested location: */**core/samples/mobile-qsg* - then add > the scripts here? +1. This looks good. Thanks, Rasika On Wed, Jan 25, 2017 at 1:19 PM, Shavindri Dissanayake wrote: > Hi Susinda, > > A small suggestion. Please discard if it doesn't add

Re: [Dev] Adding IoTs quick-start script

2017-01-25 Thread Susinda Perera
On Wed, Jan 25, 2017 at 1:19 PM, Shavindri Dissanayake wrote: > Hi Susinda, > > A small suggestion. Please discard if it doesn't add value. > > We already have a samples folder in the core that has the connected cup > therefore, can we add the script for the mobile-qsg there

[Dev] Error executing script when incremental processing enabled

2017-01-25 Thread Shazni Nazeer
Hi, I have a spark table as shown below. CREATE TEMPORARY TABLE APIHourlyTrafficSummary using CarbonAnalytics options (tableName "org_wso2telco_analytics_hub_stream_traffic_summary_per_hour", schema " year INT -i, month INT -i, day INT -i, hour INT -i, eventTimeStamp STRING -i, api STRING -i,

Re: [Dev] Introducing onGet, onPost functions for UUF

2017-01-25 Thread Shan Mahanama
Hi Dilan, Please find my comments inline. Can you explain the use-case behind splitting onRequest() function to two, > i.e. onGet() and onPost() ? > Please refer mail thread[1] for this. > Does this mean that we can have independent server-side JS scripts in UUF > to handle a GET or a POST