Re: [Dev] [AppManager] Getting an exception when logging into the app store

2015-12-10 Thread Dinusha Senanayaka
Hi Kasun,

Haven't seen this issue in App Manager released pack which has
'org.jaggeryjs.hostobjects.web_0.9.0.ALPHA4_wso2v4.jar'. But seems EMM pack
is having org.jaggeryjs.hostobjects.web_0.12.0.jar.

This might be the reason as given in this thread.  "[Dev] Login and Logout
error in Store". Can you test the fix provided by Manu there.

Regards,
Dinusha.

On Thu, Dec 10, 2015 at 9:09 PM, Kasun Dananjaya Delgolla 
wrote:

> Hi All,
>
> $subject when logging into the store jaggery app. But it doesn't affect
> the flow of the store or anything. Any idea why I'm getting this? Given
> below is the log trace.
>
> org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException: Session Object has
> been reserved and cannot be instantiated by a script.
> (/store/controllers/acs.jag#91)
> at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)
> at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:343)
> at org.mozilla.javascript.Context.newObject(Context.java:1504)
> at
> org.jaggeryjs.jaggery.core.listeners.WebAppSessionListener.sessionDestroyed(WebAppSessionListener.java:113)
> at
> org.apache.catalina.session.StandardSession.expire(StandardSession.java:809)
> at
> org.apache.catalina.session.StandardSession.expire(StandardSession.java:741)
> at
> org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1277)
> at
> org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:188)
> at
> org.jaggeryjs.hostobjects.web.SessionHostObject.jsFunction_invalidate(SessionHostObject.java:155)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
> at
> org.jaggeryjs.rhino.store.controllers.c1._c_anonymous_1(/store/controllers/acs.jag:91)
> at
> org.jaggeryjs.rhino.store.controllers.c1.call(/store/controllers/acs.jag)
> at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
> at
> org.jaggeryjs.rhino.store.controllers.c1._c_script_0(/store/controllers/acs.jag:6)
> at
> org.jaggeryjs.rhino.store.controllers.c1.call(/store/controllers/acs.jag)
> at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
> at
> org.jaggeryjs.rhino.store.controllers.c1.call(/store/controllers/acs.jag)
> at
> org.jaggeryjs.rhino.store.controllers.c1.exec(/store/controllers/acs.jag)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
> at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
> at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
> at
> 

Re: [Dev] [DAS] Real time analysis or batch analysis ?

2015-12-10 Thread Sriskandarajah Suhothayan
You can use the event time
@Tharik please point it out

Suho

On Thu, Dec 10, 2015 at 2:57 PM, Rushmin Fernando  wrote:

> Thanks Suho !
>
> Is it time window or time batch window ? How can we get the time points to
> plot.
>
> e.g. 12.01 - 2
>12.02 - 5
>12.03 - 3
>
> And the function should be *count()* right ? :-)
>
> On Thu, Dec 10, 2015 at 9:17 AM, Sriskandarajah Suhothayan 
> wrote:
>
>> Yes use a time window and calculate sum() and plot the results
>>
>> Suho
>>
>> On Thu, Dec 10, 2015 at 2:38 PM, Rushmin Fernando 
>> wrote:
>>
>>>
>>> Hi Devs,
>>>
>>> I need to address the following requirement.
>>>
>>> ---
>>>
>>> A server sends events upon each request, to DAS.
>>>
>>> There should a dashboard to show the number of request in each second.
>>>
>>> ---
>>>
>>> Since the time gap is small I am under the impression that batch
>>> analysis is not the best fit.
>>>
>>> How can we address a requirement like this ? Real time analysis would
>>> help ?
>>>
>>> Thanks
>>> Rushmin
>>>
>>>
>>> --
>>> *Rushmin Fernando*
>>> *Technical Lead*
>>>
>>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>>
>>> email : rush...@wso2.com
>>> mobile : +94772310855
>>>
>>>
>>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>


-- 

*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] [Architecture] [ESB] Deprecated features in ESB 4.10

2015-12-10 Thread Dulitha Wijewantha
On Thu, Dec 10, 2015 at 1:26 AM, Vidura Gamini Abhaya 
wrote:

> Hi Isuru,
>
> I've used it in a mediation sequence where I use a POJO to generate a
> unique customer id given a couple of parameters and there's a checksum
> added to the end. I already had written this code and it was quite simple
> and straightforward to reuse it with a POJOCommand mediator. I feel the
> simplicity of it is a welcome feature, where reading and setting values in
> MessageContext is automatically handled for me.
>
> I don't know whether a single usage case is enough to make the case to
> keep it. However, if we decide to keep it though, I suggest that we improve
> the documentation on it. I had to dig around to find out how the what the
> different actions mean. It wasn't clear to me in the docs (I believe most
> of the content is carried forward from Syanpse).
>

+1 for deprecating POJO Mediator. ​The problem I find with the above
approach is that - there is an alternative way of doing it (using class
mediators). Not having multiple options (to do the same thing) in a
configurational language makes it easier for development, maintenance,
training etc. An example will be - POJOMediator can use expressions where
Class mediators you can't (making things confusing). It's better to push
the point home saying - the way to write custom code in the ESB (if you
have to) is using a class mediator and the message context api.

Apart from that - I believe in the POJO mediator we create multiple objects
in the heap? Where as in the class mediator we just create once instance.
Am I correct on this observation?

I am -1 for deprecating Db mediators. Like Malaka said, they are very
useful in scenarios where people want to connect to databases (also can be
used in conjunction with cache mediator for performance).


>
> Thanks and Regards,
>
> Vidura
>
>
>
> On 10 December 2015 at 10:57, Isuru Udana  wrote:
>
>> Hi Kathees,
>>
>> I think we should do a comparison once more to make sure that we have
>> covered everything before removing Callout. NTLM one which Harshana pointed
>> out may be due to absence of initClientOptions configuration option.
>>
>> Hi Vidura,
>> Point you raised on the POJOCommand mediator is really interesting. We
>> haven't seen any usage of that over years. But now we found at least one
>> user who has found it useful. Thanks for pointing that out. So we should
>> reconsider how useful it is.
>>
>> Thanks.
>>
>>
>>
>> On Thu, Dec 10, 2015 at 10:39 AM, Kathees Rajendram 
>> wrote:
>>
>>> +1 to deprecate Callout mediator since we have the Callout mediator
>>> functionalities in Call mediator.
>>>
>>> On Thu, Dec 10, 2015 at 1:18 AM, Vidura Gamini Abhaya 
>>> wrote:
>>>
 I've found DBReport / DBLookup to be quite useful for simple DB
 operations as they are easy to do OOTB. While DB Lookup mediator maybe
 limited in it's ability to only being able to return a single row of data,
 DB Report mediator is still quite useful in writing to a database,
 especially when we use a DB as part of the mediation sequences.

 I also feel it is worth continuing with POJOCommand, as it is the most
 simplest way of executing some custom code as part of a sequence. Although
 it is possible to do the same with a Class mediator, one doesn't have to
 worry about adding the proper jars, working with MessageContext etc. with
 the POJOCommand. I think we should retain it for the sake of simplicity of
 use.

 I'm +1 to deprecate the rest of the mediators.

 Thanks,

 Vidura



 On 9 December 2015 at 12:11, Kasun Indrasiri  wrote:

> Shall we deprecate following mediators in 4.10 release.
>
> *- Callout mediator :*
>  All the callout functionality is supported with 'call' mediator with
> blocking=true. Having two similar mediators will be create a bit of a
> confusion.
>
> *- DBReport/DBLookup mediator*
> These mediators offer very limited functionality and we always
> recommend to integrate with databases with the use of DSS (using a 
> separate
> DSS or using DSS features inside ESB)
>
> *- Bean, POJOCommand, Spring* : Rarely used mediators and no active
> development happens on these.
> *- Router* : Same as filter mediator, so no use of having this.
> *- In, Out * : Rarely used and often not required with the new
> call/respond mediator approach.
>
> Any comments  on these or any other features that we should deprecate
> from 4.10 release?
>
> Thanks,
> Kasun.
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>
> ___
> Architecture mailing list
> 

[Dev] [DAS] Real time analysis or batch analysis ?

2015-12-10 Thread Rushmin Fernando
Hi Devs,

I need to address the following requirement.

---

A server sends events upon each request, to DAS.

There should a dashboard to show the number of request in each second.

---

Since the time gap is small I am under the impression that batch analysis
is not the best fit.

How can we address a requirement like this ? Real time analysis would help ?

Thanks
Rushmin


-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Real time analysis or batch analysis ?

2015-12-10 Thread Sriskandarajah Suhothayan
Yes use a time window and calculate sum() and plot the results

Suho

On Thu, Dec 10, 2015 at 2:38 PM, Rushmin Fernando  wrote:

>
> Hi Devs,
>
> I need to address the following requirement.
>
> ---
>
> A server sends events upon each request, to DAS.
>
> There should a dashboard to show the number of request in each second.
>
> ---
>
> Since the time gap is small I am under the impression that batch analysis
> is not the best fit.
>
> How can we address a requirement like this ? Real time analysis would help
> ?
>
> Thanks
> Rushmin
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>


-- 

*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] [DAS] Real time analysis or batch analysis ?

2015-12-10 Thread Rushmin Fernando
Thanks Suho !

Is it time window or time batch window ? How can we get the time points to
plot.

e.g. 12.01 - 2
   12.02 - 5
   12.03 - 3

And the function should be *count()* right ? :-)

On Thu, Dec 10, 2015 at 9:17 AM, Sriskandarajah Suhothayan 
wrote:

> Yes use a time window and calculate sum() and plot the results
>
> Suho
>
> On Thu, Dec 10, 2015 at 2:38 PM, Rushmin Fernando 
> wrote:
>
>>
>> Hi Devs,
>>
>> I need to address the following requirement.
>>
>> ---
>>
>> A server sends events upon each request, to DAS.
>>
>> There should a dashboard to show the number of request in each second.
>>
>> ---
>>
>> Since the time gap is small I am under the impression that batch analysis
>> is not the best fit.
>>
>> How can we address a requirement like this ? Real time analysis would
>> help ?
>>
>> Thanks
>> Rushmin
>>
>>
>> --
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> email : rush...@wso2.com
>> mobile : +94772310855
>>
>>
>>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.3 RC2

2015-12-10 Thread Darshana Gunawardana
Hi all,

I propose to break the Kernel 4.4.3 RC2 vote.

[x] Broken - do not release due to the issue[1].

[1] https://wso2.org/jira/browse/IDENTITY-4219

Thanks,

On Thu, Dec 10, 2015 at 9:03 PM, Darshana Gunawardana 
wrote:

