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*
*Lean . Enterprise . Middleware*


On Wed, Jan 25, 2017 at 3:35 PM, Irunika Weeraratne 
wrote:

> 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 : https://lk.linkedin.com/in/irunika
> *
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Jan 2, 2017 at 12:47 PM, Irunika Weeraratne 
> wrote:
>
>> Hi all,
>> I did necessary changes after the review.
>> 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 : https://lk.linkedin.com/in/irunika
>> *
>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Fri, Dec 23, 2016 at 1:36 PM, Irunika Weeraratne 
>> wrote:
>>
>>> Noted.
>>>
>>> Thanks,
>>> Irunika
>>>
>>> *Irunika Weeraratne*
>>> *Software Engineer | WSO2, Inc. *
>>> *Email : irun...@wso2.com *
>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>> *
>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Fri, Dec 23, 2016 at 1:30 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Adding @dev

 @Irunika, always copy the relevant mailing list.

 On Fri, Dec 23, 2016 at 1:17 PM, Irunika Weeraratne 
 wrote:

> Hi,
> Please review and merge
> https://github.com/wso2/carbon-messaging/pull/39
>
> Thanks,
> Irunika
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. *
> *Email : irun...@wso2.com *
> *LinkedIn : https://lk.linkedin.com/in/irunika
> *
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>


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

 Mobile - +94773426635 <+94%2077%20342%206635>
 Blog - *http://kishanthan.wordpress.com
 *
 Twitter - *http://twitter.com/kishanthan
 *

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


Re: [Dev] 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 Thu, Jan 26, 2017 at 11:25 AM, Susinda Perera  wrote:

> 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 carbonContext.getLoggedInUser() returns null.
> Any idea what is wrong or can someone give some insight.
>
> POST
> {"displayName":"Catalog","iconFile":"89e4b6619898.jpg","description":"Sample
> application","banner":"402fd08981a33fb8.jpg","
> mediaType":"application\/vnd.wso2-mobileapp+xml","type":"
> enterprise","version":"1.0","marketType":"enterprise","
> platform":"android","screenshots":["bd0deb0dd7a4d8ed.jpg","
> 17ade2074eec7adf.jpg","caded496ebe7700c.jpg"],"
> provider":"admin","appType":"android","name":"Catalog","
> category":"Business","appmeta":{"path":"2d40ed0e1b22977c.
> apk","package":"org.wso2.app.catalog","version":"1.0"}}
>
> [1]
> ERROR - GlobalThrowableMapper One or more request body parameters contain
> disallowed values.
>
>
> --
> *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
>
>


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

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


[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 carbonContext.getLoggedInUser() returns null.
Any idea what is wrong or can someone give some insight.

POST
{"displayName":"Catalog","iconFile":"89e4b6619898.jpg","description":"Sample
application","banner":"402fd08981a33fb8.jpg","mediaType":"application\/vnd.wso2-mobileapp+xml","type":"enterprise","version":"1.0","marketType":"enterprise","platform":"android","screenshots":["bd0deb0dd7a4d8ed.jpg","17ade2074eec7adf.jpg","caded496ebe7700c.jpg"],"provider":"admin","appType":"android","name":"Catalog","category":"Business","appmeta":{"path":"2d40ed0e1b22977c.apk","package":"org.wso2.app.catalog","version":"1.0"}}

[1]
ERROR - GlobalThrowableMapper One or more request body parameters contain
disallowed values.


-- 
*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] 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 me know
whether they are correct?

[1] https://docs.wso2.com/display/DAS310/Incremental+Processing

Best Regards,
Rukshani.

On Thu, Jan 26, 2017 at 9:11 AM, Rukshani Weerasinha 
wrote:

> 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, 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 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 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.
>
> [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 CarbonAnalytics
>> options (tableName "org_wso2telco_analytics_hub_s
>> tream_traffic_summary_per_hour",
>> schema "
>> year INT -i,
>> month INT -i,
>> day INT -i,
>> hour INT -i,
>> eventTimeStamp STRING -i,
>> api STRING -i,
>> serviceProvider STRING -i,
>> apiPublisher STRING -i,
>> applicationName STRING -i,
>> operatorId STRING -i,
>> isSuccess BOOLEAN -i,
>> msisdn STRING -i,
>> direction STRING -i,
>> totalCount INTEGER -i,
>> serviceProviderId STRING -i,
>> operatorName STRING -i,
>> apiPublisherID STRING -i,
>> apiID STRING -i,
>> department STRING -i,
>> applicationId STRING -i",
>> primaryKeys "year,month,day,hour,eventTime
>> Stamp,api,serviceProvider,apiPublisher,applicationName,opera
>> torId,isSuccess,msisdn,direction"
>> );
>>
>> I want to add incrementalParams as mentioned in the following [1].
>>
>> [1] https://docs.wso2.com/display/DAS310/Incremental+Processing
>>
>> Therefore I have added the line as below.
>>
>> CREATE TEMPORARY TABLE APIHourlyTrafficSummary using
>> CarbonAnalytics options (tableName "org_wso2telco_analytics_hub_s
>> tream_traffic_summary_per_hour",
>> schema "
>> year INT -i,
>> month INT -i,
>> day INT -i,
>> hour INT -i,
>> eventTimeStamp STRING -i,
>> api STRING -i,
>> serviceProvider STRING -i,
>> apiPublisher STRING -i,
>> applicationName STRING -i,
>> operatorId STRING -i,
>> isSuccess BOOLEAN -i,
>> msisdn STRING -i,
>> direction STRING -i,
>> totalCount INTEGER -i,
>> serviceProviderId STRING -i,
>> operatorName STRING -i,
>> apiPublisherID STRING -i,
>> apiID STRING -i,
>> department STRING -i,
>> applicationId STRING -i",
>>* incrementalParams "APIHourlyTrafficSummary, 0",*
>> primaryKeys "year,month,day,hour,eventTime
>> Stamp,api,serviceProvider,apiPublisher,applicationName,opera
>> torId,isSuccess,msisdn,direction"
>> );
>>
>> But executing the script throws an error. looks like a syntax error.
>> What am I doing wrong here?
>>
>> --
>> Shazni Nazeer
>> Associate Technical Lead | WSO2
>>
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>



 --
 Shazni Nazeer
 Associate Technical Lead | WSO2

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

 

>>>
>>>
>>>
>>> --
>>> Shazni Nazeer
>>> Ass

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

 [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 CarbonAnalytics
> options (tableName "org_wso2telco_analytics_hub_s
> tream_traffic_summary_per_hour",
> schema "
> year INT -i,
> month INT -i,
> day INT -i,
> hour INT -i,
> eventTimeStamp STRING -i,
> api STRING -i,
> serviceProvider STRING -i,
> apiPublisher STRING -i,
> applicationName STRING -i,
> operatorId STRING -i,
> isSuccess BOOLEAN -i,
> msisdn STRING -i,
> direction STRING -i,
> totalCount INTEGER -i,
> serviceProviderId STRING -i,
> operatorName STRING -i,
> apiPublisherID STRING -i,
> apiID STRING -i,
> department STRING -i,
> applicationId STRING -i",
> primaryKeys "year,month,day,hour,eventTime
> Stamp,api,serviceProvider,apiPublisher,applicationName,opera
> torId,isSuccess,msisdn,direction"
> );
>
> I want to add incrementalParams as mentioned in the following [1].
>
> [1] https://docs.wso2.com/display/DAS310/Incremental+Processing
>
> Therefore I have added the line as below.
>
> CREATE TEMPORARY TABLE APIHourlyTrafficSummary using
> CarbonAnalytics options (tableName "org_wso2telco_analytics_hub_s
> tream_traffic_summary_per_hour",
> schema "
> year INT -i,
> month INT -i,
> day INT -i,
> hour INT -i,
> eventTimeStamp STRING -i,
> api STRING -i,
> serviceProvider STRING -i,
> apiPublisher STRING -i,
> applicationName STRING -i,
> operatorId STRING -i,
> isSuccess BOOLEAN -i,
> msisdn STRING -i,
> direction STRING -i,
> totalCount INTEGER -i,
> serviceProviderId STRING -i,
> operatorName STRING -i,
> apiPublisherID STRING -i,
> apiID STRING -i,
> department STRING -i,
> applicationId STRING -i",
>* incrementalParams "APIHourlyTrafficSummary, 0",*
> primaryKeys "year,month,day,hour,eventTime
> Stamp,api,serviceProvider,apiPublisher,applicationName,opera
> torId,isSuccess,msisdn,direction"
> );
>
> But executing the script throws an error. looks like a syntax error.
> What am I doing wrong here?
>
> --
> Shazni Nazeer
> Associate Technical Lead | WSO2
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thanks & Regards,

 Fazlan Nazeem

 *Software Engineer*

 *WSO2 Inc*
 Mobile : +94772338839
 <%2B94%20%280%29%20773%20451194>
 fazl...@wso2.com

>>>
>>>
>>>
>>> --
>>> Shazni Nazeer
>>> Associate Technical Lead | WSO2
>>>
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> 
>>>
>>
>>
>>
>> --
>> Shazni Nazeer
>> Associate Technical Lead | WSO2
>>
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> 
>>
>> --
>> 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.
>>
>
>


-- 
Rukshani Weerasinha

WSO2 Inc.
Web:http://wso2.com
Mobile: 0777 683 738
___
Dev mailing list
Dev@ws

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

> 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] https://github.com/wso2/jaggery/blob/0.9.0.ALPHA4.
> wso2v1/components/hostobjects/org.jaggeryjs.hostobjects.xhr/
> src/main/java/org/jaggeryjs/hostobjects/xhr/XMLHttpRequestHostObject.java#
> L527
> [2] https://github.com/wso2/jaggery/blob/master/
> components/hostobjects/org.jaggeryjs.hostobjects.xhr/src/
> main/java/org/jaggeryjs/hostobjects/xhr/XMLHttpRequestHostObject.java#L561
>
> On Wed, Jan 25, 2017 at 2:10 PM, Mahesh Chinthaka 
> wrote:
>
>> 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 *org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar*
>>
>> On Wed, Jan 25, 2017 at 7:00 PM, Mahesh Chinthaka 
>> wrote:
>>
>>> 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 below,

  var result = post(url);

 It throws following error.

 Caused by: java.lang.NullPointerException

 at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.execu
 teRequest(XMLHttpRequestHostObject.java:527)

 at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(
 XMLHttpRequestHostObject.java:515)

 at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFun
 ction_send(XMLHttpRequestHostObject.java:279)

 at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
 thodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:606)

 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)

 Any idea please ?

 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>> Email: mahe...@wso2.com | Web: www.wso2.com
>>>
>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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]
https://github.com/wso2/jaggery/blob/0.9.0.ALPHA4.wso2v1/components/hostobjects/org.jaggeryjs.hostobjects.xhr/src/main/java/org/jaggeryjs/hostobjects/xhr/XMLHttpRequestHostObject.java#L527
[2]
https://github.com/wso2/jaggery/blob/master/components/hostobjects/org.jaggeryjs.hostobjects.xhr/src/main/java/org/jaggeryjs/hostobjects/xhr/XMLHttpRequestHostObject.java#L561

