Re: [Dev] ESB Blocking call mediator

2016-06-08 Thread Malaka Silva
Hi Godwin,

For using the key-expression feature, shall we get the exact use case that
you are trying to implement?

On Wed, Jun 8, 2016 at 7:55 PM, Godwin Shrimal  wrote:

> Hi Kathees,
>
> My requirement is to use key-expression in blocking mode.
>
> @Isuru : Do we have any workaround/alternatives to achieve this ?
>
> Thanks
> Godwin
>
>
> On Tue, Jun 7, 2016 at 11:22 PM, Kathees Rajendram 
> wrote:
>
>> Hi Godwin,
>>
>> Call mediator blocking mode supportes indirect URL with key as you
>> mensioned above. Can you define the key expression in the endpoint.
>>
>> 
>> 
>> 
>>
>> @Isuru
>> Yes, call mediator with the combination of blocking=true and
>> key-expression in endpoint is not supported directly. We can use above
>> approach.
>>
>> Thanks,
>> Kathees
>>
>> On Wed, Jun 8, 2016 at 6:27 AM, Isuru Udana  wrote:
>>
>>> Hi Godwin,
>>>
>>> I think key-expressions are not supported in blocking mode.
>>> @Kathees,
>>> Can you please confirm ?
>>>
>>> Thanks.
>>>
>>> On Wed, Jun 8, 2016 at 3:08 AM, Godwin Shrimal  wrote:
>>>
 Hi All,

 When I use call mediator in my sequence as below it gives error [1].

 

 

 
 If I change the code as any of below, its works fine.

 

 

 

 

 

 

 Do we have a problem in Call mediator with the combination of 
 *blocking=true
 *and *key-expression *in endpoint ?


 [1] org.apache.synapse.SynapseException: Error while performing the
 call operation
 at
 org.apache.synapse.mediators.builtin.CallMediator.handleFault(CallMediator.java:306)
 at
 org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:119)
 at
 org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:85)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
 at
 org.apache.synapse.message.processor.impl.sampler.SamplingService$1.run(SamplingService.java:211)
 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)
 Caused by: java.lang.NullPointerException
 at
 org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:114)
 at
 org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:113)


 Thanks
 Godwin

 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D *
 twitter: https://twitter.com/godwinamila

>>>
>>>
>>>
>>> --
>>> *Isuru Udana*
>>> Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>>
>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Senior Technical Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing BAM Mediator from ESB 5.0.0

2016-06-08 Thread Nuwan Dias
For people who had already been using the BAM mediator, what's the upgrade
procedure? I presume they have to change their synapse configs. Do we have
a migration guide/script?

Thanks,
NuwanD.



On Thu, Jun 9, 2016 at 6:24 AM, Buddhima Wijeweera 
wrote:

> Hi All,
>
> Please note that we have deprecated BAM Mediator in WSO2 ESB 4.9.0 release
> and with upcoming WSO2 ESB 5.0.0 release, we no longer going to support BAM
> Mediator.
>
> Instead we have introduced Publish Event Mediator[1] in ESB 4.9.0 release,
> and we decided to stick only with Publish Event Mediator here onward.
>
> Also please note that ESB-tooling next release will also not going to
> include BAM Mediator.
>
> [1]  https://docs.wso2.com/display/ESB490/Publish+Event+Mediator
>
> Thank you,
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Mobile: +94 71 427 9966
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Dias

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


[Dev] Removing BAM Mediator from ESB 5.0.0

2016-06-08 Thread Buddhima Wijeweera
Hi All,

Please note that we have deprecated BAM Mediator in WSO2 ESB 4.9.0 release
and with upcoming WSO2 ESB 5.0.0 release, we no longer going to support BAM
Mediator.

Instead we have introduced Publish Event Mediator[1] in ESB 4.9.0 release,
and we decided to stick only with Publish Event Mediator here onward.

Also please note that ESB-tooling next release will also not going to
include BAM Mediator.

[1]  https://docs.wso2.com/display/ESB490/Publish+Event+Mediator

Thank you,
-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Mobile: +94 71 427 9966
Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-06-08 Thread Rajith Roshan
Hi all,

Since jasper reports orbit bundle requires org.apache.velocity and
org.apache.poi.* packages, we need to upgrade the import package versions
for those packages in jasper orbit bundle. Subsequently carbon-commons
release would be required  with updated jasper orbit bundle version. We
will send the PRs with the relevant changes.
Currently we are running integration tests for product-greg.

Thanks!
Rajith

On Wed, Jun 8, 2016 at 12:20 PM, Kalpa Welivitigoda  wrote:

> [+Ayoma, Dulanja]
>
>
> On Wed, Jun 8, 2016 at 12:17 PM, Anupama Pathirage 
> wrote:
>
>> Hi Kalpa,
>>
>> Thanks for the update.  Please update us with the solution for CSRF
>> security issue. We get the same issue for  the DSS try it as well.
>>
>> [2016-06-08 11:55:28,396]  WARN {org.owasp.csrfguard.log.JavaLogger} -
>> potential cross-site request forgery (CSRF) attack thwarted
>> (user:, ip:10.100.7.118, method:POST,
>> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
>> token is missing from the request)
>>
>> Private proxy protocol will be attempted as cross-domain browser
>> restrictions might be enforced for this endpoint.
>>
>> http://tryit.carbon.wso2.org;>
>>Error connecting to the Tryit ajax proxy
>> 
>>
>> Regards,
>>
>> On Wed, Jun 8, 2016 at 8:45 AM, Kasun Bandara  wrote:
>>
>>> Hi All,
>>>
>>> We have done the fix for L1 reported in [1] yesterday.
>>>
>>> Thanks,
>>> Kasun.
>>>
>>> [1] https://wso2.org/jira/browse/IDENTITY-4656
>>>
>>> On Wed, Jun 8, 2016 at 7:00 AM, Kalpa Welivitigoda 
>>> wrote:
>>>
 Hi Anupama,

 On Tue, Jun 7, 2016 at 8:45 PM, Anupama Pathirage 
 wrote:

> Hi Kalpa,
>
> Checked the suggested approaches and those two issues were resolved
> after applying both changes. We will further test the service with the
> Carbon RC2.
>
> On Tue, Jun 7, 2016 at 6:15 PM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Anupama,
>>
>> On Tue, Jun 7, 2016 at 5:50 PM, Anupama Pathirage 
>> wrote:
>>
>>> Hi,
>>>
>>> We got the following issues when testing WSO2 DSS with the Kernel
>>> RC2 Release.
>>>
>>> *1) *Any action on management console gives the following error. It
>>> seems to be related with the tomcat upgrade and appreciate your input on
>>> this.
>>>
>>> [2016-06-07 17:21:16,905] ERROR
>>> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
>>> reading request, ignored
>>> java.lang.NoSuchMethodError:
>>> org.apache.coyote.Request.getBytesRead()I
>>> at
>>> org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
>>> at org.apache.coyote.Request.updateCounters(Request.java:533)
>>> at
>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
>>> at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
>>> at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
>>> at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at
>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>> at java.lang.Thread.run(Thread.java:745)
>>>
>>
>> Yes, it is due to the tomcat upgrade in kernel, relevant fixes for
>> carbon-deployment are already there in 4.6.2-SNAPSHOT. We have to do a
>> deployment release once we release 4.4.6-SNAPSHOT. For the moment, for
>> testing purpose, is it possible you try with 4.6.2-SNAPSHOT?
>>
>
> Could you please do the needful to release the carbon-deployment 4.6.2
> as DSS 3.5.1 release will be on hold until it is done.
>

 Yes, we will be doing component released once we are done with kernel
 4.4.6.


>
>
>>
>>
>>>
>>> *2) *DBS file uploads gives the following error which returns Error
>>> 403 - Forbidden
>>>
>>> [2016-06-07 17:21:16,904]  WARN {org.owasp.csrfguard.log.JavaLogger}
>>> -  potential cross-site request forgery (CSRF) attack thwarted
>>> (user:, ip:10.100.7.118, method:POST,
>>> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, 
>>> error:required
>>> token is missing from the request)
>>>
>>>
>> For this would you please try with adding the following line to
>> repository/conf/security/Owasp.CsrfGuard.Carbon.properties,
>>
>>
>> org.owasp.csrfguard.unprotected.FileUpload=%servletContext%/fileupload/*
>>
>
> Is excluding these patterns from 

[Dev] Modifications to the DCR endpoint

2016-06-08 Thread Kaveesha Perera
Hi,

I worked on a issue in APIM of DCR that was described in [1].While working
on it, observed that it has used APIM key manager interface based
implementations for DCR related operations.After discussed with the team,I
have  modified the DCR endpoint implementation to calll directly the
identity components based implementation,  than accessing it via KeyManager
implementation.

The related PR can be found from here[2].

If any feedback, let me know.

[1] [Architecture] Behavior of OAuth 2.0 Dynamic Client Registration
[2] https://github.com/wso2/carbon-apimgt/pull/2495


Regards,
-- 
Kaveesha Perera
Intern - Software Engineering

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


Re: [Dev] Analytics IS - Handling null or empty Strings to show on respective gadgets

2016-06-08 Thread Hasintha Indrajee
On Thu, Jun 9, 2016 at 7:29 AM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Thu, Jun 9, 2016 at 2:03 AM, Sriskandarajah Suhothayan 
> wrote:
>
>> I think the way to handle this is by sending some default value, or
>> identify nulls and replacing them with default value.
>> I think the trick here is to find a default value that users cannot
>> create. How about using  "NOT AVAILABLE" with space. I think IS does not
>> allow users to create username with spaces so it will not conflict with any
>> other username.
>>
>
> Yes, we should have a default value for this.. But, I think IS allows to
> have user name with spaces by changing the relevant regex in user-mgt.xml
> file.. Then, we need to think about some unique value where IS does not
> allow..
>

There are situations where Identity server does not have control over
creating users in userstores. These userstores may be plugged in to
different other systems as well.   On the other hand the server admins /
authorized users may also not have control over creating users (self
registration).

>
> Can't we introduce a config file to add this default value ?  Then, it is
> the responsibility of the server-admin to configure it accordingly..
>

Currently we follow this approach.

>
> Thanks,
> Mohan
>
>
>>
>> Regards
>> Suho
>>
>> On Tue, Jun 7, 2016 at 8:29 PM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>>
>>>
>>> On Tue, Jun 7, 2016 at 6:35 PM, Hasintha Indrajee 
>>> wrote:
>>>
 Hi Damith,

 For the time being we can follow this approach. But this seems like a
 standard problem we may face in other products as well. Any standard way of
 handling this ? Any ideas for handling this issue in future ?


>>> Hmm, AFAIK above was not became an issue for other analytics
>>> products/usecases ..
>>>
>>> @Srinath and all, do you guys have any suggestions ? what should be the
>>> best approach ?..
>>>
>>> Thanks,
>>> Mohan
>>>
>>>
>>>
 On Tue, Jun 7, 2016 at 12:32 PM, Damith Wickramasinghe <
 dami...@wso2.com> wrote:

> Hi Johann and all,
>
> Our decided approach was to send a empty string for all the cases from
> IS side and from DAS after retrieving data, provide a default string with
> some style to show that its a special empty case. But in lucene we cannot
> have empty attributes since they cannot be indexed and search will not 
> work
> for them. Our next option is to provide a standard naming for a default
> value and also provide some configuration in IS to change it if needed.
> WDYT ?
>
> Regards,
> Damith.
>
> On Mon, Jun 6, 2016 at 7:19 PM, Damith Wickramasinghe <
> dami...@wso2.com> wrote:
>
>> Hi,
>>
>> When it comes to authentication scenarios in some cases we cannot
>> specify roles etc to publishing events eg:- non existing user tried to
>> login with username and password. Then for the said events roles 
>> attribute
>> will be empty/null  .
>>
>> Also as discussed with Pulasthi there can be other attributes as well
>> which can be empty or null. For all those scenarios we need to show a
>> authentication failure count for all the dimensions of User, Role,
>> IdentityProvider etc.For that we need a constant String which can be used
>> to show the respective fail counts.  Having a constant value like
>> "NOT-AVAILABLE" can be sent from IS side or populated from DAS side but 
>> any
>> user can create an username of any sort . eg:NOT-AVAILABLE .So there can 
>> be
>> issues in calculating authentication failure counts.
>>
>> Any insights on handling such scenarios ?
>>
>> Regards,
>> Damith.
>>
>> --
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <%2B94728671315>*
>>
>>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


 --
 Hasintha Indrajee
 Software Engineer
 WSO2, Inc.
 Mobile:+94 771892453


>>>
>>>
>>> --
>>> *V. Mohanadarshan*
>>> *Associate Tech Lead,*
>>> *Data Technologies Team,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: mo...@wso2.com
>>> phone:(+94) 771117673
>>>
>>
>>
>>
>> --
>>
>> *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/ 

Re: [Dev] Requesting icons to represent nullables - data mapper editor

2016-06-08 Thread Sohani Weerasinghe
Thanks Dakshika.

Regards,
Sohani

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

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

On Thu, Jun 9, 2016 at 9:41 AM, Dakshika Jayathilaka 
wrote:

> Hi Sohani,
>
> I have added updated icons to drive.
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Associate Technical Lead
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Wed, Jun 8, 2016 at 6:44 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi Dakshika,
>>
>> Please find below suggestions about the created images
>>
>> ​
>> 1. The icons ( attribute.png and attribute-null.png) seems bit larger
>> than others ( even the size is the same, the letter 'A' seems bit large)
>> and also it is highlighted (bold)
>> 2. The icons (block.png and block-null.png) are also highlighted (bold)
>>
>> Could you please reduce the letter size and unbold the icons? Appreciate
>> if you can recreate those icons and send
>>
>> Thanks,
>> Sohani
>>
>>
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Jun 8, 2016 at 4:21 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> Looks good. Thanks Dakshika
>>>
>>> Regards,
>>> Sohani
>>>
>>> Sohani Weerasinghe
>>> Senior Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Wed, Jun 8, 2016 at 3:25 PM, Dakshika Jayathilaka 
>>> wrote:
>>>
 Hi Sohani,

 Please check attached images,


 https://drive.google.com/a/wso2.com/folderview?id=0B2gQzqdJmYrmdkVueUN0LUF6QkU=sharing

 Regards,


 *Dakshika Jayathilaka*
 PMC Member & Committer of Apache Stratos
 Associate Technical Lead
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

 On Tue, Jun 7, 2016 at 2:01 PM, Sohani Weerasinghe 
 wrote:

> Hi Dakshika,
>
> There is a requirement to allow null values for arrays, objects,
> elements, attributes etc in json schema, and currently we are using the
> attached images to represent the those. (non nullables)
>
> Could we please get a new set of icons to represent *nullables* where
> those icons should have an additional symbol added to the attached images.
> (Please refer the below image)
>
> The symbol should be something which represents that the element is
> nullable.
>
>
> ​
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>


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


Re: [Dev] NoClassDefFoundError: org/wso2/carbon/analytics/dataservice/AnalyticsDataService on api manager analytic server

2016-06-08 Thread Nirmal Fernando
Hi Shavantha,

Will check. Thanks.

On Thu, Jun 9, 2016 at 8:03 AM, Shavantha Weerasinghe 
wrote:

> Hi Nirmal
>
> We are currently testing (cluster mode) with the pack which we downloaded
> from mail subject [1] the link[2]
>
> [1]Re: APIM 2.0.0-BETA - Please Test.
>
> [2]
> https://wso2.org/jenkins/job/analytics-apim/141/org.wso2.analytics.apim$wso2analytics-apim/artifact/org.wso2.analytics.apim/wso2analytics-apim/1.0.0-SNAPSHOT/wso2analytics-apim-1.0.0-SNAPSHOT.zip
>
> regards,
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
> On Wed, Jun 8, 2016 at 10:16 PM, Nirmal Fernando  wrote:
>
>> Hi Shavantha,
>>
>> Which pack are you trying? And this happened in a vanilla pack?
>>
>> On Wed, Jun 8, 2016 at 8:17 PM, Shavantha Weerasinghe > > wrote:
>>
>>> Hi All
>>>
>>> The below mentioned exception is thrown on api manager analytics server
>>>
>>>
>>> [2016-06-08 14:40:18,030]  INFO
>>> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
>>> Pre-instantiating singletons in
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory@42a767dc:
>>> defining beans
>>> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,analyticsServices,analyticsBean,analyticsExceptionMapper,analyticsIndexExceptionMapper,analyticsTableNotFoundExceptionMapper,analyticsTimeoutExceptionMapper,jacksonJsonProvider,httpHeadersOutInterceptor];
>>> root of factory hierarchy
>>> [2016-06-08 14:40:18,226]  INFO
>>> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
>>> Destroying singletons in
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory@42a767dc:
>>> defining beans
>>> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,analyticsServices,analyticsBean,analyticsExceptionMapper,analyticsIndexExceptionMapper,analyticsTableNotFoundExceptionMapper,analyticsTimeoutExceptionMapper,jacksonJsonProvider,httpHeadersOutInterceptor];
>>> root of factory hierarchy
>>> [2016-06-08 14:40:18,228] ERROR
>>> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean with name 'analyticsServices': Cannot resolve reference to bean
>>> 'analyticsBean' while setting bean property 'serviceBeans' with key [0];
>>> nested exception is
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean with name 'analyticsBean' defined in URL
>>> [jndi:/localhost/analytics/WEB-INF/cxf-servlet.xml]: Instantiation of bean
>>> failed; nested exception is java.lang.NoClassDefFoundError:
>>> org/wso2/carbon/analytics/dataservice/AnalyticsDataService
>>> at
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>>> at
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>>> at
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>>> at
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>>> at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
>>> at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
>>> at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
>>> at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>>> at
>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>>> at
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>> at
>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>>> at
>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>>> at
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>>> at
>>> 

Re: [Dev] Requesting icons to represent nullables - data mapper editor

2016-06-08 Thread Dakshika Jayathilaka
Hi Sohani,

I have added updated icons to drive.

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Associate Technical Lead
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Wed, Jun 8, 2016 at 6:44 PM, Sohani Weerasinghe  wrote:

> Hi Dakshika,
>
> Please find below suggestions about the created images
>
> ​
> 1. The icons ( attribute.png and attribute-null.png) seems bit larger than
> others ( even the size is the same, the letter 'A' seems bit large) and
> also it is highlighted (bold)
> 2. The icons (block.png and block-null.png) are also highlighted (bold)
>
> Could you please reduce the letter size and unbold the icons? Appreciate
> if you can recreate those icons and send
>
> Thanks,
> Sohani
>
>
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Jun 8, 2016 at 4:21 PM, Sohani Weerasinghe 
> wrote:
>
>> Looks good. Thanks Dakshika
>>
>> Regards,
>> Sohani
>>
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Jun 8, 2016 at 3:25 PM, Dakshika Jayathilaka 
>> wrote:
>>
>>> Hi Sohani,
>>>
>>> Please check attached images,
>>>
>>>
>>> https://drive.google.com/a/wso2.com/folderview?id=0B2gQzqdJmYrmdkVueUN0LUF6QkU=sharing
>>>
>>> Regards,
>>>
>>>
>>> *Dakshika Jayathilaka*
>>> PMC Member & Committer of Apache Stratos
>>> Associate Technical Lead
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>> On Tue, Jun 7, 2016 at 2:01 PM, Sohani Weerasinghe 
>>> wrote:
>>>
 Hi Dakshika,

 There is a requirement to allow null values for arrays, objects,
 elements, attributes etc in json schema, and currently we are using the
 attached images to represent the those. (non nullables)

 Could we please get a new set of icons to represent *nullables* where
 those icons should have an additional symbol added to the attached images.
 (Please refer the below image)

 The symbol should be something which represents that the element is
 nullable.


 ​
 Thanks,
 Sohani

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

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

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


Re: [Dev] Setting JMS Version gloably

2016-06-08 Thread Eranda Rajapakshe
Hi Manuranga,

JMS 2.0 listeners inside ESB should be configured as Inbound Endpoints. You
can refer [1] sample for the correct configuration.  And I have updated the
document [2] as well so that there won't be any confusions.

[1].
https://docs.google.com/document/d/17Q6B60KYrU53YfxPyML_YKZftCrNWH_YTtG8r7bBwcA/edit?usp=sharing
[2.
https://docs.google.com/document/d/1AqiLBLenl68WTKwoC0HLliYPfIBSWCFMy8BH7Vh8ZNw/edit?usp=sharing

Thanks,

On Wed, Jun 8, 2016 at 9:21 PM, Manuranga Perera  wrote:

> Hi Eranda,
> In the doc, it shows how to setup JMS 2 listener proxy via inline parmas
> [1] [2]. Which one is correct, the doc or above claim?
>
> Hi ESB Team,
> Please re-consider supporting JMS 2 via axis2 xml as well, since setting
> up a large number of inbounds are hard to manage. Eg: If I need to change
> the URL I need to change each.
>
> [1]
> https://docs.google.com/document/d/1AqiLBLenl68WTKwoC0HLliYPfIBSWCFMy8BH7Vh8ZNw/edit
> [2]
> https://docs.google.com/document/d/17Q6B60KYrU53YfxPyML_YKZftCrNWH_YTtG8r7bBwcA/edit
>
> On Wed, Jun 8, 2016 at 1:40 AM, Ravindra Ranwala 
> wrote:
>
>> Hi Manu,
>>
>> Vijitha's comment is valid. As per the offline discussion I had with
>> ErandaR and PrabathAR, JMS 2.0 shared subscription feature is not
>> implemented for JMS Proxy services (in axis2 transport listener side) since
>> it will be deprecated in future. Therefore it is available for JMS Inbound
>> Endpoints only. If you have lots of JMS proxies we may need to migrate them
>> into JMS Inbound Endpoints.
>>
>>
>> Thanks & Regards,
>>
>> On Wed, Jun 8, 2016 at 11:00 AM, Vijitha Ekanayake 
>> wrote:
>>
>>> Hi Manu/Dilshani,
>>>
>>> According to the current implementation It seems, we haven't done any
>>> changes in JMSTransportListener side. JMS 2.0 listener implementation is
>>> supported as JMS inbound endpoint and sender implementation support on JMS
>>> transport sender. You can refer mail thread[1] for more details.
>>>
>>> [1]. [Architecture] [GSoC] JMS 2.0 support for WSO2 ESB JMS Inbound
>>> Endpoint and JMS Transport
>>>
>>> Thanks.
>>>
>>> On Wed, Jun 8, 2016 at 8:58 AM, Dilshani Subasinghe 
>>> wrote:
>>>
 Hi Manuranga,

 According to documentation, Yes we can set that. But I notice that, it
 doesn't validate through the value given globally. For example, even I set
 up JMS Version as 2.0 globally, it doesn't take that value.

 Within the source (ServiceTaskManager.java) it seem to hard coded.


 */** Should this service use JMS 1.1 ? (when false, defaults to 1.0.2b)
 */private boolean jmsSpec11 = true;*

 @Vijitha - Hope you may explain the actual scenario ?

 Regards,
 Dilshani


 On Wed, Jun 8, 2016 at 1:25 AM, Manuranga Perera  wrote:

> Hi Ravindra/Dilshani,
> Can we set transport.jms.JMSSpecVersion globally (ie: via axis2.xml)?
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



 --
 Best Regards,

 Dilshani Subasinghe
 Software Engineer - QA
 WSO2, Inc.;http://wso2.com/
 
 lean.enterprise.middleware
 Mobile: +94773375185
 Blog: dilshanilive.blogspot.com

>>>
>>>
>>>
>>> --
>>> Vijitha Ekanayake
>>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> Ravindra Ranwala
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>> 
>> Mobile: +94714198770
>>
>>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Eranda Rajapakshe*
Software Engineer
WSO2 Inc.
Mobile : +94784822608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NoClassDefFoundError: org/wso2/carbon/analytics/dataservice/AnalyticsDataService on api manager analytic server

2016-06-08 Thread Shavantha Weerasinghe
Hi Nirmal

We are currently testing (cluster mode) with the pack which we downloaded
from mail subject [1] the link[2]

[1]Re: APIM 2.0.0-BETA - Please Test.

[2]
https://wso2.org/jenkins/job/analytics-apim/141/org.wso2.analytics.apim$wso2analytics-apim/artifact/org.wso2.analytics.apim/wso2analytics-apim/1.0.0-SNAPSHOT/wso2analytics-apim-1.0.0-SNAPSHOT.zip

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


On Wed, Jun 8, 2016 at 10:16 PM, Nirmal Fernando  wrote:

> Hi Shavantha,
>
> Which pack are you trying? And this happened in a vanilla pack?
>
> On Wed, Jun 8, 2016 at 8:17 PM, Shavantha Weerasinghe 
> wrote:
>
>> Hi All
>>
>> The below mentioned exception is thrown on api manager analytics server
>>
>>
>> [2016-06-08 14:40:18,030]  INFO
>> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
>> Pre-instantiating singletons in
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@42a767dc:
>> defining beans
>> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,analyticsServices,analyticsBean,analyticsExceptionMapper,analyticsIndexExceptionMapper,analyticsTableNotFoundExceptionMapper,analyticsTimeoutExceptionMapper,jacksonJsonProvider,httpHeadersOutInterceptor];
>> root of factory hierarchy
>> [2016-06-08 14:40:18,226]  INFO
>> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
>> Destroying singletons in
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@42a767dc:
>> defining beans
>> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,analyticsServices,analyticsBean,analyticsExceptionMapper,analyticsIndexExceptionMapper,analyticsTableNotFoundExceptionMapper,analyticsTimeoutExceptionMapper,jacksonJsonProvider,httpHeadersOutInterceptor];
>> root of factory hierarchy
>> [2016-06-08 14:40:18,228] ERROR
>> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'analyticsServices': Cannot resolve reference to bean
>> 'analyticsBean' while setting bean property 'serviceBeans' with key [0];
>> nested exception is
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'analyticsBean' defined in URL
>> [jndi:/localhost/analytics/WEB-INF/cxf-servlet.xml]: Instantiation of bean
>> failed; nested exception is java.lang.NoClassDefFoundError:
>> org/wso2/carbon/analytics/dataservice/AnalyticsDataService
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>> at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>> at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>> at
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>> at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>> at
>> 

Re: [Dev] Analytics IS - Handling null or empty Strings to show on respective gadgets

2016-06-08 Thread Mohanadarshan Vivekanandalingam
On Thu, Jun 9, 2016 at 2:03 AM, Sriskandarajah Suhothayan 
wrote:

> I think the way to handle this is by sending some default value, or
> identify nulls and replacing them with default value.
> I think the trick here is to find a default value that users cannot
> create. How about using  "NOT AVAILABLE" with space. I think IS does not
> allow users to create username with spaces so it will not conflict with any
> other username.
>

Yes, we should have a default value for this.. But, I think IS allows to
have user name with spaces by changing the relevant regex in user-mgt.xml
file.. Then, we need to think about some unique value where IS does not
allow..

Can't we introduce a config file to add this default value ?  Then, it is
the responsibility of the server-admin to configure it accordingly..

Thanks,
Mohan


>
> Regards
> Suho
>
> On Tue, Jun 7, 2016 at 8:29 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>>
>>
>> On Tue, Jun 7, 2016 at 6:35 PM, Hasintha Indrajee 
>> wrote:
>>
>>> Hi Damith,
>>>
>>> For the time being we can follow this approach. But this seems like a
>>> standard problem we may face in other products as well. Any standard way of
>>> handling this ? Any ideas for handling this issue in future ?
>>>
>>>
>> Hmm, AFAIK above was not became an issue for other analytics
>> products/usecases ..
>>
>> @Srinath and all, do you guys have any suggestions ? what should be the
>> best approach ?..
>>
>> Thanks,
>> Mohan
>>
>>
>>
>>> On Tue, Jun 7, 2016 at 12:32 PM, Damith Wickramasinghe >> > wrote:
>>>
 Hi Johann and all,

 Our decided approach was to send a empty string for all the cases from
 IS side and from DAS after retrieving data, provide a default string with
 some style to show that its a special empty case. But in lucene we cannot
 have empty attributes since they cannot be indexed and search will not work
 for them. Our next option is to provide a standard naming for a default
 value and also provide some configuration in IS to change it if needed.
 WDYT ?

 Regards,
 Damith.

 On Mon, Jun 6, 2016 at 7:19 PM, Damith Wickramasinghe  wrote:

> Hi,
>
> When it comes to authentication scenarios in some cases we cannot
> specify roles etc to publishing events eg:- non existing user tried to
> login with username and password. Then for the said events roles attribute
> will be empty/null  .
>
> Also as discussed with Pulasthi there can be other attributes as well
> which can be empty or null. For all those scenarios we need to show a
> authentication failure count for all the dimensions of User, Role,
> IdentityProvider etc.For that we need a constant String which can be used
> to show the respective fail counts.  Having a constant value like
> "NOT-AVAILABLE" can be sent from IS side or populated from DAS side but 
> any
> user can create an username of any sort . eg:NOT-AVAILABLE .So there can 
> be
> issues in calculating authentication failure counts.
>
> Any insights on handling such scenarios ?
>
> Regards,
> Damith.
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


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

 mobile: *+94728671315 <%2B94728671315>*


>>>
>>>
>>> --
>>> Hasintha Indrajee
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 771892453
>>>
>>>
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Associate Tech Lead,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: mo...@wso2.com
>> phone:(+94) 771117673
>>
>
>
>
> --
>
> *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 *
>



-- 
*V. Mohanadarshan*
*Associate Tech Lead,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IOT] [wso2iots-1.0.0-alpha] Continues errors getting print after sometimes without valid reason

2016-06-08 Thread Ayyoob Hamza
HI Dushan,
These logs gets printed when an unauthorized device tries to connect to the
mqtt broker and server rejects the connection. Therefore could you please
check whether there any android device which runs the android sense
application trying to connect to the server.

In addition the logs are not meaningful here therefore we will fix that.

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Thu, Jun 9, 2016 at 12:28 AM, Dushan Abeyruwan  wrote:

> Hi Devs,
>$subject
>
> [2016-06-08 11:55:49,431]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:49,431]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:49,443]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:49,457]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:49,458]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:49,893]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:49,900]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:49,900]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:49,917]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:49,924]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:49,924]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:50,031]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:50,041]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:50,041]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:50,058]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:50,068]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:50,069]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:50,395]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:50,403]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
> [2016-06-08 11:55:50,403]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID
> -9708-6bd5--99d603a9:android_sense is not removed since the
> entry does not exist
> [2016-06-08 11:55:50,411]  WARN - ProtocolProcessor Andes does not support
> last will operation
> [2016-06-08 11:55:50,419]  INFO - ProtocolProcessor Lost connection with
> client -9708-6bd5--99d603a9:android_sense
>
> https://github.com/wso2/product-iots/releases/tag/v1.0.0-alpha
> --
> Dushan Abeyruwan | Senior Technical Lead
> Technical Support,MV
> PMC Member Apache Synpase
> WSO2 Inc. http://wso2.com/
> Blog:*http://www.dushantech.com/ *
> LinkedIn:*https://www.linkedin.com/in/dushanabeyruwan
> *
> Mobile:(001)408-791-9312
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Do we support HTTP 2 in ESB/GW/APIM?

2016-06-08 Thread Vanjikumaran Sivajothy
Folks,

$subject? Reason it is quite interesting to see it has stream priority and
i feel that is worth to investigate in GW/APIM use cases.



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


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


Re: [Dev] Analytics IS - Handling null or empty Strings to show on respective gadgets

2016-06-08 Thread Sriskandarajah Suhothayan
I think the way to handle this is by sending some default value, or
identify nulls and replacing them with default value.
I think the trick here is to find a default value that users cannot create.
How about using  "NOT AVAILABLE" with space. I think IS does not allow
users to create username with spaces so it will not conflict with any other
username.

Regards
Suho

On Tue, Jun 7, 2016 at 8:29 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Tue, Jun 7, 2016 at 6:35 PM, Hasintha Indrajee 
> wrote:
>
>> Hi Damith,
>>
>> For the time being we can follow this approach. But this seems like a
>> standard problem we may face in other products as well. Any standard way of
>> handling this ? Any ideas for handling this issue in future ?
>>
>>
> Hmm, AFAIK above was not became an issue for other analytics
> products/usecases ..
>
> @Srinath and all, do you guys have any suggestions ? what should be the
> best approach ?..
>
> Thanks,
> Mohan
>
>
>
>> On Tue, Jun 7, 2016 at 12:32 PM, Damith Wickramasinghe 
>> wrote:
>>
>>> Hi Johann and all,
>>>
>>> Our decided approach was to send a empty string for all the cases from
>>> IS side and from DAS after retrieving data, provide a default string with
>>> some style to show that its a special empty case. But in lucene we cannot
>>> have empty attributes since they cannot be indexed and search will not work
>>> for them. Our next option is to provide a standard naming for a default
>>> value and also provide some configuration in IS to change it if needed.
>>> WDYT ?
>>>
>>> Regards,
>>> Damith.
>>>
>>> On Mon, Jun 6, 2016 at 7:19 PM, Damith Wickramasinghe 
>>> wrote:
>>>
 Hi,

 When it comes to authentication scenarios in some cases we cannot
 specify roles etc to publishing events eg:- non existing user tried to
 login with username and password. Then for the said events roles attribute
 will be empty/null  .

 Also as discussed with Pulasthi there can be other attributes as well
 which can be empty or null. For all those scenarios we need to show a
 authentication failure count for all the dimensions of User, Role,
 IdentityProvider etc.For that we need a constant String which can be used
 to show the respective fail counts.  Having a constant value like
 "NOT-AVAILABLE" can be sent from IS side or populated from DAS side but any
 user can create an username of any sort . eg:NOT-AVAILABLE .So there can be
 issues in calculating authentication failure counts.

 Any insights on handling such scenarios ?

 Regards,
 Damith.

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

 mobile: *+94728671315 <%2B94728671315>*


>>>
>>>
>>> --
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> 
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94728671315 <%2B94728671315>*
>>>
>>>
>>
>>
>> --
>> Hasintha Indrajee
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 771892453
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 

*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] Use of WSO2_ANALYTICS_FS_DB in WSO2 DAS

2016-06-08 Thread Sachith Withana
Hi Dulitha,

The doc you are referring to is for DAS 3.0.0 NOT DAS 3.0.1.
Refer to [1] for DAS 3.0.1 docs.

In DAS 3.0.0, ANALYTICS_FS_DB is used to store the index data.

But from 3.0.1 onwards, we are storing those data in the local filesystem,
not in a database.
That's why we have removed the FS_DB from the latest release.
So you don't have to configure the ANALYTICS_FS_DB in DAS 3.0.1.

[1] https://docs.wso2.com/display/DAS301/Configuring+Data+Persistence

Regards,
Sachith

On Wed, Jun 8, 2016 at 2:54 PM, Dulitha Wijewantha  wrote:

> Hi guys,
> The doc [1] mentions that there are 3 event stores in DAS. In DAS 3.0.1
> vanila pack - there are only 2 datasources that are configured
> [WSO2_ANALYTICS_EVENT_STORE_DB,  WSO2_ANALYTICS_PROCESSED_DATA_STORE_DB].
> Does that mean that the Indexing meta data is stored in
> WSO2_ANALYTICS_EVENT_STORE_DB datasource?
>
> The doc [1] currently  also mentions about WSO2_ANALYTICS_FS_DB which is
> configured for the analytics file system (am I to assume this as another
> datasource?)
>
> 
> >org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsFileSystem implementation>
>
>  
>  WSO2_ANALYTICS_FS_DB
>  large_dataset_optimized
>
> 
> What is the production recommendation? Keep 3 datasources separately for
> the 3 event stores?
>
> [1] - https://docs.wso2.com/display/DAS300/Configuring+Data+Persistence
>
> Cheers~
>
> --
> Dulitha Wijewantha (Chan)
> Software Engineer - Mobile Development
> WSO2 Inc
> Lean.Enterprise.Middleware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me *
> *  ~Twitter @dulitharw *
>   *~Github @dulichan *
>   *~SO @chan *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sachith Withana
Software Engineer; WSO2 Inc.; http://wso2.com
E-mail: sachith AT wso2.com
M: +94715518127
Linked-In: https://lk.linkedin.com/in/sachithwithana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Use of WSO2_ANALYTICS_FS_DB in WSO2 DAS

2016-06-08 Thread Dulitha Wijewantha
Hi guys,
The doc [1] mentions that there are 3 event stores in DAS. In DAS 3.0.1
vanila pack - there are only 2 datasources that are configured
[WSO2_ANALYTICS_EVENT_STORE_DB,  WSO2_ANALYTICS_PROCESSED_DATA_STORE_DB].
Does that mean that the Indexing meta data is stored in
WSO2_ANALYTICS_EVENT_STORE_DB datasource?