> Hi,
>
> Please keep the Kernel 4.4.3 RC2 vote open since there is a new issue
> reported [1] in the evening.
>
> We need to figure out the cause or a workaround and decide how to proceed.
>
> [1] https://wso2.org/jira/browse/IDENTITY-4219
>
> Thanks,
>
> On Thu, Dec 10, 2015 at 6:14 PM, Hasitha Aravinda 
> wrote:
>
>> ​Hi
>>
>> I have tested BPS 3.5.1-SNAPSHOT with kernel 4.4.3 with tests. No issue
>> found.
>>
>> [x] Stable - Go ahead and release.
>>
>> Thanks
>> Hasitha. ​
>>
>> On Thu, Dec 10, 2015 at 4:07 PM, Darshana Gunawardana 
>> wrote:
>>
>>> Hi all,
>>>
>>> On Wed, Dec 9, 2015 at 5:18 PM, Darshana Gunawardana 
>>> wrote:
>>>
 Hi All,

 Please note that we are testing a IS 5.1.0 pack built on top of kernel
 4.4.3 rc2.

 All IS 5.1.0 integration tests passed successfully with this pack. We
 have done manual testing on user-management as well as general IS use cases
 and there are no issues found at this point. We are continuing our testing
 further and we will the status confirm tomorrow.

>>>
>>> Further tested user management related functionalities and haven't
>>> encountered any issues.
>>>
>>> [X] Stable - go ahead and release
>>>
>>> Thanks,
>>>
>>>
 Thanks,

 On Wed, Dec 9, 2015 at 3:05 PM, Viraj Senevirathne 
 wrote:

> Hi All,
>
> We have changed the kernel version of carbon-mediation and product-esb
> to 4.4.3 and ran all the integration tests for the product-esb. We didn't
> encounter any issues after upgrading the kernel version.
>
> Thank you,
>
> On Mon, Dec 7, 2015 at 6:11 PM, Prabath Abeysekera 
> wrote:
>
>> Cool, Thanks for the update Darshana!
>>
>> Cheers,
>> Prabath
>>
>> On Mon, Dec 7, 2015 at 6:08 PM, Darshana Gunawardana <
>> darsh...@wso2.com> wrote:
>>
>>> Hi Prabath,
>>>
>>> We already working on this as we planned to release GA on kernel
>>> 4.4.3.
>>>
>>> Thanks,
>>>
>>> On Mon, Dec 7, 2015 at 6:06 PM, Prabath Abeysekera <
>>> praba...@wso2.com> wrote:
>>>
 Hi IS/API-M folks,

 Would you guys please be able to help test "carbon-identity" and
 "carbon-apimgt" functionalities on top of Kernel 4.4.3 and verify soon?

 Cheers,
 Prabath

 On Mon, Dec 7, 2015 at 5:18 PM, Nipuni Perera 
 wrote:

> Hi Devs,
>
> This is the RC2 release candidate of WSO2 Carbon Kernel 4.4.3.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12540
>
> Please download and test your products with kernel 4.4.3 RC2
> and vote. Vote will be open for 72 hours or as longer as needed.
>
> *​Source and binary distribution files:*
> *http://svn.wso2.org/repos/wso2/people/nipuni/4.4.3-rc2/
> *
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-163/
>
> *The tag to be voted upon:*
> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.3-RC2
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Thank you
> Carbon Team
>
> --
> 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
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>>
>>> *Darshana Gunawardana*Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>>
>>> *E-mail: darsh...@wso2.com *
>>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise .
>>> Middleware
>>>
>>
>>
>>
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>> ___
>> Dev 

[Dev] Need help from DS team to fix Analytics Dashboard issues which are related to DS

2015-12-10 Thread Dunith Dhanushka
Hi Manu,

We need the help from DS team to fix following DAS Analytics Dashboard
issues which are related to DS.

https://wso2.org/jira/browse/DAS-326
https://wso2.org/jira/browse/DAS-213
https://wso2.org/jira/browse/DAS-303

I believe most of the issues must have been fixed the latest code base.
Appreciate if you can verify them from your end.

-- 
Regards,

Dunith Dhanushka,
Senior Software Engineer
WSO2 Inc,

Mobile - +94 71 8615744
Blog - dunithd.wordpress.com 
Twitter - @dunithd 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][DAS]Null pointer exception while executing a schedule task in DAS HA cluster.

2015-12-10 Thread Roshan Wijesena
Hi DAS teaam,

I am getting below null pointer exception while trying to execute a
scheduled task. What I  simply did was created a two node HA cluster and
tried to run this example[1]. It has a scheduled task. However, this error
can not be observed in a single node fresh pack.

The error is,

[2015-12-10 19:32:00,573]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: httpd_log_analytics for tenant id: -1234
[2015-12-10 19:32:21,899]  INFO
{org.wso2.carbon.event.processor.manager.core.internal.CarbonEventManagementService}
-  Starting polling event receivers
[2015-12-10 19:32:32,096] ERROR
{org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
executing task: null
java.lang.NullPointerException
at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)
at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)
at
org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)
at
org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)
at
org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:57)
at
org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


[1] https://docs.wso2.com/display/DAS300/Analyzing+HTTPD+Logs

-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][ML] Error with Kdd cup 1999 data set

2015-12-10 Thread Nirmal Fernando
You seem to have a categorical feature with 1 unique value. Can you check
your categorical feature list?

On Thu, Dec 10, 2015 at 9:06 PM, Mohamed ZAJITH 
wrote:

> Hi Wso2ML Team
> i am getting an error can anyone help me to solve this
>
> An error occurred while building supervised machine learning model: An
> error occurred while building decision tree model: requirement failed:
> DecisionTree Strategy given invalid categoricalFeaturesInfo setting:
> feature 10 has 1 categories. The number of categories should be >= 2. Model
> Configuration [algorithmName=DECISION_TREE, algorithmClass=Classification,
> responseVariable=lable, trainDataFraction=1.0,
> hyperParameters={Max_Bins=100, Impurity=entropy, Max_Depth=50},
> features=[Feature [name=count, index=22, type=NUMERICAL,
> imputeOption=DISCARD, include=true], Feature [name=diff_srv_rate, index=29,
> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
> [name=dst_bytes, index=5, type=NUMERICAL, imputeOption=DISCARD,
> include=true], Feature [name=dst_host_count, index=31, type=NUMERICAL,
> imputeOption=DISCARD, include=true], Feature [name=dst_host_diff_srv_rate,
> index=34, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
> [name=dst_host_rerror_rate, index=39, type=NUMERICAL, imputeOption=DISCARD,
> include=true], Feature [name=dst_host_same_src_port_rate, index=35,
> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
> [name=dst_host_same_srv_rate, index=33, type=NUMERICAL,
> imputeOption=DISCARD, include=true], Feature [name=dst_host_serror_rate,
> index=37, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
> [name=dst_host_srv_count, index=32, type=NUMERICAL, imputeOption=DISCARD,
> include=true], Feature [name=dst_host_srv_diff_host_rate, index=36,
> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
> [name=dst_host_srv_rerror_rate, index=40, type=NUMERICAL,
> imputeOption=DISCARD, include=true], Feature
> [name=dst_host_srv_serror_rate, index=38, type=NUMERICAL,
> imputeOption=DISCARD, include=true], Feature [name=duration, index=0,
> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=flag,
> index=3, type=CATEGORICAL,
>
>
> http://kdd.ics.uci.edu/databases/kddcup99/kddcup99.html
>
> 145586 Record(unique of 10% data)
> --
> *Regards.*
> *MohamedZajith*
> * *
>



-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB proxy service for mix of TwoChannel and InOnly operations

2015-12-10 Thread Ayoma Wijethunga
Hi All,

This is relevant to WSO2 ESB 4.9.0.

In WSDL attached [1
],
there are five TwoChannelAxisOperation(s) and one InOnlyAxisOperation. In
such situation, if we create a single proxy service in ESB with
configuration [2
],
InOnlyAxisOperation will fail with below exception :

ERROR - NativeWorkerPool Uncaught exception
> java.lang.UnsupportedOperationException: An access occurred that is not
> valid.
> at
> org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:117)
> .
>

​​It was observed that it is possible to use "OUT_ONLY" and
"FORCE_SC_ACCEPTED" to correct this [3
]
[4
].
But relevant transport property applies to endpoint, resulting in
TwoChannelAxisOperation to fail if applied.

When creating proxy service for a web service, what is the best practice to
follow in order to avoid this type of problems?
Do we create,

   - separate proxy services for each set of operations
   - use "switch" or "filter" mediator in the "in sequence" and "send" to
   OUT_ONLY endpoint depending on operation

or what is the best path to follow?

[1]
​​https://drive.google.com/a/wso2.com/file/d/0B-0UyBaVrBStMDczTkRmMkhxcDg/view?usp=drive_web​

[2] ​​
https://drive.google.com/a/wso2.com/file/d/0B-0UyBaVrBStV3NhTG4wMWhvRFE/view?usp=drive_web
[3]
https://docs.wso2.com/display/ESB481/Sample+12%3A+One-Way+Messaging+in+a+Fire-and-Forget+Mode+through+ESB
[4]
https://docs.wso2.com/display/ESB481/HTTP+Transport+Properties#HTTPTransportProperties-FORCE_SC_ACCEPTED

Thanks and best regards,
Ayoma Wijethunga
Software Engineer
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

Mobile : +94 (0) 719428123 <+94+(0)+719428123>
Blog : http://www.ayomaonline.com
LinkedIn: https://www.linkedin.com/in/ayoma
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] [APIM] Exception while installing APIM Key Manager feature into IS wso2is-5.1.0-1-12-2015-QA2 pack

2015-12-10 Thread Abimaran Kugathasan
Hi,

Similar issue reported here [1]


[1] : https://wso2.org/jira/browse/WSAS-1932

On Thu, Dec 10, 2015 at 4:14 PM, Abimaran Kugathasan 
wrote:

> HI Hasintha,
>
> I'm getting below exception while installing Key Manager feature into
> IS wso2is-5.1.0-1-12-2015-QA2 pack.
>
> java.io.FileNotFoundException:
> /media/hasinthaindrajee/204c7dcd-f122-4bc5-9743-f46bcdf78f37/RCBL/product-is/modules/p2-profile-gen/target/wso2carbon-core-4.4.3-SNAPSHOT/repository/components/artifacts.xml
> (No such file or directory)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.(FileOutputStream.java:221)
> at java.io.FileOutputStream.(FileOutputStream.java:171)
> at
> org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:1187)
> at
> org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:1168)
> at
> org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.(SimpleArtifactRepository.java:348)
> at
> org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepositoryFactory.create(SimpleArtifactRepositoryFactory.java:134)
> at
> org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.factoryCreate(ArtifactRepositoryManager.java:61)
> at
> org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.doCreateRepository(AbstractRepositoryManager.java:288)
> at
> org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(ArtifactRepositoryManager.java:49)
> at
> org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getBundlePoolRepository(Util.java:86)
> at
> org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseMarkSetProvider.getMarkSets(EclipseMarkSetProvider.java:41)
> at
> org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector$ParameterizedSafeRunnable.run(GarbageCollector.java:69)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.contributeMarkSets(GarbageCollector.java:97)
> at
> org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.traverseRegisteredProfiles(GarbageCollector.java:225)
> at
> org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.runGC(GarbageCollector.java:163)
> at
> org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.notify(GarbageCollector.java:148)
> at
> org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:108)
> at
> org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:1)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.publishEvent(ProvisioningEventBus.java:85)
> at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:96)
> at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
> at
> org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:41)
> at
> org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:23)
> at
> org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:209)
> at
> org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:70)
> at
> org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:85)
> at
> org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.performProvisioningAction(ProvisioningAdminService.java:313)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
> at
> 