On Wed, Jan 25, 2017 at 2:10 PM, Mahesh Chinthaka  wrote:

> 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 *org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar*
>
> On Wed, Jan 25, 2017 at 7:00 PM, Mahesh Chinthaka 
> wrote:
>
>> 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 below,
>>>
>>>  var result = post(url);
>>>
>>> It throws following error.
>>>
>>> Caused by: java.lang.NullPointerException
>>>
>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.execu
>>> teRequest(XMLHttpRequestHostObject.java:527)
>>>
>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(
>>> XMLHttpRequestHostObject.java:515)
>>>
>>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFun
>>> ction_send(XMLHttpRequestHostObject.java:279)
>>>
>>> at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
>>>
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>>
>>> Any idea please ?
>>>
>>> --
>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>> Email: mahe...@wso2.com | Web: www.wso2.com
>>>
>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>



-- 
With regards,
*Manu*ranga Perera.

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


Re: [Dev] [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 *org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar*

On Wed, Jan 25, 2017 at 7:00 PM, Mahesh Chinthaka  wrote:

> 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 below,
>>
>>  var result = post(url);
>>
>> It throws following error.
>>
>> Caused by: java.lang.NullPointerException
>>
>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.execu
>> teRequest(XMLHttpRequestHostObject.java:527)
>>
>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(
>> XMLHttpRequestHostObject.java:515)
>>
>> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFun
>> ction_send(XMLHttpRequestHostObject.java:279)
>>
>> at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
>>
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:606)
>>
>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>
>> Any idea please ?
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>