The doc [1] currently  also mentions about WSO2_ANALYTICS_FS_DB which is
configured for the analytics file system (am I to assume this as another
datasource?)


   org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsFileSystem
   
 
 WSO2_ANALYTICS_FS_DB
 large_dataset_optimized
   

What is the production recommendation? Keep 3 datasources separately for
the 3 event stores?

[1] - https://docs.wso2.com/display/DAS300/Configuring+Data+Persistence

Cheers~

-- 
Dulitha Wijewantha (Chan)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Middleware
 * ~Email   duli...@wso2.com *
*  ~Mobile +94712112165*
*  ~Website   dulitha.me *
*  ~Twitter @dulitharw *
  *~Github @dulichan *
  *~SO @chan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IOT] [wso2iots-1.0.0-alpha] Continues errors getting print after sometimes without valid reason

2016-06-08 Thread Dushan Abeyruwan
Hi Devs,
   $subject

[2016-06-08 11:55:49,431]  INFO - ProtocolProcessor Lost connection with
client -9708-6bd5--99d603a9:android_sense
[2016-06-08 11:55:49,431]  WARN - ProtocolProcessor
MQTTAuthorizationSubject for client ID
-9708-6bd5--99d603a9:android_sense is not removed since the
entry does not exist
[2016-06-08 11:55:49,443]  WARN - ProtocolProcessor Andes does not support
last will operation
[2016-06-08 11:55:49,457]  INFO - ProtocolProcessor Lost connection with
client -9708-6bd5--99d603a9:android_sense
[2016-06-08 11:55:49,458]  WARN - ProtocolProcessor
MQTTAuthorizationSubject for client ID
-9708-6bd5--99d603a9:android_sense is not removed since the
entry does not exist
[2016-06-08 11:55:49,893]  WARN - ProtocolProcessor Andes does not support
last will operation
[2016-06-08 11:55:49,900]  INFO - ProtocolProcessor Lost connection with
client -9708-6bd5--99d603a9:android_sense
[2016-06-08 11:55:49,900]  WARN - ProtocolProcessor
MQTTAuthorizationSubject for client ID
-9708-6bd5--99d603a9:android_sense is not removed since the
entry does not exist
[2016-06-08 11:55:49,917]  WARN - ProtocolProcessor Andes does not support
last will operation
[2016-06-08 11:55:49,924]  INFO - ProtocolProcessor Lost connection with
client -9708-6bd5--99d603a9:android_sense
[2016-06-08 11:55:49,924]  WARN - ProtocolProcessor
MQTTAuthorizationSubject for client ID
-9708-6bd5--99d603a9:android_sense is not removed since the
entry does not exist
[2016-06-08 11:55:50,031]  WARN - ProtocolProcessor Andes does not support
last will operation
[2016-06-08 11:55:50,041]  INFO - ProtocolProcessor Lost connection with
client -9708-6bd5--99d603a9:android_sense
[2016-06-08 11:55:50,041]  WARN - ProtocolProcessor
MQTTAuthorizationSubject for client ID
-9708-6bd5--99d603a9:android_sense is not removed since the
entry does not exist
[2016-06-08 11:55:50,058]  WARN - ProtocolProcessor Andes does not support
last will operation
[2016-06-08 11:55:50,068]  INFO - ProtocolProcessor Lost connection with
client -9708-6bd5--99d603a9:android_sense
[2016-06-08 11:55:50,069]  WARN - ProtocolProcessor
MQTTAuthorizationSubject for client ID
-9708-6bd5--99d603a9:android_sense is not removed since the
entry does not exist
[2016-06-08 11:55:50,395]  WARN - ProtocolProcessor Andes does not support
last will operation
[2016-06-08 11:55:50,403]  INFO - ProtocolProcessor Lost connection with
client -9708-6bd5--99d603a9:android_sense
[2016-06-08 11:55:50,403]  WARN - ProtocolProcessor
MQTTAuthorizationSubject for client ID
-9708-6bd5--99d603a9:android_sense is not removed since the
entry does not exist
[2016-06-08 11:55:50,411]  WARN - ProtocolProcessor Andes does not support
last will operation
[2016-06-08 11:55:50,419]  INFO - ProtocolProcessor Lost connection with
client -9708-6bd5--99d603a9:android_sense

https://github.com/wso2/product-iots/releases/tag/v1.0.0-alpha
-- 
Dushan Abeyruwan | Senior Technical Lead
Technical Support,MV
PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:*http://www.dushantech.com/ *
LinkedIn:*https://www.linkedin.com/in/dushanabeyruwan
*
Mobile:(001)408-791-9312
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Emm Alpha 2.1.0 first Build Errors Pls Help

2016-06-08 Thread Darshana Gunawardana
Hi Caleb,

Can you specify from where do you get the source? Are you building from
2.1.0 alpha tag[1]?

[1] https://github.com/wso2/product-emm/tree/v2.1.0-alpha

Regards,

On Wed, Jun 8, 2016 at 5:29 PM, First NameTangwe Caleb <
tangweca...@yahoo.com> wrote:

> I Downloaded the latest release Emm Alpha 2.1.0 and on running build "mvn
> install" thats my error pls help
>
>
>
> *[INFO] 33 errors*
> *[INFO] -*
> *[INFO]
> *
> *[INFO] Reactor Summary:*
> *[INFO]*
> *[INFO] WSO2 MDM - Parent .. SUCCESS [
>  1.995 s]*
> *[INFO] WSO2 MDM - Mobile Device Management Admin Services . FAILURE [
> 23.470 s]*
> *[INFO] wso2mdm-product-mobileservices . SKIPPED*
> *[INFO] JAX-RS Windows API . SKIPPED*
> *[INFO] JAX-RS Android API . SKIPPED*
> *[INFO] WSO2 EMM - Enterprise Mobility Manager End-user Web Application
> SKIPPED*
> *[INFO] WSO2 EMM - Enterprise Mobility Manager Web Agent ... SKIPPED*
> *[INFO] WSO2 Mobile Device Manager (MDM) - UI styles ... SKIPPED*
> *[INFO] WSO2 Mobile Device Manager (MDM) Features .. SKIPPED*
> *[INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  SKIPPED*
> *[INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. SKIPPED*
> *[INFO] WSO2 Mobile Device Manager (MDM) - Distribution  SKIPPED*
> *[INFO] WSO2 MDM - Integration Tests ... SKIPPED*
> *[INFO] WSO2 MDM Integration Test Common ... SKIPPED*
> *[INFO] WSO2 MDM Integration Test Common ... SKIPPED*
> *[INFO] WSO2 MDM - Integration Admin Clients ... SKIPPED*
> *[INFO] WSO2 MDM - Integration Test Utils .. SKIPPED*
> *[INFO] WSO2 MDM - Integration Test UI Pages ... SKIPPED*
> *[INFO] WSO2 MDM Backend Integration Tests . SKIPPED*
> *[INFO] WSO2 MDM - Integration Test UI Module .. SKIPPED*
> *[INFO] WSO2 MDM Platform Integration Tests  SKIPPED*
> *[INFO]
> *
> *[INFO] BUILD FAILURE*
> *[INFO]
> *
> *[INFO] Total time: 27.131 s*
> *[INFO] Finished at: 2016-06-08T12:39:47+01:00*
> *[INFO] Final Memory: 67M/1279M*
> *[INFO]
> *
> *[ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
> (default-compile) on project mdm-admin: Compilation failure: Compilation
> failure:*
> *[ERROR]
> \JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[71,10]
> error: exception SQLException is never thrown in body of corresponding try
> statement*
> *[ERROR]*
> *[ERROR]
> \JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[88,10]
> error: exception SQLException is never thrown in body of corresponding try
> statement*
> *[ERROR]*
> *[ERROR]
> \JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[70,68]
> error: unreported exception DataAccessLayerException; must be caught or
> declared to be thrown*
> *[ERROR]*
> *[ERROR]
> \JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[87,104]
> error: unreported exception DataAccessLayerException; must be caught or
> declared to be thrown*
> *[ERROR]*
> *[ERROR]
> \JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[116,10]
> error: exception SQLException is never thrown in body of corresponding try
> statement*
> *[ERROR]*
> *[ERROR]
> \JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[115,112]
> error: unreported exception DataAccessLayerException; must be caught or
> declared to be thrown*
> *[ERROR]*
> *[ERROR]
> \JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[154,10]
> error: exception SQLException is never thrown in body of corresponding try
> statement*
> *[ERROR]*
> *[ERROR]
> \JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[146,53]
> error: unreported exception DataAccessLayerException; must be caught or
> declared to be thrown*
> *[ERROR]*
> *[ERROR]
> \JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[200,10]
> error: exception SQLException is never thrown in body of corresponding try
> statement*
> *[ERROR]*
> *[ERROR]
> 

Re: [Dev] NoClassDefFoundError: org/wso2/carbon/analytics/dataservice/AnalyticsDataService on api manager analytic server

2016-06-08 Thread Nirmal Fernando
Hi Shavantha,

Which pack are you trying? And this happened in a vanilla pack?

On Wed, Jun 8, 2016 at 8:17 PM, Shavantha Weerasinghe 
wrote:

> Hi All
>
> The below mentioned exception is thrown on api manager analytics server
>
>
> [2016-06-08 14:40:18,030]  INFO
> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
> Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@42a767dc:
> defining beans
> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,analyticsServices,analyticsBean,analyticsExceptionMapper,analyticsIndexExceptionMapper,analyticsTableNotFoundExceptionMapper,analyticsTimeoutExceptionMapper,jacksonJsonProvider,httpHeadersOutInterceptor];
> root of factory hierarchy
> [2016-06-08 14:40:18,226]  INFO
> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
> Destroying singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@42a767dc:
> defining beans
> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,analyticsServices,analyticsBean,analyticsExceptionMapper,analyticsIndexExceptionMapper,analyticsTableNotFoundExceptionMapper,analyticsTimeoutExceptionMapper,jacksonJsonProvider,httpHeadersOutInterceptor];
> root of factory hierarchy
> [2016-06-08 14:40:18,228] ERROR
> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'analyticsServices': Cannot resolve reference to bean
> 'analyticsBean' while setting bean property 'serviceBeans' with key [0];
> nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'analyticsBean' defined in URL
> [jndi:/localhost/analytics/WEB-INF/cxf-servlet.xml]: Instantiation of bean
> failed; nested exception is java.lang.NoClassDefFoundError:
> org/wso2/carbon/analytics/dataservice/AnalyticsDataService
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
> at
> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:151)
> at
> org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:76)
> at
> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550)
> at 

Re: [Dev] [CEP][MB][ANALYTICS][APIM] couldn't connect to the MB, Analytics Components when email user name enabled

2016-06-08 Thread Pamod Sylvester
Hi Tharindu,

To further elaborate, AMQP connection URL is in the following format [1],

*amqp://[:@][][?=''[&=&'']]*

'@' character is used to partition between client credentials with the rest
of the uri. hence having the '@' for the user name (email as user name)
would violate the specification.

As Indika explained we use '!' character as an alternative to the
restricted character '@' to identify tenant users. Hence, when you send a
user name as *"foo!bar.com "*  it would try to find a user
*foo* in tenant *bar.com * instead of finding the user
in *super
tenant* by email *'f...@bar.com '*. That would be the possible
reason for you to get the error "invalid tenant domain".

[1]
https://qpid.apache.org/releases/qpid-0.30/jms-client-0-8/book/JMS-Client-0-8-Connection-URL.html

Thanks,
Pamod

On Wed, Jun 8, 2016 at 6:59 PM, Tharindu Dharmarathna 
wrote:

> Hi All,
>
> In APIM 2.0 Snapshot Pack we have got issue when authenticate with the
> CEP, DAS and MB components.
>
>
> *CEP and DAS Components*
>
> As per the debugging session with Mohan we have found when we authenticate
> the email user from [1] , It will not proper username with tenant domain
> which caused to get the invalid tenant domain from [2].
>
> *MB Components*
>
>  When we do authentication request with MB it will not suppose to send the
> email user in connection url since its a restricted character. As per the
> Pamod pointed out we had replace the '@' mark with '!' in order to overcome
> that issue . But this was not getting worked as correctly.
>
> Can any one give any clue to overcome this issue.
>
>
> [1] -
> https://github.com/wso2/carbon-analytics-common/blob/release-5.0.12-alpha/components/data-bridge/org.wso2.carbon.databridge.core/src/main/java/org/wso2/carbon/databridge/core/internal/authentication/CarbonAuthenticationHandler.java#L51
>
> [2] -
> https://github.com/wso2/carbon-commons/blob/v4.4.8/components/authentication/org.wso2.carbon.identity.authentication/src/main/java/org/wso2/carbon/identity/authentication/AuthenticationServiceImpl.java#L59
>
>
> --
>
> *Tharindu Dharmarathna*Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <%2B94779109091>*
>



-- 
*Pamod Sylvester *

*WSO2 Inc.; http://wso2.com *
cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting JMS Version gloably

2016-06-08 Thread Manuranga Perera
Hi Eranda,
In the doc, it shows how to setup JMS 2 listener proxy via inline parmas
[1] [2]. Which one is correct, the doc or above claim?

Hi ESB Team,
Please re-consider supporting JMS 2 via axis2 xml as well, since setting up
a large number of inbounds are hard to manage. Eg: If I need to change the
URL I need to change each.

[1]
https://docs.google.com/document/d/1AqiLBLenl68WTKwoC0HLliYPfIBSWCFMy8BH7Vh8ZNw/edit
[2]
https://docs.google.com/document/d/17Q6B60KYrU53YfxPyML_YKZftCrNWH_YTtG8r7bBwcA/edit

On Wed, Jun 8, 2016 at 1:40 AM, Ravindra Ranwala  wrote:

> Hi Manu,
>
> Vijitha's comment is valid. As per the offline discussion I had with
> ErandaR and PrabathAR, JMS 2.0 shared subscription feature is not
> implemented for JMS Proxy services (in axis2 transport listener side) since
> it will be deprecated in future. Therefore it is available for JMS Inbound
> Endpoints only. If you have lots of JMS proxies we may need to migrate them
> into JMS Inbound Endpoints.
>
>
> Thanks & Regards,
>
> On Wed, Jun 8, 2016 at 11:00 AM, Vijitha Ekanayake 
> wrote:
>
>> Hi Manu/Dilshani,
>>
>> According to the current implementation It seems, we haven't done any
>> changes in JMSTransportListener side. JMS 2.0 listener implementation is
>> supported as JMS inbound endpoint and sender implementation support on JMS
>> transport sender. You can refer mail thread[1] for more details.
>>
>> [1]. [Architecture] [GSoC] JMS 2.0 support for WSO2 ESB JMS Inbound
>> Endpoint and JMS Transport
>>
>> Thanks.
>>
>> On Wed, Jun 8, 2016 at 8:58 AM, Dilshani Subasinghe 
>> wrote:
>>
>>> Hi Manuranga,
>>>
>>> According to documentation, Yes we can set that. But I notice that, it
>>> doesn't validate through the value given globally. For example, even I set
>>> up JMS Version as 2.0 globally, it doesn't take that value.
>>>
>>> Within the source (ServiceTaskManager.java) it seem to hard coded.
>>>
>>>
>>> */** Should this service use JMS 1.1 ? (when false, defaults to 1.0.2b)
>>> */private boolean jmsSpec11 = true;*
>>>
>>> @Vijitha - Hope you may explain the actual scenario ?
>>>
>>> Regards,
>>> Dilshani
>>>
>>>
>>> On Wed, Jun 8, 2016 at 1:25 AM, Manuranga Perera  wrote:
>>>
 Hi Ravindra/Dilshani,
 Can we set transport.jms.JMSSpecVersion globally (ie: via axis2.xml)?

 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

>>>
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Dilshani Subasinghe
>>> Software Engineer - QA
>>> WSO2, Inc.;http://wso2.com/
>>> 
>>> lean.enterprise.middleware
>>> Mobile: +94773375185
>>> Blog: dilshanilive.blogspot.com
>>>
>>
>>
>>
>> --
>> Vijitha Ekanayake
>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>> lean.enterprise.middleware
>>
>
>
>
> --
> Ravindra Ranwala
> Software Engineer
> WSO2, Inc: http://wso2.com
> 
> Mobile: +94714198770
>
>


-- 
With regards,
*Manu*ranga Perera.

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


[Dev] NoClassDefFoundError: org/wso2/carbon/analytics/dataservice/AnalyticsDataService on api manager analytic server

2016-06-08 Thread Shavantha Weerasinghe
Hi All

The below mentioned exception is thrown on api manager analytics server


[2016-06-08 14:40:18,030]  INFO
{org.springframework.beans.factory.support.DefaultListableBeanFactory} -
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@42a767dc:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,analyticsServices,analyticsBean,analyticsExceptionMapper,analyticsIndexExceptionMapper,analyticsTableNotFoundExceptionMapper,analyticsTimeoutExceptionMapper,jacksonJsonProvider,httpHeadersOutInterceptor];
root of factory hierarchy
[2016-06-08 14:40:18,226]  INFO
{org.springframework.beans.factory.support.DefaultListableBeanFactory} -
Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@42a767dc:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,analyticsServices,analyticsBean,analyticsExceptionMapper,analyticsIndexExceptionMapper,analyticsTableNotFoundExceptionMapper,analyticsTimeoutExceptionMapper,jacksonJsonProvider,httpHeadersOutInterceptor];
root of factory hierarchy
[2016-06-08 14:40:18,228] ERROR
{org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'analyticsServices': Cannot resolve reference to bean
'analyticsBean' while setting bean property 'serviceBeans' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'analyticsBean' defined in URL
[jndi:/localhost/analytics/WEB-INF/cxf-servlet.xml]: Instantiation of bean
failed; nested exception is java.lang.NoClassDefFoundError:
org/wso2/carbon/analytics/dataservice/AnalyticsDataService
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:151)
at
org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:76)
at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at

Re: [Dev] ESB Blocking call mediator

2016-06-08 Thread Godwin Shrimal
Hi Kathees,

My requirement is to use key-expression in blocking mode.

@Isuru : Do we have any workaround/alternatives to achieve this ?

Thanks
Godwin


On Tue, Jun 7, 2016 at 11:22 PM, Kathees Rajendram  wrote:

> Hi Godwin,
>
> Call mediator blocking mode supportes indirect URL with key as you
> mensioned above. Can you define the key expression in the endpoint.
>
> 
> 
> 
>
> @Isuru
> Yes, call mediator with the combination of blocking=true and
> key-expression in endpoint is not supported directly. We can use above
> approach.
>
> Thanks,
> Kathees
>
> On Wed, Jun 8, 2016 at 6:27 AM, Isuru Udana  wrote:
>
>> Hi Godwin,
>>
>> I think key-expressions are not supported in blocking mode.
>> @Kathees,
>> Can you please confirm ?
>>
>> Thanks.
>>
>> On Wed, Jun 8, 2016 at 3:08 AM, Godwin Shrimal  wrote:
>>
>>> Hi All,
>>>
>>> When I use call mediator in my sequence as below it gives error [1].
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>> If I change the code as any of below, its works fine.
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> Do we have a problem in Call mediator with the combination of *blocking=true
>>> *and *key-expression *in endpoint ?
>>>
>>>
>>> [1] org.apache.synapse.SynapseException: Error while performing the call
>>> operation
>>> at
>>> org.apache.synapse.mediators.builtin.CallMediator.handleFault(CallMediator.java:306)
>>> at
>>> org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:119)
>>> at
>>> org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:85)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>>> at
>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>>> at
>>> org.apache.synapse.message.processor.impl.sampler.SamplingService$1.run(SamplingService.java:211)
>>> 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)
>>> Caused by: java.lang.NullPointerException
>>> at
>>> org.apache.synapse.message.senders.blocking.BlockingMsgSender.send(BlockingMsgSender.java:114)
>>> at
>>> org.apache.synapse.mediators.builtin.CallMediator.handleBlockingCall(CallMediator.java:113)
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>
>>
>>
>> --
>> *Isuru Udana*
>> Technical Lead
>> WSO2 Inc.; http://wso2.com
>> email: isu...@wso2.com cell: +94 77 3791887
>> blog: http://mytecheye.blogspot.com/
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: WSO2 API Manager 2.0.0 BETA Released!

2016-06-08 Thread Bhathiya Jayasekara
On Wed, Jun 8, 2016 at 6:53 PM, Amila De Silva  wrote:

>
> *WSO2 API Manager 2.0.0 BETA Released!*
>
>
> We are pleased to announce the BETA release of WSO2 API Manager 2.0.0.
>
> WSO2 API Manager is a complete solution for designing and publishing APIs,
> securing and routing API traffic in a scalable way, whilst nurturing a
> developer community around the API ecosystem.
>
> This release comes with both the runtime and analytics, providing
> out-of-the-box support for API usage and performance analysis. You can
> download these distributions below.
>
> Runtime  - wso2am-2.0.0-BETA.zip
> 
> Analytics - wso2analytics-apim-1.0.0-beta.zip
> 
>
>
>
> *Improvements and Bug Fixes*
>
> Improvements
>
>-
>
>[APIMANAGER-3816 ] -
>Admin Dashboard URL to be included in the list of services available on the
>carbon message console
>-
>
>[APIMANAGER-4475 ] - API
>authentication error response should bear the message type provided the
>Accept header of the request
>-
>
>[APIMANAGER-4595 ] -
>Message type of "invalid token" error message should change based on the
>Content-Type Header
>-
>
>[APIMANAGER-4600 ] -
>Provide a configuration to allow for disabling the Forum in the API Store 
> UI
>-
>
>[APIMANAGER-4719 ] -
>Error message doesn't convey it's purpose in API Versioning
>-
>
>[APIMANAGER-4737 ] -
>Remove the ( ) brackets when a description is not given for an
>applicationlevel tier
>-
>
>[APIMANAGER-4740 ] -
>Remove Exception thrown when subscribing to blocked subscription
>-
>
>[APIMANAGER-4852 ] -
>system should allow to delete alerts that are shown on admin dashboard
>-
>
>[APIMANAGER-4893 ] -
>Revisit the UI of "Add Subscription Tier"
>-
>
>[ANLYAPIM-20 ] - New theme
>needed for API Analytics
>-
>
>[ANLYAPIM-20 ] - New theme
>needed for API Analytics
>
> Bug Fixes
>
>-
>
>[APIMANAGER-2522 ] -
>Wrong rights for the Implement Stage for creator role
>-
>
>[APIMANAGER-2688 ] -
>Forum topic search issue
>-
>
>[APIMANAGER-2703 ] -
>Blank drop down menu and wrong caption in the absence of tier permission
>for the logged in user
>-
>
>[APIMANAGER-2922 ] - JWT
>TokenGeneration Certificate Header Parameter x5t encoding.
>-
>
>[APIMANAGER-4117 ] - exp
>claim in JWT does not comply with rfc7519
>-
>
>[APIMANAGER-4242 ] - API
>Custom Mediation Sequences Doesn't Foward the Call To Taget Endpoint When a
>Call Mediator is Used
>-
>
>[APIMANAGER-4325 ] -
>Carbon console shows inconsistent error log for subsequent invocations when
>access token is expired.
>-
>
>[APIMANAGER-4468 ] -
>ERROR - NativeWorkerPool Uncaught exception
>-
>
>[APIMANAGER-4534 ] -
>APIConsole is not showing response content type,even we set a value for
>'produces' attribute in APIPublisher
>-
>
>[APIMANAGER-4554 ] -
>grant_type=refresh_token fails on 1.10 with message Error decoding
>authorization header. Space delimited " " format
>violated.
>-
>
>[APIMANAGER-4583 ] -
>AddComment in Store is not working with MySQL
>-
>
>[APIMANAGER-4584 ] -
>Environment dropdown of API Console does not appear in IE11
>-
>
>[APIMANAGER-4590 ] -
>Invalid Access Token, if RemoveOAuthHeader is false
>-
>
>[APIMANAGER-4621 ] - API
>resource name contains "*" character and not validate that in the design
>phase (UI level)
>-
>
>[APIMANAGER-4625 ] -
>

[Dev] [CEP][MB][ANALYTICS][APIM] couldn't connect to the MB, Analytics Components when email user name enabled

2016-06-08 Thread Tharindu Dharmarathna
Hi All,

In APIM 2.0 Snapshot Pack we have got issue when authenticate with the CEP,
DAS and MB components.


*CEP and DAS Components*

As per the debugging session with Mohan we have found when we authenticate
the email user from [1] , It will not proper username with tenant domain
which caused to get the invalid tenant domain from [2].

*MB Components*

 When we do authentication request with MB it will not suppose to send the
email user in connection url since its a restricted character. As per the
Pamod pointed out we had replace the '@' mark with '!' in order to overcome
that issue . But this was not getting worked as correctly.

Can any one give any clue to overcome this issue.


[1] -
https://github.com/wso2/carbon-analytics-common/blob/release-5.0.12-alpha/components/data-bridge/org.wso2.carbon.databridge.core/src/main/java/org/wso2/carbon/databridge/core/internal/authentication/CarbonAuthenticationHandler.java#L51

[2] -
https://github.com/wso2/carbon-commons/blob/v4.4.8/components/authentication/org.wso2.carbon.identity.authentication/src/main/java/org/wso2/carbon/identity/authentication/AuthenticationServiceImpl.java#L59


-- 

*Tharindu Dharmarathna*Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94779109091 <%2B94779109091>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Messages on Dockerfiles build using default puppet provisioning

2016-06-08 Thread Chamila De Alwis
We are copying all the contents from the PUPPET_HOME to the inside of the
build container right now to keep the config scripts clean. Since these are
text files and doesn't take up a lot of download time, there's no impact if
we only download the product YAML or not.


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



On Wed, Jun 8, 2016 at 11:51 AM, Abhishek Tiwari <
abhishek.tiwari0...@gmail.com> wrote:

> Hi All,
>
> I recently built wso2mb docker image using puppet provisioning (default).
> The build was successful and I was able to launch the product, but I saw
> the following messages [1], which seems to indicate that yaml files from
> almost all the products were accessed.
>
> I haven't gone through the implementation yet, but I am curious as to why
> we are accessing yaml files from all the products while building a specific
> product.
>
> Thanks
> Abhishek
>
>
> [1].
> 172.17.0.2 - - [08/Jun/2016 11:41:08] "GET
> /hieradata/dev/wso2/wso2dss/3.5.0/default/worker.yaml HTTP/1.1" 200 -
> 2016-06-08 06:11:08 URL:
> http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/default/worker.yaml
> [1466/1466] -> "hieradata/dev/wso2/wso2dss/3.5.0/default/worker.yaml" [2]
> No data received.
> 172.17.0.2 - - [08/Jun/2016 11:41:09] "GET
> /hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/default.yaml HTTP/1.1" 200 -
> 2016-06-08 06:11:09 URL:
> http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/default.yaml
> [6804/6804] -> "hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/default.yaml"
> [2]
> No data received.
> 172.17.0.2 - - [08/Jun/2016 11:41:10] "GET
> /hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/manager.yaml HTTP/1.1" 200 -
> 2016-06-08 06:11:10 URL:
> http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/manager.yaml
> [1497/1497] -> "hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/manager.yaml"
> [2]
> No data received.
> 172.17.0.2 - - [08/Jun/2016 11:41:11] "GET
> /hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/worker.yaml HTTP/1.1" 200 -
> 2016-06-08 06:11:11 URL:
> http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/worker.yaml
> [1500/1500] -> "hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/worker.yaml" [2]
> No data received.
> 172.17.0.2 - - [08/Jun/2016 11:41:12] "GET
> /hieradata/dev/wso2/wso2es/2.0.0/default/default.yaml HTTP/1.1" 200 -
> 2016-06-08 06:11:12 URL:
> http://172.17.0.1:8000/hieradata/dev/wso2/wso2es/2.0.0/default/default.yaml
> [10013/10013] -> "hieradata/dev/wso2/wso2es/2.0.0/default/default.yaml" [2]
> No data received.
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: WSO2 API Manager 2.0.0 BETA Released!

2016-06-08 Thread Amila De Silva
*WSO2 API Manager 2.0.0 BETA Released!*


We are pleased to announce the BETA release of WSO2 API Manager 2.0.0.

WSO2 API Manager is a complete solution for designing and publishing APIs,
securing and routing API traffic in a scalable way, whilst nurturing a
developer community around the API ecosystem.

This release comes with both the runtime and analytics, providing
out-of-the-box support for API usage and performance analysis. You can
download these distributions below.

Runtime  - wso2am-2.0.0-BETA.zip

Analytics - wso2analytics-apim-1.0.0-beta.zip




*Improvements and Bug Fixes*

Improvements

   -

   [APIMANAGER-3816 ] - Admin
   Dashboard URL to be included in the list of services available on the
   carbon message console
   -

   [APIMANAGER-4475 ] - API
   authentication error response should bear the message type provided the
   Accept header of the request
   -

   [APIMANAGER-4595 ] -
   Message type of "invalid token" error message should change based on the
   Content-Type Header
   -

   [APIMANAGER-4600 ] -
   Provide a configuration to allow for disabling the Forum in the API Store UI
   -

   [APIMANAGER-4719 ] - Error
   message doesn't convey it's purpose in API Versioning
   -

   [APIMANAGER-4737 ] -
   Remove the ( ) brackets when a description is not given for an
   applicationlevel tier
   -

   [APIMANAGER-4740 ] -
   Remove Exception thrown when subscribing to blocked subscription
   -

   [APIMANAGER-4852 ] -
   system should allow to delete alerts that are shown on admin dashboard
   -

   [APIMANAGER-4893 ] -
   Revisit the UI of "Add Subscription Tier"
   -

   [ANLYAPIM-20 ] - New theme
   needed for API Analytics
   -

   [ANLYAPIM-20 ] - New theme
   needed for API Analytics

Bug Fixes

   -

   [APIMANAGER-2522 ] - Wrong
   rights for the Implement Stage for creator role
   -

   [APIMANAGER-2688 ] - Forum
   topic search issue
   -

   [APIMANAGER-2703 ] - Blank
   drop down menu and wrong caption in the absence of tier permission for the
   logged in user
   -

   [APIMANAGER-2922 ] - JWT
   TokenGeneration Certificate Header Parameter x5t encoding.
   -

   [APIMANAGER-4117 ] - exp
   claim in JWT does not comply with rfc7519
   -

   [APIMANAGER-4242 ] - API
   Custom Mediation Sequences Doesn't Foward the Call To Taget Endpoint When a
   Call Mediator is Used
   -

   [APIMANAGER-4325 ] -
   Carbon console shows inconsistent error log for subsequent invocations when
   access token is expired.
   -

   [APIMANAGER-4468 ] - ERROR
   - NativeWorkerPool Uncaught exception
   -

   [APIMANAGER-4534 ] -
   APIConsole is not showing response content type,even we set a value for
   'produces' attribute in APIPublisher
   -

   [APIMANAGER-4554 ] -
   grant_type=refresh_token fails on 1.10 with message Error decoding
   authorization header. Space delimited " " format
   violated.
   -

   [APIMANAGER-4583 ] -
   AddComment in Store is not working with MySQL
   -

   [APIMANAGER-4584 ] -
   Environment dropdown of API Console does not appear in IE11
   -

   [APIMANAGER-4590 ] -
   Invalid Access Token, if RemoveOAuthHeader is false
   -

   [APIMANAGER-4621 ] - API
   resource name contains "*" character and not validate that in the design
   phase (UI level)
   -

   [APIMANAGER-4625 ] - Links
   to documents and in Readme should be 2.0.0 (Latest documents)
   -

   [APIMANAGER-4630 ] -
   Rename Tier Availability in API Wizard manage page to Subscription Tiers
   -

   [APIMANAGER-4640 ] - Forum
   does not show all the 

Re: [Dev] Requesting icons to represent nullables - data mapper editor

2016-06-08 Thread Sohani Weerasinghe
Hi Dakshika,

Please find below suggestions about the created images

​
1. The icons ( attribute.png and attribute-null.png) seems bit larger than
others ( even the size is the same, the letter 'A' seems bit large) and
also it is highlighted (bold)
2. The icons (block.png and block-null.png) are also highlighted (bold)

Could you please reduce the letter size and unbold the icons? Appreciate if
you can recreate those icons and send

Thanks,
Sohani


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

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

On Wed, Jun 8, 2016 at 4:21 PM, Sohani Weerasinghe  wrote:

> Looks good. Thanks Dakshika
>
> Regards,
> Sohani
>
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Jun 8, 2016 at 3:25 PM, Dakshika Jayathilaka 
> wrote:
>
>> Hi Sohani,
>>
>> Please check attached images,
>>
>>
>> https://drive.google.com/a/wso2.com/folderview?id=0B2gQzqdJmYrmdkVueUN0LUF6QkU=sharing
>>
>> Regards,
>>
>>
>> *Dakshika Jayathilaka*
>> PMC Member & Committer of Apache Stratos
>> Associate Technical Lead
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Tue, Jun 7, 2016 at 2:01 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi Dakshika,
>>>
>>> There is a requirement to allow null values for arrays, objects,
>>> elements, attributes etc in json schema, and currently we are using the
>>> attached images to represent the those. (non nullables)
>>>
>>> Could we please get a new set of icons to represent *nullables* where
>>> those icons should have an additional symbol added to the attached images.
>>> (Please refer the below image)
>>>
>>> The symbol should be something which represents that the element is
>>> nullable.
>>>
>>>
>>> ​
>>> Thanks,
>>> Sohani
>>>
>>> Sohani Weerasinghe
>>> Senior Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pass environment variables in docker run.sh

2016-06-08 Thread Chamila De Alwis
+1

Could you add a Github issue to track this as an enhancement? This would be
a sought after functionality.


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



On Wed, Jun 8, 2016 at 5:24 PM, Gayan Gunarathne  wrote:

> Shall we update the run.sh in docker files to pass the environment
> variables?As an example sleep,debug that need to be pass as a environment
> variable.
> docker run -d -e SLEEP=1 --name wso2am wso2am:1.10.0
>
> [1]
> https://github.com/wso2/dockerfiles/blob/master/common/scripts/docker-run.sh#L153
>
>
> Thanks,
> Gayan
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-08 Thread Asantha Thilina
Hi Tharindu,