[Dev] [IS] [APIM] Exception while installing APIM Key Manager feature into IS wso2is-5.1.0-1-12-2015-QA2 pack

2015-12-10 Thread Abimaran Kugathasan
HI Hasintha,

I'm getting below exception while installing Key Manager feature into
IS wso2is-5.1.0-1-12-2015-QA2 pack.

java.io.FileNotFoundException:
/media/hasinthaindrajee/204c7dcd-f122-4bc5-9743-f46bcdf78f37/RCBL/product-is/modules/p2-profile-gen/target/wso2carbon-core-4.4.3-SNAPSHOT/repository/components/artifacts.xml
(No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:221)
at java.io.FileOutputStream.(FileOutputStream.java:171)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:1187)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:1168)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.(SimpleArtifactRepository.java:348)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepositoryFactory.create(SimpleArtifactRepositoryFactory.java:134)
at
org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.factoryCreate(ArtifactRepositoryManager.java:61)
at
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.doCreateRepository(AbstractRepositoryManager.java:288)
at
org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(ArtifactRepositoryManager.java:49)
at
org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getBundlePoolRepository(Util.java:86)
at
org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseMarkSetProvider.getMarkSets(EclipseMarkSetProvider.java:41)
at
org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector$ParameterizedSafeRunnable.run(GarbageCollector.java:69)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.contributeMarkSets(GarbageCollector.java:97)
at
org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.traverseRegisteredProfiles(GarbageCollector.java:225)
at
org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.runGC(GarbageCollector.java:163)
at
org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.notify(GarbageCollector.java:148)
at
org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:108)
at
org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:1)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.publishEvent(ProvisioningEventBus.java:85)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:96)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
at
org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:41)
at
org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:23)
at
org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:209)
at
org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:70)
at
org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:85)
at
org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.performProvisioningAction(ProvisioningAdminService.java:313)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
at
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
at
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.3 RC2

2015-12-10 Thread Darshana Gunawardana
Hi all,

On Wed, Dec 9, 2015 at 5:18 PM, Darshana Gunawardana 
wrote:

> Hi All,
>
> Please note that we are testing a IS 5.1.0 pack built on top of kernel
> 4.4.3 rc2.
>
> All IS 5.1.0 integration tests passed successfully with this pack. We have
> done manual testing on user-management as well as general IS use cases and
> there are no issues found at this point. We are continuing our testing
> further and we will the status confirm tomorrow.
>

Further tested user management related functionalities and haven't
encountered any issues.

[X] Stable - go ahead and release

Thanks,


> Thanks,
>
> On Wed, Dec 9, 2015 at 3:05 PM, Viraj Senevirathne 
> wrote:
>
>> Hi All,
>>
>> We have changed the kernel version of carbon-mediation and product-esb to
>> 4.4.3 and ran all the integration tests for the product-esb. We didn't
>> encounter any issues after upgrading the kernel version.
>>
>> Thank you,
>>
>> On Mon, Dec 7, 2015 at 6:11 PM, Prabath Abeysekera 
>> wrote:
>>
>>> Cool, Thanks for the update Darshana!
>>>
>>> Cheers,
>>> Prabath
>>>
>>> On Mon, Dec 7, 2015 at 6:08 PM, Darshana Gunawardana 
>>> wrote:
>>>
 Hi Prabath,

 We already working on this as we planned to release GA on kernel 4.4.3.

 Thanks,

 On Mon, Dec 7, 2015 at 6:06 PM, Prabath Abeysekera 
 wrote:

> Hi IS/API-M folks,
>
> Would you guys please be able to help test "carbon-identity" and
> "carbon-apimgt" functionalities on top of Kernel 4.4.3 and verify soon?
>
> Cheers,
> Prabath
>
> On Mon, Dec 7, 2015 at 5:18 PM, Nipuni Perera  wrote:
>
>> Hi Devs,
>>
>> This is the RC2 release candidate of WSO2 Carbon Kernel 4.4.3.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12540
>>
>> Please download and test your products with kernel 4.4.3 RC2
>> and vote. Vote will be open for 72 hours or as longer as needed.
>>
>> *​Source and binary distribution files:*
>> *http://svn.wso2.org/repos/wso2/people/nipuni/4.4.3-rc2/
>> *
>>
>> *Maven staging repository:*
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-163/
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.3-RC2
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you
>> Carbon Team
>>
>> --
>> 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
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



 --
 Regards,


 *Darshana Gunawardana*Senior Software Engineer
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com *
 *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware

>>>
>>>
>>>
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Viraj Senevirathne
>> Software Engineer; WSO2, Inc.
>>
>> Mobile : +94 71 958 0269
>> Email : vir...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Senior Software Engineer
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>



-- 
Regards,


*Darshana Gunawardana*Senior Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Rukshani Weerasinha
Hi all,

Thank you for reporting this. I will update this thread once the
documentation is fixed.

Best Regards,
Rukshani.

On Thu, Dec 10, 2015 at 6:42 PM, Rajeenthini Satkunam 
wrote:

> Hi all,
>
> I have tried to invoke REST API through POSTMAN(Chrome) for DAS getting
> the record count of a table.I have followed the documentation here[
> https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
> .It gives me a 200 OK success response but it always returns -1 as a
> response.
>
>
> ​
> But I have tried this below way and it is working fine for me.Hope the DAS
> documentation of REST API wants to be update along with API changes.
>
> *METHOD* : POST
>
> *URL* : https://localhost:9443/analytics/search_count
>
> *BODY* :
> {
>  "tableName":"sample2"
> }
>
> *HEADERS* :
> Authorization : Basic YWRtaW46YWRtaW4=
> Content-Type : application/json
>
> This REST API request gives me 200 OK success response as a count of
> records in a particular table. I have inserted the screenshot of my POSTMAN
> request and response for further more idea.
>
>
>
>
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
> --
> 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@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DAS]Null pointer exception while executing a schedule task in DAS HA cluster.

2015-12-10 Thread Roshan Wijesena
After I enabled the debug, it looks like below

[2015-12-10 22:03:00,001]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: httpd_log_analytics for tenant id: -1234
[2015-12-10 22:03:00,013] DEBUG
{org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor} -
 Executing : CREATE TEMPORARY TABLE X1234_HttpLogTableUSING
org.wso2.carbon.analytics.spark.core.sources.AnalyticsRelationProvider
   OPTIONS (tableName "ORG_WSO2_SAMPLE_HTTPD_LOGS" , tenantId "-1234")
[2015-12-10 22:03:00,013] ERROR
{org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
executing task: null
java.lang.NullPointerException
at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)
at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)
at
org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)
at
org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)
at
org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:57)
at
org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

does that query got modified?

 CREATE TEMPORARY TABLE X1234_HttpLogTableUSING
org.wso2.carbon.analytics.spark.core.sources.AnalyticsRelationProvider
   OPTIONS (tableName "ORG_WSO2_SAMPLE_HTTPD_LOGS" , tenantId "-1234")






On Thu, Dec 10, 2015 at 6:53 PM, Roshan Wijesena  wrote:

> Hi DAS teaam,
>
> I am getting below null pointer exception while trying to execute a
> scheduled task. What I  simply did was created a two node HA cluster and
> tried to run this example[1]. It has a scheduled task. However, this error
> can not be observed in a single node fresh pack.
>
> The error is,
>
> [2015-12-10 19:32:00,573]  INFO
> {org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
> schedule task for: httpd_log_analytics for tenant id: -1234
> [2015-12-10 19:32:21,899]  INFO
> {org.wso2.carbon.event.processor.manager.core.internal.CarbonEventManagementService}
> -  Starting polling event receivers
> [2015-12-10 19:32:32,096] ERROR
> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
> executing task: null
> java.lang.NullPointerException
> at
> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)
> at
> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)
> at
> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)
> at
> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)
> at
> org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:57)
> at
> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
>
> [1] https://docs.wso2.com/display/DAS300/Analyzing+HTTPD+Logs
>
> --
> Roshan Wijesena.
> Senior Software Engineer-WSO2 Inc.
> Mobile: *+94719154640 <%2B94719154640>*
> Email: ros...@wso2.com
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>



-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][ML] Error with Kdd cup 1999 data set

2015-12-10 Thread Mohamed ZAJITH
Hi ML Team
in this data set  42 feature include

*  *

*Categorical Features*

**

*protocol_type  3 unique value*

*num_outbound_cmds1 *

*land   2*

*lable 24*

*wrong_fragment  3*

*su_attempted   3*

*is_guest_login 2*

*num_shells  3*

*urgent6*

*num_failed_logins   6*

*is_host_login   2*

*logged_in  2*

*flag11
   *

*num_access_files10*

*service  70*

*hot 30*

*root_shell 2*

other features are numerical

so problem  num_outbound_cmds  is this feature ?

On Fri, Dec 11, 2015 at 6:42 AM, Nirmal Fernando  wrote:

> You seem to have a categorical feature with 1 unique value. Can you check
> your categorical feature list?
>
> On Thu, Dec 10, 2015 at 9:06 PM, Mohamed ZAJITH 
> wrote:
>
>> Hi Wso2ML Team
>> i am getting an error can anyone help me to solve this
>>
>> An error occurred while building supervised machine learning model: An
>> error occurred while building decision tree model: requirement failed:
>> DecisionTree Strategy given invalid categoricalFeaturesInfo setting:
>> feature 10 has 1 categories. The number of categories should be >= 2. Model
>> Configuration [algorithmName=DECISION_TREE, algorithmClass=Classification,
>> responseVariable=lable, trainDataFraction=1.0,
>> hyperParameters={Max_Bins=100, Impurity=entropy, Max_Depth=50},
>> features=[Feature [name=count, index=22, type=NUMERICAL,
>> imputeOption=DISCARD, include=true], Feature [name=diff_srv_rate, index=29,
>> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
>> [name=dst_bytes, index=5, type=NUMERICAL, imputeOption=DISCARD,
>> include=true], Feature [name=dst_host_count, index=31, type=NUMERICAL,
>> imputeOption=DISCARD, include=true], Feature [name=dst_host_diff_srv_rate,
>> index=34, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
>> [name=dst_host_rerror_rate, index=39, type=NUMERICAL, imputeOption=DISCARD,
>> include=true], Feature [name=dst_host_same_src_port_rate, index=35,
>> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
>> [name=dst_host_same_srv_rate, index=33, type=NUMERICAL,
>> imputeOption=DISCARD, include=true], Feature [name=dst_host_serror_rate,
>> index=37, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
>> [name=dst_host_srv_count, index=32, type=NUMERICAL, imputeOption=DISCARD,
>> include=true], Feature [name=dst_host_srv_diff_host_rate, index=36,
>> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
>> [name=dst_host_srv_rerror_rate, index=40, type=NUMERICAL,
>> imputeOption=DISCARD, include=true], Feature
>> [name=dst_host_srv_serror_rate, index=38, type=NUMERICAL,
>> imputeOption=DISCARD, include=true], Feature [name=duration, index=0,
>> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=flag,
>> index=3, type=CATEGORICAL,
>>
>>
>> http://kdd.ics.uci.edu/databases/kddcup99/kddcup99.html
>>
>> 145586 Record(unique of 10% data)
>> --
>> *Regards.*
>> *MohamedZajith*
>> * *
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


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


Re: [Dev] [DAS] Real time analysis or batch analysis ?

2015-12-10 Thread Tharik Kanaka
Hi Rushmin,

As suho has mentioned you can write a siddhi query with a window or even
you can use a rate limiter and count number of events then write it to an
output stream. Same kind of scenario is explained in this blog post [1]
where in that blog it is calculated the average but in your case it needs
to be count.

In the dashboard when you are selecting x and y axes, select TIMESTAMP for
x axis and count for y axis. Chart is capable of identifying TIMESTAMPs
seconds and plot them in X axis.

[1]
http://blog.tharik.org/2015/09/displaying-high-throughput-streams-in.html

Regards,

On Thu, Dec 10, 2015 at 11:25 PM, Sriskandarajah Suhothayan 
wrote:

> You can use the event time
> @Tharik please point it out
>
> Suho
>
> On Thu, Dec 10, 2015 at 2:57 PM, Rushmin Fernando 
> wrote:
>
>> Thanks Suho !
>>
>> Is it time window or time batch window ? How can we get the time points
>> to plot.
>>
>> e.g. 12.01 - 2
>>12.02 - 5
>>12.03 - 3
>>
>> And the function should be *count()* right ? :-)
>>
>> On Thu, Dec 10, 2015 at 9:17 AM, Sriskandarajah Suhothayan > > wrote:
>>
>>> Yes use a time window and calculate sum() and plot the results
>>>
>>> Suho
>>>
>>> On Thu, Dec 10, 2015 at 2:38 PM, Rushmin Fernando 
>>> wrote:
>>>

 Hi Devs,

 I need to address the following requirement.

 ---

 A server sends events upon each request, to DAS.

 There should a dashboard to show the number of request in each second.

 ---

 Since the time gap is small I am under the impression that batch
 analysis is not the best fit.

 How can we address a requirement like this ? Real time analysis would
 help ?

 Thanks
 Rushmin


 --
 *Rushmin Fernando*
 *Technical Lead*

 WSO2 Inc.  - Lean . Enterprise . Middleware

 email : rush...@wso2.com
 mobile : +94772310855



>>>
>>>
>>> --
>>>
>>> *S. Suhothayan*
>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>> *WSO2 Inc. *http://wso2.com
>>> * *
>>> lean . enterprise . middleware
>>>
>>>
>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>> http://suhothayan.blogspot.com/ twitter:
>>> http://twitter.com/suhothayan  | linked-in:
>>> http://lk.linkedin.com/in/suhothayan *
>>>
>>
>>
>>
>> --
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> email : rush...@wso2.com
>> mobile : +94772310855
>>
>>
>>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 

*Tharik Kanaka*

WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.3 RC2

2015-12-10 Thread Hasitha Aravinda
​Hi

I have tested BPS 3.5.1-SNAPSHOT with kernel 4.4.3 with tests. No issue
found.

[x] Stable - Go ahead and release.

Thanks
Hasitha. ​

On Thu, Dec 10, 2015 at 4:07 PM, Darshana Gunawardana 
wrote:

> Hi all,
>
> On Wed, Dec 9, 2015 at 5:18 PM, Darshana Gunawardana 
> wrote:
>
>> Hi All,
>>
>> Please note that we are testing a IS 5.1.0 pack built on top of kernel
>> 4.4.3 rc2.
>>
>> All IS 5.1.0 integration tests passed successfully with this pack. We
>> have done manual testing on user-management as well as general IS use cases
>> and there are no issues found at this point. We are continuing our testing
>> further and we will the status confirm tomorrow.
>>
>
> Further tested user management related functionalities and haven't
> encountered any issues.
>
> [X] Stable - go ahead and release
>
> Thanks,
>
>
>> Thanks,
>>
>> On Wed, Dec 9, 2015 at 3:05 PM, Viraj Senevirathne 
>> wrote:
>>
>>> Hi All,
>>>
>>> We have changed the kernel version of carbon-mediation and product-esb
>>> to 4.4.3 and ran all the integration tests for the product-esb. We didn't
>>> encounter any issues after upgrading the kernel version.
>>>
>>> Thank you,
>>>
>>> On Mon, Dec 7, 2015 at 6:11 PM, Prabath Abeysekera 
>>> wrote:
>>>
 Cool, Thanks for the update Darshana!

 Cheers,
 Prabath

 On Mon, Dec 7, 2015 at 6:08 PM, Darshana Gunawardana  wrote:

> Hi Prabath,
>
> We already working on this as we planned to release GA on kernel 4.4.3.
>
> Thanks,
>
> On Mon, Dec 7, 2015 at 6:06 PM, Prabath Abeysekera 
> wrote:
>
>> Hi IS/API-M folks,
>>
>> Would you guys please be able to help test "carbon-identity" and
>> "carbon-apimgt" functionalities on top of Kernel 4.4.3 and verify soon?
>>
>> Cheers,
>> Prabath
>>
>> On Mon, Dec 7, 2015 at 5:18 PM, Nipuni Perera 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the RC2 release candidate of WSO2 Carbon Kernel 4.4.3.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=12540
>>>
>>> Please download and test your products with kernel 4.4.3 RC2
>>> and vote. Vote will be open for 72 hours or as longer as needed.
>>>
>>> *​Source and binary distribution files:*
>>> *http://svn.wso2.org/repos/wso2/people/nipuni/4.4.3-rc2/
>>> *
>>>
>>> *Maven staging repository:*
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-163/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.3-RC2
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>> Thank you
>>> Carbon Team
>>>
>>> --
>>> 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
>>> 
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Senior Software Engineer
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>



 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

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


>>>
>>>
>>> --
>>> Viraj Senevirathne
>>> Software Engineer; WSO2, Inc.
>>>
>>> Mobile : +94 71 958 0269
>>> Email : vir...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com *
>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>>
>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Senior Software Engineer
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> 

[Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Rajeenthini Satkunam
Hi all,

I have tried to invoke REST API through POSTMAN(Chrome) for DAS getting the
record count of a table.I have followed the documentation here[
https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
.It gives me a 200 OK success response but it always returns -1 as a
response.


​
But I have tried this below way and it is working fine for me.Hope the DAS
documentation of REST API wants to be update along with API changes.

*METHOD* : POST

*URL* : https://localhost:9443/analytics/search_count

*BODY* :
{
 "tableName":"sample2"
}

*HEADERS* :
Authorization : Basic YWRtaW46YWRtaW4=
Content-Type : application/json

This REST API request gives me 200 OK success response as a count of
records in a particular table. I have inserted the screenshot of my POSTMAN
request and response for further more idea.




-- 

*Thank You.*

*Rajeenthini Satkunam*

*Associate Software Engineer | WSO2*


*E:rajeenth...@wso2.com *

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


Re: [Dev] [Architecture] [BPS][BPMN] New REST API for BPMN statistics

2015-12-10 Thread Natasha Wijesekara
Hi,

@Vinod, I used the format given in the Activiti rest api documentation to
include the response codes.

@Nuwan, I have updated the user guide with the response codes and the
sample success responses.


Thanks,
Natasha
On Thu, Dec 10, 2015 at 8:39 AM, Vinod Kavinda  wrote:

> Hi Natasha,
> You can use the format used in Activiti rest api documentations [1] for
> this also. It includes response codes and sample success responses.
>
> @Dinithi, we are doing basic authentication using the security handler [2]
> AFAIK.
>
> [1] - http://www.activiti.org/userguide/#_get_a_deployment
> [2] -
> https://github.com/wso2/carbon-business-process/blob/master/components/bpmn/bpmn-rest/src/main/java/org/wso2/carbon/bpmn/rest/security/AuthenticationHandler.java
>
> Regards,
> Vinod Kavinda
>
> On Thu, Dec 10, 2015 at 7:30 AM, Dinithi De Silva 
> wrote:
>
>> Hi Natasha,
>>
>> How are you going to ensure the security of the APIs? Have you thought of
>> using any security models?
>>
>> You can use  permission/role based model in order to achieve this. Just
>> make sure which APIs need the administrative privileges.
>>
>> Thanks.
>>
>>
>> On Wed, Dec 9, 2015 at 9:30 PM, Nuwan Pallewela  wrote:
>>
>>> Hi Natasha,
>>>
>>> Great work.
>>> What happens if an invalid request or request with an illegal argument
>>> sent to the API ?
>>> It is better to have those response messages or response status code
>>> also in the documentation.
>>>
>>> Thanks,
>>> Nuwan
>>>
>>> On Wed, Dec 9, 2015 at 5:08 PM, Natasha Wijesekara 
>>> wrote:
>>>
 Hi,

 I  documented a user guide which contains details about the new rest
 API implemented to generate the statistics for bpmn.
 Appreciate any suggestions and comments.

 Thanks,
 Natasha

 On Tue, Dec 8, 2015 at 4:44 PM, Vinod Kavinda  wrote:

> [Adding Architecture group]
>
> On Tue, Dec 8, 2015 at 2:45 PM, Natasha Wijesekara 
> wrote:
>
>> Hi ,
>>
>> Currently the statistics generated for the bpmn-explorer is generated
>> using jaggery. When the work load is high, the  bpmn-explorer takes a
>> longer time to generate these statistics which causes performance issues.
>>
>> As a solution I am working a new stats REST api  to generate these
>> statistics at the back-end. This reduces the work load  and thereby 
>> solves
>> the performance issues caused during peak times (when the workload is at
>> its maximum).
>>
>> After taking in data about  the bpmn processes, tasks  and users
>> involved, the api  processes these data into meaningful statistics.These
>> statistics generated is used in the bpmn-explorer reporting dashboard to
>> generate the statistical graphs.
>>
>> The statistics generated includes:
>>
>> 1) Average time duration for all completed processes.
>> The user has the option to either view all completed processes or the
>> top 10 processes which finished within a short time duration or the top 
>> 10
>> processes which took a long time duration to finish.
>>
>> 2) Average time duration of tasks of a  completed process.
>> The user can select the completed process from the combo box and view
>> the average time duration.
>>
>> 3) User and the no. of tasks he/she has completed upto now.
>>
>> 4) Average time taken by each user to complete the tasks assigned to
>> him/her.
>>
>> 5) Task demand variation over time i.e. no. of tasks started and no.
>> of tasks completed in each month. This is useful for resource allocation
>> purposes.
>>
>> 6) Process demand variation over time i.e. no. of processes started
>> and no. of processes completed in each month regardless of a specific 
>> user.
>> This is useful for resource allocation purposes.
>>
>> 7) User Performance i.e. Task demand variation of users separately
>> over time i.e. no. of tasks started and no. of tasks completed in each
>> month. This is useful for resource allocation purposes.
>>
>> I have attached the class diagram of the REST api. The new stats REST
>> api will be integrated with the existing bpmn REST api.
>> Appreciate any suggestions and comments.
>>
>> Thanks,
>> --
>> *Natasha Wijesekare*
>>
>> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
>> *
>> *email  : nata...@wso2.com *
>> *mobile: +94 771358651 <%2B94%20771358651>*
>>
>
>
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
>
>


 --
 *Natasha Wijesekare*

 *Software Engineering Intern, WSO2  Inc:  

Re: [Dev] [DAS] Error reading from RDBMS

2015-12-10 Thread Niranda Perera
Hi Rukshan,

as per our offline discussion yesterday, this is due to, spark jdbc
connector not being able to handle the ShortType. As a workaround, is the
migration process, you might have to add a script to alter the table schema
in RDBMS and then take it back using the connector.

rgds

On Wed, Dec 9, 2015 at 1:38 PM, Rukshan Premathunga 
wrote:

> Hi,
>
> i point to a mysql table using CarbonJDBC. RDBMS table contain the column
> name api,day,week time etc.
>
> But when reading values of the `day` column i got following error.
>
> *SparkSQL >* select day from APIThrottleSummaryData;
> ERROR :  Job aborted due to stage failure: Task 0 in stage 11.0 failed 1
> times, most recent failure: Lost task 0.0 in stage 11.0 (TID 23,
> localhost): java.lang.IllegalArgumentException: Unsupported field
> StructField(day,ShortType,true)
> at
> org.apache.spark.sql.jdbc.JDBCRDD$$anonfun$getConversions$1.apply(JDBCRDD.scala:342)
> at
> org.apache.spark.sql.jdbc.JDBCRDD$$anonfun$getConversions$1.apply(JDBCRDD.scala:329)
> at
> scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
> at
> scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
> at
> scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
> at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
> at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
> at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108)
> at org.apache.spark.sql.jdbc.JDBCRDD.getConversions(JDBCRDD.scala:329)
> at org.apache.spark.sql.jdbc.JDBCRDD$$anon$1.(JDBCRDD.scala:374)
> at org.apache.spark.sql.jdbc.JDBCRDD.compute(JDBCRDD.scala:350)
> at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
> at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
> at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:35)
> at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
> at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
> at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:63)
> at org.apache.spark.scheduler.Task.run(Task.scala:70)
> at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:213)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
> Driver stacktrace:
> *SparkSQL >*
>
> any solutions?
>
> Thanks and regards.
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>