-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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 below,
>
>  var result = post(url);
>
> It throws following error.
>
> Caused by: java.lang.NullPointerException
>
> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.executeRequest(
> XMLHttpRequestHostObject.java:527)
>
> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(
> XMLHttpRequestHostObject.java:515)
>
> at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFunction_send(
> XMLHttpRequestHostObject.java:279)
>
> at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
>
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>
> Any idea please ?
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>



-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[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
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.executeRequest(XMLHttpRequestHostObject.java:527)

at
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(XMLHttpRequestHostObject.java:515)

at
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFunction_send(XMLHttpRequestHostObject.java:279)

at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)

Any idea please ?

-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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 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 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.
>>>
>>> [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 CarbonAnalytics
 options (tableName "org_wso2telco_analytics_hub_s
 tream_traffic_summary_per_hour",
 schema "
 year INT -i,
 month INT -i,
 day INT -i,
 hour INT -i,
 eventTimeStamp STRING -i,
 api STRING -i,
 serviceProvider STRING -i,
 apiPublisher STRING -i,
 applicationName STRING -i,
 operatorId STRING -i,
 isSuccess BOOLEAN -i,
 msisdn STRING -i,
 direction STRING -i,
 totalCount INTEGER -i,
 serviceProviderId STRING -i,
 operatorName STRING -i,
 apiPublisherID STRING -i,
 apiID STRING -i,
 department STRING -i,
 applicationId STRING -i",
 primaryKeys "year,month,day,hour,eventTime
 Stamp,api,serviceProvider,apiPublisher,applicationName,opera
 torId,isSuccess,msisdn,direction"
 );

 I want to add incrementalParams as mentioned in the following [1].

 [1] https://docs.wso2.com/display/DAS310/Incremental+Processing

 Therefore I have added the line as below.

 CREATE TEMPORARY TABLE APIHourlyTrafficSummary using
 CarbonAnalytics options (tableName "org_wso2telco_analytics_hub_s
 tream_traffic_summary_per_hour",
 schema "
 year INT -i,
 month INT -i,
 day INT -i,
 hour INT -i,
 eventTimeStamp STRING -i,
 api STRING -i,
 serviceProvider STRING -i,
 apiPublisher STRING -i,
 applicationName STRING -i,
 operatorId STRING -i,
 isSuccess BOOLEAN -i,
 msisdn STRING -i,
 direction STRING -i,
 totalCount INTEGER -i,
 serviceProviderId STRING -i,
 operatorName STRING -i,
 apiPublisherID STRING -i,
 apiID STRING -i,
 department STRING -i,
 applicationId STRING -i",
* incrementalParams "APIHourlyTrafficSummary, 0",*
 primaryKeys "year,month,day,hour,eventTime
 Stamp,api,serviceProvider,apiPublisher,applicationName,opera
 torId,isSuccess,msisdn,direction"
 );

 But executing the script throws an error. looks like a syntax error.
 What am I doing wrong here?

 --
 Shazni Nazeer
 Associate Technical Lead | WSO2

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

 

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


>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> Fazlan Nazeem
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc*
>>> Mobile : +94772338839
>>> <%2B94%20%280%29%20773%20451194>
>>> fazl...@wso2.com
>>>
>>
>>
>>
>> --
>> Shazni Nazeer
>> Associate Technical Lead | WSO2
>>
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> 
>>
>
>
>
> --
> Shazni Nazeer
> Associate Technical Lead | WSO2
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> 
>
> --
> 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.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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 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.
>>
>> [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 CarbonAnalytics
>>> options (tableName "org_wso2telco_analytics_hub_s
>>> tream_traffic_summary_per_hour",
>>> schema "
>>> year INT -i,
>>> month INT -i,
>>> day INT -i,
>>> hour INT -i,
>>> eventTimeStamp STRING -i,
>>> api STRING -i,
>>> serviceProvider STRING -i,
>>> apiPublisher STRING -i,
>>> applicationName STRING -i,
>>> operatorId STRING -i,
>>> isSuccess BOOLEAN -i,
>>> msisdn STRING -i,
>>> direction STRING -i,
>>> totalCount INTEGER -i,
>>> serviceProviderId STRING -i,
>>> operatorName STRING -i,
>>> apiPublisherID STRING -i,
>>> apiID STRING -i,
>>> department STRING -i,
>>> applicationId STRING -i",
>>> primaryKeys "year,month,day,hour,eventTimeStamp,api,serviceProvider,apiP
>>> ublisher,applicationName,operatorId,isSuccess,msisdn,direction"
>>> );
>>>
>>> I want to add incrementalParams as mentioned in the following [1].
>>>
>>> [1] https://docs.wso2.com/display/DAS310/Incremental+Processing
>>>
>>> Therefore I have added the line as below.
>>>
>>> CREATE TEMPORARY TABLE APIHourlyTrafficSummary using
>>> CarbonAnalytics options (tableName "org_wso2telco_analytics_hub_s
>>> tream_traffic_summary_per_hour",
>>> schema "
>>> year INT -i,
>>> month INT -i,
>>> day INT -i,
>>> hour INT -i,
>>> eventTimeStamp STRING -i,
>>> api STRING -i,
>>> serviceProvider STRING -i,
>>> apiPublisher STRING -i,
>>> applicationName STRING -i,
>>> operatorId STRING -i,
>>> isSuccess BOOLEAN -i,
>>> msisdn STRING -i,
>>> direction STRING -i,
>>> totalCount INTEGER -i,
>>> serviceProviderId STRING -i,
>>> operatorName STRING -i,
>>> apiPublisherID STRING -i,
>>> apiID STRING -i,
>>> department STRING -i,
>>> applicationId STRING -i",
>>>* incrementalParams "APIHourlyTrafficSummary, 0",*
>>> primaryKeys "year,month,day,hour,eventTime
>>> Stamp,api,serviceProvider,apiPublisher,applicationName,opera
>>> torId,isSuccess,msisdn,direction"
>>> );
>>>
>>> But executing the script throws an error. looks like a syntax error.
>>> What am I doing wrong here?
>>>
>>> --
>>> Shazni Nazeer
>>> Associate Technical Lead | WSO2
>>>
>>> Mob : +94 37331
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> Fazlan Nazeem
>>
>> *Software Engineer*
>>
>> *WSO2 Inc*
>> Mobile : +94772338839
>> <%2B94%20%280%29%20773%20451194>
>> fazl...@wso2.com
>>
>
>
>
> --
> Shazni Nazeer
> Associate Technical Lead | WSO2
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> 
>



-- 
Shazni Nazeer
Associate Technical Lead | WSO2

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


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


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.
>
> [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 CarbonAnalytics
>> options (tableName "org_wso2telco_analytics_hub_s
>> tream_traffic_summary_per_hour",
>> schema "
>> year INT -i,
>> month INT -i,
>> day INT -i,
>> hour INT -i,
>> eventTimeStamp STRING -i,
>> api STRING -i,
>> serviceProvider STRING -i,
>> apiPublisher STRING -i,
>> applicationName STRING -i,
>> operatorId STRING -i,
>> isSuccess BOOLEAN -i,
>> msisdn STRING -i,
>> direction STRING -i,
>> totalCount INTEGER -i,
>> serviceProviderId STRING -i,
>> operatorName STRING -i,
>> apiPublisherID STRING -i,
>> apiID STRING -i,
>> department STRING -i,
>> applicationId STRING -i",
>> primaryKeys "year,month,day,hour,eventTimeStamp,api,serviceProvider,
>> apiPublisher,applicationName,operatorId,isSuccess,msisdn,direction"
>> );
>>
>> I want to add incrementalParams as mentioned in the following [1].
>>
>> [1] https://docs.wso2.com/display/DAS310/Incremental+Processing
>>
>> Therefore I have added the line as below.
>>
>> CREATE TEMPORARY TABLE APIHourlyTrafficSummary using
>> CarbonAnalytics options (tableName "org_wso2telco_analytics_hub_s
>> tream_traffic_summary_per_hour",
>> schema "
>> year INT -i,
>> month INT -i,
>> day INT -i,
>> hour INT -i,
>> eventTimeStamp STRING -i,
>> api STRING -i,
>> serviceProvider STRING -i,
>> apiPublisher STRING -i,
>> applicationName STRING -i,
>> operatorId STRING -i,
>> isSuccess BOOLEAN -i,
>> msisdn STRING -i,
>> direction STRING -i,
>> totalCount INTEGER -i,
>> serviceProviderId STRING -i,
>> operatorName STRING -i,
>> apiPublisherID STRING -i,
>> apiID STRING -i,
>> department STRING -i,
>> applicationId STRING -i",
>>* incrementalParams "APIHourlyTrafficSummary, 0",*
>> primaryKeys "year,month,day,hour,eventTime
>> Stamp,api,serviceProvider,apiPublisher,applicationName,
>> operatorId,isSuccess,msisdn,direction"
>> );
>>
>> But executing the script throws an error. looks like a syntax error. What
>> am I doing wrong here?
>>
>> --
>> Shazni Nazeer
>> Associate Technical Lead | WSO2
>>
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>



-- 
Shazni Nazeer
Associate Technical Lead | WSO2

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


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


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 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,
> serviceProvider STRING -i,
> apiPublisher STRING -i,
> applicationName STRING -i,
> operatorId STRING -i,
> isSuccess BOOLEAN -i,
> msisdn STRING -i,
> direction STRING -i,
> totalCount INTEGER -i,
> serviceProviderId STRING -i,
> operatorName STRING -i,
> apiPublisherID STRING -i,
> apiID STRING -i,
> department STRING -i,
> applicationId STRING -i",
> primaryKeys "year,month,day,hour,eventTimeStamp,api,
> serviceProvider,apiPublisher,applicationName,operatorId,
> isSuccess,msisdn,direction"
> );
>
> I want to add incrementalParams as mentioned in the following [1].
>
> [1] https://docs.wso2.com/display/DAS310/Incremental+Processing
>
> Therefore I have added the line as 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,
> serviceProvider STRING -i,
> apiPublisher STRING -i,
> applicationName STRING -i,
> operatorId STRING -i,
> isSuccess BOOLEAN -i,
> msisdn STRING -i,
> direction STRING -i,
> totalCount INTEGER -i,
> serviceProviderId STRING -i,
> operatorName STRING -i,
> apiPublisherID STRING -i,
> apiID STRING -i,
> department STRING -i,
> applicationId STRING -i",
>* incrementalParams "APIHourlyTrafficSummary, 0",*
> primaryKeys "year,month,day,hour,eventTimeStamp,api,
> serviceProvider,apiPublisher,applicationName,operatorId,
> isSuccess,msisdn,direction"
> );
>
> But executing the script throws an error. looks like a syntax error. What
> am I doing wrong here?
>
> --
> Shazni Nazeer
> Associate Technical Lead | WSO2
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,

Fazlan Nazeem

*Software Engineer*

*WSO2 Inc*
Mobile : +94772338839
<%2B94%20%280%29%20773%20451194>
fazl...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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 : https://lk.linkedin.com/in/irunika
*
*Mobile : +94712403314*
*Lean . Enterprise . Middleware*


On Mon, Jan 2, 2017 at 12:47 PM, Irunika Weeraratne 
wrote:

> Hi all,
> I did necessary changes after the review.
> 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 : https://lk.linkedin.com/in/irunika
> *
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Fri, Dec 23, 2016 at 1:36 PM, Irunika Weeraratne 
> wrote:
>
>> Noted.
>>
>> Thanks,
>> Irunika
>>
>> *Irunika Weeraratne*
>> *Software Engineer | WSO2, Inc. *
>> *Email : irun...@wso2.com *
>> *LinkedIn : https://lk.linkedin.com/in/irunika
>> *
>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Fri, Dec 23, 2016 at 1:30 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Adding @dev
>>>
>>> @Irunika, always copy the relevant mailing list.
>>>
>>> On Fri, Dec 23, 2016 at 1:17 PM, Irunika Weeraratne 
>>> wrote:
>>>
 Hi,
 Please review and merge
 https://github.com/wso2/carbon-messaging/pull/39

 Thanks,
 Irunika
 *Irunika Weeraratne*
 *Software Engineer | WSO2, Inc. *
 *Email : irun...@wso2.com *
 *LinkedIn : https://lk.linkedin.com/in/irunika
 *
 *Mobile : +94712403314 <+94%2071%20240%203314>*
 *Lean . Enterprise . Middleware*


>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635 <+94%2077%20342%206635>
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] 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 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 too?
> The suggested location: */**core/samples/mobile-qsg* - then
> add the scripts here?
>
> Thanks & Regards
> Shavindri Dissanayake
> Technical Writer
>
> WSO2 Inc.
> lean.enterprise.middleware
>
> On Wed, Jan 25, 2017 at 1:02 PM, Susinda Perera  wrote:
>
>> I'm going to work on $subject. It was there in EMM[1] and same is to be
>> have in IoTs repo[2].
>> In EMM it could be found under /emm-qsg and can also be
>> downloaded from the docs [3,4].
>>
>> For IoTs we are going to have this source and distribution on following
>> locations
>> source - *product-iots/modules/core/scripts/**iot-qsg-script *at IoTs
>> repo[2].
>> distribution - */core/repository/resources/scripts*
>> Please share your thought on above?
>>
>> [1] - https://github.com/wso2/product-emm/tree/master/modules/to
>> ols/emm-qsg
>> [2] - https://github.com/wso2/product-iots
>> [2] - https://docs.wso2.com/display/EMM220/Android+Device
>> [3] - https://docs.wso2.com/download/attachments/53124323/emm-qs
>> g.zip?version=7&modificationDate=1480340286000&api=v2
>>
>>
>> Thanks
>> Susinda
>>
>> --
>> *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
>>
>>
>