sorry i forget to attach my github repository here is the repository link i
have update the repository with my latest errors fixed
https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Wed, Jun 8, 2016 at 8:00 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> I have fixed the claims issue now it can update and add claims to user but
> still the db structure is same as in relational structure i have currently
> mapping it to a way we discussed ,most of the issues being fixed now
> following tasks can do in now MongoDBUserStoreManager
> can add users.
> can add roles.
> can assign roles to users.
> can assign users to roles.
> can edit user claim values in update profile.
> I creating the documentation of my MongoDBUserStoreManager as well sooner
> i will publish the document and also test scripts as well
> And also following are the issues now i facing in
> registered users in my user store domain can't login to the IS it's giving
> error as MongoDBUserStoreManager can't cast to AbstractUserStoreManager
> since i done MongoDBUserStoreManager by implementing the UserStoreManager
> is there any special changes to do in my code to authenticate user ? i
> debugged and see my doAuthenticate method not get triggered during runtime
> expect some advice from you
>
> Thanks,
> Asantha
>
> On Mon, Jun 6, 2016 at 1:18 AM, Asantha Thilina 
> wrote:
>
>> Hi Tharindu,
>>
>> ok sure i will modify the readme content as appropriately,at the moment i
>> didn't add that feature, set to all default i will modify that to add a
>> port number also,
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Jun 6, 2016 at 12:04 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Asantha,
>>>
>>> We might not need implementing the HybridRoleManager... I'll provide you
>>> the exact details after trying out the functionality you have implemented
>>> up to now.
>>>
>>> Can you please write a basic document with the steps for creating the
>>> mongodb database and adding a userstore in IS pointing to the created
>>> mongodb database and include in the ReadMe of github repo.
>>>
>>> Also if mongodb server is running in a different port other than the
>>> default port, can we still connect to that ? I didn't see a place to define
>>> the port in the configuration.. should it be added as a connection string ?
>>> (didn't go through the code to find what is going wrong)
>>>
>>> Thanks,
>>> TharinduE
>>>
>>> On Sun, Jun 5, 2016 at 11:55 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 As we discussed on hangout i doing the changes in UM_USER_ATTRIBUTE
 collection and also changing the hybrid role to master datasource but when
 i try to add user to hybrid role i facing a small issue i can't grab the
 datasource ,in HybridRoleManager class it need to give java.sql.DataSource
 but in my current user store manager class i have never used a sql
 datasource(since it nosql) so i think i need to grab the master datasource
 of IS which is h2 database datasource, is there a way to get the primary
 datasource?

 Thanks,
 Asantha

 On Sat, Jun 4, 2016 at 1:59 PM, Tharindu Edirisinghe <
 tharin...@wso2.com> wrote:

> The call details are as following.
>
> 1. Demonstrated how to use WSO2 admin services.
>
> 2. All the user operations in *RemoteUserStoreManagerService *[1]
> should be tested (using SOAP UI) for the mongodb userstore.
>
> 3. When the user profile is saved in a JDBC userstore, for each
> attribute of the user, it will add a new entry in *UM_USER_ATTRIBUTE 
> **(Refer
> [2] for more information) *like below.
>
>
> +---+--+-+---++--+
> | UM_ID | UM_ATTR_NAME | UM_ATTR_VALUE   | UM_PROFILE_ID |
> UM_USER_ID | UM_TENANT_ID |
>
> +---+--+-+---++--+
> | 1 | im   | | default
> |  1 |-1234 |
> | 2 | region   | Western | default
> |  1 |-1234 |
> | 3 | streetAddress| | default
> |  1 |-1234 |
> | 4 | country  | | default
> |  1 |-1234 |
> | 5 | mobile   | | default
> |  1 |-1234 |
> | 6 | sn   | NewLastname | default
> |  1 |-1234 |
> | 7 | profileConfiguration | default | default
> |  1 |-1234 |
> | 8 | dateOfBirth  | | default
> |  1 |-1234 |
> | 9 | mail | newu...@new.com | default
> |  1 |-1234 |
> |  

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-08 Thread Asantha Thilina
Hi Tharindu,

I have fixed the claims issue now it can update and add claims to user but
still the db structure is same as in relational structure i have currently
mapping it to a way we discussed ,most of the issues being fixed now
following tasks can do in now MongoDBUserStoreManager
can add users.
can add roles.
can assign roles to users.
can assign users to roles.
can edit user claim values in update profile.
I creating the documentation of my MongoDBUserStoreManager as well sooner i
will publish the document and also test scripts as well
And also following are the issues now i facing in
registered users in my user store domain can't login to the IS it's giving
error as MongoDBUserStoreManager can't cast to AbstractUserStoreManager
since i done MongoDBUserStoreManager by implementing the UserStoreManager
is there any special changes to do in my code to authenticate user ? i
debugged and see my doAuthenticate method not get triggered during runtime
expect some advice from you

Thanks,
Asantha

On Mon, Jun 6, 2016 at 1:18 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> ok sure i will modify the readme content as appropriately,at the moment i
> didn't add that feature, set to all default i will modify that to add a
> port number also,
>
> Thanks,
> Asantha
>
> On Mon, Jun 6, 2016 at 12:04 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> We might not need implementing the HybridRoleManager... I'll provide you
>> the exact details after trying out the functionality you have implemented
>> up to now.
>>
>> Can you please write a basic document with the steps for creating the
>> mongodb database and adding a userstore in IS pointing to the created
>> mongodb database and include in the ReadMe of github repo.
>>
>> Also if mongodb server is running in a different port other than the
>> default port, can we still connect to that ? I didn't see a place to define
>> the port in the configuration.. should it be added as a connection string ?
>> (didn't go through the code to find what is going wrong)
>>
>> Thanks,
>> TharinduE
>>
>> On Sun, Jun 5, 2016 at 11:55 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> As we discussed on hangout i doing the changes in UM_USER_ATTRIBUTE
>>> collection and also changing the hybrid role to master datasource but when
>>> i try to add user to hybrid role i facing a small issue i can't grab the
>>> datasource ,in HybridRoleManager class it need to give java.sql.DataSource
>>> but in my current user store manager class i have never used a sql
>>> datasource(since it nosql) so i think i need to grab the master datasource
>>> of IS which is h2 database datasource, is there a way to get the primary
>>> datasource?
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Sat, Jun 4, 2016 at 1:59 PM, Tharindu Edirisinghe >> > wrote:
>>>
 The call details are as following.

 1. Demonstrated how to use WSO2 admin services.

 2. All the user operations in *RemoteUserStoreManagerService *[1]
 should be tested (using SOAP UI) for the mongodb userstore.

 3. When the user profile is saved in a JDBC userstore, for each
 attribute of the user, it will add a new entry in *UM_USER_ATTRIBUTE 
 **(Refer
 [2] for more information) *like below.


 +---+--+-+---++--+
 | UM_ID | UM_ATTR_NAME | UM_ATTR_VALUE   | UM_PROFILE_ID |
 UM_USER_ID | UM_TENANT_ID |

 +---+--+-+---++--+
 | 1 | im   | | default
 |  1 |-1234 |
 | 2 | region   | Western | default
 |  1 |-1234 |
 | 3 | streetAddress| | default
 |  1 |-1234 |
 | 4 | country  | | default
 |  1 |-1234 |
 | 5 | mobile   | | default
 |  1 |-1234 |
 | 6 | sn   | NewLastname | default
 |  1 |-1234 |
 | 7 | profileConfiguration | default | default
 |  1 |-1234 |
 | 8 | dateOfBirth  | | default
 |  1 |-1234 |
 | 9 | mail | newu...@new.com | default
 |  1 |-1234 |
 |10 | organizationName | WSO2| default
 |  1 |-1234 |
 |11 | givenName| NewUser | default
 |  1 |-1234 |
 |12 | province | western | default
 |  1 |-1234 |

 +---+--+-+---++--+

 Performance wise this is 

[Dev] Emm Alpha 2.1.0 first Build Errors Pls Help

2016-06-08 Thread First NameTangwe Caleb
I Downloaded the latest release Emm Alpha 2.1.0 and on running build "mvn 
install" thats my error pls help


[INFO] 33 errors[INFO] 
-[INFO] 
[INFO] 
Reactor Summary:[INFO][INFO] WSO2 MDM - Parent 
.. SUCCESS [  1.995 s][INFO] WSO2 MDM - Mobile 
Device Management Admin Services . FAILURE [ 23.470 s][INFO] 
wso2mdm-product-mobileservices . SKIPPED[INFO] JAX-RS 
Windows API . SKIPPED[INFO] JAX-RS Android API 
. SKIPPED[INFO] WSO2 EMM - Enterprise Mobility 
Manager End-user Web Application SKIPPED[INFO] WSO2 EMM - Enterprise Mobility 
Manager Web Agent ... SKIPPED[INFO] WSO2 Mobile Device Manager (MDM) - UI 
styles ... SKIPPED[INFO] WSO2 Mobile Device Manager (MDM) Features 
.. SKIPPED[INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  
SKIPPED[INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. 
SKIPPED[INFO] WSO2 Mobile Device Manager (MDM) - Distribution  
SKIPPED[INFO] WSO2 MDM - Integration Tests ... 
SKIPPED[INFO] WSO2 MDM Integration Test Common ... 
SKIPPED[INFO] WSO2 MDM Integration Test Common ... 
SKIPPED[INFO] WSO2 MDM - Integration Admin Clients ... 
SKIPPED[INFO] WSO2 MDM - Integration Test Utils .. 
SKIPPED[INFO] WSO2 MDM - Integration Test UI Pages ... 
SKIPPED[INFO] WSO2 MDM Backend Integration Tests . 
SKIPPED[INFO] WSO2 MDM - Integration Test UI Module .. 
SKIPPED[INFO] WSO2 MDM Platform Integration Tests  
SKIPPED[INFO] 
[INFO] 
BUILD FAILURE[INFO] 
[INFO] 
Total time: 27.131 s[INFO] Finished at: 2016-06-08T12:39:47+01:00[INFO] Final 
Memory: 67M/1279M[INFO] 
[ERROR] 
Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) 
on project mdm-admin: Compilation failure: Compilation failure:[ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[71,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[88,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[70,68]
 error: unreported exception DataAccessLayerException; must be caught or 
declared to be thrown[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[87,104]
 error: unreported exception DataAccessLayerException; must be caught or 
declared to be thrown[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[116,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[115,112]
 error: unreported exception DataAccessLayerException; must be caught or 
declared to be thrown[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[154,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[146,53]
 error: unreported exception DataAccessLayerException; must be caught or 
declared to be thrown[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[200,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[223,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[192,82]
 error: unreported exception DataAccessLayerException; must be caught or 
declared to be thrown[ERROR][ERROR] 

[Dev] Pass environment variables in docker run.sh

2016-06-08 Thread Gayan Gunarathne
Shall we update the run.sh in docker files to pass the environment
variables?As an example sleep,debug that need to be pass as a environment
variable.
docker run -d -e SLEEP=1 --name wso2am wso2am:1.10.0

[1]
https://github.com/wso2/dockerfiles/blob/master/common/scripts/docker-run.sh#L153


Thanks,
Gayan

-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Error in activating analytics data service

2016-06-08 Thread Gimantha Bandara
Hi Suresh,

Have you properly configured the configuration files in
/repository/conf/analytics/ ? What is the DAS version you are using?

On Tue, Jun 7, 2016 at 9:22 PM, Suresh Thivanka Rupasinghe <
sureshthiva...@gmail.com> wrote:

> Hi,
>
> I'm trying to connect DAS with Hbase. but i get the following error
> message. here i attached the analytics-datasource.xml file for more details.
>
> [image: Inline image 1]
>
>
> Regards,
> Suresh
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Gimantha Bandara
Software Engineer
WSO2. Inc : http://wso2.com
Mobile : +94714961919
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting icons to represent nullables - data mapper editor

2016-06-08 Thread Sohani Weerasinghe
Looks good. Thanks Dakshika

Regards,
Sohani

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

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

On Wed, Jun 8, 2016 at 3:25 PM, Dakshika Jayathilaka 
wrote:

> Hi Sohani,
>
> Please check attached images,
>
>
> https://drive.google.com/a/wso2.com/folderview?id=0B2gQzqdJmYrmdkVueUN0LUF6QkU=sharing
>
> Regards,
>
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Associate Technical Lead
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Tue, Jun 7, 2016 at 2:01 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi Dakshika,
>>
>> There is a requirement to allow null values for arrays, objects,
>> elements, attributes etc in json schema, and currently we are using the
>> attached images to represent the those. (non nullables)
>>
>> Could we please get a new set of icons to represent *nullables* where
>> those icons should have an additional symbol added to the attached images.
>> (Please refer the below image)
>>
>> The symbol should be something which represents that the element is
>> nullable.
>>
>>
>> ​
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Integrity Constraint Violation Exception occurs when generating an access token when token partitioning is enabled.

2016-06-08 Thread Sewmini Jayaweera
Hi APIM Team,

I followed documentation [1] and configured token partitioning in my setup
[2]. I created 'IDN_OAUTH2_ACCESS_TOKEN_A', 'IDN_OAUTH2_ACCESS_TOKEN_B' and
IDN_OAUTH2_ACCESS_TOKEN_PRIMARY tables manually in AM DB.

E.X
CREATE TABLE IF NOT EXISTS IDN_OAUTH2_ACCESS_TOKEN_PRIMARY (
TOKEN_ID VARCHAR (255),
ACCESS_TOKEN VARCHAR(300),
REFRESH_TOKEN VARCHAR(300),
CONSUMER_KEY_ID INTEGER,
AUTHZ_USER VARCHAR (100),
TENANT_ID INTEGER,
USER_DOMAIN VARCHAR(50),
USER_TYPE VARCHAR (25),
GRANT_TYPE VARCHAR (50),
TIME_CREATED TIMESTAMP,
REFRESH_TOKEN_TIME_CREATED TIMESTAMP,
VALIDITY_PERIOD BIGINT,
REFRESH_TOKEN_VALIDITY_PERIOD BIGINT,
TOKEN_SCOPE_HASH VARCHAR(32),
TOKEN_STATE VARCHAR(25) DEFAULT 'ACTIVE',
TOKEN_STATE_ID VARCHAR (128) DEFAULT 'NONE',
SUBJECT_IDENTIFIER VARCHAR(255),
PRIMARY KEY (TOKEN_ID),
FOREIGN KEY (CONSUMER_KEY_ID) REFERENCES
IDN_OAUTH_CONSUMER_APPS(ID) ON DELETE CASCADE,
CONSTRAINT CON_APP_KEY UNIQUE
(CONSUMER_KEY_ID,AUTHZ_USER,TENANT_ID,USER_DOMAIN,USER_TYPE,TOKEN_SCOPE_HASH,
   TOKEN_STATE,TOKEN_STATE_ID)
)ENGINE INNODB;

*Issue*

When I login as admin user (admin user in primary user store) and generate
keys
according to the IS log; [3] the token [4] gets generated but when trying
to store it in the DB 'Integrity Constraint Violation Exception' occurs.
further more In the store UI token value shows as null. (Refer to the
attached screenshot)

Is there anything else that I can do to fix this?

*[1].*
https://docs.wso2.com/display/AM1100/Saving+Access+Tokens+in+Separate+Tables
*[2]. Setup details*

Packs: IS 5.1.0 - APIM 1.10.0 IS as key manager setup
Database: MySQL 5.7
Configs: SAML SSO configured

*[3]. IS Log*

TID: [-1234] [] [2016-06-08 09:53:09,717] DEBUG
{org.wso2.carbon.identity.oauth2.OAuth2Service} -  Access Token request
received for Client ID bLft4f3sLgh4QJDuS7z4Jgf4_7Qa, User ID null, Scope :
[default, am_application_scope] and Grant Type : client_credentials

TID: [-1234] [] [2016-06-08 09:53:09,718] DEBUG
{org.wso2.carbon.identity.oauth2.token.handlers.clientauth.AbstractClientAuthHandler}
-  Can authenticate with client ID and Secret. Client ID:
bLft4f3sLgh4QJDuS7z4Jgf4_7Qa

TID: [-1234] [] [2016-06-08 09:53:09,718] DEBUG
{org.wso2.carbon.identity.oauth2.token.handlers.clientauth.AbstractClientAuthHandler}
-  Grant type : client_credentials Strict client validation set to : null

TID: [-1234] [] [2016-06-08 09:53:09,721] DEBUG
{org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Client credentials
were fetched from the database.

TID: [-1234] [] [2016-06-08 09:53:09,721] DEBUG
{org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Successfully
authenticated the client with client id : bLft4f3sLgh4QJDuS7z4Jgf4_7Qa

TID: [-1234] [] [2016-06-08 09:53:09,721] DEBUG
{org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Client credentials
were added to the cache for client id : bLft4f3sLgh4QJDuS7z4Jgf4_7Qa

TID: [-1234] [] [2016-06-08 09:53:09,735] DEBUG
{org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Added
OAuthTokenReqMessageContext to threadlocal

TID: [-1234] [] [2016-06-08 09:53:09,738] DEBUG
{org.wso2.carbon.identity.oauth2.token.handlers.grant.AbstractAuthorizationGrantHandler}
-  No access token found in database for client Id
bLft4f3sLgh4QJDuS7z4Jgf4_7Qa, user admin@carbon.super and scope
am_application_scope default. Therefore issuing new token

TID: [-1234] [] [2016-06-08 09:53:09,738] DEBUG
{org.wso2.carbon.identity.oauth2.token.handlers.grant.AbstractAuthorizationGrantHandler}
-  Issuing a new access token for bLft4f3sLgh4QJDuS7z4Jgf4_7Qa
AuthorizedUser : admin@carbon.super

TID: [-1234] [] [2016-06-08 09:53:09,743] DEBUG
{org.wso2.carbon.identity.oauth2.token.handlers.grant.AbstractAuthorizationGrantHandler}
-  Persisted Access Token for Client ID : bLft4f3sLgh4QJDuS7z4Jgf4_7Qa,
Authorized User : admin@carbon.super, Timestamp : 2016-06-08 09:53:09.738,
Validity period (s) : 3600, Scope : am_application_scope default and Token
State : ACTIVE

TID: [-1] [] [2016-06-08 09:53:09,744] DEBUG
{org.wso2.carbon.identity.oauth2.dao.TokenPersistenceTask} -  Access Token
Data persisting Task is started to run

TID: [-1234] [] [2016-06-08 09:53:09,744] DEBUG
{org.wso2.carbon.identity.oauth2.token.handlers.grant.AbstractAuthorizationGrantHandler}
-  Access token was added to OAuthCache for cache key :
bLft4f3sLgh4QJDuS7z4Jgf4_7Qa:admin@carbon.super:am_application_scope
default

TID: [-1234] [] [2016-06-08 09:53:09,744] DEBUG
{org.wso2.carbon.identity.oauth2.util.OAuth2Util} -  Cleared
OAuthTokenReqMessageContext

TID: [-1234] [] [2016-06-08 09:53:09,744] DEBUG
{org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer} -  Access token
issued to client Id: bLft4f3sLgh4QJDuS7z4Jgf4_7Qa username:

Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-08 Thread Nuwan Wimalasekara
Hi

I know this is not a major issue. In the initial mail, I have mentioned
that removing a jar file from a patch directory is not a good practise and
there is a workaround too. But mistakenly doing this will make confusion in
patch applying process. User thinks the jar is reverted. but actually it is
not. Created a JIRA to track there is such a behaviour and we can
prioritise whether we need to fix it or not.

Thanks,
Nuwanw

On Wed, Jun 8, 2016 at 1:35 PM, Kishanthan Thangarajah 
wrote:

> I don't think this a major issue to fix. Normally if you apply a patch,
> you don't partially remove some jars from the patch directory as if you are
> trying to update a patch. Either you remove that patch completely or apply
> a new patch. IMO there is no concept of updating a patch rather you update
> your system with a patch.
>
> On Wed, Jun 8, 2016 at 6:55 AM, Niranjan Karunanandham 
> wrote:
>
>> Hi Nuwan,
>>
>> As per the logic in [1], when the jar is removed, the patches are not
>> updated. But as mentioned by you, as a solution we can revert the jar by
>> removing the patch directory and restarting the server.
>>
>> [1] -
>> https://github.com/wso2/carbon-kernel/blob/v4.4.5/core/org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/extensions/PatchInstaller.java
>>
>> Regards,
>> Nira
>>
>> On Tue, Jun 7, 2016 at 7:22 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi,
>>>
>>> Seems this is a bug. reported a JIRA[1] to track the issue further.
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-15939
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> On Wed, Jun 1, 2016 at 12:21 PM, Nuwan Wimalasekara 
>>> wrote:
>>>
 Hi Manoj,

 Yes. Even if the jar is removed, plugin directory has the same md5
 value of removed jar. means It is not reverted.

 To revert the jar, we have to remove the patch directory and restart
 the server.

 Thanks,
 Nuwanw

 On Wed, Jun 1, 2016 at 12:03 PM, Manoj Kumara  wrote:

> During patch application it validate the md5sum's of the jars as well.
> Can you please verify the removed jar has a different md5 value from 
> what's
> there in the server ?
>
> *Manoj Kumara*
> WSO2 Inc. *| **lean. enterprise. middleware.*
> *Mobile:* +94 713 448188
>
> On Wed, Jun 1, 2016 at 11:53 AM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Carbon Team,
>>
>> I have observed $subject when I try to remove a jar file from patch
>> directory. I know removing a jar file from patch directory is not a good
>> practise when applying patches. But it may happen and then the behaviour 
>> is
>> confusing. However if we update the a jar file inside a patch , it will
>> reflect and update the plugins directory and works as expected.
>>
>> To reproduce the issue, we can apply a patch having two jar file and
>> restart the server. Then it will apply the patch. after that, remove one 
>> of
>> jar file in the patch directory and restart the server. The it will not
>> detect as a patch change and will not revert the removed jar from 
>> patch.
>>
>> Is this a limitation in patch applying process or bug?
>>
>> Thanks,
>> Nuwanw
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>


 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




>>>
>>>
>>> --
>>> Nuwan Wimalasekara
>>> Associate Technical Lead
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> phone: +94 71 668 4620
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Nuwan Wimalasekara
Associate Technical Lead
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting icons to represent nullables - data mapper editor

2016-06-08 Thread Dakshika Jayathilaka
Hi Sohani,

Please check attached images,

https://drive.google.com/a/wso2.com/folderview?id=0B2gQzqdJmYrmdkVueUN0LUF6QkU=sharing

Regards,


*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Associate Technical Lead
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Tue, Jun 7, 2016 at 2:01 PM, Sohani Weerasinghe  wrote:

> Hi Dakshika,
>
> There is a requirement to allow null values for arrays, objects, elements,
> attributes etc in json schema, and currently we are using the attached
> images to represent the those. (non nullables)
>
> Could we please get a new set of icons to represent *nullables* where
> those icons should have an additional symbol added to the attached images.
> (Please refer the below image)
>
> The symbol should be something which represents that the element is
> nullable.
>
>
> ​
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Option to ship MQTT client lib with ESB

2016-06-08 Thread Pamod Sylvester
Hi Isuru,

I agree with your point in having the challenge to maintain with client
upgrades.

Just saw the MQTT client library in the angle of other transport libraries
we ship currently i.e HttpCore.

Thanks,
Pamod

On Wed, Jun 8, 2016 at 2:47 PM, Isuru Udana  wrote:

> Hi Pamod, Ramith,
>
> I think we should try to de-couple our component from external libs as
> much as we can. If we do this even for a minor version upgrade either we
> have wait until the next release or else we need to patch the server. In
> the current approach it is just a matter of dropping the new library.
> If we don't have direct code level dependancies to a particular library,
> IMO we should not pack it.
>
> Thanks.
>
>
> On Wed, Jun 8, 2016 at 1:39 PM, Pamod Sylvester  wrote:
>
>> Hi Ramith,
>>
>> Yes. That's something to think about.
>>
>> AFAIK currently there's no explicit way to handle the library upgrades.
>> Unless the upgrade includes with either a new ESB release or a patch.
>>
>> Since the client library generic and is tested for interoperability for a
>> given version of MQTT protocol, AFAIU the chance would be less for client
>> library to require a mandatory upgrade for each broker release, unless the
>> broker changes the supporting protocol version.
>>
>> Thanks,
>> Pamod
>>
>> On Wed, Jun 8, 2016 at 12:27 PM, Ramith Jayasinghe 
>> wrote:
>>
>>> +1. that's a good idea. BTW, how are we going to handle version upgrades
>>> (for client lib) ?
>>>
>>> On Wed, Jun 8, 2016 at 7:19 AM, Pamod Sylvester  wrote:
>>>
 Hi All,

 Could we consider the $Subject, (since the library is interoperable
 with all standard MQTT brokers).

 Currently it requires client lib to be separately downloaded when
 integrating with a broker [1]

 [1]
 https://docs.wso2.com/display/ESB490/Sample+906%3A+Inbound+Endpoint+MQTT+Protocol+Sample

 Thanks,
 Pamod

 --
 *Pamod Sylvester *

 *WSO2 Inc.; http://wso2.com *
 cell: +94 77 7779495

>>>
>>>
>>>
>>> --
>>> Ramith Jayasinghe
>>> Technical Lead
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> E: ram...@wso2.com
>>> P: +94 772534930
>>>
>>
>>
>>
>> --
>> *Pamod Sylvester *
>>
>> *WSO2 Inc.; http://wso2.com *
>> cell: +94 77 7779495
>>
>
>
>
> --
> *Isuru Udana*
> Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>



-- 
*Pamod Sylvester *

*WSO2 Inc.; http://wso2.com *
cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Importing features in Carbon

2016-06-08 Thread Isuru Perera
Hi Nira,

I created a JIRA. https://wso2.org/jira/browse/CDATASOURC-4

Since the datasources feature is not importing carbon-jndi feature, I will
import both datasources and jndi features in metrics feature.

I didn't encounter any issue. I just asked before trying out. I will check
on this.

Thanks a lot!

Best Regards,

On Wed, Jun 8, 2016 at 2:38 PM, Niranjan Karunanandham 
wrote:

> Hi Isuru,
>
> On Wed, Jun 8, 2016 at 2:23 PM, Isuru Perera  wrote:
>
>> HI,
>>
>> What is the real use case for importing features?
>>
>> For example, the carbon-datasources [1] depends on carbon-jndi. But
>> Carbon JNDI feature is not imported in datasources core feature [2].
>>
>> But still the datasources bundle will not activate if the jndi feature
>> was not already installed. So, there is no need to explicitly import
>> features, right?
>>
>
> In the carbon-datasources feature, carbon-jndi should be mentioned as
> import-feature. Can you raise a JIRA for this please? When this
> (import-feature) is used, then when carbon-datasources is being installed,
> it will check the p2-repo for carbon-jndi and install it. Therefore in the
> product installation, we do not need to explicitly mentioned to install the
> carbon-jndi feature, but carbon-jndi feature reside in the p2-repo.
>
>
>>
>> Another issue I see with importing features is that we cannot import a
>> version range. According to docs [3], we need to specify a version.
>>
>> For example, the carbon-metrics also need the datasources feature. The
>> metrics core component imports carbon datasources using a version range. In
>> that case, the metrics component will not activate if the datasources core
>> bundle is not there. So, do I still need to import datasources features? By
>> doing that, the metrics will depend on a specific version of datasources
>> feature, right?
>>
> AFAIK in carbon-feature-plugin 2.0.0 onwards, it takes the version
> matching range as compatible that is if the version defined is 4.4.0, then
> it considers the range as 4.4.0 to 5.0.0. Did you experience any issue when
> u define a lower minor version (example: 1.0.0) in the import feature, but
> the feature in the p2-repo is of a higher version (say 1.1.0) ?
>
>
>>
>> If I don't import datasources feature, the metrics feature can work with
>> any version of datasources within the import range I have defined.
>>
>> Please let me know the recommendations we need to follow in order to
>> depend on other features.
>>
>> Thanks!
>>
>> Best Regards,
>>
>> [1]
>> https://github.com/wso2/carbon-datasources/blob/v1.0.0/components/org.wso2.carbon.datasource.core/pom.xml#L71-L74
>> [2]
>> https://github.com/wso2/carbon-datasources/blob/v1.0.0/feature/pom.xml#L62-L92
>> [3]
>> https://docs.wso2.com/display/Carbon510/Using+the+Carbon+Feature+Plugin
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 
>>
>
> Regards,
> Nira
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Option to ship MQTT client lib with ESB

2016-06-08 Thread Isuru Udana
Hi Pamod, Ramith,

I think we should try to de-couple our component from external libs as much
as we can. If we do this even for a minor version upgrade either we have
wait until the next release or else we need to patch the server. In the
current approach it is just a matter of dropping the new library.
If we don't have direct code level dependancies to a particular library,
IMO we should not pack it.

Thanks.


On Wed, Jun 8, 2016 at 1:39 PM, Pamod Sylvester  wrote:

> Hi Ramith,
>
> Yes. That's something to think about.
>
> AFAIK currently there's no explicit way to handle the library upgrades.
> Unless the upgrade includes with either a new ESB release or a patch.
>
> Since the client library generic and is tested for interoperability for a
> given version of MQTT protocol, AFAIU the chance would be less for client
> library to require a mandatory upgrade for each broker release, unless the
> broker changes the supporting protocol version.
>
> Thanks,
> Pamod
>
> On Wed, Jun 8, 2016 at 12:27 PM, Ramith Jayasinghe 
> wrote:
>
>> +1. that's a good idea. BTW, how are we going to handle version upgrades
>> (for client lib) ?
>>
>> On Wed, Jun 8, 2016 at 7:19 AM, Pamod Sylvester  wrote:
>>
>>> Hi All,
>>>
>>> Could we consider the $Subject, (since the library is interoperable with
>>> all standard MQTT brokers).
>>>
>>> Currently it requires client lib to be separately downloaded when
>>> integrating with a broker [1]
>>>
>>> [1]
>>> https://docs.wso2.com/display/ESB490/Sample+906%3A+Inbound+Endpoint+MQTT+Protocol+Sample
>>>
>>> Thanks,
>>> Pamod
>>>
>>> --
>>> *Pamod Sylvester *
>>>
>>> *WSO2 Inc.; http://wso2.com *
>>> cell: +94 77 7779495
>>>
>>
>>
>>
>> --
>> Ramith Jayasinghe
>> Technical Lead
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> E: ram...@wso2.com
>> P: +94 772534930
>>
>
>
>
> --
> *Pamod Sylvester *
>
> *WSO2 Inc.; http://wso2.com *
> cell: +94 77 7779495
>



-- 
*Isuru Udana*
Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [BPS] How to do blocking HTTP calls in C5

2016-06-08 Thread Isuru Ranawaka
HI Natasha,

Currently carbon transport sender operates in fully asynchronous nature
with callbacks.  what can we do is  writing a callback listener  which
operates as a Java future  and  blocks the calling thread until results are
available.we will look for implement an  API for blocking calls for
transport sender and this is  required by ESB as well.

On Tue, Jun 7, 2016 at 12:35 PM, Natasha Wijesekara 
wrote:

> Hi,
>
> With regards to the $subject, in BPS  currently we are using the  HTTP
> Client for external invocations as we need to do blocking HTTP calls to
> invoke partner services. In C5, what are the options available to do
> blocking HTTP calls ?  It seems that netty transport is only supporting
> non-blocking HTTP calls.
>
>
> Best Regards,
> *Natasha Wijesekare*
>
> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
> *
> *email  : nata...@wso2.com *
> *mobile: +94 771358651 <%2B94%20771358651>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards
Isuru Ranawaka
M: +94714629880
Blog : http://isurur.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Importing features in Carbon

2016-06-08 Thread Niranjan Karunanandham
Hi Isuru,

On Wed, Jun 8, 2016 at 2:23 PM, Isuru Perera  wrote:

> HI,
>
> What is the real use case for importing features?
>
> For example, the carbon-datasources [1] depends on carbon-jndi. But Carbon
> JNDI feature is not imported in datasources core feature [2].
>
> But still the datasources bundle will not activate if the jndi feature was
> not already installed. So, there is no need to explicitly import features,
> right?
>

In the carbon-datasources feature, carbon-jndi should be mentioned as
import-feature. Can you raise a JIRA for this please? When this
(import-feature) is used, then when carbon-datasources is being installed,
it will check the p2-repo for carbon-jndi and install it. Therefore in the
product installation, we do not need to explicitly mentioned to install the
carbon-jndi feature, but carbon-jndi feature reside in the p2-repo.


>
> Another issue I see with importing features is that we cannot import a
> version range. According to docs [3], we need to specify a version.
>
> For example, the carbon-metrics also need the datasources feature. The
> metrics core component imports carbon datasources using a version range. In
> that case, the metrics component will not activate if the datasources core
> bundle is not there. So, do I still need to import datasources features? By
> doing that, the metrics will depend on a specific version of datasources
> feature, right?
>
AFAIK in carbon-feature-plugin 2.0.0 onwards, it takes the version matching
range as compatible that is if the version defined is 4.4.0, then it
considers the range as 4.4.0 to 5.0.0. Did you experience any issue when u
define a lower minor version (example: 1.0.0) in the import feature, but
the feature in the p2-repo is of a higher version (say 1.1.0) ?


>
> If I don't import datasources feature, the metrics feature can work with
> any version of datasources within the import range I have defined.
>
> Please let me know the recommendations we need to follow in order to
> depend on other features.
>
> Thanks!
>
> Best Regards,
>
> [1]
> https://github.com/wso2/carbon-datasources/blob/v1.0.0/components/org.wso2.carbon.datasource.core/pom.xml#L71-L74
> [2]
> https://github.com/wso2/carbon-datasources/blob/v1.0.0/feature/pom.xml#L62-L92
> [3]
> https://docs.wso2.com/display/Carbon510/Using+the+Carbon+Feature+Plugin
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>

Regards,
Nira

-- 


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


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

2016-06-08 Thread Mahesh Dananjaya
Hi Maheshakya,
in the last one mentioned example query for streaming linear regression
should be,





*insert into regResults; from LinRegInputStream#streaming:streaminglr(0, 2,
100, 0.0001, 1.0, 0.95, salary, rbi, walks, strikeouts, errors)select
*insert into regResults*;

miniBatchFraction should be given in double fomat.i wrote it wrong when i
document it.thank you.


On Wed, Jun 8, 2016 at 1:48 PM, Mahesh Dananjaya 
wrote:

> Hi Maheshakya,
> you can find the details of the queries in this ReadMe [1]. i have add
> some changes . so previous querirs may not valid.please use these new
> queries in the README.
> *1.Streaming Linear regression*
> from LinRegInputStream#streaming:streaminglr((learnType),
> (batchSize/timeFrame), (numIterations), (stepSize), (miniBatchFraction),
> (ci), salary, rbi, walks, strikeouts, errors)
> select *
>
>
>
>
> *insert into regResults; from LinRegInputStream#streaming:streaminglr(0,
> 2, 100, 0.0001, 1, 0.95, salary, rbi, walks, strikeouts, errors)select
> *insert into regResults*;
>
> *2.Streaming KMeans Clustering*
> from LinRegInputStream#streaming:streamingkm((learnType),
> (batchSize/timeFrame), (numClusters), (numIterations),(alpha), (ci),
> salary, rbi, walks, strikeouts, errors)
> select *
> insert into regResults;
>
>
>
> *from
> KMeansInputStream#streaming:streamingkm(0,3,0.95,2,10,1,salary,rbi,walks,strikeouts,errors)select
> *insert into regResults*
>
>  And i need a help in returning the outputData of my program back to cep.
> therefore currenlt you may not find the stream output in event publish.but
> you can see the output in the console. i want to understand the final stepd
> of putting the output data back to output stream after the batch size is
> completed and the algorithms is completed. you may find that following line
> passes an exception. Thats have actually no clue of outputData format that
> need to give for Output stream.
>
> Object[] outputData = streamingLinearRegression.regress(eventData);
>
>
> if (outputData == null) {
> streamEventChunk.remove();
> } else {
> complexEventPopulater.populateComplexEvent(complexEvent, outputData);
> }
>
> my outputData Object[]array is in the format of
> [mse,beta0,beta1,betap].But seems to be that cep does not understand
> it. i do it by looking at the time series stream rpocessor extension at
> [2].can you please help me with this.
> regards,
> Mahesh.
>
> [1]
> https://github.com/dananjayamahesh/GSOC2016/tree/master/gsoc/siddhi/extension/streaming
> [2]
> https://github.com/wso2/siddhi/blob/master/modules/siddhi-extensions/timeseries/src/main/java/org/wso2/siddhi/extension/timeseries/LinearRegressionStreamProcessor.java
>
> On Tue, Jun 7, 2016 at 10:42 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi Mahesh,
>>
>> Great work so far.
>>
>> Regarding the queries:
>>
>> streamingkm(0, 2,2,20,1,0.95 salary, rbi, walks, strikeouts, errors)
>>
>>
>> Can you give me the definitions of the first few entities in the order.
>> Also in previous supervised cases (linear regression), what is the response
>> variable, etc.
>> I'll go through the code and give you a feedback.
>>
>>  After this, we need to me this implementation into carbon-ml siddhi
>> extension. Please also do a similar implementation for logistic regression
>> as well because we need to have a streaming version for classification as
>> well.
>>
>> Best regards.
>>
>>
>>
>> On Tue, Jun 7, 2016 at 5:50 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshkya,
>>> I have changed the siddhi query for our StreamingKMeansClustering by
>>> adding Alpha into the picture which we can use to make data horizon (how
>>> quickly a most recent data point becomes a part of the model) and data
>>> obsolescence (how long does it take a past data point to become irrelevant
>>> to the model)in the streaming clustering algorithms.i have added new
>>> changes to repo [1] introducing StreamingKMeansClusteringModel and
>>> StreamingKMeansCLustering classes to project.new siddhi query is as follows.
>>>
>>> from Stream8Input#streaming:streamingkm(0, 2,2,20,1,0.95 salary, rbi,
>>> walks, strikeouts, errors)
>>>
>>> select *
>>> insert into regResults;
>>>
>>> regrads,
>>> Mahesh.
>>>
>>> [1] https://github.com/dananjayamahesh/GSOC2016/tree/master/gsoc
>>>
>>> On Mon, Jun 6, 2016 at 6:31 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi Maheshakya,
 As we have discussed the architecture of the project i have already
 developed a couple of essential components for our project. During last
 week i completed the writing cep siddhi extension for our streaming
 algorithms which are developed to learn incrementally with past
 experiences. I have written the siddhi extensions with StreamProcessor
 extension for StreamingLinearRegerssion and StreamingKMeansClustering with
 the relevant parameters to call it as siddhi query. On the other hand i did

[Dev] Importing features in Carbon

2016-06-08 Thread Isuru Perera
HI,

What is the real use case for importing features?

For example, the carbon-datasources [1] depends on carbon-jndi. But Carbon
JNDI feature is not imported in datasources core feature [2].

But still the datasources bundle will not activate if the jndi feature was
not already installed. So, there is no need to explicitly import features,
right?

Another issue I see with importing features is that we cannot import a
version range. According to docs [3], we need to specify a version.

For example, the carbon-metrics also need the datasources feature. The
metrics core component imports carbon datasources using a version range. In
that case, the metrics component will not activate if the datasources core
bundle is not there. So, do I still need to import datasources features? By
doing that, the metrics will depend on a specific version of datasources
feature, right?

If I don't import datasources feature, the metrics feature can work with
any version of datasources within the import range I have defined.

Please let me know the recommendations we need to follow in order to depend
on other features.

Thanks!

Best Regards,

[1]
https://github.com/wso2/carbon-datasources/blob/v1.0.0/components/org.wso2.carbon.datasource.core/pom.xml#L71-L74
[2]
https://github.com/wso2/carbon-datasources/blob/v1.0.0/feature/pom.xml#L62-L92
[3] https://docs.wso2.com/display/Carbon510/Using+the+Carbon+Feature+Plugin

-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-06-08 Thread Mahesh Dananjaya
Hi Maheshakya,
you can find the details of the queries in this ReadMe [1]. i have add some
changes . so previous querirs may not valid.please use these new queries in
the README.
*1.Streaming Linear regression*
from LinRegInputStream#streaming:streaminglr((learnType),
(batchSize/timeFrame), (numIterations), (stepSize), (miniBatchFraction),
(ci), salary, rbi, walks, strikeouts, errors)
select *




*insert into regResults; from LinRegInputStream#streaming:streaminglr(0, 2,
100, 0.0001, 1, 0.95, salary, rbi, walks, strikeouts, errors)select
*insert into regResults*;

*2.Streaming KMeans Clustering*
from LinRegInputStream#streaming:streamingkm((learnType),
(batchSize/timeFrame), (numClusters), (numIterations),(alpha), (ci),
salary, rbi, walks, strikeouts, errors)
select *
insert into regResults;



*from
KMeansInputStream#streaming:streamingkm(0,3,0.95,2,10,1,salary,rbi,walks,strikeouts,errors)select
*insert into regResults*

 And i need a help in returning the outputData of my program back to cep.
therefore currenlt you may not find the stream output in event publish.but
you can see the output in the console. i want to understand the final stepd
of putting the output data back to output stream after the batch size is
completed and the algorithms is completed. you may find that following line
passes an exception. Thats have actually no clue of outputData format that
need to give for Output stream.

Object[] outputData = streamingLinearRegression.regress(eventData);


if (outputData == null) {
streamEventChunk.remove();
} else {
complexEventPopulater.populateComplexEvent(complexEvent, outputData);
}

my outputData Object[]array is in the format of
[mse,beta0,beta1,betap].But seems to be that cep does not understand
it. i do it by looking at the time series stream rpocessor extension at
[2].can you please help me with this.
regards,
Mahesh.

[1]
https://github.com/dananjayamahesh/GSOC2016/tree/master/gsoc/siddhi/extension/streaming
[2]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-extensions/timeseries/src/main/java/org/wso2/siddhi/extension/timeseries/LinearRegressionStreamProcessor.java

On Tue, Jun 7, 2016 at 10:42 PM, Maheshakya Wijewardena  wrote:

> Hi Mahesh,
>
> Great work so far.
>
> Regarding the queries:
>
> streamingkm(0, 2,2,20,1,0.95 salary, rbi, walks, strikeouts, errors)
>
>
> Can you give me the definitions of the first few entities in the order.
> Also in previous supervised cases (linear regression), what is the response
> variable, etc.
> I'll go through the code and give you a feedback.
>
>  After this, we need to me this implementation into carbon-ml siddhi
> extension. Please also do a similar implementation for logistic regression
> as well because we need to have a streaming version for classification as
> well.
>
> Best regards.
>
>
>
> On Tue, Jun 7, 2016 at 5:50 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshkya,
>> I have changed the siddhi query for our StreamingKMeansClustering by
>> adding Alpha into the picture which we can use to make data horizon (how
>> quickly a most recent data point becomes a part of the model) and data
>> obsolescence (how long does it take a past data point to become irrelevant
>> to the model)in the streaming clustering algorithms.i have added new
>> changes to repo [1] introducing StreamingKMeansClusteringModel and
>> StreamingKMeansCLustering classes to project.new siddhi query is as follows.
>>
>> from Stream8Input#streaming:streamingkm(0, 2,2,20,1,0.95 salary, rbi,
>> walks, strikeouts, errors)
>>
>> select *
>> insert into regResults;
>>
>> regrads,
>> Mahesh.
>>
>> [1] https://github.com/dananjayamahesh/GSOC2016/tree/master/gsoc
>>
>> On Mon, Jun 6, 2016 at 6:31 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshakya,
>>> As we have discussed the architecture of the project i have already
>>> developed a couple of essential components for our project. During last
>>> week i completed the writing cep siddhi extension for our streaming
>>> algorithms which are developed to learn incrementally with past
>>> experiences. I have written the siddhi extensions with StreamProcessor
>>> extension for StreamingLinearRegerssion and StreamingKMeansClustering with
>>> the relevant parameters to call it as siddhi query. On the other hand i did
>>> some research on developing Mini Batch KMeans clustering for our
>>> StreamingKMeansClustering. And also i added the moving window addition to
>>> usual batch processing. And currently i am working on the time based
>>> incremental  re-trainign method for siddhi streams. On the
>>> StreamingClustering side i have already part of th
>>> StreamingKMeansClustering with the mini batch KMeans clustering. All the
>>> work i did were pushed to my repo in github [1]. you can find the
>>> development on gsoc/ directory.
>>>  And also as the ml team and supun was asked, i have did some timing and
>>> performance analysis for 

Re: [Dev] Option to ship MQTT client lib with ESB

2016-06-08 Thread Pamod Sylvester
Hi Ramith,

Yes. That's something to think about.

AFAIK currently there's no explicit way to handle the library upgrades.
Unless the upgrade includes with either a new ESB release or a patch.

Since the client library generic and is tested for interoperability for a
given version of MQTT protocol, AFAIU the chance would be less for client
library to require a mandatory upgrade for each broker release, unless the
broker changes the supporting protocol version.

Thanks,
Pamod

On Wed, Jun 8, 2016 at 12:27 PM, Ramith Jayasinghe  wrote:

> +1. that's a good idea. BTW, how are we going to handle version upgrades
> (for client lib) ?
>
> On Wed, Jun 8, 2016 at 7:19 AM, Pamod Sylvester  wrote:
>
>> Hi All,
>>
>> Could we consider the $Subject, (since the library is interoperable with
>> all standard MQTT brokers).
>>
>> Currently it requires client lib to be separately downloaded when
>> integrating with a broker [1]
>>
>> [1]
>> https://docs.wso2.com/display/ESB490/Sample+906%3A+Inbound+Endpoint+MQTT+Protocol+Sample
>>
>> Thanks,
>> Pamod
>>
>> --
>> *Pamod Sylvester *
>>
>> *WSO2 Inc.; http://wso2.com *
>> cell: +94 77 7779495
>>
>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 772534930
>



-- 
*Pamod Sylvester *

*WSO2 Inc.; http://wso2.com *
cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-08 Thread Kishanthan Thangarajah
I don't think this a major issue to fix. Normally if you apply a patch, you
don't partially remove some jars from the patch directory as if you are
trying to update a patch. Either you remove that patch completely or apply
a new patch. IMO there is no concept of updating a patch rather you update
your system with a patch.

On Wed, Jun 8, 2016 at 6:55 AM, Niranjan Karunanandham 
wrote:

> Hi Nuwan,
>
> As per the logic in [1], when the jar is removed, the patches are not
> updated. But as mentioned by you, as a solution we can revert the jar by
> removing the patch directory and restarting the server.
>
> [1] -
> https://github.com/wso2/carbon-kernel/blob/v4.4.5/core/org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/extensions/PatchInstaller.java
>
> Regards,
> Nira
>
> On Tue, Jun 7, 2016 at 7:22 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi,
>>
>> Seems this is a bug. reported a JIRA[1] to track the issue further.
>>
>> [1] https://wso2.org/jira/browse/CARBON-15939
>>
>> Thanks,
>> Nuwanw
>>
>> On Wed, Jun 1, 2016 at 12:21 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi Manoj,
>>>
>>> Yes. Even if the jar is removed, plugin directory has the same md5 value
>>> of removed jar. means It is not reverted.
>>>
>>> To revert the jar, we have to remove the patch directory and restart the
>>> server.
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> On Wed, Jun 1, 2016 at 12:03 PM, Manoj Kumara  wrote:
>>>
 During patch application it validate the md5sum's of the jars as well.
 Can you please verify the removed jar has a different md5 value from what's
 there in the server ?

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

 On Wed, Jun 1, 2016 at 11:53 AM, Nuwan Wimalasekara 
 wrote:

> Hi Carbon Team,
>
> I have observed $subject when I try to remove a jar file from patch
> directory. I know removing a jar file from patch directory is not a good
> practise when applying patches. But it may happen and then the behaviour 
> is
> confusing. However if we update the a jar file inside a patch , it will
> reflect and update the plugins directory and works as expected.
>
> To reproduce the issue, we can apply a patch having two jar file and
> restart the server. Then it will apply the patch. after that, remove one 
> of
> jar file in the patch directory and restart the server. The it will not
> detect as a patch change and will not revert the removed jar from 
> patch.
>
> Is this a limitation in patch applying process or bug?
>
> Thanks,
> Nuwanw
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>

>>>
>>>
>>> --
>>> Nuwan Wimalasekara
>>> Senior Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> phone: +94 71 668 4620
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Nuwan Wimalasekara
>> Associate Technical Lead
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] Option to ship MQTT client lib with ESB

2016-06-08 Thread Ramith Jayasinghe
+1. that's a good idea. BTW, how are we going to handle version upgrades
(for client lib) ?

On Wed, Jun 8, 2016 at 7:19 AM, Pamod Sylvester  wrote:

> Hi All,
>
> Could we consider the $Subject, (since the library is interoperable with
> all standard MQTT brokers).
>
> Currently it requires client lib to be separately downloaded when
> integrating with a broker [1]
>
> [1]
> https://docs.wso2.com/display/ESB490/Sample+906%3A+Inbound+Endpoint+MQTT+Protocol+Sample
>
> Thanks,
> Pamod
>
> --
> *Pamod Sylvester *
>
> *WSO2 Inc.; http://wso2.com *
> cell: +94 77 7779495
>



-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 772534930
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Navigation buttons not visible in Custom Time picker in Log Analyzer

2016-06-08 Thread Sajith Perera
No, it's not a blocking issue . Please merge it if new release is planned.

Thanks,
SajithD

On Wed, Jun 8, 2016 at 12:17 PM, Bhathiya Jayasekara 
wrote:

> Is this a blocker? If not, I prefer to go with as it is, because we have
> already built Beta candidate pack and completed most of the test scenarios.
> If we have to do another build we have to do all the tests again, which
> takes a lot of time.
>
> Thanks,
> Bhathiya
>
> On Wed, Jun 8, 2016 at 12:12 PM, Sajith Perera  wrote:
>
>> +Jerad and Dunith
>>
>> On Wed, Jun 8, 2016 at 12:11 PM, Sajith Perera  wrote:
>>
>>>
>>> Hi All,
>>>
>>> We have faced issue while embedding date range picker gadget in to the
>>> API-M admin dashboard jira [1] and [2]. Since this is major concern from
>>> the user's point of view we need to have fixes before API-M beta release.
>>>
>>> Issue is  date range picker gadget used bootstrap-min.css and API-M
>>> admin dashboard hasn't got this css and also its not compatible with admin
>>> dashboard.
>>>
>>> As a solution I would like to suggest to adding styling and fonts files
>>> inside the loganalyzer template.
>>> as in this PR [3] and it is not a proper fix, and need to be looked
>>> properly later.
>>>
>>> As per the offline chat I had with Jerad, the better fix is to use wso2
>>> fonts rather than use external font icons.
>>>
>>> [1] - https://wso2.org/jira/browse/ANLYAPIM-54
>>> [2] - https://wso2.org/jira/browse/ANLYAPIM-53
>>> [3] - https://github.com/wso2/carbon-apimgt/pull/2488
>>>
>>> WDYT?
>>>
>>> Thanks,
>>> SajithD
>>> --
>>> Sajith Dimal
>>> Software Engineer
>>> Mobile : +94783101496
>>> WSO2 Inc. | http://wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> Sajith Dimal
>> Software Engineer
>> Mobile : +94783101496
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 
Sajith Dimal
Software Engineer
Mobile : +94783101496
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-06-08 Thread Kalpa Welivitigoda
[+Ayoma, Dulanja]


On Wed, Jun 8, 2016 at 12:17 PM, Anupama Pathirage  wrote:

> Hi Kalpa,
>
> Thanks for the update.  Please update us with the solution for CSRF
> security issue. We get the same issue for  the DSS try it as well.
>
> [2016-06-08 11:55:28,396]  WARN {org.owasp.csrfguard.log.JavaLogger} -
> potential cross-site request forgery (CSRF) attack thwarted
> (user:, ip:10.100.7.118, method:POST,
> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
> token is missing from the request)
>
> Private proxy protocol will be attempted as cross-domain browser
> restrictions might be enforced for this endpoint.
>
> http://tryit.carbon.wso2.org;>
>Error connecting to the Tryit ajax proxy
> 
>
> Regards,
>
> On Wed, Jun 8, 2016 at 8:45 AM, Kasun Bandara  wrote:
>
>> Hi All,
>>
>> We have done the fix for L1 reported in [1] yesterday.
>>
>> Thanks,
>> Kasun.
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4656
>>
>> On Wed, Jun 8, 2016 at 7:00 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi Anupama,
>>>
>>> On Tue, Jun 7, 2016 at 8:45 PM, Anupama Pathirage 
>>> wrote:
>>>
 Hi Kalpa,

 Checked the suggested approaches and those two issues were resolved
 after applying both changes. We will further test the service with the
 Carbon RC2.

 On Tue, Jun 7, 2016 at 6:15 PM, Kalpa Welivitigoda 
 wrote:

> Hi Anupama,
>
> On Tue, Jun 7, 2016 at 5:50 PM, Anupama Pathirage 
> wrote:
>
>> Hi,
>>
>> We got the following issues when testing WSO2 DSS with the Kernel RC2
>> Release.
>>
>> *1) *Any action on management console gives the following error. It
>> seems to be related with the tomcat upgrade and appreciate your input on
>> this.
>>
>> [2016-06-07 17:21:16,905] ERROR
>> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
>> reading request, ignored
>> java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I
>> at
>> org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
>> at org.apache.coyote.Request.updateCounters(Request.java:533)
>> at
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
>> at
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>> at java.lang.Thread.run(Thread.java:745)
>>
>
> Yes, it is due to the tomcat upgrade in kernel, relevant fixes for
> carbon-deployment are already there in 4.6.2-SNAPSHOT. We have to do a
> deployment release once we release 4.4.6-SNAPSHOT. For the moment, for
> testing purpose, is it possible you try with 4.6.2-SNAPSHOT?
>

 Could you please do the needful to release the carbon-deployment 4.6.2
 as DSS 3.5.1 release will be on hold until it is done.

>>>
>>> Yes, we will be doing component released once we are done with kernel
>>> 4.4.6.
>>>
>>>


>
>
>>
>> *2) *DBS file uploads gives the following error which returns Error
>> 403 - Forbidden
>>
>> [2016-06-07 17:21:16,904]  WARN {org.owasp.csrfguard.log.JavaLogger}
>> -  potential cross-site request forgery (CSRF) attack thwarted
>> (user:, ip:10.100.7.118, method:POST,
>> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
>> token is missing from the request)
>>
>>
> For this would you please try with adding the following line to
> repository/conf/security/Owasp.CsrfGuard.Carbon.properties,
>
>
> org.owasp.csrfguard.unprotected.FileUpload=%servletContext%/fileupload/*
>

 Is excluding these patterns from CSRF protection recommended ?


>>> That we need to discuss with security experts and decide, I just wanted
>>> to verify that this is an option to solve the issue.
>>>
>>>
 Regards,
 Anupama

>
>
>
>> Regards,
>>
>> On Tue, Jun 7, 2016 at 4:46 PM, KasunG Gajasinghe 
>> wrote:
>>
>>>
>>> Others, please continue to testing the pack and report all the
>>> issues so we can check and fix.
>>>
>>> On Tue, Jun 7, 2016 at 2:31 PM, Kasun Bandara 
>>> wrote:
>>>
 Hi Niranjan,

 Created [1] to track the 

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

2016-06-08 Thread Anupama Pathirage
Hi Kalpa,

Thanks for the update.  Please update us with the solution for CSRF
security issue. We get the same issue for  the DSS try it as well.

[2016-06-08 11:55:28,396]  WARN {org.owasp.csrfguard.log.JavaLogger} -
potential cross-site request forgery (CSRF) attack thwarted
(user:, ip:10.100.7.118, method:POST,
uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
token is missing from the request)

Private proxy protocol will be attempted as cross-domain browser
restrictions might be enforced for this endpoint.

http://tryit.carbon.wso2.org;>
   Error connecting to the Tryit ajax proxy


Regards,

On Wed, Jun 8, 2016 at 8:45 AM, Kasun Bandara  wrote:

> Hi All,
>
> We have done the fix for L1 reported in [1] yesterday.
>
> Thanks,
> Kasun.
>
> [1] https://wso2.org/jira/browse/IDENTITY-4656
>
> On Wed, Jun 8, 2016 at 7:00 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Anupama,
>>
>> On Tue, Jun 7, 2016 at 8:45 PM, Anupama Pathirage 
>> wrote:
>>
>>> Hi Kalpa,
>>>
>>> Checked the suggested approaches and those two issues were resolved
>>> after applying both changes. We will further test the service with the
>>> Carbon RC2.
>>>
>>> On Tue, Jun 7, 2016 at 6:15 PM, Kalpa Welivitigoda 
>>> wrote:
>>>
 Hi Anupama,

 On Tue, Jun 7, 2016 at 5:50 PM, Anupama Pathirage 
 wrote:

> Hi,
>
> We got the following issues when testing WSO2 DSS with the Kernel RC2
> Release.
>
> *1) *Any action on management console gives the following error. It
> seems to be related with the tomcat upgrade and appreciate your input on
> this.
>
> [2016-06-07 17:21:16,905] ERROR
> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
> reading request, ignored
> java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I
> at
> org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
> at org.apache.coyote.Request.updateCounters(Request.java:533)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
>

 Yes, it is due to the tomcat upgrade in kernel, relevant fixes for
 carbon-deployment are already there in 4.6.2-SNAPSHOT. We have to do a
 deployment release once we release 4.4.6-SNAPSHOT. For the moment, for
 testing purpose, is it possible you try with 4.6.2-SNAPSHOT?

>>>
>>> Could you please do the needful to release the carbon-deployment 4.6.2
>>> as DSS 3.5.1 release will be on hold until it is done.
>>>
>>
>> Yes, we will be doing component released once we are done with kernel
>> 4.4.6.
>>
>>
>>>
>>>


>
> *2) *DBS file uploads gives the following error which returns Error
> 403 - Forbidden
>
> [2016-06-07 17:21:16,904]  WARN {org.owasp.csrfguard.log.JavaLogger}
> -  potential cross-site request forgery (CSRF) attack thwarted
> (user:, ip:10.100.7.118, method:POST,
> uri:/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp, error:required
> token is missing from the request)
>
>
 For this would you please try with adding the following line to
 repository/conf/security/Owasp.CsrfGuard.Carbon.properties,

 org.owasp.csrfguard.unprotected.FileUpload=%servletContext%/fileupload/*

>>>
>>> Is excluding these patterns from CSRF protection recommended ?
>>>
>>>
>> That we need to discuss with security experts and decide, I just wanted
>> to verify that this is an option to solve the issue.
>>
>>
>>> Regards,
>>> Anupama
>>>



> Regards,
>
> On Tue, Jun 7, 2016 at 4:46 PM, KasunG Gajasinghe 
> wrote:
>
>>
>> Others, please continue to testing the pack and report all the issues
>> so we can check and fix.
>>
>> On Tue, Jun 7, 2016 at 2:31 PM, Kasun Bandara 
>> wrote:
>>
>>> Hi Niranjan,
>>>
>>> Created [1] to track the equivalent Carbon JIRA.
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-15938
>>>
>>> Thanks,
>>> Kasun.
>>>
>>> On Tue, Jun 7, 2016 at 2:23 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi KasunB,


Re: [Dev] Navigation buttons not visible in Custom Time picker in Log Analyzer

2016-06-08 Thread Bhathiya Jayasekara
Is this a blocker? If not, I prefer to go with as it is, because we have
already built Beta candidate pack and completed most of the test scenarios.
If we have to do another build we have to do all the tests again, which
takes a lot of time.

Thanks,
Bhathiya

On Wed, Jun 8, 2016 at 12:12 PM, Sajith Perera  wrote:

> +Jerad and Dunith
>
> On Wed, Jun 8, 2016 at 12:11 PM, Sajith Perera  wrote:
>
>>
>> Hi All,
>>
>> We have faced issue while embedding date range picker gadget in to the
>> API-M admin dashboard jira [1] and [2]. Since this is major concern from
>> the user's point of view we need to have fixes before API-M beta release.
>>
>> Issue is  date range picker gadget used bootstrap-min.css and API-M admin
>> dashboard hasn't got this css and also its not compatible with admin
>> dashboard.
>>
>> As a solution I would like to suggest to adding styling and fonts files
>> inside the loganalyzer template.
>> as in this PR [3] and it is not a proper fix, and need to be looked
>> properly later.
>>
>> As per the offline chat I had with Jerad, the better fix is to use wso2
>> fonts rather than use external font icons.
>>
>> [1] - https://wso2.org/jira/browse/ANLYAPIM-54
>> [2] - https://wso2.org/jira/browse/ANLYAPIM-53
>> [3] - https://github.com/wso2/carbon-apimgt/pull/2488
>>
>> WDYT?
>>
>> Thanks,
>> SajithD
>> --
>> Sajith Dimal
>> Software Engineer
>> Mobile : +94783101496
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Sajith Dimal
> Software Engineer
> Mobile : +94783101496
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>



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

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Navigation buttons not visible in Custom Time picker in Log Analyzer

2016-06-08 Thread Sajith Perera
+Jerad and Dunith

On Wed, Jun 8, 2016 at 12:11 PM, Sajith Perera  wrote:

>
> Hi All,
>
> We have faced issue while embedding date range picker gadget in to the
> API-M admin dashboard jira [1] and [2]. Since this is major concern from
> the user's point of view we need to have fixes before API-M beta release.
>
> Issue is  date range picker gadget used bootstrap-min.css and API-M admin
> dashboard hasn't got this css and also its not compatible with admin
> dashboard.
>
> As a solution I would like to suggest to adding styling and fonts files
> inside the loganalyzer template.
> as in this PR [3] and it is not a proper fix, and need to be looked
> properly later.
>
> As per the offline chat I had with Jerad, the better fix is to use wso2
> fonts rather than use external font icons.
>
> [1] - https://wso2.org/jira/browse/ANLYAPIM-54
> [2] - https://wso2.org/jira/browse/ANLYAPIM-53
> [3] - https://github.com/wso2/carbon-apimgt/pull/2488
>
> WDYT?
>
> Thanks,
> SajithD
> --
> Sajith Dimal
> Software Engineer
> Mobile : +94783101496
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>



-- 
Sajith Dimal
Software Engineer
Mobile : +94783101496
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Navigation buttons not visible in Custom Time picker in Log Analyzer

2016-06-08 Thread Sajith Perera
Hi All,

We have faced issue while embedding date range picker gadget in to the
API-M admin dashboard jira [1] and [2]. Since this is major concern from
the user's point of view we need to have fixes before API-M beta release.

Issue is  date range picker gadget used bootstrap-min.css and API-M admin
dashboard hasn't got this css and also its not compatible with admin
dashboard.

As a solution I would like to suggest to adding styling and fonts files
inside the loganalyzer template.
as in this PR [3] and it is not a proper fix, and need to be looked
properly later.

As per the offline chat I had with Jerad, the better fix is to use wso2
fonts rather than use external font icons.

[1] - https://wso2.org/jira/browse/ANLYAPIM-54
[2] - https://wso2.org/jira/browse/ANLYAPIM-53
[3] - https://github.com/wso2/carbon-apimgt/pull/2488

WDYT?

Thanks,
SajithD
-- 
Sajith Dimal
Software Engineer
Mobile : +94783101496
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Nullable Support for JSON schema - Visual Data Mapper Editor

2016-06-08 Thread Sohani Weerasinghe
Hi All,

As an improvement to nullable support, the representation has been
implemented for xsi:nil as well and if the payload contains xsi:nil as an
attribute then the generated schema will include nullable="true" as shown
below

*Input:*

http://www.w3.org/TR/html4/; xmlns:xsi="
http://www.w3.org/TR/html4/;>
sample
011265565501
011265565501


*Schema*:

{
  "$schema" : "http://json-schema.org/draft-04/schema#;,
  "nullable" : "true",
  "attributes" : {
"xsi:nil" : {
  "nullable" : "false",
  "id" : "http://wso2jsonschema.org/xsi:nil;,
  "type" : "boolean"
}
  },
  "id" : "http://wso2jsonschema.org;,
  "title" : "h:person",
  "type" : "object",
  "properties" : {
"firstName" : {
  "nullable" : "true",
  "attributes" : {
"xsi:nil" : {
  "nullable" : "false",
  "id" : "http://wso2jsonschema.org/xsi:nil;,
  "type" : "boolean"
}
  },
  "id" : "http://wso2jsonschema.org/firstName;,
  "type" : "object",
  "value" : {
"type" : "string"
  },
  "properties" : { }
},
"phone" : {
  "nullable" : "true",
  "id" : "http://wso2jsonschema.org/phone;,
  "type" : "array",
  "items" : [ {
"attributes" : {
  "xsi:nil" : {
"nullable" : "false",
"id" : "http://wso2jsonschema.org/phone/0/xsi:nil;,
"type" : "boolean"
  },
  "primary" : {
"nullable" : "false",
"id" : "http://wso2jsonschema.org/phone/0/primary;,
"type" : "boolean"
  }
},
"id" : "http://wso2jsonschema.org/phone/0;,
"type" : "object",
"value" : {
  "type" : "number"
},
"properties" : {
  "ext" : {
"nullable" : "true",
"attributes" : {
  "xsi:nil" : {
"nullable" : "false",
"id" : "http://wso2jsonschema.org/phone/0/xsi:nil;,
"type" : "boolean"
  }
},
"id" : "http://wso2jsonschema.org/phone/0/ext;,
"type" : "object",
"value" : {
  "type" : "number"
},
"properties" : { }
  }
}
  } ]
}
  },
  "namespaces" : [ {
"prefix" : "xsi",
"url" : ""
  }, {
"prefix" : "h",
"url" : "http://www.w3.org/TR/html4/;
  } ]
}

Thanks,
Sohani


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

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

On Tue, Jun 7, 2016 at 11:30 AM, Sohani Weerasinghe  wrote:

>
>
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Tue, Jun 7, 2016 at 10:45 AM, Malaka Silva  wrote:
>
>> Hi Sohani,
>>
>> I guess we are dealing with optional input/output here. So in that case
>> are we showing those in a different color or anyway to distinguish?
>>
> @Malaka: Yes, we are going to use a different icon for those nodes.
> eg: If it's an element, then the icon will be something created based on
> the previous icon used for the element, so that it will be displayed as an
> element with nullable
>
>>
>> On execution side this needs to be handled from data mapper mediator.
>>
>> On Tue, Jun 7, 2016 at 9:21 AM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> We are in a process of implementing the $subject and please find the
>>> implementation details.
>>>
>>> *Input*:
>>>
>>> http://www.w3.org/TR/html4/;>
>>> sample
>>> 011265565501
>>> 011265565501
>>> 
>>>
>>> After loading the above payload, the generated schema will be as follows
>>>
>>> {
>>>   "$schema" : "http://json-schema.org/draft-04/schema#;,
>>>   *"nullable" : "false"*,
>>>   "id" : "http://wso2jsonschema.org;,
>>>   "title" : "h:person",
>>>   "type" : "object",
>>>   "properties" : {
>>> "firstName" : {
>>>   *"nullable" : "false",*
>>>   "id" : "http://wso2jsonschema.org/firstName;,
>>>   "type" : "string"
>>> },
>>> *"nullable" : "false"*,
>>> "phone" : {
>>>   "id" : "http://wso2jsonschema.org/phone;,
>>>   "type" : "array",
>>>   "items" : [ {
>>> "attributes" : {
>>>   "primary" : {
>>>* "nullable" : "false"*,
>>> "id" : "http://wso2jsonschema.org/phone/0/primary;,
>>> "type" : "boolean"
>>>   }
>>> },
>>> "id" : "http://wso2jsonschema.org/phone/0;,
>>> "type" : "object",
>>> "value" : {
>>>   "type" : "number"
>>> },
>>> "properties" : {
>>>   "ext" : {
>>>* "nullable" : "false",*
>>> "id" : "http://wso2jsonschema.org/phone/0/ext;,
>>> "type" : "number"
>>>   }
>>> }

[Dev] Messages on Dockerfiles build using default puppet provisioning

2016-06-08 Thread Abhishek Tiwari
Hi All,

I recently built wso2mb docker image using puppet provisioning (default).
The build was successful and I was able to launch the product, but I saw
the following messages [1], which seems to indicate that yaml files from
almost all the products were accessed.

I haven't gone through the implementation yet, but I am curious as to why
we are accessing yaml files from all the products while building a specific
product.

Thanks
Abhishek


[1].
172.17.0.2 - - [08/Jun/2016 11:41:08] "GET
/hieradata/dev/wso2/wso2dss/3.5.0/default/worker.yaml HTTP/1.1" 200 -
2016-06-08 06:11:08 URL:
http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/default/worker.yaml
[1466/1466] -> "hieradata/dev/wso2/wso2dss/3.5.0/default/worker.yaml" [2]
No data received.
172.17.0.2 - - [08/Jun/2016 11:41:09] "GET
/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/default.yaml HTTP/1.1" 200 -
2016-06-08 06:11:09 URL:
http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/default.yaml
[6804/6804] -> "hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/default.yaml"
[2]
No data received.
172.17.0.2 - - [08/Jun/2016 11:41:10] "GET
/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/manager.yaml HTTP/1.1" 200 -
2016-06-08 06:11:10 URL:
http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/manager.yaml
[1497/1497] -> "hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/manager.yaml"
[2]
No data received.
172.17.0.2 - - [08/Jun/2016 11:41:11] "GET
/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/worker.yaml HTTP/1.1" 200 -
2016-06-08 06:11:11 URL:
http://172.17.0.1:8000/hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/worker.yaml
[1500/1500] -> "hieradata/dev/wso2/wso2dss/3.5.0/kubernetes/worker.yaml" [2]
No data received.
172.17.0.2 - - [08/Jun/2016 11:41:12] "GET
/hieradata/dev/wso2/wso2es/2.0.0/default/default.yaml HTTP/1.1" 200 -
2016-06-08 06:11:12 URL:
http://172.17.0.1:8000/hieradata/dev/wso2/wso2es/2.0.0/default/default.yaml
[10013/10013] -> "hieradata/dev/wso2/wso2es/2.0.0/default/default.yaml" [2]
No data received.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Option to ship MQTT client lib with ESB

2016-06-08 Thread Pamod Sylvester
Hi All,

Could we consider the $Subject, (since the library is interoperable with
all standard MQTT brokers).

Currently it requires client lib to be separately downloaded when
integrating with a broker [1]

[1]
https://docs.wso2.com/display/ESB490/Sample+906%3A+Inbound+Endpoint+MQTT+Protocol+Sample

Thanks,
Pamod

-- 
*Pamod Sylvester *

*WSO2 Inc.; http://wso2.com *
cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [PC] Adding greg Permission app extension as a feature to carbon store

2016-06-08 Thread Waruna Jayaweera
Hi,
We are working on adding process level permission support for process
center. Similar feature has been done as greg-permissions app extension in
product greg.
We can use same app extension but we had to copy both greg-permissions
and greg-publisher-defaults app extensions to product pc repo . Can we add
this as a feature to carbon store?

Thanks,
Waruna


-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-06-08 Thread Pushpalanka Jayawardhana
On Tue, Jun 7, 2016 at 11:01 AM, Manujith Pallewatte 
wrote:

> Hi all,
>
> Code is almost all refracted (apart from the part where authenticators are
> hard coded) and it' is available at [1]
> I have attached a readme so everyone can help with testing it. But there's
> still an issue remaining to debug with the *entitled-attribs *service
> call, that came up in preliminary testing by Omindu.
>
> Thank You Omindu, I will use the formatting configs and format the code
> asap. For now i added a gitignore as in the sample you sent, but I left 
> *target
> *directory intact so that i can share the war file through the repo.
>
> Also for the PR, to which repo should I send the PR for? Or shall I wait
> for further testing of the code so that we can minimize any bugs?
>
If code refactoring, formatting, cleanup are done, you have run Findbug
plugin(This is a plugin that can integrate to IDE. If you already haven't
try it.) and fixed any issues reported against code and functionality is
working, we are OK to review the code. You can further test the code and
fix the bugs while integrating any review comments we put on the PR.

"Please share the code progress via Github, once you are satisfied with
refactoring.
Please fork [1] to your private repo, and at location [2], you may have a
new component named 'org.wso2.carbon.identity.entitlement.endpoint' where
the implementation can reside.

[1] - https://github.com/wso2/carbon-identity-framework
[2] -
https://github.com/wso2/carbon-identity-framework/tree/master/components/entitlement
"

>
> [1] https://github.com/ManZzup/identity-entitlement-endpoint
>
> Thank You,
> Best Regards
> Manujith
>
> On Tue, Jun 7, 2016 at 10:30 AM, Omindu Rathnaweera 
> wrote:
>
>> Adding a .gitignore to the repo will be the easiest way to keep the
>> unwanted files away from the repo. See [1].
>>
>> [1] -
>> https://github.com/wso2/carbon-identity-framework/blob/master/.gitignore
>>
>> Regards,
>> Omindu
>>
>> On Tue, Jun 7, 2016 at 10:26 AM, Pushpalanka Jayawardhana > > wrote:
>>
>>> Hi Manujith,
>>>
>>> The IDE specific files(.iml) or code can be removed from the repository.
>>> Once the code refactoring is done and code is cleaned please feel free
>>> to send the PR. Then we can easily comment on the code.
>>>
>>> Thanks,
>>> Pushpalanka
>>>
>>>
>>> On Tue, Jun 7, 2016 at 10:12 AM, Omindu Rathnaweera 
>>> wrote:
>>>
 Hi Manujith,

 Better if you can clean up the unnecessary code and do some code
 refactoring. We can do another round of testing once you fix the issues I
 have mention. You can use the attached Idea Code Formatting Template [1].

 To apply the template, follow the steps below.

 1. In IDEA settings, goto Editor -> Code Style.
 2. Click 'Manage' then 'Save As...' an existing scheme with the name
 'wso2-codestyle' and Close the IDE.
 3. Goto ~/.IntelliJIdea16/config/codestyles directory and replace the
 'wso2-codestyle.xml' file with the attached one.

 [1] -
 https://drive.google.com/file/d/0BzRDbfbIaYjCSzhGRUR1aGdlTXM/view?usp=sharing

 Regards,
 Omindu.


 On Mon, Jun 6, 2016 at 8:29 AM, Manujith Pallewatte <
 manujith...@gmail.com> wrote:

> Hi all,
>
> After a bit of refactoring I added the code to [1]. Please feel free
> to check the source and give your ideas to improve, specially on the
> service related code. All the service related code is available at [2]
>
> Also Omindu tested the initial war file and reported several issues
> with it, hoping to debug those within the week
>
>
> [1] https://github.com/ManZzup/identity-entitlement-endpoint
> [2]
> https://github.com/ManZzup/identity-entitlement-endpoint/blob/master/src/main/java/org/wso2/carbon/identity/entitlement/provider/resources/DecisionResource.java
>
> On Wed, Jun 1, 2016 at 10:21 AM, Pushpalanka Jayawardhana <
> la...@wso2.com> wrote:
>
>> Hi Manujith,
>>
>> Please share the code progress via Github, once you are satisfied
>> with refactoring.
>> Please fork [1] to your private repo, and at location [2], you may
>> have a new component named 
>> 'org.wso2.carbon.identity.entitlement.endpoint'
>> where the implementation can reside.
>>
>> [1] - https://github.com/wso2/carbon-identity-framework
>> [2] -
>> https://github.com/wso2/carbon-identity-framework/tree/master/components/entitlement
>>
>> Thanks,
>> Pushpalanka
>>
>> On Wed, Jun 1, 2016 at 10:00 AM, Manujith Pallewatte <
>> manujith...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> So I have roughly finished up the following 5 services in REST
>>> getDecision
>>> getDecisionByAttibutes
>>> getBooleanDecision
>>> getEntitledAttributes
>>> getAllEntitlements
>>>
>>> The service is packed to a war file