-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DAS]Null pointer exception while executing a schedule task in DAS HA cluster.

2015-12-10 Thread Roshan Wijesena
Hi Niranda / Inosh,

Thanks a lot for the quick call and reply. Yes issue seems to be fixed now.
Did not appear for a while.

-Roshan

On Fri, Dec 11, 2015 at 12:47 AM, Niranda Perera  wrote:

> Hi Roshan,
>
> This happens when you have a malformed HA cluster. When you put the master
> count as 2, the spark cluster would not get initiated until there are 2
> members in the analytics cluster. when the count as 2 and there is a task
> scheduled already, you may come across this issue, until the 2nd node is up
> and running. You should see that after sometime, the exception gets
> resolved., and that is when the analytics cluster is at a workable state.
>
> But I agree, an NPE is not acceptable here and this has been already fixed
> in 3.0.1 [1]
>
> as per the query modification, yes, the query gets modified to handle
> multi tenancy in the spark runtime.
>
> hope this resolves your issues.
>
> rgds
>
> [1] https://wso2.org/jira/browse/DAS-329
>
> On Fri, Dec 11, 2015 at 11:40 AM, Roshan Wijesena  wrote:
>
>>  I reproduced the error. If we set carbon.spark.master.count value to 2
>> this error will occur. Any solution available in this case?
>>
>>
>> On Thu, Dec 10, 2015 at 9:05 PM, Roshan Wijesena  wrote:
>>
>>> After I enabled the debug, it looks like below
>>>
>>> [2015-12-10 22:03:00,001]  INFO
>>> {org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
>>> schedule task for: httpd_log_analytics for tenant id: -1234
>>> [2015-12-10 22:03:00,013] DEBUG
>>> {org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor} -
>>>  Executing : CREATE TEMPORARY TABLE X1234_HttpLogTableUSING
>>> org.wso2.carbon.analytics.spark.core.sources.AnalyticsRelationProvider
>>>OPTIONS (tableName "ORG_WSO2_SAMPLE_HTTPD_LOGS" , tenantId "-1234")
>>> [2015-12-10 22:03:00,013] ERROR
>>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>>> executing task: null
>>> java.lang.NullPointerException
>>> at
>>> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)
>>> at
>>> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)
>>> at
>>> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)
>>> at
>>> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)
>>> at
>>> org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:57)
>>> at
>>> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
>>> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>> at java.lang.Thread.run(Thread.java:745)
>>>
>>> does that query got modified?
>>>
>>>  CREATE TEMPORARY TABLE X1234_HttpLogTableUSING
>>> org.wso2.carbon.analytics.spark.core.sources.AnalyticsRelationProvider
>>>OPTIONS (tableName "ORG_WSO2_SAMPLE_HTTPD_LOGS" , tenantId "-1234")
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Dec 10, 2015 at 6:53 PM, Roshan Wijesena 
>>> wrote:
>>>
 Hi DAS teaam,

 I am getting below null pointer exception while trying to execute a
 scheduled task. What I  simply did was created a two node HA cluster and
 tried to run this example[1]. It has a scheduled task. However, this error
 can not be observed in a single node fresh pack.

 The error is,

 [2015-12-10 19:32:00,573]  INFO
 {org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
 schedule task for: httpd_log_analytics for tenant id: -1234
 [2015-12-10 19:32:21,899]  INFO
 {org.wso2.carbon.event.processor.manager.core.internal.CarbonEventManagementService}
 -  Starting polling event receivers
 [2015-12-10 19:32:32,096] ERROR
 {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
 executing task: null
 java.lang.NullPointerException
 at
 org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)
 at
 org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)
 at
 org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)
 at
 org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)
 at
 

[Dev] Governance Registry - What means these double curly braces in hbs files and how does it work ?

2015-12-10 Thread Arnaud Charpentier
Hi,


We are new to UI development of governance registry and are trying to 
internationalise some text of the publisher.

We've tried to pass JS var from the server side to the client with jquery but 
it doesn't work. It seems that we should use the syntax with double curly 
braces as is done in every hbs files.


But our problem is that we can't understand what are all these double curly 
braces. We've done many researches and tests but we're not able to figure out 
how does it work.

Is that an existing web technology or a mechanism that WSO2 has created ?

If this syntax was specifically created by WSO2, is there any documentation to 
help us on this subject ? Or could you explain us briefly how does it work ?



Regards


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


[Dev] WSO2 Message Broker 3.1.0 Milestone 1 Released !

2015-12-10 Thread Akalanka Pagoda Arachchi
Hi All,

The WSO2 Message Broker team is pleased to announce the 1st milestone
release of WSO2 Message Broker (MB)  3.1.0.

You can download this distribution from [1].
All the known issues identified are listed in JIRA.[2].

Following are the bug fixes, improvements and the new features included in
this milestone release.
Bug

   - [MB-1580 ] - AndesAckWaitTimeOut
   is not applied when acknowledgement type is set to SESSION_TRANSACTED
   - [MB-1583 ] - Datasource
   configuration is not decrypted when loading
   - [MB-1585 ] - How do we use
   Cassandra as the backing store with new version of broker?
   - [MB-1593 ] - Add proper logging
   to main class of Andes

Improvement

   - [MB-1584 ] - Change
   slotRetainTimeInMemory property in broker.xml in to a meaningful name
   - [MB-1591 ] - Upgrade disruptor
   to version 3.3.2

New Feature

   - [MB-1588 ] - Forcefully Delete
   and Subscriptions
   - [MB-1592 ] - Support for
   PostgreSQL as the Message Store


[1] - https://github.com/wso2/product-mb/releases/tag/v3.1.0-M1
[2] - https://wso2.org/jira/browse/MB-424?filter=12509

Regards,
MB Team.

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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.3 RC2

2015-12-10 Thread Nipuni Perera
Hi all,

We are cancelling the VOTE due to concern raised above and will start a new
Vote for Kernel 4.4.3 RC3 soon.

Thanks,
Nipuni

On Fri, Dec 11, 2015 at 3:23 AM, Darshana Gunawardana 
wrote:

> Hi all,
>
> I propose to break the Kernel 4.4.3 RC2 vote.
>
> [x] Broken - do not release due to the issue[1].
>
> [1] https://wso2.org/jira/browse/IDENTITY-4219
>
> Thanks,
>
> On Thu, Dec 10, 2015 at 9:03 PM, Darshana Gunawardana 
> wrote:
>
>> Hi,
>>
>> Please keep the Kernel 4.4.3 RC2 vote open since there is a new issue
>> reported [1] in the evening.
>>
>> We need to figure out the cause or a workaround and decide how to proceed.
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4219
>>
>> Thanks,
>>
>> On Thu, Dec 10, 2015 at 6:14 PM, Hasitha Aravinda 
>> wrote:
>>
>>> ​Hi
>>>
>>> I have tested BPS 3.5.1-SNAPSHOT with kernel 4.4.3 with tests. No issue
>>> found.
>>>
>>> [x] Stable - Go ahead and release.
>>>
>>> Thanks
>>> Hasitha. ​
>>>
>>> On Thu, Dec 10, 2015 at 4:07 PM, Darshana Gunawardana >> > wrote:
>>>
 Hi all,

 On Wed, Dec 9, 2015 at 5:18 PM, Darshana Gunawardana  wrote:

> Hi All,
>
> Please note that we are testing a IS 5.1.0 pack built on top of kernel
> 4.4.3 rc2.
>
> All IS 5.1.0 integration tests passed successfully with this pack. We
> have done manual testing on user-management as well as general IS use 
> cases
> and there are no issues found at this point. We are continuing our testing
> further and we will the status confirm tomorrow.
>

 Further tested user management related functionalities and haven't
 encountered any issues.

 [X] Stable - go ahead and release

 Thanks,


> Thanks,
>
> On Wed, Dec 9, 2015 at 3:05 PM, Viraj Senevirathne 
> wrote:
>
>> Hi All,
>>
>> We have changed the kernel version of carbon-mediation and
>> product-esb to 4.4.3 and ran all the integration tests for the 
>> product-esb.
>> We didn't encounter any issues after upgrading the kernel version.
>>
>> Thank you,
>>
>> On Mon, Dec 7, 2015 at 6:11 PM, Prabath Abeysekera > > wrote:
>>
>>> Cool, Thanks for the update Darshana!
>>>
>>> Cheers,
>>> Prabath
>>>
>>> On Mon, Dec 7, 2015 at 6:08 PM, Darshana Gunawardana <
>>> darsh...@wso2.com> wrote:
>>>
 Hi Prabath,

 We already working on this as we planned to release GA on kernel
 4.4.3.

 Thanks,

 On Mon, Dec 7, 2015 at 6:06 PM, Prabath Abeysekera <
 praba...@wso2.com> wrote:

> Hi IS/API-M folks,
>
> Would you guys please be able to help test "carbon-identity" and
> "carbon-apimgt" functionalities on top of Kernel 4.4.3 and verify 
> soon?
>
> Cheers,
> Prabath
>
> On Mon, Dec 7, 2015 at 5:18 PM, Nipuni Perera 
> wrote:
>
>> Hi Devs,
>>
>> This is the RC2 release candidate of WSO2 Carbon Kernel 4.4.3.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12540
>>
>> Please download and test your products with kernel 4.4.3 RC2
>> and vote. Vote will be open for 72 hours or as longer as needed.
>>
>> *​Source and binary distribution files:*
>> *http://svn.wso2.org/repos/wso2/people/nipuni/4.4.3-rc2/
>> *
>>
>> *Maven staging repository:*
>>
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-163/
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.3-RC2
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you
>> Carbon Team
>>
>> --
>> 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
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



 --
 Regards,


 *Darshana Gunawardana*Senior Software 

Re: [Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Rajeenthini Satkunam
Hi,
Noted. IMHO it is good if we mention above concern in the document in that
particular place.

On Fri, Dec 11, 2015 at 10:40 AM, Anjana Fernando  wrote:

> Also, search count always work, because it is the indexing based search
> count, and that will always return the count.
>
> Cheers,
> Anjana.
>
> On Fri, Dec 11, 2015 at 10:39 AM, Anjana Fernando  wrote:
>
>> Hi,
>>
>> Getting the record count from direct analytics tables are disabled by
>> default from the RDBMS connector. This is basically an optional
>> functionality, and when that happens, it will return -1. @Rukshani, please
>> mention this properly in the docs. I remember this issue was raised earlier
>> also, and maybe we mentioned it in some other place in the docs.
>>
>> Cheers,
>> Anjana.
>>
>> On Fri, Dec 11, 2015 at 8:14 AM, Rukshani Weerasinha 
>> wrote:
>>
>>> Hi all,
>>>
>>> Thank you for reporting this. I will update this thread once the
>>> documentation is fixed.
>>>
>>> Best Regards,
>>> Rukshani.
>>>
>>> On Thu, Dec 10, 2015 at 6:42 PM, Rajeenthini Satkunam <
>>> rajeenth...@wso2.com> wrote:
>>>
 Hi all,

 I have tried to invoke REST API through POSTMAN(Chrome) for DAS getting
 the record count of a table.I have followed the documentation here[
 https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
 .It gives me a 200 OK success response but it always returns -1 as a
 response.


 ​
 But I have tried this below way and it is working fine for me.Hope the
 DAS documentation of REST API wants to be update along with API changes.

 *METHOD* : POST

 *URL* : https://localhost:9443/analytics/search_count

 *BODY* :
 {
  "tableName":"sample2"
 }

 *HEADERS* :
 Authorization : Basic YWRtaW46YWRtaW4=
 Content-Type : application/json

 This REST API request gives me 200 OK success response as a count of
 records in a particular table. I have inserted the screenshot of my POSTMAN
 request and response for further more idea.




 --

 *Thank You.*

 *Rajeenthini Satkunam*

 *Associate Software Engineer | WSO2*


 *E:rajeenth...@wso2.com *

 *M :+94770832823 <%2B94770832823>   *

 --
 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
>>>
>>>
>>
>>
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 

*Thank You.*

*Rajeenthini Satkunam*

*Associate Software Engineer | WSO2*


*E:rajeenth...@wso2.com *

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


Re: [Dev] [DEV][DAS]Null pointer exception while executing a schedule task in DAS HA cluster.

2015-12-10 Thread Roshan Wijesena
 I reproduced the error. If we set carbon.spark.master.count value to 2
this error will occur. Any solution available in this case?


On Thu, Dec 10, 2015 at 9:05 PM, Roshan Wijesena  wrote:

> After I enabled the debug, it looks like below
>
> [2015-12-10 22:03:00,001]  INFO
> {org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
> schedule task for: httpd_log_analytics for tenant id: -1234
> [2015-12-10 22:03:00,013] DEBUG
> {org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor} -
>  Executing : CREATE TEMPORARY TABLE X1234_HttpLogTableUSING
> org.wso2.carbon.analytics.spark.core.sources.AnalyticsRelationProvider
>OPTIONS (tableName "ORG_WSO2_SAMPLE_HTTPD_LOGS" , tenantId "-1234")
> [2015-12-10 22:03:00,013] ERROR
> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
> executing task: null
> java.lang.NullPointerException
> at
> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)
> at
> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)
> at
> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)
> at
> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)
> at
> org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:57)
> at
> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
> does that query got modified?
>
>  CREATE TEMPORARY TABLE X1234_HttpLogTableUSING
> org.wso2.carbon.analytics.spark.core.sources.AnalyticsRelationProvider
>OPTIONS (tableName "ORG_WSO2_SAMPLE_HTTPD_LOGS" , tenantId "-1234")
>
>
>
>
>
>
> On Thu, Dec 10, 2015 at 6:53 PM, Roshan Wijesena  wrote:
>
>> Hi DAS teaam,
>>
>> I am getting below null pointer exception while trying to execute a
>> scheduled task. What I  simply did was created a two node HA cluster and
>> tried to run this example[1]. It has a scheduled task. However, this error
>> can not be observed in a single node fresh pack.
>>
>> The error is,
>>
>> [2015-12-10 19:32:00,573]  INFO
>> {org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
>> schedule task for: httpd_log_analytics for tenant id: -1234
>> [2015-12-10 19:32:21,899]  INFO
>> {org.wso2.carbon.event.processor.manager.core.internal.CarbonEventManagementService}
>> -  Starting polling event receivers
>> [2015-12-10 19:32:32,096] ERROR
>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>> executing task: null
>> java.lang.NullPointerException
>> at
>> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)
>> at
>> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)
>> at
>> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)
>> at
>> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)
>> at
>> org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:57)
>> at
>> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
>> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>> [1] https://docs.wso2.com/display/DAS300/Analyzing+HTTPD+Logs
>>
>> --
>> Roshan Wijesena.
>> Senior Software Engineer-WSO2 Inc.
>> Mobile: *+94719154640 <%2B94719154640>*
>> Email: ros...@wso2.com
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>
>
>
> --
> Roshan Wijesena.
> Senior Software Engineer-WSO2 Inc.
> Mobile: *+94719154640 <%2B94719154640>*
> Email: ros...@wso2.com
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>



-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.

Re: [Dev] [DEV][DAS]Null pointer exception while executing a schedule task in DAS HA cluster.

2015-12-10 Thread Niranda Perera
Hi Roshan,

This happens when you have a malformed HA cluster. When you put the master
count as 2, the spark cluster would not get initiated until there are 2
members in the analytics cluster. when the count as 2 and there is a task
scheduled already, you may come across this issue, until the 2nd node is up
and running. You should see that after sometime, the exception gets
resolved., and that is when the analytics cluster is at a workable state.

But I agree, an NPE is not acceptable here and this has been already fixed
in 3.0.1 [1]

as per the query modification, yes, the query gets modified to handle multi
tenancy in the spark runtime.

hope this resolves your issues.

rgds

[1] https://wso2.org/jira/browse/DAS-329

On Fri, Dec 11, 2015 at 11:40 AM, Roshan Wijesena  wrote:

>  I reproduced the error. If we set carbon.spark.master.count value to 2
> this error will occur. Any solution available in this case?
>
>
> On Thu, Dec 10, 2015 at 9:05 PM, Roshan Wijesena  wrote:
>
>> After I enabled the debug, it looks like below
>>
>> [2015-12-10 22:03:00,001]  INFO
>> {org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
>> schedule task for: httpd_log_analytics for tenant id: -1234
>> [2015-12-10 22:03:00,013] DEBUG
>> {org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor} -
>>  Executing : CREATE TEMPORARY TABLE X1234_HttpLogTableUSING
>> org.wso2.carbon.analytics.spark.core.sources.AnalyticsRelationProvider
>>OPTIONS (tableName "ORG_WSO2_SAMPLE_HTTPD_LOGS" , tenantId "-1234")
>> [2015-12-10 22:03:00,013] ERROR
>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>> executing task: null
>> java.lang.NullPointerException
>> at
>> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)
>> at
>> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)
>> at
>> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)
>> at
>> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)
>> at
>> org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:57)
>> at
>> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
>> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>>
>> does that query got modified?
>>
>>  CREATE TEMPORARY TABLE X1234_HttpLogTableUSING
>> org.wso2.carbon.analytics.spark.core.sources.AnalyticsRelationProvider
>>OPTIONS (tableName "ORG_WSO2_SAMPLE_HTTPD_LOGS" , tenantId "-1234")
>>
>>
>>
>>
>>
>>
>> On Thu, Dec 10, 2015 at 6:53 PM, Roshan Wijesena  wrote:
>>
>>> Hi DAS teaam,
>>>
>>> I am getting below null pointer exception while trying to execute a
>>> scheduled task. What I  simply did was created a two node HA cluster and
>>> tried to run this example[1]. It has a scheduled task. However, this error
>>> can not be observed in a single node fresh pack.
>>>
>>> The error is,
>>>
>>> [2015-12-10 19:32:00,573]  INFO
>>> {org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
>>> schedule task for: httpd_log_analytics for tenant id: -1234
>>> [2015-12-10 19:32:21,899]  INFO
>>> {org.wso2.carbon.event.processor.manager.core.internal.CarbonEventManagementService}
>>> -  Starting polling event receivers
>>> [2015-12-10 19:32:32,096] ERROR
>>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>>> executing task: null
>>> java.lang.NullPointerException
>>> at
>>> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)
>>> at
>>> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)
>>> at
>>> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)
>>> at
>>> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)
>>> at
>>> org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:57)
>>> at
>>> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
>>> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>> at
>>> 