-- 
With Regards,

*Rasika Perera*
Software Engineer
LinkedIn: http://lk.linkedin.com/in/rasika90



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


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 too?
> The suggested location: */**core/samples/mobile-qsg* - then
> add the scripts here?
>
It's at */**samples/ * i.e the root level, as this does not add
anything to broker or analytics we have to make this inside  */*
*core/>. *Will see what is more convenient */**core/samples/* or
 */core/repository/resources/scripts*
Btw are you proposing that it should come as mobile-qsg instead of iots-qsg?
+1 as It does only the emm related things.


>
> Thanks & Regards
> Shavindri Dissanayake
> Technical Writer
>
> WSO2 Inc.
> lean.enterprise.middleware
>
> On Wed, Jan 25, 2017 at 1:02 PM, Susinda Perera  wrote:
>
>> I'm going to work on $subject. It was there in EMM[1] and same is to be
>> have in IoTs repo[2].
>> In EMM it could be found under /emm-qsg and can also be
>> downloaded from the docs [3,4].
>>
>> For IoTs we are going to have this source and distribution on following
>> locations
>> source - *product-iots/modules/core/scripts/**iot-qsg-script *at IoTs
>> repo[2].
>> distribution - */core/repository/resources/scripts*
>> Please share your thought on above?
>>
>> [1] - https://github.com/wso2/product-emm/tree/master/modules/to
>> ols/emm-qsg
>> [2] - https://github.com/wso2/product-iots
>> [2] - https://docs.wso2.com/display/EMM220/Android+Device
>> [3] - https://docs.wso2.com/download/attachments/53124323/emm-qs
>> g.zip?version=7&modificationDate=1480340286000&api=v2
>>
>>
>> Thanks
>> Susinda
>>
>> --
>> *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
>>
>>
>


-- 
*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] 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 outside pages and units ?
>

Both GET and POST requests will be handled by a single server-side JS file
which has *onGet* and/or *onPost* functions. Please refer [2] for a example.

[1] Document onRequest() method in the UUF developer's guide
[2]
https://github.com/wso2/carbon-uuf/blob/master/samples/apps/org.wso2.carbon.uuf.sample.pets-store.app/src/main/pages/pets/%7Bid%7D.js

Thanks,
Shan.

-- 
Shan Mahanama

Software Engineer, WSO2 Inc. http://wso2.com

Email: sh...@wso2.com
Mobile: +94 71 2000 498
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[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,
serviceProvider STRING -i,
apiPublisher STRING -i,
applicationName STRING -i,
operatorId STRING -i,
isSuccess BOOLEAN -i,
msisdn STRING -i,
direction STRING -i,
totalCount INTEGER -i,
serviceProviderId STRING -i,
operatorName STRING -i,
apiPublisherID STRING -i,
apiID STRING -i,
department STRING -i,
applicationId STRING -i",
primaryKeys
"year,month,day,hour,eventTimeStamp,api,serviceProvider,apiPublisher,applicationName,operatorId,isSuccess,msisdn,direction"
);

I want to add incrementalParams as mentioned in the following [1].

[1] https://docs.wso2.com/display/DAS310/Incremental+Processing

Therefore I have added the line as 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,
serviceProvider STRING -i,
apiPublisher STRING -i,
applicationName STRING -i,
operatorId STRING -i,
isSuccess BOOLEAN -i,
msisdn STRING -i,
direction STRING -i,
totalCount INTEGER -i,
serviceProviderId STRING -i,
operatorName STRING -i,
apiPublisherID STRING -i,
apiID STRING -i,
department STRING -i,
applicationId STRING -i",
   * incrementalParams "APIHourlyTrafficSummary, 0",*
primaryKeys
"year,month,day,hour,eventTimeStamp,api,serviceProvider,apiPublisher,applicationName,operatorId,isSuccess,msisdn,direction"
);

But executing the script throws an error. looks like a syntax error. What
am I doing wrong here?

-- 
Shazni Nazeer
Associate Technical Lead | WSO2

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


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