Re: [Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Anjana Fernando
Also, search count always work, because it is the indexing based search
count, and that will always return the count.

Cheers,
Anjana.

On Fri, Dec 11, 2015 at 10:39 AM, Anjana Fernando  wrote:

> Hi,
>
> Getting the record count from direct analytics tables are disabled by
> default from the RDBMS connector. This is basically an optional
> functionality, and when that happens, it will return -1. @Rukshani, please
> mention this properly in the docs. I remember this issue was raised earlier
> also, and maybe we mentioned it in some other place in the docs.
>
> Cheers,
> Anjana.
>
> On Fri, Dec 11, 2015 at 8:14 AM, Rukshani Weerasinha 
> wrote:
>
>> Hi all,
>>
>> Thank you for reporting this. I will update this thread once the
>> documentation is fixed.
>>
>> Best Regards,
>> Rukshani.
>>
>> On Thu, Dec 10, 2015 at 6:42 PM, Rajeenthini Satkunam <
>> rajeenth...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I have tried to invoke REST API through POSTMAN(Chrome) for DAS getting
>>> the record count of a table.I have followed the documentation here[
>>> https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
>>> .It gives me a 200 OK success response but it always returns -1 as a
>>> response.
>>>
>>>
>>> ​
>>> But I have tried this below way and it is working fine for me.Hope the
>>> DAS documentation of REST API wants to be update along with API changes.
>>>
>>> *METHOD* : POST
>>>
>>> *URL* : https://localhost:9443/analytics/search_count
>>>
>>> *BODY* :
>>> {
>>>  "tableName":"sample2"
>>> }
>>>
>>> *HEADERS* :
>>> Authorization : Basic YWRtaW46YWRtaW4=
>>> Content-Type : application/json
>>>
>>> This REST API request gives me 200 OK success response as a count of
>>> records in a particular table. I have inserted the screenshot of my POSTMAN
>>> request and response for further more idea.
>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Thank You.*
>>>
>>> *Rajeenthini Satkunam*
>>>
>>> *Associate Software Engineer | WSO2*
>>>
>>>
>>> *E:rajeenth...@wso2.com *
>>>
>>> *M :+94770832823 <%2B94770832823>   *
>>>
>>> --
>>> 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
>>
>>
>
>
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Anjana Fernando
Hi,

Getting the record count from direct analytics tables are disabled by
default from the RDBMS connector. This is basically an optional
functionality, and when that happens, it will return -1. @Rukshani, please
mention this properly in the docs. I remember this issue was raised earlier
also, and maybe we mentioned it in some other place in the docs.

Cheers,
Anjana.

On Fri, Dec 11, 2015 at 8:14 AM, Rukshani Weerasinha 
wrote:

> Hi all,
>
> Thank you for reporting this. I will update this thread once the
> documentation is fixed.
>
> Best Regards,
> Rukshani.
>
> On Thu, Dec 10, 2015 at 6:42 PM, Rajeenthini Satkunam <
> rajeenth...@wso2.com> wrote:
>
>> Hi all,
>>
>> I have tried to invoke REST API through POSTMAN(Chrome) for DAS getting
>> the record count of a table.I have followed the documentation here[
>> https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
>> .It gives me a 200 OK success response but it always returns -1 as a
>> response.
>>
>>
>> ​
>> But I have tried this below way and it is working fine for me.Hope the
>> DAS documentation of REST API wants to be update along with API changes.
>>
>> *METHOD* : POST
>>
>> *URL* : https://localhost:9443/analytics/search_count
>>
>> *BODY* :
>> {
>>  "tableName":"sample2"
>> }
>>
>> *HEADERS* :
>> Authorization : Basic YWRtaW46YWRtaW4=
>> Content-Type : application/json
>>
>> This REST API request gives me 200 OK success response as a count of
>> records in a particular table. I have inserted the screenshot of my POSTMAN
>> request and response for further more idea.
>>
>>
>>
>>
>> --
>>
>> *Thank You.*
>>
>> *Rajeenthini Satkunam*
>>
>> *Associate Software Engineer | WSO2*
>>
>>
>> *E:rajeenth...@wso2.com *
>>
>> *M :+94770832823 <%2B94770832823>   *
>>
>> --
>> 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
>
>


-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DAS] Need help to update table

2015-12-10 Thread Nethaji Chandrasiri
Hi,

I'm currently working on a website to demonstrate a recommender system
using ML. As per chosen scenario when users rate movies I want to update
DAS table (as a new record). Can someone please help me with this? (Data
will be taken from UI).


Thanks
-- 
*Nethaji Chandrasiri*
*Software Engineering* *Intern; WSO2, Inc.; http://wso2.com
*
Mobile : +94 (0) 779171059 <%2B94%20%280%29%20778%20800570>
Email  : neth...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Need help to update table

2015-12-10 Thread Nirmal Fernando
On Fri, Dec 11, 2015 at 11:07 AM, Nethaji Chandrasiri 
wrote:

> Hi,
>
> I'm currently working on a website to demonstrate a recommender system
> using ML. As per chosen scenario when users rate movies I want to update
> DAS table (as a new record). Can someone please help me with this? (Data
> will be taken from UI).
>
>
> Thanks
> --
> *Nethaji Chandrasiri*
> *Software Engineering* *Intern; WSO2, Inc.; http://wso2.com
> *
> Mobile : +94 (0) 779171059 <%2B94%20%280%29%20778%20800570>
> Email  : neth...@wso2.com
>



-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][ML] Error with Kdd cup 1999 data set

2015-12-10 Thread Nirmal Fernando
Yep.

On Fri, Dec 11, 2015 at 7:50 AM, Mohamed ZAJITH 
wrote:

> Hi ML Team
> in this data set  42 feature include
>
> *  *
>
> *Categorical Features*
>
> **
>
> *protocol_type  3 unique value*
>
> *num_outbound_cmds1 *
>
> *land   2*
>
> *lable 24*
>
> *wrong_fragment  3*
>
> *su_attempted   3*
>
> *is_guest_login 2*
>
> *num_shells  3*
>
> *urgent6*
>
> *num_failed_logins   6*
>
> *is_host_login   2*
>
> *logged_in  2*
>
> *flag11
>  *
>
> *num_access_files10*
>
> *service  70*
>
> *hot 30*
>
> *root_shell 2*
>
> other features are numerical
>
> so problem  num_outbound_cmds  is this feature ?
>
> On Fri, Dec 11, 2015 at 6:42 AM, Nirmal Fernando  wrote:
>
>> You seem to have a categorical feature with 1 unique value. Can you check
>> your categorical feature list?
>>
>> On Thu, Dec 10, 2015 at 9:06 PM, Mohamed ZAJITH 
>> wrote:
>>
>>> Hi Wso2ML Team
>>> i am getting an error can anyone help me to solve this
>>>
>>> An error occurred while building supervised machine learning model: An
>>> error occurred while building decision tree model: requirement failed:
>>> DecisionTree Strategy given invalid categoricalFeaturesInfo setting:
>>> feature 10 has 1 categories. The number of categories should be >= 2. Model
>>> Configuration [algorithmName=DECISION_TREE, algorithmClass=Classification,
>>> responseVariable=lable, trainDataFraction=1.0,
>>> hyperParameters={Max_Bins=100, Impurity=entropy, Max_Depth=50},
>>> features=[Feature [name=count, index=22, type=NUMERICAL,
>>> imputeOption=DISCARD, include=true], Feature [name=diff_srv_rate, index=29,
>>> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
>>> [name=dst_bytes, index=5, type=NUMERICAL, imputeOption=DISCARD,
>>> include=true], Feature [name=dst_host_count, index=31, type=NUMERICAL,
>>> imputeOption=DISCARD, include=true], Feature [name=dst_host_diff_srv_rate,
>>> index=34, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
>>> [name=dst_host_rerror_rate, index=39, type=NUMERICAL, imputeOption=DISCARD,
>>> include=true], Feature [name=dst_host_same_src_port_rate, index=35,
>>> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
>>> [name=dst_host_same_srv_rate, index=33, type=NUMERICAL,
>>> imputeOption=DISCARD, include=true], Feature [name=dst_host_serror_rate,
>>> index=37, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
>>> [name=dst_host_srv_count, index=32, type=NUMERICAL, imputeOption=DISCARD,
>>> include=true], Feature [name=dst_host_srv_diff_host_rate, index=36,
>>> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature
>>> [name=dst_host_srv_rerror_rate, index=40, type=NUMERICAL,
>>> imputeOption=DISCARD, include=true], Feature
>>> [name=dst_host_srv_serror_rate, index=38, type=NUMERICAL,
>>> imputeOption=DISCARD, include=true], Feature [name=duration, index=0,
>>> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=flag,
>>> index=3, type=CATEGORICAL,
>>>
>>>
>>> http://kdd.ics.uci.edu/databases/kddcup99/kddcup99.html
>>>
>>> 145586 Record(unique of 10% data)
>>> --
>>> *Regards.*
>>> *MohamedZajith*
>>> * *
>>>
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> *Regards.*
> *MohamedZajith*
> * *
>



-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Builder] Jenkins build became unstable: product-as #802

2015-12-10 Thread Manuri Amaya Perera
Here what the failing test does is waiting for a web app to switch to ghost
mode and then sending a request. What should happen is once the ghost
webapp gets a request the actual webapp should be deployed and serve the
request. But here it seems that the request times out before the actual
webapp is deployed.

The fix would be retrying the request until a time limit exceeds.

Thank you.



On Thu, Dec 3, 2015 at 10:13 AM, Manuri Amaya Perera 
wrote:

> I'll look into this.
>
> On Wed, Dec 2, 2015 at 12:58 PM,  wrote:
>
>> See 
>>
>> ___
>> Builder mailing list
>> buil...@wso2.org
>> https://wso2.org/cgi-bin/mailman/listinfo/builder
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>



-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

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


Re: [Dev] Need help from DS team to fix Analytics Dashboard issues which are related to DS

2015-12-10 Thread Anjana Fernando
Also, these fixes need to be going with DAS 3.0.1, so we somewhat need
these fixes to be done as a minor release to the earlier DS feature
versions we used. Because, as I got to know from our last meeting with DS
team, you guys are working on a modified approach for the gadget generation
and all, which may not be compatible with our earlier model. @Sachith,
please follow up on this.

Cheers,
Anjana.

On Fri, Dec 11, 2015 at 3:12 AM, Dunith Dhanushka  wrote:

> Hi Manu,
>
> We need the help from DS team to fix following DAS Analytics Dashboard
> issues which are related to DS.
>
> https://wso2.org/jira/browse/DAS-326
> https://wso2.org/jira/browse/DAS-213
> https://wso2.org/jira/browse/DAS-303
>
> I believe most of the issues must have been fixed the latest code base.
> Appreciate if you can verify them from your end.
>
> --
> Regards,
>
> Dunith Dhanushka,
> Senior Software Engineer
> WSO2 Inc,
>
> Mobile - +94 71 8615744
> Blog - dunithd.wordpress.com 
> Twitter - @dunithd 
>



-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Rukshani Weerasinha
Thank you all. I will update the page mentioned.

On Fri, Dec 11, 2015 at 11:17 AM, Rajeenthini Satkunam  wrote:

> Hi,
> Noted. IMHO it is good if we mention above concern in the document in that
> particular place.
>
> On Fri, Dec 11, 2015 at 10:40 AM, Anjana Fernando  wrote:
>
>> Also, search count always work, because it is the indexing based search
>> count, and that will always return the count.
>>
>> Cheers,
>> Anjana.
>>
>> On Fri, Dec 11, 2015 at 10:39 AM, Anjana Fernando 
>> wrote:
>>
>>> Hi,
>>>
>>> Getting the record count from direct analytics tables are disabled by
>>> default from the RDBMS connector. This is basically an optional
>>> functionality, and when that happens, it will return -1. @Rukshani, please
>>> mention this properly in the docs. I remember this issue was raised earlier
>>> also, and maybe we mentioned it in some other place in the docs.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Fri, Dec 11, 2015 at 8:14 AM, Rukshani Weerasinha 
>>> wrote:
>>>
 Hi all,

 Thank you for reporting this. I will update this thread once the
 documentation is fixed.

 Best Regards,
 Rukshani.

 On Thu, Dec 10, 2015 at 6:42 PM, Rajeenthini Satkunam <
 rajeenth...@wso2.com> wrote:

> Hi all,
>
> I have tried to invoke REST API through POSTMAN(Chrome) for DAS
> getting the record count of a table.I have followed the documentation 
> here[
> https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
> .It gives me a 200 OK success response but it always returns -1 as a
> response.
>
>
> ​
> But I have tried this below way and it is working fine for me.Hope the
> DAS documentation of REST API wants to be update along with API changes.
>
> *METHOD* : POST
>
> *URL* : https://localhost:9443/analytics/search_count
>
> *BODY* :
> {
>  "tableName":"sample2"
> }
>
> *HEADERS* :
> Authorization : Basic YWRtaW46YWRtaW4=
> Content-Type : application/json
>
> This REST API request gives me 200 OK success response as a count of
> records in a particular table. I have inserted the screenshot of my 
> POSTMAN
> request and response for further more idea.
>
>
>
>
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
> --
> 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


>>>
>>>
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>


-- 
Rukshani Weerasinha

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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.3 RC2

2015-12-10 Thread Darshana Gunawardana
Hi,

Please keep the Kernel 4.4.3 RC2 vote open since there is a new issue
reported [1] in the evening.

We need to figure out the cause or a workaround and decide how to proceed.

[1] https://wso2.org/jira/browse/IDENTITY-4219

Thanks,

On Thu, Dec 10, 2015 at 6:14 PM, Hasitha Aravinda  wrote:

> ​Hi
>
> I have tested BPS 3.5.1-SNAPSHOT with kernel 4.4.3 with tests. No issue
> found.
>
> [x] Stable - Go ahead and release.
>
> Thanks
> Hasitha. ​
>
> On Thu, Dec 10, 2015 at 4:07 PM, Darshana Gunawardana 
> wrote:
>
>> Hi all,
>>
>> On Wed, Dec 9, 2015 at 5:18 PM, Darshana Gunawardana 
>> wrote:
>>
>>> Hi All,
>>>
>>> Please note that we are testing a IS 5.1.0 pack built on top of kernel
>>> 4.4.3 rc2.
>>>
>>> All IS 5.1.0 integration tests passed successfully with this pack. We
>>> have done manual testing on user-management as well as general IS use cases
>>> and there are no issues found at this point. We are continuing our testing
>>> further and we will the status confirm tomorrow.
>>>
>>
>> Further tested user management related functionalities and haven't
>> encountered any issues.
>>
>> [X] Stable - go ahead and release
>>
>> Thanks,
>>
>>
>>> Thanks,
>>>
>>> On Wed, Dec 9, 2015 at 3:05 PM, Viraj Senevirathne 
>>> wrote:
>>>
 Hi All,

 We have changed the kernel version of carbon-mediation and product-esb
 to 4.4.3 and ran all the integration tests for the product-esb. We didn't
 encounter any issues after upgrading the kernel version.

 Thank you,

 On Mon, Dec 7, 2015 at 6:11 PM, Prabath Abeysekera 
 wrote:

> Cool, Thanks for the update Darshana!
>
> Cheers,
> Prabath
>
> On Mon, Dec 7, 2015 at 6:08 PM, Darshana Gunawardana <
> darsh...@wso2.com> wrote:
>
>> Hi Prabath,
>>
>> We already working on this as we planned to release GA on kernel
>> 4.4.3.
>>
>> Thanks,
>>
>> On Mon, Dec 7, 2015 at 6:06 PM, Prabath Abeysekera > > wrote:
>>
>>> Hi IS/API-M folks,
>>>
>>> Would you guys please be able to help test "carbon-identity" and
>>> "carbon-apimgt" functionalities on top of Kernel 4.4.3 and verify soon?
>>>
>>> Cheers,
>>> Prabath
>>>
>>> On Mon, Dec 7, 2015 at 5:18 PM, Nipuni Perera 
>>> wrote:
>>>
 Hi Devs,

 This is the RC2 release candidate of WSO2 Carbon Kernel 4.4.3.

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=12540

 Please download and test your products with kernel 4.4.3 RC2
 and vote. Vote will be open for 72 hours or as longer as needed.

 *​Source and binary distribution files:*
 *http://svn.wso2.org/repos/wso2/people/nipuni/4.4.3-rc2/
 *

 *Maven staging repository:*
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-163/

 *The tag to be voted upon:*
 https://github.com/wso2/carbon-kernel/releases/tag/v4.4.3-RC2


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

 Thank you
 Carbon Team

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


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


>>>
>>>
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>
>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com *
>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>>
>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Viraj Senevirathne
 Software Engineer; WSO2, Inc.

 Mobile : +94 71 958 0269
 Email : vir...@wso2.com

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


>>>
>>>
>>> --
>>> Regards,
>>>
>>>
>>> 

[Dev] [AppManager] Getting an exception when logging into the app store

2015-12-10 Thread Kasun Dananjaya Delgolla
Hi All,

$subject when logging into the store jaggery app. But it doesn't affect the
flow of the store or anything. Any idea why I'm getting this? Given below
is the log trace.

org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException: Session Object has
been reserved and cannot be instantiated by a script.
(/store/controllers/acs.jag#91)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)
at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:343)
at org.mozilla.javascript.Context.newObject(Context.java:1504)
at
org.jaggeryjs.jaggery.core.listeners.WebAppSessionListener.sessionDestroyed(WebAppSessionListener.java:113)
at
org.apache.catalina.session.StandardSession.expire(StandardSession.java:809)
at
org.apache.catalina.session.StandardSession.expire(StandardSession.java:741)
at
org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1277)
at
org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:188)
at
org.jaggeryjs.hostobjects.web.SessionHostObject.jsFunction_invalidate(SessionHostObject.java:155)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at
org.jaggeryjs.rhino.store.controllers.c1._c_anonymous_1(/store/controllers/acs.jag:91)
at org.jaggeryjs.rhino.store.controllers.c1.call(/store/controllers/acs.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
at
org.jaggeryjs.rhino.store.controllers.c1._c_script_0(/store/controllers/acs.jag:6)
at org.jaggeryjs.rhino.store.controllers.c1.call(/store/controllers/acs.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.jaggeryjs.rhino.store.controllers.c1.call(/store/controllers/acs.jag)
at org.jaggeryjs.rhino.store.controllers.c1.exec(/store/controllers/acs.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.invoke(WebappAuthenticationValve.java:43)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at

Re: [Dev] [DEV][DAS]WSO2 DAS load balancing ports.

2015-12-10 Thread Roshan Wijesena
Thanks, Maninda.


On Thu, Dec 10, 2015 at 12:05 AM, Maninda Edirisooriya 
wrote:

> Hi Roshen,
>
> Please find the required port in [1] and [2].
>
> [1] https://docs.wso2.com/display/DAS300/WSO2+DAS+Specific+Ports
> [2] https://docs.wso2.com/display/DAS300/Default+Ports+of+WSO2+Products
>
> Thanks.
>
>
> *Maninda Edirisooriya*
> Senior Software Engineer
>
> *WSO2, Inc.*lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *E-mail* : mani...@wso2.com
> *Skype* : @manindae
> *Twitter* : @maninda
>
> On Thu, Dec 10, 2015 at 5:16 AM, Roshan Wijesena  wrote:
>
>> Hi,
>>
>> When load balancing a minimum HA DAS cluster[1] what are the ports that
>> we need to expose to the outside? I Could not find proper documentation
>> around that?
>>
>> [1]
>> https://docs.wso2.com/display/CLUSTER44x/Minimum+High+Availability+Deployment
>>
>> --
>> Roshan Wijesena.
>> Senior Software Engineer-WSO2 Inc.
>> Mobile: *+94719154640 <%2B94719154640>*
>> Email: ros...@wso2.com
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>
>


-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev