[Dev] Cannot append third context url to startup log

2016-08-04 Thread Malintha Adikari
Hi,

We have 3 jaggery apps in PC and we want to show each app context URL in
startup log. We can add context URLs up to two apps but 3rd app context URL
is not appearing in the log. I got to know that this is a known issue. Do
we have fix/workaround for this issue ? Is there any public jira to track
the issue ?

Regards,
Malintha

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

Mobile: +94 71 2312958
Blog:http://malinthas.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Update on Kubernetes setup

2016-08-04 Thread Imesh Gunaratne
On Fri, Aug 5, 2016 at 7:29 AM, Abhishek Tiwari <
abhishek.tiwari0...@gmail.com> wrote:

> Hi Imesh,
>
> I am not trying access container in K8S, this problem was while running
> tests for regular container deployement (which we call default platform).
>

​Right, we might not need to consider standard Docker based deployment in
this project. The reason is that production deployments would most likely
use a container cluster manager.

Thanks​


>
> Thanks
> Abhishek
>
>
> On Wednesday, August 3, 2016, Imesh Gunaratne  wrote:
>
>>
>> ​Hi Abhishek,​
>>
>> On Thu, Aug 4, 2016 at 9:39 AM, Abhishek Tiwari <
>> abhishek.tiwari0...@gmail.com> wrote:
>>
>>> Hi Imesh,
>>>
>>> Most important issue was the IP address of docker container is not
>>> accessibly directly, so I added a config in the test-config.json to specify
>>> docker-machine ip address. If it is not present, I try to get the IP
>>> address of the docker container.
>>>
>>
>> ​Can you please explain why you are trying to access the containers on
>> K8S using their IP addresses from the external network? What's your
>> approach?
>>
>> Thanks
>>
>>>
>>> Vishanth,
>>> I am still working on completing smoke tests so that I can make the
>>> end-to-end workflow. Once that is done, I will schedule the demo.
>>>
>>> Thanks
>>> Abhishek
>>>
>>> On Wed, Aug 3, 2016 at 11:23 AM, Imesh Gunaratne  wrote:
>>>
 Hi Abhishek,

 Please always send mails to WSO2 Dev except when you have sensitive
 information (such as credentials, etc) to share with us.

 On Wed, Aug 3, 2016 at 10:29 AM, Abhishek Tiwari <
 abhishek.tiwari0...@gmail.com> wrote:

> Hi Mentors,
>
> I am able to run Kubernetes cluster on my Mac now and currently
> working on deploying ESB on it. I ran into few issues with test framework
> not working on Mac.
>

 ​
 I
 ​t would be better to be more specific on the errors.​

>
> Mac uses docker-machine (OSX specific util) to create virtual hosts
> where it runs docker daemon, so its a bit different than Unix where daemon
> runs directly on host. The IP address of deployed container is not 
> directly
> accessible, you need either create forwarding or go through
> docker-machine's IP address. There were bunch of other small changes that 
> I
> had to do to make the test framework work across both Mac and Unix. Now
> that its done, I am working on deployment.
>

 ​What were the changes you did?

 Thanks
 ​

 --
 *Imesh Gunaratne*
 Software Architect
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: https://medium.com/@imesh TW: @imesh
 lean. enterprise. middleware


>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Software Architect
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: https://medium.com/@imesh TW: @imesh
>> lean. enterprise. middleware
>>
>>


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


Re: [Dev] [GSOC 16] Initial Project Progress

2016-08-04 Thread Imesh Gunaratne
On Fri, Aug 5, 2016 at 9:07 AM, Osura Rathnayake > wrote:

> Hi Mentors,
>
> This is the progress so far.
>
> I have created a template, using which you can deploy 3 VMs, manager node,
> worker node and a DB. This template can be used in any azure subscription,
> you only have to do a template deployment using that template. You have to
> pass the relevant VM images at the time of deployment so for that I have
> created 5 VM images,
>
>1. WSO2 AS as manager
>2. WSO2 AS as worker
>3. WSO2 ESB as manager
>4. WSO2 ESB as worker
>5. DB
>
> ​Are you running a database server on a VM? On Azure it would be better to
use their database service for creating databases otherwise managing
databases on VMs would be difficult.

These VM images are in my azure storage account so that prior to the
> deployment, they have to be copied to the storage account of the customer.
> Each VM image is approx 30 GB in size. Once you copied the images, you can
> start the deployment using the template.
> ​
>

​Ideally we should have a configuration management system in place to
manage this. It's an overhead to work with multiple VM images.
​
​

Thanks


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


Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-04 Thread Sohani Weerasinghe
Hi Shafreen,

I have used [1] in testing the functions, since there is no proper
reference to get a list of functions supported by the Saxon 9.4 HE. Based
on this, can we confirm that the mentioned functions in the above thread
are not supported in HE? (so that we can conclude with the functions we are
supporting in ESB)

[1] http://www.saxonica.com/html/documentation9.4/functions/

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

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

On Fri, Aug 5, 2016 at 10:21 AM, Shafreen Anfar  wrote:

> Hi Sohanai,
>
> [+ Asanthi]
>
> We are using Saxon: HE (Home Edition) for XAPTH 2 functions. AFAIK, we
> don't select functionality to support so anything supported by library
> should already be there, which means it's likely HE edition does not
> contain function you're looking for. Please have a look at [1].
>
> [1] http://www.saxonica.com/html/documentation9.4/about/
>
> On Thu, Aug 4, 2016 at 6:57 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi ESB Team,
>>
>> Please find the summary of issues encountered while testing the XPath 2.0
>> functions at [1] ( referred [2] & [3] for syntax) and really appreciate
>> your input on this
>>
>>
>> *1. "Invalid XPath Syntax" occurs when saving the synapse configuration
>> in management console*
>>
>> This error occurs for below functions:
>>
>>- avg- fn:avg((1,2,3,4,5))
>>- codepoints-to-string - fn:codepoints-to-string((97, 32, 98, 32,
>>99)))
>>- distinct-values - fn:distinct-values( ('a', 'b', 'a') ) -This is
>>supported when passing the value as an xml payload
>>- id - //book/section/secRef/fn:id(@refs)
>>- idref - //book/idref('language')/string(.)
>>- index-of - fn:index-of( (4, 5, 6, 4), 4)
>>- max- fn:max((2,3,5))
>>- min - fn:min((2,3,5))
>>- remove - fn:remove( ('a', 'b', 'c'), 2)
>>- reverse - fn:reverse((1, 2, 3, 4, 5))  -This is supported when
>>passing the value as an xml payload
>>- string-join - string-join( ('a', 'b', 'c'), '')
>>- subsequence - fn:subsequence(('a', 'b', 'c', 'd', 'e'), 3)
>>
>>
>> *2. Issues in using error() function*
>>
>> According to https://www.w3.org/TR/xpath-functions-30/#ERRFOER ,
>> calling the function with empty parameters should give an unidentified
>> error. But when invoking the service it gives below exception
>>
>> Is this accepted?
>>
>> ERROR - SynapseXPath Evaluation of the XPath expression fn:error()
>> resulted in an error
>> ; Line#: 1; Column#: -1
>> net.sf.saxon.trans.XPathException: Error signalled by application call
>> on error()
>> at net.sf.saxon.functions.Error.error(Error.java:98)
>> at net.sf.saxon.functions.Error.evaluateItem(Error.java:55)
>> at net.sf.saxon.expr.Expression.iterate(Expression.java:429)
>> at net.sf.saxon.xpath.XPathExpressionImpl.evaluate(XPathExpress
>> ionImpl.java:326)
>> at net.sf.saxon.xpath.XPathExpressionImpl.evaluate(XPathExpress
>> ionImpl.java:389)
>> at org.apache.synapse.util.xpath.SynapseXPath.evaluateDOMXPath(
>> SynapseXPath.java:533)
>> at org.apache.synapse.util.xpath.SynapseXPath.stringValueOf(Syn
>> apseXPath.java:367)
>> at org.apache.synapse.mediators.MediatorProperty.getEvaluatedEx
>> pression(MediatorProperty.java:138)
>> at org.apache.synapse.mediators.builtin.LogMediator.setCustomPr
>> operties(LogMediator.java:223)
>> at org.apache.synapse.mediators.builtin.LogMediator.getCustomLo
>> gMessage(LogMediator.java:146)
>> at org.apache.synapse.mediators.builtin.LogMediator.getLogMessa
>> ge(LogMediator.java:132)
>> at org.apache.synapse.mediators.builtin.LogMediator.mediate(Log
>> Mediator.java:101)
>> at org.apache.synapse.mediators.AbstractListMediator.mediate(Ab
>> stractListMediator.java:97)
>> at org.apache.synapse.mediators.AbstractListMediator.mediate(Ab
>> stractListMediator.java:54)
>> at org.apache.synapse.mediators.base.SequenceMediator.mediate(S
>> equenceMediator.java:158)
>> at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.re
>> ceive(ProxyServiceMessageReceiver.java:210)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at org.apache.synapse.transport.passthru.ServerWorker.processEn
>> tityEnclosingRequest(ServerWorker.java:398)
>> at org.apache.synapse.transport.passthru.ServerWorker.run(Serve
>> rWorker.java:145)
>> at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.
>> run(NativeWorkerPool.java:172)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1145)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>> *3. "System function is not available with this host language/version"
>> occurs when invoking the service*
>>
>> According to 
>> https://sourceforge.net/p/saxon/mailman/saxon-help/thread/
>> 

[Dev] [C5][CAAS]Getting Invalid user credential When trying to invoke MB through CAAS

2016-08-04 Thread Sajini De Silva
Hi,

We  have implemented Authentication and Authorization module for MB using
CAAS. When trying to invoke MB through a JMS client I'm getting the
exception in [1]. I have populated the sample data to the user store using
the script in [2]. I'm using username "admin" and password "admin" to
invoke this.

Any idea about this?

[1] WARN {org.wso2.andes.server.handler.ConnectionStartOkMethodHandler} -
Authentication attemp failed. org.wso2.carbon.security.caas.
api.exception.CarbonSecuri
tyServerException: 10001 - One or more credential stores produced errors
while authenticating.
at org.wso2.carbon.security.caas.api.util.
CarbonSecurityExceptionUtil.buildLoginException(CarbonSecurityExceptionUtil.
java:55)
at org.wso2.carbon.security.caas.api.module.
UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:122)
at org.wso2.carbon.security.caas.boot.ProxyLoginModule.login(
ProxyLoginModule.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at javax.security.auth.login.LoginContext.invoke(
LoginContext.java:755)
at javax.security.auth.login.LoginContext.access$000(
LoginContext.java:195)
at javax.security.auth.login.LoginContext$4.run(
LoginContext.java:682)
at javax.security.auth.login.LoginContext$4.run(
LoginContext.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(
LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(
LoginContext.java:587)
at org.wso2.carbon.andes.core.security.AndesAuthenticationManager.
authenticate(AndesAuthenticationManager.java:75)
at org.wso2.andes.amqp.AMQPAuthenticationManager.authenticate(
AMQPAuthenticationManager.java:65)
at org.wso2.andes.server.handler.ConnectionStartOkMethodHandler
.methodReceived(ConnectionStartOkMethodHandler.java:59)
at org.wso2.andes.server.handler.ServerMethodDispatcherImpl.
dispatchConnectionStartOk(ServerMethodDispatcherImpl.java:524)
at org.wso2.andes.framing.amqp_0_91.ConnectionStartOkBodyImpl.
execute(ConnectionStartOkBodyImpl.java:143)
at org.wso2.andes.server.state.AMQStateManager.methodReceived(
AMQStateManager.java:169)
at org.wso2.andes.server.protocol.AMQProtocolEngine.
methodFrameReceived(AMQProtocolEngine.java:374)
at org.wso2.andes.framing.AMQMethodBodyImpl.handle(
AMQMethodBodyImpl.java:92)
at org.wso2.andes.server.protocol.AMQProtocolEngine.frameReceived(
AMQProtocolEngine.java:319)
at org.wso2.andes.server.protocol.AMQProtocolEngine.
dataBlockReceived(AMQProtocolEngine.java:268)
at org.wso2.andes.server.protocol.AMQProtocolEngine$1.
run(AMQProtocolEngine.java:237)
at org.wso2.andes.pool.Job.processAll(Job.java:111)
at org.wso2.andes.pool.Job.run(Job.java:158)
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: 
org.wso2.carbon.security.caas.user.core.exception.AuthenticationFailure:
Invalid user credentials.
at org.wso2.carbon.security.caas.user.core.store.
CredentialStoreImpl.authenticate(CredentialStoreImpl.java:112)
at org.wso2.carbon.security.caas.api.module.
UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:119)
... 28 more
Suppressed:
org.wso2.carbon.security.caas.user.core.exception.CredentialStoreException:
Unable to retrieve password information.
at org.wso2.carbon.security.userstore.jdbc.connector.
JDBCCredentialStoreConnector.authenticate(JDBCCredentialStoreConnector.
java:119)
at org.wso2.carbon.security.caas.user.core.store.
CredentialStoreImpl.authenticate(CredentialStoreImpl.java:117)
... 29 more

[2]
https://github.com/wso2-extensions/carbon-security-user-store-jdbc/blob/master/tests/osgi-tests/src/test/resources/h2_test_data.sql

Thanks,

-- 
Sajini De SIlva
Senior Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva

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


Re: [Dev] Integration tests are failing due to NoClassDefFoundError

2016-08-04 Thread KasunG Gajasinghe
We have seen this happening when there are multiple different versions of
the same bundle. When webapps uses classes from both these bundles,
class-space violations occur. The error is shown as a java.lang.
NoClassDefFoundError.

On Wed, Aug 3, 2016 at 5:23 PM, Lakshani Gamage  wrote:

> Hi all,
>
> When running App Manager test cases, few test cases are randomly failing
> due to following [1] and [2] errors.
>
> Does anyone know a reason for this? Appreciate your help to find the
> reason.
>
> [1]
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - [2016-08-03 11:12:29,623] ERROR - ContextLoader Context initialization
> failed
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'services': Cannot create inner bean
> 'org.wso2.carbon.appmgt.rest.api.publisher.AppsApi#5c6bbc21' of type
> [org.wso2.carbon.appmgt.rest.api.publisher.AppsApi] while setting bean
> property 'serviceBeans' with key [2]; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.wso2.carbon.appmgt.rest.api.publisher.AppsApi#5c6bbc21'
> defined in ServletContext resource [/WEB-INF/beans.xml]: Instantiation of
> bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException:
> Failed to instantiate [org.wso2.carbon.appmgt.rest.api.publisher.AppsApi]:
> Constructor threw exception; nested exception is 
> java.lang.NoClassDefFoundError:
> org/wso2/carbon/appmgt/impl/AppRepository
>
>
> [2]
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - [2016-08-03 11:13:47,982] ERROR - ApplicationContext
> StandardWrapper.Throwable
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'mobileAppServiceV1': Cannot resolve reference to bean
> 'discoveryServiceV1' while setting bean property 'serviceBeans' with key
> [1]; nested exception is 
> org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'discoveryServiceV1' defined in URL
> [jndi:/localhost/api/WEB-INF/cxf-servlet.xml]: Instantiation of bean
> failed; nested exception is 
> org.springframework.beans.BeanInstantiationException:
> Could not instantiate bean class [org.wso2.carbon.appmgt.
> services.api.v1.apps.discovery.service.DiscoveryService]: Constructor
> threw exception; nested exception is java.lang.NoClassDefFoundError:
> org/wso2/carbon/appmgt/impl/discovery/DiscoveryCredentials
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at org.springframework.beans.factory.support.
> BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.
> java:328)
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at org.springframework.beans.factory.support.
> BeanDefinitionValueResolver.resolveValueIfNecessary(
> BeanDefinitionValueResolver.java:106)
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at org.springframework.beans.factory.support.
> BeanDefinitionValueResolver.resolveManagedList(
> BeanDefinitionValueResolver.java:353)
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at org.springframework.beans.factory.support.
> BeanDefinitionValueResolver.resolveValueIfNecessary(
> BeanDefinitionValueResolver.java:153)
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at org.springframework.beans.factory.support.
> AbstractAutowireCapableBeanFactory.applyPropertyValues(
> AbstractAutowireCapableBeanFactory.java:1327)
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at org.springframework.beans.factory.support.
> AbstractAutowireCapableBeanFactory.populateBean(
> AbstractAutowireCapableBeanFactory.java:1085)
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at org.springframework.beans.factory.support.
> AbstractAutowireCapableBeanFactory.doCreateBean(
> AbstractAutowireCapableBeanFactory.java:516)
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at org.springframework.beans.factory.support.
> AbstractAutowireCapableBeanFactory.createBean(
> AbstractAutowireCapableBeanFactory.java:455)
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at org.springframework.beans.factory.support.AbstractBeanFactory$1.
> getObject(AbstractBeanFactory.java:293)
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at org.springframework.beans.factory.support.
> DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.
> java:222)
> INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - 

Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-04 Thread Shafreen Anfar
Hi Sohanai,

[+ Asanthi]

We are using Saxon: HE (Home Edition) for XAPTH 2 functions. AFAIK, we
don't select functionality to support so anything supported by library
should already be there, which means it's likely HE edition does not
contain function you're looking for. Please have a look at [1].

[1] http://www.saxonica.com/html/documentation9.4/about/

On Thu, Aug 4, 2016 at 6:57 PM, Sohani Weerasinghe  wrote:

> Hi ESB Team,
>
> Please find the summary of issues encountered while testing the XPath 2.0
> functions at [1] ( referred [2] & [3] for syntax) and really appreciate
> your input on this
>
>
> *1. "Invalid XPath Syntax" occurs when saving the synapse configuration in
> management console*
>
> This error occurs for below functions:
>
>- avg- fn:avg((1,2,3,4,5))
>- codepoints-to-string - fn:codepoints-to-string((97, 32, 98, 32, 99)))
>- distinct-values - fn:distinct-values( ('a', 'b', 'a') ) -This is
>supported when passing the value as an xml payload
>- id - //book/section/secRef/fn:id(@refs)
>- idref - //book/idref('language')/string(.)
>- index-of - fn:index-of( (4, 5, 6, 4), 4)
>- max- fn:max((2,3,5))
>- min - fn:min((2,3,5))
>- remove - fn:remove( ('a', 'b', 'c'), 2)
>- reverse - fn:reverse((1, 2, 3, 4, 5))  -This is supported when
>passing the value as an xml payload
>- string-join - string-join( ('a', 'b', 'c'), '')
>- subsequence - fn:subsequence(('a', 'b', 'c', 'd', 'e'), 3)
>
>
> *2. Issues in using error() function*
>
> According to https://www.w3.org/TR/xpath-functions-30/#ERRFOER ,
> calling the function with empty parameters should give an unidentified
> error. But when invoking the service it gives below exception
>
> Is this accepted?
>
> ERROR - SynapseXPath Evaluation of the XPath expression fn:error()
> resulted in an error
> ; Line#: 1; Column#: -1
> net.sf.saxon.trans.XPathException: Error signalled by application call on
> error()
> at net.sf.saxon.functions.Error.error(Error.java:98)
> at net.sf.saxon.functions.Error.evaluateItem(Error.java:55)
> at net.sf.saxon.expr.Expression.iterate(Expression.java:429)
> at net.sf.saxon.xpath.XPathExpressionImpl.evaluate(
> XPathExpressionImpl.java:326)
> at net.sf.saxon.xpath.XPathExpressionImpl.evaluate(
> XPathExpressionImpl.java:389)
> at org.apache.synapse.util.xpath.SynapseXPath.evaluateDOMXPath(
> SynapseXPath.java:533)
> at org.apache.synapse.util.xpath.SynapseXPath.stringValueOf(
> SynapseXPath.java:367)
> at org.apache.synapse.mediators.MediatorProperty.getEvaluatedExpression(
> MediatorProperty.java:138)
> at org.apache.synapse.mediators.builtin.LogMediator.setCustomProperties(
> LogMediator.java:223)
> at org.apache.synapse.mediators.builtin.LogMediator.getCustomLogMessage(
> LogMediator.java:146)
> at org.apache.synapse.mediators.builtin.LogMediator.
> getLogMessage(LogMediator.java:132)
> at org.apache.synapse.mediators.builtin.LogMediator.mediate(
> LogMediator.java:101)
> at org.apache.synapse.mediators.AbstractListMediator.mediate(
> AbstractListMediator.java:97)
> at org.apache.synapse.mediators.AbstractListMediator.mediate(
> AbstractListMediator.java:54)
> at org.apache.synapse.mediators.base.SequenceMediator.mediate(
> SequenceMediator.java:158)
> at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(
> ProxyServiceMessageReceiver.java:210)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at org.apache.synapse.transport.passthru.ServerWorker.
> processEntityEnclosingRequest(ServerWorker.java:398)
> at org.apache.synapse.transport.passthru.ServerWorker.run(
> ServerWorker.java:145)
> at org.apache.axis2.transport.base.threads.NativeWorkerPool$
> 1.run(NativeWorkerPool.java:172)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
>
> *3. "System function is not available with this host language/version"
> occurs when invoking the service*
>
> According to 
> https://sourceforge.net/p/saxon/mailman/saxon-help/
> thread/50f7f8b9.4090...@falutin.net/, it seems this is an XSLT function, is
> that the reason for getting the below error?  but at [1] this function is
> declared as an XPath function
>
>
> [2016-08-02 12:47:27,875] ERROR - SynapseXPath Evaluation of the XPath
> expression fn:format-date(fn:current-date(), '[Y01]/[M01]/[D01]')
> resulted in an error
> net.sf.saxon.trans.XPathException: System function format-date#2 is not
> available with this host language/version
> at net.sf.saxon.expr.parser.ExpressionParser.grumble(
> ExpressionParser.java:263)
> at net.sf.saxon.expr.parser.ExpressionParser.parseFunctionCall(
> ExpressionParser.java:2375)
> at net.sf.saxon.expr.parser.ExpressionParser.parseBasicStep(
> ExpressionParser.java:1731)
> at 

Re: [Dev] [IoTS] Failed to connect to the MQTT topic again after disconnect for a while in 1.0.0 alpha

2016-08-04 Thread 云展智创
Ayyoob,

Could you tell me which piece of code in the Raspberry Agent store the client 
information of the device type?

And if I create my new device plugin with "cdmf-devicetype-archetype”, does the 
result codebase will include my device type client information in the agent 
codes? 

Thanks.
--
Zhanwen Zhou (Jason)
+86 13922218435
zhanwen.z...@smartcloudex.com
Guangzhou Smart Cloudex Technology Co., Ltd.
Business: API Management, IoT

On Aug 5, 2016, at 11:31 AM, Ayyoob Hamza  wrote:

> Hi Jason,
> 
> Device does not require a username/password to refresh the token rather it 
> requires a client Id and client secret[1]. For our sample use cases we can 
> either create a clientId and client secret per device or per device type. In 
> the raspberry pi example the client information will be embedded in the 
> script. Therefore the access token for device can renewed with the client 
> information and refresh token.
> 
> [1] https://docs.wso2.com/display/IS510/Refresh+Token+Grant
> 
> Thanks,
> Ayyoob
> 
> Ayyoob Hamza
> Software Engineer
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010
> 
> On Fri, Aug 5, 2016 at 8:07 AM, 云展智创  wrote:
> Hi Ayyoob,
> 
> Thanks. I am testing to change the AccessTokenDefaultValidityPeriod to 84600 
> seconds (about one day). I want to confirm with you whether my understanding 
> of the following configuration attributes is correct.
> 
>  is used when user login in the 
> application and get the client_id and client_secret, the application need to 
> request for Refresh token and Access token in 300 seconds.
> 
>  is used for setting up the validity period 
> for device agent access token. After 3600 seconds, the device agent CAN NOT 
> access IoTS with the old Access token.
> 
>  is used for setting up the validity 
> period for user access token from UI.
> 
>  is used for setting up the validity period for 
> Refresh token. That’s means, after 84600 seconds, users need to login again 
> to get the new refresh token. But how does the device get the new Refresh 
> token as it can not login with username/password and the old refresh token is 
> expired?
> 
> =
>   
> 
> 300
> 
> 
> 3600
> 
> 
> 3600
> 
> 84600
> 
> 
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: API Management, IoT
> 
> On Aug 5, 2016, at 9:39 AM, Ayyoob Hamza  wrote:
> 
>> Hi Jason,
>> 
>> This happens when the OAuth token is expired for the device. In the IoTS 
>> alpha we have not implemented the renewing the token with refresh token 
>> part, however this has been implemented in the master. One way of having a 
>> continuous connection for the samples in alpha pack would be to increase the 
>> expiration time in identity.xml (repository/conf/identity/identity.xml).
>> 
>> Thanks,
>> Ayyoob
>> 
>> Ayyoob Hamza
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> email: ayy...@wso2.com cell: +94 77 1681010
>> 
>> On Fri, Aug 5, 2016 at 6:45 AM, 云展智创  wrote:
>> I got the following error logs from IoTS:
>> 
>> ==
>> [2016-08-05 08:57:06,466] ERROR - MessageMetricsHandler Connection reset by 
>> peer
>> java.io.IOException: Connection reset by peer
>>  at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
>>  at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
>>  at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
>>  at sun.nio.ch.IOUtil.read(IOUtil.java:192)
>>  at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
>>  at 
>> io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:446)
>>  at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881)
>>  at 
>> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:225)
>>  at 
>> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
>>  at 
>> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
>>  at 
>> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
>>  at 
>> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
>>  at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
>>  at 
>> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
>>  at 
>> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
>>  at java.lang.Thread.run(Thread.java:745)
>> [2016-08-05 08:57:06,480]  INFO - ProtocolProcessor Lost connection with 
>> client paho/551D5528F7972AE4CD
>> [2016-08-05 08:57:06,484]  INFO - MQTTopicManager Disconnecting channel for 
>> clientID: paho/551D5528F7972AE4CD
>> 

Re: [Dev] [GSOC 16] Initial Project Progress

2016-08-04 Thread Osura Rathnayake
Hi Mentors,

This is the progress so far.

I have created a template, using which you can deploy 3 VMs, manager node,
worker node and a DB. This template can be used in any azure subscription,
you only have to do a template deployment using that template. You have to
pass the relevant VM images at the time of deployment so for that I have
created 5 VM images,

   1. WSO2 AS as manager
   2. WSO2 AS as worker
   3. WSO2 ESB as manager
   4. WSO2 ESB as worker
   5. DB

These VM images are in my azure storage account so that prior to the
deployment, they have to be copied to the storage account of the customer.
Each VM image is approx 30 GB in size. Once you copied the images, you can
start the deployment using the template.

I think it'd better if you have a look at these VM images to check if they
are up to the standard.

Thanks,

On Wed, Aug 3, 2016 at 7:58 PM, Osura Rathnayake  wrote:

> Hi Imesh,
>
> Thank you for highlighting the issues. I'm right on solving them.
>
> You can find the artifacts here [1]. Using the template.json, you can
> deploy a manager node, worker node and the DB VMs and other related
> resources such as network interfaces and network security groups. also you
> can pass the VM image for each of them. For an example If you pass a WSO2
> AS manager VM image to the the manager VM in the template, you can deploy
> that manager VM with WSO2 AS. you can do the same for worker node VM and DB
> VM. Next task is to create VM images for each product as manager and
> worker. I will soon update the readme file for each of them as well.
>
> [1] https://github.com/osuran/azure-artifacts
>
> thank you,
>
> On Wed, Aug 3, 2016 at 11:44 AM, Imesh Gunaratne  wrote:
>
>> Hi Osura,
>>
>> I have reported some issues in your git repository, please have a look:
>> https://github.com/osuran/azure-membership-scheme/issues
>>
>> Where can we find the artifacts that you have created for deploying WSO2
>> AS on Azure?
>>
>> Thanks
>>
>> On Wed, Aug 3, 2016 at 10:30 AM, Osura Rathnayake 
>> wrote:
>>
>>> Hi Isuru,
>>>
>>> Thank you for the corrections. I will update you with the findings.
>>>
>>> On Wed, Aug 3, 2016 at 10:17 AM, Isuru Haththotuwa 
>>> wrote:
>>>
 Hi Osura,

 Thanks for the notes.

 On Wed, Aug 3, 2016 at 10:09 AM, Osura Rathnayake 
 wrote:

> Hi All,
>
> following are the meeting minutes of the hangout we had on 2nd of
> August, 2016.
>
> We discussed about how to automate the deployment process and came to
> the conclusion to use Azure Automation Script feature where you can
> generate a script to automate the deployment of a particular resource.
> Output of this can be in Azure Template( JSON), CLI, PowerShell, .NET or
> Ruby.
> next task : 1) As the initial step, come up with templates and CLI
> scripts for deployments of WSO2 AS, AM and ESB where there are a manager
> node and two worker with hardcoded credentials and then use puppet. 2)
> Research on the flow of automated deployment considering the dependencies.
>
> I was instructed to implement a method to get metering information
> incurred on WSO2 products.
>
 Correction: we need to check if Azure side supports the level of
 metering that is required. As per the information we have up to now, Azure
 has some billing information for the usage, in which we cannot drill down
 and get fine grained information.

>
> I was instructed to do the documentation on each automated deployment
> template, in Github in markdown format.
>
 From the R'n D point of view, lets prioritize the following:

1. automating the distributed deployment for few products (AS and
APIM, etc.)
2. Check the possibility of using WSO2 Puppet modules to create the
VM.


> Thank you,
>
> On Mon, Aug 1, 2016 at 12:44 PM, Imesh Gunaratne 
> wrote:
>
>> Hi Osura,
>>
>> It's good to see the blog posts!
>> IMO it would be better if you can start writing documentation in
>> parallel to blog posts, may be using Markdown format in Github.
>>
>> Thanks
>>
>> On Fri, Jul 29, 2016 at 10:49 AM, Osura Rathnayake <
>> osura...@gmail.com> wrote:
>>
>>> Hi Isuru,
>>>
>>> I'm researching about automation in Azure. Shall we please have the
>>> hangout on Monday?
>>> BTW I will be able to complete the documentation on centralized
>>> logging, monitoring, auto scaling and load balancing by this weekend 
>>> and I
>>> will update my blog with the progress. Your feedback is much 
>>> appreciated.
>>>
>>> Thank you,
>>>
>>> On Fri, Jul 29, 2016 at 9:51 AM, Isuru Haththotuwa 
>>> wrote:
>>>
 Hi Osura,

 On Wed, Jul 27, 2016 at 9:17 AM, Osura 

Re: [Dev] [IoTS] Failed to connect to the MQTT topic again after disconnect for a while in 1.0.0 alpha

2016-08-04 Thread Ayyoob Hamza
Hi Jason,

Device does not require a username/password to refresh the token rather it
requires a client Id and client secret[1]. For our sample use cases we can
either create a clientId and client secret per device or per device type.
In the raspberry pi example the client information will be embedded in the
script. Therefore the access token for device can renewed with the client
information and refresh token.

[1] https://docs.wso2.com/display/IS510/Refresh+Token+Grant

Thanks,
Ayyoob

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

On Fri, Aug 5, 2016 at 8:07 AM, 云展智创  wrote:

> Hi Ayyoob,
>
> Thanks. I am testing to change the AccessTokenDefaultValidityPeriod to
> 84600 seconds (about one day). I want to confirm with you whether my
> understanding of the following configuration attributes is correct.
>
>  is used when user login in the
> application and get the client_id and client_secret, the application need
> to request for Refresh token and Access token in 300 seconds.
>
>  is used for setting up the validity
> period for device agent access token. After 3600 seconds, the device agent
> CAN NOT access IoTS with the old Access token.
>
>  is used for setting up the
> validity period for user access token from UI.
>
>  is used for setting up the validity period
> for Refresh token. That’s means, after 84600 seconds, users need to login
> again to get the new refresh token. *But how does the device get the new
> Refresh token as it can not login with username/password and the old
> refresh token is expired?*
>
> =
> 
> 300 AuthorizationCodeDefaultValidityPeriod>
> 
> 3600 AccessTokenDefaultValidityPeriod>
> 
> 3600 UserAccessTokenDefaultValidityPeriod>
> 
> 84600
> 
>
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: API Management, IoT
>
> On Aug 5, 2016, at 9:39 AM, Ayyoob Hamza  wrote:
>
> Hi Jason,
>
> This happens when the OAuth token is expired for the device. In the IoTS
> alpha we have not implemented the renewing the token with refresh token
> part, however this has been implemented in the master. One way of having a
> continuous connection for the samples in alpha pack would be to increase
> the expiration time in identity.xml (repository/conf/identity/
> identity.xml).
>
> Thanks,
> Ayyoob
>
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> On Fri, Aug 5, 2016 at 6:45 AM, 云展智创  wrote:
>
>> I got the following error logs from IoTS:
>>
>> ==
>> [2016-08-05 08:57:06,466] ERROR - MessageMetricsHandler Connection reset
>> by peer
>> java.io.IOException: Connection reset by peer
>> at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
>> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
>> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
>> at sun.nio.ch.IOUtil.read(IOUtil.java:192)
>> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
>> at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(Unpoole
>> dUnsafeDirectByteBuf.java:446)
>> at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881)
>> at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(Nio
>> SocketChannel.java:225)
>> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.
>> read(AbstractNioByteChannel.java:119)
>> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEven
>> tLoop.java:511)
>> at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimiz
>> ed(NioEventLoop.java:468)
>> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEve
>> ntLoop.java:382)
>> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
>> at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(
>> SingleThreadEventExecutor.java:116)
>> at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnabl
>> eDecorator.run(DefaultThreadFactory.java:137)
>> at java.lang.Thread.run(Thread.java:745)
>> [2016-08-05 08:57:06,480]  INFO - ProtocolProcessor Lost connection with
>> client paho/551D5528F7972AE4CD
>> [2016-08-05 08:57:06,484]  INFO - MQTTopicManager Disconnecting channel
>> for clientID: paho/551D5528F7972AE4CD
>> [2016-08-05 08:57:06,529]  INFO - SubscriptionEngine Local Subscription
>> DELETED [carbon.super/raspberrypi/s4mbetlzspyc]ID=carbon:paho/551D55
>> 28F7972AE4CD:carbon.super/raspberrypi/s4mbetlzspyc@NODEZhanw
>> endeMacBook-Air.local/192.168.0.102/T=1470358626484/D=false/
>> X=true/O=/E=amq.topic/ET=/EUD=1/S=false
>> [2016-08-05 08:57:06,529]  INFO - OrphanedMessageHandler Purging messages
>> of this node persisted under carbon.super/raspberrypi/s4mbetlzspyc
>> [2016-08-05 08:57:06,540]  INFO - MessagingEngine Purged messages 

Re: [Dev] [IoTS] Failed to connect to the MQTT topic again after disconnect for a while in 1.0.0 alpha

2016-08-04 Thread 云展智创
Hi Ayyoob,

Thanks. I am testing to change the AccessTokenDefaultValidityPeriod to 84600 
seconds (about one day). I want to confirm with you whether my understanding of 
the following configuration attributes is correct.

 is used when user login in the 
application and get the client_id and client_secret, the application need to 
request for Refresh token and Access token in 300 seconds.

 is used for setting up the validity period 
for device agent access token. After 3600 seconds, the device agent CAN NOT 
access IoTS with the old Access token.

 is used for setting up the validity 
period for user access token from UI.

 is used for setting up the validity period for 
Refresh token. That’s means, after 84600 seconds, users need to login again to 
get the new refresh token. But how does the device get the new Refresh token as 
it can not login with username/password and the old refresh token is expired?

=


300


3600


3600

84600


--
Zhanwen Zhou (Jason)
+86 13922218435
zhanwen.z...@smartcloudex.com
Guangzhou Smart Cloudex Technology Co., Ltd.
Business: API Management, IoT

On Aug 5, 2016, at 9:39 AM, Ayyoob Hamza  wrote:

> Hi Jason,
> 
> This happens when the OAuth token is expired for the device. In the IoTS 
> alpha we have not implemented the renewing the token with refresh token part, 
> however this has been implemented in the master. One way of having a 
> continuous connection for the samples in alpha pack would be to increase the 
> expiration time in identity.xml (repository/conf/identity/identity.xml).
> 
> Thanks,
> Ayyoob
> 
> Ayyoob Hamza
> Software Engineer
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010
> 
> On Fri, Aug 5, 2016 at 6:45 AM, 云展智创  wrote:
> I got the following error logs from IoTS:
> 
> ==
> [2016-08-05 08:57:06,466] ERROR - MessageMetricsHandler Connection reset by 
> peer
> java.io.IOException: Connection reset by peer
>   at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
>   at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
>   at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
>   at sun.nio.ch.IOUtil.read(IOUtil.java:192)
>   at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
>   at 
> io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:446)
>   at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881)
>   at 
> io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:225)
>   at 
> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
>   at 
> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
>   at 
> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
>   at 
> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
>   at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
>   at 
> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
>   at 
> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
>   at java.lang.Thread.run(Thread.java:745)
> [2016-08-05 08:57:06,480]  INFO - ProtocolProcessor Lost connection with 
> client paho/551D5528F7972AE4CD
> [2016-08-05 08:57:06,484]  INFO - MQTTopicManager Disconnecting channel for 
> clientID: paho/551D5528F7972AE4CD
> [2016-08-05 08:57:06,529]  INFO - SubscriptionEngine Local Subscription 
> DELETED 
> [carbon.super/raspberrypi/s4mbetlzspyc]ID=carbon:paho/551D5528F7972AE4CD:carbon.super/raspberrypi/s4mbetlzspyc@NODEZhanwendeMacBook-Air.local/192.168.0.102/T=1470358626484/D=false/X=true/O=/E=amq.topic/ET=/EUD=1/S=false
> [2016-08-05 08:57:06,529]  INFO - OrphanedMessageHandler Purging messages of 
> this node persisted under carbon.super/raspberrypi/s4mbetlzspyc
> [2016-08-05 08:57:06,540]  INFO - MessagingEngine Purged messages of 
> destination carbon.super/raspberrypi/s4mbetlzspyc
> [2016-08-05 08:57:07,775]  INFO - ProtocolProcessor Lost connection with 
> client paho/551D5528F7972AE4CD
> [2016-08-05 08:57:07,776]  WARN - ProtocolProcessor MQTTAuthorizationSubject 
> for client ID paho/551D5528F7972AE4CD is not removed since the entry does not 
> exist
> [2016-08-05 08:57:08,795]  INFO - ProtocolProcessor Lost connection with 
> client paho/551D5528F7972AE4CD
> [2016-08-05 08:57:08,795]  WARN - ProtocolProcessor MQTTAuthorizationSubject 
> for client ID paho/551D5528F7972AE4CD is not removed since the entry does not 
> exist
> [2016-08-05 08:57:09,810]  INFO - ProtocolProcessor Lost connection with 
> client paho/551D5528F7972AE4CD
> ……
> ==
> 
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> 

Re: [Dev] GSoC2016-Contact Development Team Feature

2016-08-04 Thread Kavith Lokuhewage
Hi Nathiesha,

Shall we have the meeting at 2pm – 3pm today? Please let us know your
availability.
Thanks,

*Kavith Lokuhewage*
Senior Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +94779145123
Linkedin   Twitter


On Thu, Aug 4, 2016 at 12:21 PM, Nathiesha Maddage <
nathieshamadd...@gmail.com> wrote:

> Hi Kavith,
>
> I started with creating a micro service. Thank you for the reference.
> If you can please show me how to host it in the cloud, maybe during
> tomorrow meeting.
>
> Thanks and regards
>
> Nathiesha
>
> On Wed, Aug 3, 2016 at 10:22 AM, Kavith Lokuhewage 
> wrote:
>
>> Hi Nathiesha,
>>
>> Friday morning seems to work for us. I will send you an invitation
>> shortly.
>>
>> BTW, instead of implementing a JAX-RS service, we can implement a micro
>> service using WSO2 MSF4J 2.0.0. And WSO2 app cloud now supports deploying
>> micro-services on the cloud.
>>
>> Please follow [1] to create a micro service. It has detailed steps with a
>> hello world service sample. Once you define the service structure, you will
>> be able to reuse most of the code from existing publishers.
>> However we have to externalize credentials for JIRA and SMTP to a file.
>> You may use Java Preferences API to do that.
>>
>> For now, test it on your local env. We can directly host the jar in the
>> cloud and get a URL for the service. I can show you how to do it in a quick
>> call if needed. Anyway, local testing is sufficient for now and make sure
>> that the service URL is configurable via eclipse preferences.
>>
>> Thanks,
>>
>> [1] *https://github.com/wso2/msf4j *
>>
>> *Kavith Lokuhewage*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +94779145123
>> Linkedin 
>> Twitter 
>>
>> On Wed, Aug 3, 2016 at 8:58 AM, Nathiesha Maddage <
>> nathieshamadd...@gmail.com> wrote:
>>
>>> Hi Kavith,
>>>
>>> I will fork the repo as you have suggested and I got started with the
>>> REST API part.
>>> How about Friday morning for the next meeting?
>>>
>>> Thanks and Regards
>>>
>>> Nathiesha
>>>
>>> On Tue, Aug 2, 2016 at 9:42 PM, Kavith Lokuhewage 
>>> wrote:
>>>
 Hi Nathiesha,

 Nothing wrong with both poms and yeah, pom1.xml will break the build.
 However, I think there's a proper solution to this.
 Take a fork of the developer-studio-kernel repo, add your plugin to
 plugins folder. Keep working on that repo afterwards. This way, after
 finalizing the development, you can directly send a pull request to kernel
 repo from your fork.
 Yes, we use the qualifier in versions, in addition to major, minor and
 patch version components.

 As we discussed during previous meeting, you can now start working on
 moving email and jira publishing logic to a web app and expose a single
 rest API for to invoke them. So, eclipse plugin will call to this rest
 service and only a single publisher will be implemented in the plugin. In
 this way, we can get rid of asking users to register on our jira and asking
 them to enter their gmail credentials - both which are most likely ignored
 by users. We will create a bot jira user and email account and keep those
 credentials within the web app it self - and only ask users about their
 contact information (name, email - in case we need to get back - and
 company) when sending the error report.

 BTW, we can have another review on this Friday. Please propose a time
 which fits for you.

 Thanks,


 *Kavith Lokuhewage*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 Mobile - +94779145123
 Linkedin 
 Twitter 

 On Tue, Aug 2, 2016 at 8:33 AM, Nathiesha Maddage <
 nathieshamadd...@gmail.com> wrote:

> Hi Kavith,
>
> I tried creating the pom.xml by referring to the Developer Studio
> plugin projects in git hub. Following the same structure as in the github
> plugin projects. I came up with this, pom1.xml.
>
> However since my project is still not under those parent projects as
> in github, I created another pom2.xml as follows, by removing the parent
> tag, by adding p2 repositaries and tycho plugin. After fixing couple of
> errors, I could successfully build the project using pom2.xml.
>
> Can you please have a look at the two pom.xml files and tell me if
> they seem to be OK or if there are any issues in them? If that is OK, I 
> can
> move to the next milestone of the project.
>
> Furthermore I changed the 

Re: [Dev] Update on Kubernetes setup

2016-08-04 Thread Abhishek Tiwari
Hi Imesh,

I am not trying access container in K8S, this problem was while running
tests for regular container deployement (which we call default platform).

Thanks
Abhishek

On Wednesday, August 3, 2016, Imesh Gunaratne  wrote:

>
> ​Hi Abhishek,​
>
> On Thu, Aug 4, 2016 at 9:39 AM, Abhishek Tiwari <
> abhishek.tiwari0...@gmail.com
> > wrote:
>
>> Hi Imesh,
>>
>> Most important issue was the IP address of docker container is not
>> accessibly directly, so I added a config in the test-config.json to specify
>> docker-machine ip address. If it is not present, I try to get the IP
>> address of the docker container.
>>
>
> ​Can you please explain why you are trying to access the containers on K8S
> using their IP addresses from the external network? What's your approach?
>
> Thanks
>
>>
>> Vishanth,
>> I am still working on completing smoke tests so that I can make the
>> end-to-end workflow. Once that is done, I will schedule the demo.
>>
>> Thanks
>> Abhishek
>>
>> On Wed, Aug 3, 2016 at 11:23 AM, Imesh Gunaratne > > wrote:
>>
>>> Hi Abhishek,
>>>
>>> Please always send mails to WSO2 Dev except when you have sensitive
>>> information (such as credentials, etc) to share with us.
>>>
>>> On Wed, Aug 3, 2016 at 10:29 AM, Abhishek Tiwari <
>>> abhishek.tiwari0...@gmail.com
>>> > wrote:
>>>
 Hi Mentors,

 I am able to run Kubernetes cluster on my Mac now and currently working
 on deploying ESB on it. I ran into few issues with test framework not
 working on Mac.

>>>
>>> ​
>>> I
>>> ​t would be better to be more specific on the errors.​
>>>

 Mac uses docker-machine (OSX specific util) to create virtual hosts
 where it runs docker daemon, so its a bit different than Unix where daemon
 runs directly on host. The IP address of deployed container is not directly
 accessible, you need either create forwarding or go through
 docker-machine's IP address. There were bunch of other small changes that I
 had to do to make the test framework work across both Mac and Unix. Now
 that its done, I am working on deployment.

>>>
>>> ​What were the changes you did?
>>>
>>> Thanks
>>> ​
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Software Architect
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: https://medium.com/@imesh TW: @imesh
>>> lean. enterprise. middleware
>>>
>>>
>>
>
>
> --
> *Imesh Gunaratne*
> Software Architect
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: https://medium.com/@imesh TW: @imesh
> lean. enterprise. middleware
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2-extensions contribution..

2016-08-04 Thread Malaka Silva
+1

On Thu, Aug 4, 2016 at 8:59 PM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> Hi Malaka,
>
> There is another method "readResponseHTTPS" , we may need to modify that
> method also as Kim has improved using the same concept.
>
> Shall we do the improvement?
>
>
>
>
> *Thank youVivekananthan Sivanayagam*
>
> *Associate Software Engineer | WSO2*
>
> *E:vivekanant...@wso2.com *
> *M:+94752786138 <%2B94752786138>*
>
> On Thu, Aug 4, 2016 at 8:42 PM, Malaka Silva  wrote:
>
>> Hi Kim,
>>
>> Thank you for your contribution.
>>
>> On Thu, Aug 4, 2016 at 6:49 PM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> Hi ,
>>>
>>> We have reviewed and merged.
>>>
>>>
>>>
>>>
>>> *Thank youVivekananthan Sivanayagam*
>>>
>>> *Associate Software Engineer | WSO2*
>>>
>>> *E:vivekanant...@wso2.com *
>>> *M:+94752786138 <%2B94752786138>*
>>>
>>> On Thu, Aug 4, 2016 at 3:12 PM, Vivekananthan Sivanayagam <
>>> vivekanant...@wso2.com> wrote:
>>>
 Hi Malaka,

 Noted.




 *Thank youVivekananthan Sivanayagam*

 *Associate Software Engineer | WSO2*

 *E:vivekanant...@wso2.com *
 *M:+94752786138 <%2B94752786138>*

 On Thu, Aug 4, 2016 at 2:49 PM, Malaka Silva  wrote:

> Thx for the information Kim.
>
> @Vivekananthan - Can we check this and merge?
>
> On Thu, Aug 4, 2016 at 1:54 PM, 김대경  wrote:
>
>> Hi Silva,
>>
>> I sent all information about improvement by email before...
>>
>> Did you mean..
>> create issue in wso2 jira?
>>
>> Code change is about 6 line.
>> I think this is so simple change..
>>
>> What should I do..?
>>
>>  sent before ===
>> Hi Silva.
>>
>> This is about Pull request.
>> https://github.com/wso2-extensions/esb-integration-base/pull/3
>>
>> In other language in UTF-8 like ko_KR.UTF-8, one char is not 4 byte.
>>
>> So, split response stream by 1024 byte may cause split one character..
>>
>> For example assume that '한글's bit is '010100110111'  and it is
>> located on 1024th byte.
>>
>> Then, current code will split it into xxx~xxx01010011 and
>> 0111xxx~xxx.
>> And then it will be casted to string by new String(byte[]).
>> In this case '한글' will be converted to similarly '한�'.
>>
>> I improved this case by read response stream by BufferedReader and
>> char array.
>>
>> Please check the code, I commited.
>>
>> Sincerely.
>>
>> 2016. 8. 4. 오후 5:12에 "Malaka Silva" 님이 작성:
>>
>> Hi Kim,
>>>
>>> Please send us more details about the improvement and will check and
>>> merge the request.
>>>
>>> Find more information in [1]
>>>
>>> [1] https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+
>>> Third+Party+Connector+and+Publishing+in+WSO2+Store
>>>
>>> -- Forwarded message --
>>> From: 김대경 
>>> Date: Wed, Aug 3, 2016 at 1:21 PM
>>> Subject: wso2-extensions contribution..
>>> To: malaka.si...@gmail.com
>>>
>>>
>>> Dear Silva.
>>>
>>> Thank you for read this mail.
>>>
>>> I'm writing to inquire about github contribution..
>>>
>>> I'm testing wso2 esb's functionalites.
>>>
>>> While.. I found a little improvement.
>>>
>>> So I recently created pull request to wso2-extensions/esb-integratio
>>> n-base.
>>>
>>> But.. I think no one see this request.
>>>
>>> How  I can resolve this problem?
>>>
>>> I want this improvement could be applied next release.
>>>
>>> I look forward to hearing from you.
>>>
>>> Sincerely.
>>> from Daekyung Kim.
>>>
>>> On Thu, Aug 4, 2016 at 7:04 AM, Malaka Silva >> > wrote:
>>>
 Hi Kim,

 Please send us more details about the imporvement and will check
 and merge the request.

 Find more information in [1]

 [1] https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+
 Third+Party+Connector+and+Publishing+in+WSO2+Store

 -- Forwarded message --
 From: 김대경 
 Date: Wed, Aug 3, 2016 at 1:21 PM
 Subject: wso2-extensions contribution..
 To: malaka.si...@gmail.com


 Dear Silva.

 Thank you for read this mail.

 I'm writing to inquire about github contribution..

 I'm testing wso2 esb's functionalites.

 While.. I found a little improvement.

 So I recently created pull request to wso2-extensions/esb-integratio
 n-base.

 But.. I think no one see 

Re: [Dev] [IoTS] Failed to connect to the MQTT topic again after disconnect for a while in 1.0.0 alpha

2016-08-04 Thread Ayyoob Hamza
Hi Jason,

This happens when the OAuth token is expired for the device. In the IoTS
alpha we have not implemented the renewing the token with refresh token
part, however this has been implemented in the master. One way of having a
continuous connection for the samples in alpha pack would be to increase
the expiration time in identity.xml (repository/conf/identity/identity.xml).

Thanks,
Ayyoob

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

On Fri, Aug 5, 2016 at 6:45 AM, 云展智创  wrote:

> I got the following error logs from IoTS:
>
> ==
> [2016-08-05 08:57:06,466] ERROR - MessageMetricsHandler Connection reset
> by peer
> java.io.IOException: Connection reset by peer
> at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
> at sun.nio.ch.IOUtil.read(IOUtil.java:192)
> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
> at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(
> UnpooledUnsafeDirectByteBuf.java:446)
> at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881)
> at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(
> NioSocketChannel.java:225)
> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(
> AbstractNioByteChannel.java:119)
> at io.netty.channel.nio.NioEventLoop.processSelectedKey(
> NioEventLoop.java:511)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(
> NioEventLoop.java:468)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(
> NioEventLoop.java:382)
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
> at io.netty.util.concurrent.SingleThreadEventExecutor$2.
> run(SingleThreadEventExecutor.java:116)
> at io.netty.util.concurrent.DefaultThreadFactory$
> DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
> at java.lang.Thread.run(Thread.java:745)
> [2016-08-05 08:57:06,480]  INFO - ProtocolProcessor Lost connection with
> client paho/551D5528F7972AE4CD
> [2016-08-05 08:57:06,484]  INFO - MQTTopicManager Disconnecting channel
> for clientID: paho/551D5528F7972AE4CD
> [2016-08-05 08:57:06,529]  INFO - SubscriptionEngine Local Subscription
> DELETED [carbon.super/raspberrypi/s4mbetlzspyc]ID=carbon:paho/
> 551D5528F7972AE4CD:carbon.super/raspberrypi/s4mbetlzspyc@
> NODEZhanwendeMacBook-Air.local/192.168.0.102/T=
> 1470358626484/D=false/X=true/O=/E=amq.topic/ET=/EUD=1/S=false
> [2016-08-05 08:57:06,529]  INFO - OrphanedMessageHandler Purging messages
> of this node persisted under carbon.super/raspberrypi/s4mbetlzspyc
> [2016-08-05 08:57:06,540]  INFO - MessagingEngine Purged messages of
> destination carbon.super/raspberrypi/s4mbetlzspyc
> [2016-08-05 08:57:07,775]  INFO - ProtocolProcessor Lost connection with
> client paho/551D5528F7972AE4CD
> [2016-08-05 08:57:07,776]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID paho/551D5528F7972AE4CD is not
> removed since the entry does not exist
> [2016-08-05 08:57:08,795]  INFO - ProtocolProcessor Lost connection with
> client paho/551D5528F7972AE4CD
> [2016-08-05 08:57:08,795]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID paho/551D5528F7972AE4CD is not
> removed since the entry does not exist
> [2016-08-05 08:57:09,810]  INFO - ProtocolProcessor Lost connection with
> client paho/551D5528F7972AE4CD
> ……
> ==
>
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: API Management, IOT
>
> On Aug 4, 2016, at 10:23 AM, 云展智创  wrote:
>
> Hi all,
>
> I downloaded a raspberry pi agent from IoTS 1.0.0 alpha, ran the raspberry
> pi agent and uploaded the temperature data successfully. But after I
> disconnected the agent for a while, the MQTT connection could not be setup
> again. Can anyone help me for this? Thanks.
>
> 
> MQTT_LISTENER: Connected with result code 4
> MQTT_LISTENER: Subscribing with topic carbon.super/raspberrypi/
> rkwrklcphsmu
> 
>
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: API Management, IOT
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IoTS] Failed to connect to the MQTT topic again after disconnect for a while in 1.0.0 alpha

2016-08-04 Thread 云展智创
I got the following error logs from IoTS:

==
[2016-08-05 08:57:06,466] ERROR - MessageMetricsHandler Connection reset by peer
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:192)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at 
io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:446)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881)
at 
io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:225)
at 
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
at 
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at 
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at 
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at 
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at 
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
[2016-08-05 08:57:06,480]  INFO - ProtocolProcessor Lost connection with client 
paho/551D5528F7972AE4CD
[2016-08-05 08:57:06,484]  INFO - MQTTopicManager Disconnecting channel for 
clientID: paho/551D5528F7972AE4CD
[2016-08-05 08:57:06,529]  INFO - SubscriptionEngine Local Subscription DELETED 
[carbon.super/raspberrypi/s4mbetlzspyc]ID=carbon:paho/551D5528F7972AE4CD:carbon.super/raspberrypi/s4mbetlzspyc@NODEZhanwendeMacBook-Air.local/192.168.0.102/T=1470358626484/D=false/X=true/O=/E=amq.topic/ET=/EUD=1/S=false
[2016-08-05 08:57:06,529]  INFO - OrphanedMessageHandler Purging messages of 
this node persisted under carbon.super/raspberrypi/s4mbetlzspyc
[2016-08-05 08:57:06,540]  INFO - MessagingEngine Purged messages of 
destination carbon.super/raspberrypi/s4mbetlzspyc
[2016-08-05 08:57:07,775]  INFO - ProtocolProcessor Lost connection with client 
paho/551D5528F7972AE4CD
[2016-08-05 08:57:07,776]  WARN - ProtocolProcessor MQTTAuthorizationSubject 
for client ID paho/551D5528F7972AE4CD is not removed since the entry does not 
exist
[2016-08-05 08:57:08,795]  INFO - ProtocolProcessor Lost connection with client 
paho/551D5528F7972AE4CD
[2016-08-05 08:57:08,795]  WARN - ProtocolProcessor MQTTAuthorizationSubject 
for client ID paho/551D5528F7972AE4CD is not removed since the entry does not 
exist
[2016-08-05 08:57:09,810]  INFO - ProtocolProcessor Lost connection with client 
paho/551D5528F7972AE4CD
……
==

--
Zhanwen Zhou (Jason)
+86 13922218435
zhanwen.z...@smartcloudex.com
Guangzhou Smart Cloudex Technology Co., Ltd.
Business: API Management, IOT

On Aug 4, 2016, at 10:23 AM, 云展智创  wrote:

> Hi all,
> 
> I downloaded a raspberry pi agent from IoTS 1.0.0 alpha, ran the raspberry pi 
> agent and uploaded the temperature data successfully. But after I 
> disconnected the agent for a while, the MQTT connection could not be setup 
> again. Can anyone help me for this? Thanks.
> 
> 
> MQTT_LISTENER: Connected with result code 4
> MQTT_LISTENER: Subscribing with topic carbon.super/raspberrypi/rkwrklcphsmu
> 
> 
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: API Management, IOT
> 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev

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


[Dev] Shindig feature to get tenantDomain, Hostname and Port within a gadget

2016-08-04 Thread Nisala Nanayakkara
Hi,

Please note that we have added another shindig feature in order to provide
ability to get tenant domain, hostname and port within a gadget. You can
get the tenant domain by requiring identity feature and hostname, port by
requiring server feature as below.

*To get tenant domain*

Require identity feature - 
Then,
var tenantDomain;

wso2.gadgets.identity.getTenantDomain(function(tenantDomain){
this.tenantDomain = tenantDomain;
});

*To get hostname and port*

Require identity feature - 
Then,
var hostname;
wso2.gadgets.server.getTenantDomain(function(hostname){
this.hostname = hostname;
});

var port;

wso2.gadgets.server.getTenantDomain("{protocol}",function(port){
this.port = port;
});

Please note that you have to give appropriate protocol as "http" or "https"
in order to get relevant port.

Thanks,
Nisala

-- 
*Nisala Niroshana Nanayakkara,*
Software Engineer
Mobile:(+94)717600022
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Siddhi] External Time batch to support round time

2016-08-04 Thread Liangfei.Su
Community,

I filed https://github.com/wso2/siddhi/issues/180 to have external time
batch window support round time, want to see if there are comments on these
feature.

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


Re: [Dev] wso2-extensions contribution..

2016-08-04 Thread Vivekananthan Sivanayagam
Hi Malaka,

There is another method "readResponseHTTPS" , we may need to modify that
method also as Kim has improved using the same concept.

Shall we do the improvement?




*Thank youVivekananthan Sivanayagam*

*Associate Software Engineer | WSO2*

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

On Thu, Aug 4, 2016 at 8:42 PM, Malaka Silva  wrote:

> Hi Kim,
>
> Thank you for your contribution.
>
> On Thu, Aug 4, 2016 at 6:49 PM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi ,
>>
>> We have reviewed and merged.
>>
>>
>>
>>
>> *Thank youVivekananthan Sivanayagam*
>>
>> *Associate Software Engineer | WSO2*
>>
>> *E:vivekanant...@wso2.com *
>> *M:+94752786138 <%2B94752786138>*
>>
>> On Thu, Aug 4, 2016 at 3:12 PM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> Noted.
>>>
>>>
>>>
>>>
>>> *Thank youVivekananthan Sivanayagam*
>>>
>>> *Associate Software Engineer | WSO2*
>>>
>>> *E:vivekanant...@wso2.com *
>>> *M:+94752786138 <%2B94752786138>*
>>>
>>> On Thu, Aug 4, 2016 at 2:49 PM, Malaka Silva  wrote:
>>>
 Thx for the information Kim.

 @Vivekananthan - Can we check this and merge?

 On Thu, Aug 4, 2016 at 1:54 PM, 김대경  wrote:

> Hi Silva,
>
> I sent all information about improvement by email before...
>
> Did you mean..
> create issue in wso2 jira?
>
> Code change is about 6 line.
> I think this is so simple change..
>
> What should I do..?
>
>  sent before ===
> Hi Silva.
>
> This is about Pull request.
> https://github.com/wso2-extensions/esb-integration-base/pull/3
>
> In other language in UTF-8 like ko_KR.UTF-8, one char is not 4 byte.
>
> So, split response stream by 1024 byte may cause split one character..
>
> For example assume that '한글's bit is '010100110111'  and it is located
> on 1024th byte.
>
> Then, current code will split it into xxx~xxx01010011 and
> 0111xxx~xxx.
> And then it will be casted to string by new String(byte[]).
> In this case '한글' will be converted to similarly '한�'.
>
> I improved this case by read response stream by BufferedReader and
> char array.
>
> Please check the code, I commited.
>
> Sincerely.
>
> 2016. 8. 4. 오후 5:12에 "Malaka Silva" 님이 작성:
>
> Hi Kim,
>>
>> Please send us more details about the improvement and will check and
>> merge the request.
>>
>> Find more information in [1]
>>
>> [1] https://docs.wso2.com/display/ESBCONNECTORS/
>> Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store
>>
>> -- Forwarded message --
>> From: 김대경 
>> Date: Wed, Aug 3, 2016 at 1:21 PM
>> Subject: wso2-extensions contribution..
>> To: malaka.si...@gmail.com
>>
>>
>> Dear Silva.
>>
>> Thank you for read this mail.
>>
>> I'm writing to inquire about github contribution..
>>
>> I'm testing wso2 esb's functionalites.
>>
>> While.. I found a little improvement.
>>
>> So I recently created pull request to wso2-extensions/esb-
>> integration-base.
>>
>> But.. I think no one see this request.
>>
>> How  I can resolve this problem?
>>
>> I want this improvement could be applied next release.
>>
>> I look forward to hearing from you.
>>
>> Sincerely.
>> from Daekyung Kim.
>>
>> On Thu, Aug 4, 2016 at 7:04 AM, Malaka Silva 
>> wrote:
>>
>>> Hi Kim,
>>>
>>> Please send us more details about the imporvement and will check and
>>> merge the request.
>>>
>>> Find more information in [1]
>>>
>>> [1] https://docs.wso2.com/display/ESBCONNECTORS/
>>> Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store
>>>
>>> -- Forwarded message --
>>> From: 김대경 
>>> Date: Wed, Aug 3, 2016 at 1:21 PM
>>> Subject: wso2-extensions contribution..
>>> To: malaka.si...@gmail.com
>>>
>>>
>>> Dear Silva.
>>>
>>> Thank you for read this mail.
>>>
>>> I'm writing to inquire about github contribution..
>>>
>>> I'm testing wso2 esb's functionalites.
>>>
>>> While.. I found a little improvement.
>>>
>>> So I recently created pull request to wso2-extensions/esb-
>>> integration-base.
>>>
>>> But.. I think no one see this request.
>>>
>>> How  I can resolve this problem?
>>>
>>> I want this improvement could be applied next release.
>>>
>>> I look forward to hearing from you.
>>>
>>> Sincerely.
>>> from Daekyung Kim.
>>>
>>>
>>
>>
>> --
>>
>> Best 

Re: [Dev] wso2-extensions contribution..

2016-08-04 Thread Malaka Silva
Hi Kim,

Thank you for your contribution.

On Thu, Aug 4, 2016 at 6:49 PM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> Hi ,
>
> We have reviewed and merged.
>
>
>
>
> *Thank youVivekananthan Sivanayagam*
>
> *Associate Software Engineer | WSO2*
>
> *E:vivekanant...@wso2.com *
> *M:+94752786138 <%2B94752786138>*
>
> On Thu, Aug 4, 2016 at 3:12 PM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi Malaka,
>>
>> Noted.
>>
>>
>>
>>
>> *Thank youVivekananthan Sivanayagam*
>>
>> *Associate Software Engineer | WSO2*
>>
>> *E:vivekanant...@wso2.com *
>> *M:+94752786138 <%2B94752786138>*
>>
>> On Thu, Aug 4, 2016 at 2:49 PM, Malaka Silva  wrote:
>>
>>> Thx for the information Kim.
>>>
>>> @Vivekananthan - Can we check this and merge?
>>>
>>> On Thu, Aug 4, 2016 at 1:54 PM, 김대경  wrote:
>>>
 Hi Silva,

 I sent all information about improvement by email before...

 Did you mean..
 create issue in wso2 jira?

 Code change is about 6 line.
 I think this is so simple change..

 What should I do..?

  sent before ===
 Hi Silva.

 This is about Pull request.
 https://github.com/wso2-extensions/esb-integration-base/pull/3

 In other language in UTF-8 like ko_KR.UTF-8, one char is not 4 byte.

 So, split response stream by 1024 byte may cause split one character..

 For example assume that '한글's bit is '010100110111'  and it is located
 on 1024th byte.

 Then, current code will split it into xxx~xxx01010011 and
 0111xxx~xxx.
 And then it will be casted to string by new String(byte[]).
 In this case '한글' will be converted to similarly '한�'.

 I improved this case by read response stream by BufferedReader and char
 array.

 Please check the code, I commited.

 Sincerely.

 2016. 8. 4. 오후 5:12에 "Malaka Silva" 님이 작성:

 Hi Kim,
>
> Please send us more details about the improvement and will check and
> merge the request.
>
> Find more information in [1]
>
> [1]
> https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store
>
> -- Forwarded message --
> From: 김대경 
> Date: Wed, Aug 3, 2016 at 1:21 PM
> Subject: wso2-extensions contribution..
> To: malaka.si...@gmail.com
>
>
> Dear Silva.
>
> Thank you for read this mail.
>
> I'm writing to inquire about github contribution..
>
> I'm testing wso2 esb's functionalites.
>
> While.. I found a little improvement.
>
> So I recently created pull request to
> wso2-extensions/esb-integration-base.
>
> But.. I think no one see this request.
>
> How  I can resolve this problem?
>
> I want this improvement could be applied next release.
>
> I look forward to hearing from you.
>
> Sincerely.
> from Daekyung Kim.
>
> On Thu, Aug 4, 2016 at 7:04 AM, Malaka Silva 
> wrote:
>
>> Hi Kim,
>>
>> Please send us more details about the imporvement and will check and
>> merge the request.
>>
>> Find more information in [1]
>>
>> [1]
>> https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store
>>
>> -- Forwarded message --
>> From: 김대경 
>> Date: Wed, Aug 3, 2016 at 1:21 PM
>> Subject: wso2-extensions contribution..
>> To: malaka.si...@gmail.com
>>
>>
>> Dear Silva.
>>
>> Thank you for read this mail.
>>
>> I'm writing to inquire about github contribution..
>>
>> I'm testing wso2 esb's functionalites.
>>
>> While.. I found a little improvement.
>>
>> So I recently created pull request to
>> wso2-extensions/esb-integration-base.
>>
>> But.. I think no one see this request.
>>
>> How  I can resolve this problem?
>>
>> I want this improvement could be applied next release.
>>
>> I look forward to hearing from you.
>>
>> Sincerely.
>> from Daekyung Kim.
>>
>>
>
>
> --
>
> 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
> https://wso2.com/signature
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care

Re: [Dev] Disabling INFO logs per page rendering

2016-08-04 Thread Sinthuja Ragendran
Hi Rasika,

As discussed in offline, this improvement is helpful in the standalone
setup for the developer, and hence for the moment I'll merge your change.
But finally we need to provide the log4j.properties in the application
level to really address this issue, but due to time limitations let's go
with your fix now. I have created a JIRA to track this requirement. [1]

[1] https://wso2.org/jira/browse/JAGGERY-426

Thanks,
Sinthuja.

On Thu, Aug 4, 2016 at 6:53 PM, Dilan Udara Ariyaratne 
wrote:

> Hi Rasika,
>
> Based on the offline chat we had, now I am quite clear on your
> implementation and yes, this solves the fundamental development problem
> that I had.
>
> For ex: If a developer wants to just focus his debugging on a certain
> function that resides on a particular jaggery file, with this
> implementation,
> he can simply set the log level of that specific file to DEBUG and the
> global log level of the entire application to ERROR.
>
> Since this specific log level for the file, defined in server's log4j
> properties is not overridden by jaggery.conf global log level setting,
> only the debug logs of the specifically mentioned file will be printed in
> addition to any error logs of any other file.
>
> Thus, +1 for the improvement.
>
> But, as Sinthuja mentioned, this improvement would be much cleaner if we
> can bring these settings configurable within the Jaggery app itself.
>
> Thanks,
> Dilan.
>
> *Dilan U. Ariyaratne*
> Senior Software Engineer
> WSO2 Inc. 
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>



-- 
*Sinthuja Rajendran*
Technical Lead
WSO2, Inc.:http://wso2.com

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


Re: [Dev] Is it possible to use both "Return Generated Keys" and Batch Requests options in DSS 3.5.0?

2016-08-04 Thread Madhawa Gunasekara
Hi Samith,

At the moment, we don't support returning results for a batch request
operations. because we have to aggregate the result and send them all.
therefore you won't able to get a batch request operation when there is a
result in particular operation's queries.
that's why you won't be able to see the batch operation when you enable
return generated key option.

Thanks,
Madhawa

On Thu, Aug 4, 2016 at 6:39 PM, Samith Dassanayake  wrote:

> Hi All,
>
> Is it possible to use both "Return Generated Keys" and Batch Requests
> options in DSS 3.5.0?
> For an example I have a query(addFlightQuery) which inserts a record to  a
> table. If I don't enable the  "Return Generated Keys"  options as in [1], I
> can see both "_post_addflightquery" and "_post_addflightquery_batch_req"
> operations. But if I enable it as in [2], it shows only the
> "_post_addflightquery" operation. Is it possible to get both
> "_post_addflightquery" and "_post_addflightquery_batch_req"  operations
> while enabling the "Return Generated Keys"  options
>
> [1]
> 
>
>   com.mysql.jdbc.Driver
>   jdbc:mysql://localhost:3306/json_array property>
>   root
>   root
>   1
>   10
>   SELECT 1
>
>
>   insert into flights (flight_no, number_of_cases, created_by,
> description, trips) values (:flight_no,:number_of_cases,:
> created_by,:description,:trips)
>   
>   
>   
>   
>   
>
>
>   
>  
>   >
>  
>  
>  
>   
>
> 
>
> [2]
> 
>
>   com.mysql.jdbc.Driver
>   jdbc:mysql://localhost:3306/json_array property>
>   root
>   root
>   1
>   10
>   SELECT 1
>
>  useConfig="json">
>   insert into flights (flight_no, number_of_cases, created_by,
> description, trips) values (:flight_no,:number_of_cases,:
> created_by,:description,:trips)
>  *  useColumnNumbers="true">*
> * *
> *  *
>   
>   
>   
>   
>   
>
>
>   
>  
>   >
>  
>  
>  
>   
>
> 
>
> Regards,
> Samith
>
>
> --
> Best Regards
>
> Samith Dassanayake
> Senior Software Engineer | Cloud TG
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +947 76207351
> Blog : buddycode.blogspot.com
>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Disabling INFO logs per page rendering

2016-08-04 Thread Dilan Udara Ariyaratne
Hi Rasika,

Based on the offline chat we had, now I am quite clear on your
implementation and yes, this solves the fundamental development problem
that I had.

For ex: If a developer wants to just focus his debugging on a certain
function that resides on a particular jaggery file, with this
implementation,
he can simply set the log level of that specific file to DEBUG and the
global log level of the entire application to ERROR.

Since this specific log level for the file, defined in server's log4j
properties is not overridden by jaggery.conf global log level setting,
only the debug logs of the specifically mentioned file will be printed in
addition to any error logs of any other file.

Thus, +1 for the improvement.

But, as Sinthuja mentioned, this improvement would be much cleaner if we
can bring these settings configurable within the Jaggery app itself.

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Passing values to the Xpath 2.0 function - fn:avg

2016-08-04 Thread Sohani Weerasinghe
Hi ESB Team,

Please find the summary of issues encountered while testing the XPath 2.0
functions at [1] ( referred [2] & [3] for syntax) and really appreciate
your input on this


*1. "Invalid XPath Syntax" occurs when saving the synapse configuration in
management console*

This error occurs for below functions:

   - avg- fn:avg((1,2,3,4,5))
   - codepoints-to-string - fn:codepoints-to-string((97, 32, 98, 32, 99)))
   - distinct-values - fn:distinct-values( ('a', 'b', 'a') ) -This is
   supported when passing the value as an xml payload
   - id - //book/section/secRef/fn:id(@refs)
   - idref - //book/idref('language')/string(.)
   - index-of - fn:index-of( (4, 5, 6, 4), 4)
   - max- fn:max((2,3,5))
   - min - fn:min((2,3,5))
   - remove - fn:remove( ('a', 'b', 'c'), 2)
   - reverse - fn:reverse((1, 2, 3, 4, 5))  -This is supported when passing
   the value as an xml payload
   - string-join - string-join( ('a', 'b', 'c'), '')
   - subsequence - fn:subsequence(('a', 'b', 'c', 'd', 'e'), 3)


*2. Issues in using error() function*

According to https://www.w3.org/TR/xpath-functions-30/#ERRFOER ,
calling the function with empty parameters should give an unidentified
error. But when invoking the service it gives below exception

Is this accepted?

ERROR - SynapseXPath Evaluation of the XPath expression fn:error() resulted
in an error
; Line#: 1; Column#: -1
net.sf.saxon.trans.XPathException: Error signalled by application call on
error()
at net.sf.saxon.functions.Error.error(Error.java:98)
at net.sf.saxon.functions.Error.evaluateItem(Error.java:55)
at net.sf.saxon.expr.Expression.iterate(Expression.java:429)
at
net.sf.saxon.xpath.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:326)
at
net.sf.saxon.xpath.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:389)
at
org.apache.synapse.util.xpath.SynapseXPath.evaluateDOMXPath(SynapseXPath.java:533)
at
org.apache.synapse.util.xpath.SynapseXPath.stringValueOf(SynapseXPath.java:367)
at
org.apache.synapse.mediators.MediatorProperty.getEvaluatedExpression(MediatorProperty.java:138)
at
org.apache.synapse.mediators.builtin.LogMediator.setCustomProperties(LogMediator.java:223)
at
org.apache.synapse.mediators.builtin.LogMediator.getCustomLogMessage(LogMediator.java:146)
at
org.apache.synapse.mediators.builtin.LogMediator.getLogMessage(LogMediator.java:132)
at
org.apache.synapse.mediators.builtin.LogMediator.mediate(LogMediator.java:101)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:54)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:210)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:398)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:145)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)


*3. "System function is not available with this host language/version"
occurs when invoking the service*

According to 
https://sourceforge.net/p/saxon/mailman/saxon-help/thread/50f7f8b9.4090...@falutin.net/
, it seems this is an XSLT function, is that the reason for getting the
below error?  but at [1] this function is declared as an XPath function


[2016-08-02 12:47:27,875] ERROR - SynapseXPath Evaluation of the XPath
expression fn:format-date(fn:current-date(), '[Y01]/[M01]/[D01]') resulted
in an error
net.sf.saxon.trans.XPathException: System function format-date#2 is not
available with this host language/version
at
net.sf.saxon.expr.parser.ExpressionParser.grumble(ExpressionParser.java:263)
at
net.sf.saxon.expr.parser.ExpressionParser.parseFunctionCall(ExpressionParser.java:2375)
at
net.sf.saxon.expr.parser.ExpressionParser.parseBasicStep(ExpressionParser.java:1731)
at
net.sf.saxon.expr.parser.ExpressionParser.parseStepExpression(ExpressionParser.java:1654)
at
net.sf.saxon.expr.parser.ExpressionParser.parseRelativePath(ExpressionParser.java:1573)
at
net.sf.saxon.expr.parser.ExpressionParser.parsePathExpression(ExpressionParser.java:1557)
at
net.sf.saxon.expr.parser.ExpressionParser.parseUnaryExpression(ExpressionParser.java:1447)
at
net.sf.saxon.expr.parser.ExpressionParser.parseExprSingle(ExpressionParser.java:517)
at
net.sf.saxon.expr.parser.ExpressionParser.parseExpression(ExpressionParser.java:455)
at
net.sf.saxon.expr.parser.ExpressionParser.parse(ExpressionParser.java:391)
at net.sf.saxon.expr.parser.ExpressionTool.make(ExpressionTool.java:94)
at

Re: [Dev] wso2-extensions contribution..

2016-08-04 Thread Vivekananthan Sivanayagam
Hi ,

We have reviewed and merged.




*Thank youVivekananthan Sivanayagam*

*Associate Software Engineer | WSO2*

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

On Thu, Aug 4, 2016 at 3:12 PM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> Hi Malaka,
>
> Noted.
>
>
>
>
> *Thank youVivekananthan Sivanayagam*
>
> *Associate Software Engineer | WSO2*
>
> *E:vivekanant...@wso2.com *
> *M:+94752786138 <%2B94752786138>*
>
> On Thu, Aug 4, 2016 at 2:49 PM, Malaka Silva  wrote:
>
>> Thx for the information Kim.
>>
>> @Vivekananthan - Can we check this and merge?
>>
>> On Thu, Aug 4, 2016 at 1:54 PM, 김대경  wrote:
>>
>>> Hi Silva,
>>>
>>> I sent all information about improvement by email before...
>>>
>>> Did you mean..
>>> create issue in wso2 jira?
>>>
>>> Code change is about 6 line.
>>> I think this is so simple change..
>>>
>>> What should I do..?
>>>
>>>  sent before ===
>>> Hi Silva.
>>>
>>> This is about Pull request.
>>> https://github.com/wso2-extensions/esb-integration-base/pull/3
>>>
>>> In other language in UTF-8 like ko_KR.UTF-8, one char is not 4 byte.
>>>
>>> So, split response stream by 1024 byte may cause split one character..
>>>
>>> For example assume that '한글's bit is '010100110111'  and it is located
>>> on 1024th byte.
>>>
>>> Then, current code will split it into xxx~xxx01010011 and
>>> 0111xxx~xxx.
>>> And then it will be casted to string by new String(byte[]).
>>> In this case '한글' will be converted to similarly '한�'.
>>>
>>> I improved this case by read response stream by BufferedReader and char
>>> array.
>>>
>>> Please check the code, I commited.
>>>
>>> Sincerely.
>>>
>>> 2016. 8. 4. 오후 5:12에 "Malaka Silva" 님이 작성:
>>>
>>> Hi Kim,

 Please send us more details about the improvement and will check and
 merge the request.

 Find more information in [1]

 [1]
 https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store

 -- Forwarded message --
 From: 김대경 
 Date: Wed, Aug 3, 2016 at 1:21 PM
 Subject: wso2-extensions contribution..
 To: malaka.si...@gmail.com


 Dear Silva.

 Thank you for read this mail.

 I'm writing to inquire about github contribution..

 I'm testing wso2 esb's functionalites.

 While.. I found a little improvement.

 So I recently created pull request to
 wso2-extensions/esb-integration-base.

 But.. I think no one see this request.

 How  I can resolve this problem?

 I want this improvement could be applied next release.

 I look forward to hearing from you.

 Sincerely.
 from Daekyung Kim.

 On Thu, Aug 4, 2016 at 7:04 AM, Malaka Silva 
 wrote:

> Hi Kim,
>
> Please send us more details about the imporvement and will check and
> merge the request.
>
> Find more information in [1]
>
> [1]
> https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store
>
> -- Forwarded message --
> From: 김대경 
> Date: Wed, Aug 3, 2016 at 1:21 PM
> Subject: wso2-extensions contribution..
> To: malaka.si...@gmail.com
>
>
> Dear Silva.
>
> Thank you for read this mail.
>
> I'm writing to inquire about github contribution..
>
> I'm testing wso2 esb's functionalites.
>
> While.. I found a little improvement.
>
> So I recently created pull request to
> wso2-extensions/esb-integration-base.
>
> But.. I think no one see this request.
>
> How  I can resolve this problem?
>
> I want this improvement could be applied next release.
>
> I look forward to hearing from you.
>
> Sincerely.
> from Daekyung Kim.
>
>


 --

 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
 https://wso2.com/signature
 http://www.wso2.com/about/team/malaka-silva/
 
 https://store.wso2.com/store/

 Don't make Trees rare, we should keep them with care

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

[Dev] Is it possible to use both "Return Generated Keys" and Batch Requests options in DSS 3.5.0?

2016-08-04 Thread Samith Dassanayake
Hi All,

Is it possible to use both "Return Generated Keys" and Batch Requests
options in DSS 3.5.0?
For an example I have a query(addFlightQuery) which inserts a record to  a
table. If I don't enable the  "Return Generated Keys"  options as in [1], I
can see both "_post_addflightquery" and "_post_addflightquery_batch_req"
operations. But if I enable it as in [2], it shows only the
"_post_addflightquery" operation. Is it possible to get both
"_post_addflightquery" and "_post_addflightquery_batch_req"  operations
while enabling the "Return Generated Keys"  options

[1]

   
  com.mysql.jdbc.Driver
  jdbc:mysql://localhost:3306/json_array
  root
  root
  1
  10
  SELECT 1
   
   
  insert into flights (flight_no, number_of_cases, created_by,
description, trips) values
(:flight_no,:number_of_cases,:created_by,:description,:trips)
  
  
  
  
  
   
   
  
 
 
 
 
 
  
   


[2]

   
  com.mysql.jdbc.Driver
  jdbc:mysql://localhost:3306/json_array
  root
  root
  1
  10
  SELECT 1
   
   
  insert into flights (flight_no, number_of_cases, created_by,
description, trips) values
(:flight_no,:number_of_cases,:created_by,:description,:trips)
 * *
* *
*  *
  
  
  
  
  
   
   
  
 
 
 
 
 
  
   


Regards,
Samith


-- 
Best Regards

Samith Dassanayake
Senior Software Engineer | Cloud TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +947 76207351
Blog : buddycode.blogspot.com


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


Re: [Dev] How to add a collection with registry REST API?

2016-08-04 Thread Bhathiya Jayasekara
I could get it working by sending *-H "Content-Type:
application/atomcoll+xml" *instead of Media-Type.
Docs are incorrect, please fix them.

Thanks,
Bhathiya

On Thu, Aug 4, 2016 at 5:58 PM, Bhathiya Jayasekara 
wrote:

> Hi all,
>
> I followed [1] to create a collection with below curl command. I'm using
> IS 5.1.0 with resource.war from greg.
>
> *> curl -v -k -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" -H
> "Media-Type: application/atomcoll+xml" -H "Content-Type:
> application/x-www-form-urlencoded" -d ''
> https://localhost:9443/resource/1.0.0/artifact/_system/governance/permission/applications/TestSP/TestCol
> *
>
> *< HTTP/1.1 201 Created< Cache-Control: private< Expires: Thu, 01 Jan 1970
> 05:30:00 IST< Date: Thu, 04 Aug 2016 12:23:43 GMT< Content-Type:
> application/json< Content-Length: 68< Server: WSO2 Carbon Server*
>
> But it always creates a resource instead of a collection. See below. What
> am I missing here?
>
> [image: Inline image 1]
>
> [1]
> https://docs.wso2.com/display/Governance500/Collection+with+REST+API#CollectionwithRESTAPI-AddaCollection
>
> Thanks,
>
> --
> *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
> *
>



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


[Dev] How to add a collection with registry REST API?

2016-08-04 Thread Bhathiya Jayasekara
Hi all,

I followed [1] to create a collection with below curl command. I'm using IS
5.1.0 with resource.war from greg.

*> curl -v -k -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" -H
"Media-Type: application/atomcoll+xml" -H "Content-Type:
application/x-www-form-urlencoded" -d ''
https://localhost:9443/resource/1.0.0/artifact/_system/governance/permission/applications/TestSP/TestCol
*

*< HTTP/1.1 201 Created< Cache-Control: private< Expires: Thu, 01 Jan 1970
05:30:00 IST< Date: Thu, 04 Aug 2016 12:23:43 GMT< Content-Type:
application/json< Content-Length: 68< Server: WSO2 Carbon Server*

But it always creates a resource instead of a collection. See below. What
am I missing here?

[image: Inline image 1]

[1]
https://docs.wso2.com/display/Governance500/Collection+with+REST+API#CollectionwithRESTAPI-AddaCollection

Thanks,

-- 
*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] [GSoC 2016]Proposal 03: [ML]Visual(Deep) Neural Network Builder -Project Progress

2016-08-04 Thread Lakini Senanayaka
Hi,

This is the meeting minute for today's GSoC project review meeting.

Upul reviewed the current progress of the project, "(Deep) Neural Network
Builder for WSO2 Machine Learner".
Below mentioned are the decisions made and the new tasks allocated at the
meeting.

Assigned action items:
-Making the UI more user-friendly.
Ex: Physical lines of connections between layers should follow the
movements of the layers.
-Train the feed forward network for MNIST dataset.
-Testing the accuracy of the neural network model for different
optimization and updater algorithms.
-Handling Exceptions.
-Trying to show graphs related to the model, along with the accuracy of
the model in the output.
-Start writing documentation.
-Showing a demo for the ML team.

Decisions made:

 -Higher priority should be given in implementing feed-forward network
than RNN.
 -Upul will provide me necessary instructions on the way to access the
dataset which is inserted through the WSO2 ML console as NN builder UI
needs to access that dataset and use as the training dataset.

Thank you.

On Wed, Aug 3, 2016 at 5:59 AM, Lakini Senanayaka <
lakinisenanayak...@gmail.com> wrote:

> Hi,
>
> Thank you very much for your kindness.
>
> I can schedule a meeting on this Thursday(4th-August-2016).
>
> Thank you.
>
> On Tue, Aug 2, 2016 at 10:39 AM, Upul Bandara  wrote:
>
>> Hi,
>>
>> As you know we have only two weeks to complete GSOC projects.
>> Unfortunately, this project is a little bit lagging behind and it looks
>> like you have to put some additional effort during the last two week. In
>> order to support you, we though it is better to have a small F2F meeting
>> with you and it will help you to sort out any issues currently you are
>> facing with.
>>
>> So can you please schedule a meeting with the ML team?
>>
>> Thanks,
>> Upul
>>
>> On Sat, Jul 30, 2016 at 5:45 PM, Nirmal Fernando  wrote:
>>
>>>
>>> On Sat, Jul 30, 2016 at 1:43 PM, Lakini Senanayaka <
>>> lakinisenanayak...@gmail.com> wrote:
>>>
 Hi,

 I have solved the above problem.I have referred the mail thread *[Dev]
 "Error 403 - Forbidden" when session expires in admin console*[1] in
 dev mailing list.I couldn't upload  jaggery files to the console  and when
 I was trying to do it, it gave the* Error 403-Forbidden.*

 I have copied the jaggery files to
 */repository/deployment/server/jaggerapps* directory as Supun
 instructed and it worked.

 Although I have implemented the back end for feed forward neural
 network still it has some problems.It doesn't work well.Do I need to add
 the  neural network algorithms to the
 *org.wso2.carbon.ml.core.spark.algorithms* in Carbon ML ?Do I need to
 follow the same pattern which is used by the Carbon ML when implementing
 the back end coding and APIs?

>>>
>>> Yes please.
>>>

 I will submit the demo ASAP.

 [1]https://mail.google.com/mail/u/0/#search/Re%3A+%5BDev%
 5D+%22Error+403++Forbidden%22+when+session+expires+in+admin%
 09console/155bfcbf7e98992f?projector=1

 Thank you.
 --
 KIND Regards,
 *Lakini Senanayaka.*


>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> Upul Bandara,
>> Associate Technical Lead, WSO2, Inc.,
>> Mob: +94 715 468 345.
>>
>
>
>
> --
> KIND Regards,
> *Lakini Senanayaka.*
>
>


-- 
KIND Regards,
*Lakini Senanayaka.*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2016] Final Evaluation

2016-08-04 Thread Lakini Senanayaka
Thank you!!

On Thu, Aug 4, 2016 at 3:28 PM, Supun Sethunga  wrote:

> [adding ml gsoc students]
>
> On Wed, Aug 3, 2016 at 10:46 PM, Imesh Gunaratne  wrote:
>
>> Dear Students,
>>
>> This is to give you a heads up on $subject.
>>
>> We have seen in the past students being inactive time to time and trying
>> to complete the deliverables at the last minute when the submission
>> deadline is nearby.
>>
>> Please note that at the final evaluation we will be evaluating your
>> overall effort throughout the project period in addition to the
>> deliverables that you submit. On high level this would include following:
>>
>>- Planning
>>- Researching
>>- Problem solving
>>- Initiatives
>>- Level of communication
>>- Community interaction
>>- Continuous effort on design & implementation
>>- Deliverables
>>- Documentation
>>- Quality of code & all deliverables
>>
>> GSoC student manual [1] will be really helpful for you to understand this
>> better.
>>
>> [1] http://write.flossmanuals.net/gsocstudentguide/what-is-
>> google-summer-of-code/
>>
>> Thanks
>>
>> --
>> *Imesh Gunaratne*
>> Software Architect
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: https://medium.com/@imesh TW: @imesh
>> lean. enterprise. middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Supun Sethunga*
> Senior Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
> Blog: http://supunsetunga.blogspot.com
>



-- 
KIND Regards,
*Lakini Senanayaka.*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IOTS] Failed to get realtime data from IoTS in 1.0.0 alpha

2016-08-04 Thread 云展智创
Ruwan,

Yes, you are right. Thank you very much.

And if you have time, please help to give me some suggestions for question in 
another mail:
-
MAIL: [Dev] [IoTS] Failed to connect to the MQTT topic again after disconnect 
for a while in 1.0.0 alpha

I downloaded a raspberry pi agent from IoTS 1.0.0 alpha, ran the raspberry pi 
agent and uploaded the temperature data successfully. But after I disconnected 
the agent for a while, the MQTT connection could not be setup again. I kill the 
RaspberryAgent process directly. I don’t know if this is the cause of the 
problem.

Can anyone help me for this? Thanks.


MQTT_LISTENER: Connected with result code 4
MQTT_LISTENER: Subscribing with topic carbon.super/raspberrypi/rkwrklcphsmu

-


--
Zhanwen Zhou (Jason)
+86 13922218435
zhanwen.z...@smartcloudex.com
Guangzhou Smart Cloudex Technology Co., Ltd.
Business: API Management, IoT

On Aug 4, 2016, at 5:23 PM, Ruwan Yatawara  wrote:

> Hi Json,
> 
> This is most likely due to the fact that you are accessing the devicemgt app 
> via a 'localhost' url. Please replace the host section of your devicemgt app 
> url, with the ip address, and you will be able to see the statistics.
> 
> Please let us know if this fixes the issue you are facing.
> 
> Thanks and Regards,
> 
> Ruwan Yatawara
> 
> Associate Technical Lead,
> WSO2 Inc.
> 
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
>   https://500px.com/ruwan_ace
> www: :http://wso2.com
> 
> 
> On Thu, Aug 4, 2016 at 7:47 AM, 云展智创  wrote:
> Hi all,
> 
> When I open the IoTS devicemgt ui to view the realtime statistic data of my 
> raspberry pi device, I always get below error, so that the graph can now show 
> any temperature line. Can anyone help me? Thanks.
> 
> WebSocket connection to 
> 'wss://192.168.2.109:9443/secured-outputui/org.wso2.iot.devices.temperature/1.0.0?token=ecd222ae10d959deb02d3bf2b8f6=1iukwdj4luwxe=raspberrypi'
>  failed: WebSocket opening handshake was canceled
> 
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: API Management, IOT
> 
> 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
> 
> 

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


Re: [Dev] [GSoC 2016] Final Evaluation

2016-08-04 Thread Supun Sethunga
[adding ml gsoc students]

On Wed, Aug 3, 2016 at 10:46 PM, Imesh Gunaratne  wrote:

> Dear Students,
>
> This is to give you a heads up on $subject.
>
> We have seen in the past students being inactive time to time and trying
> to complete the deliverables at the last minute when the submission
> deadline is nearby.
>
> Please note that at the final evaluation we will be evaluating your
> overall effort throughout the project period in addition to the
> deliverables that you submit. On high level this would include following:
>
>- Planning
>- Researching
>- Problem solving
>- Initiatives
>- Level of communication
>- Community interaction
>- Continuous effort on design & implementation
>- Deliverables
>- Documentation
>- Quality of code & all deliverables
>
> GSoC student manual [1] will be really helpful for you to understand this
> better.
>
> [1]
> http://write.flossmanuals.net/gsocstudentguide/what-is-google-summer-of-code/
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Software Architect
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: https://medium.com/@imesh TW: @imesh
> lean. enterprise. middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Supun Sethunga*
Senior Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
Blog: http://supunsetunga.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2-extensions contribution..

2016-08-04 Thread Vivekananthan Sivanayagam
Hi Malaka,

Noted.




*Thank youVivekananthan Sivanayagam*

*Associate Software Engineer | WSO2*

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

On Thu, Aug 4, 2016 at 2:49 PM, Malaka Silva  wrote:

> Thx for the information Kim.
>
> @Vivekananthan - Can we check this and merge?
>
> On Thu, Aug 4, 2016 at 1:54 PM, 김대경  wrote:
>
>> Hi Silva,
>>
>> I sent all information about improvement by email before...
>>
>> Did you mean..
>> create issue in wso2 jira?
>>
>> Code change is about 6 line.
>> I think this is so simple change..
>>
>> What should I do..?
>>
>>  sent before ===
>> Hi Silva.
>>
>> This is about Pull request.
>> https://github.com/wso2-extensions/esb-integration-base/pull/3
>>
>> In other language in UTF-8 like ko_KR.UTF-8, one char is not 4 byte.
>>
>> So, split response stream by 1024 byte may cause split one character..
>>
>> For example assume that '한글's bit is '010100110111'  and it is located on
>> 1024th byte.
>>
>> Then, current code will split it into xxx~xxx01010011 and 0111xxx~xxx.
>> And then it will be casted to string by new String(byte[]).
>> In this case '한글' will be converted to similarly '한�'.
>>
>> I improved this case by read response stream by BufferedReader and char
>> array.
>>
>> Please check the code, I commited.
>>
>> Sincerely.
>>
>> 2016. 8. 4. 오후 5:12에 "Malaka Silva" 님이 작성:
>>
>> Hi Kim,
>>>
>>> Please send us more details about the improvement and will check and
>>> merge the request.
>>>
>>> Find more information in [1]
>>>
>>> [1]
>>> https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store
>>>
>>> -- Forwarded message --
>>> From: 김대경 
>>> Date: Wed, Aug 3, 2016 at 1:21 PM
>>> Subject: wso2-extensions contribution..
>>> To: malaka.si...@gmail.com
>>>
>>>
>>> Dear Silva.
>>>
>>> Thank you for read this mail.
>>>
>>> I'm writing to inquire about github contribution..
>>>
>>> I'm testing wso2 esb's functionalites.
>>>
>>> While.. I found a little improvement.
>>>
>>> So I recently created pull request to
>>> wso2-extensions/esb-integration-base.
>>>
>>> But.. I think no one see this request.
>>>
>>> How  I can resolve this problem?
>>>
>>> I want this improvement could be applied next release.
>>>
>>> I look forward to hearing from you.
>>>
>>> Sincerely.
>>> from Daekyung Kim.
>>>
>>> On Thu, Aug 4, 2016 at 7:04 AM, Malaka Silva 
>>> wrote:
>>>
 Hi Kim,

 Please send us more details about the imporvement and will check and
 merge the request.

 Find more information in [1]

 [1]
 https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store

 -- Forwarded message --
 From: 김대경 
 Date: Wed, Aug 3, 2016 at 1:21 PM
 Subject: wso2-extensions contribution..
 To: malaka.si...@gmail.com


 Dear Silva.

 Thank you for read this mail.

 I'm writing to inquire about github contribution..

 I'm testing wso2 esb's functionalites.

 While.. I found a little improvement.

 So I recently created pull request to
 wso2-extensions/esb-integration-base.

 But.. I think no one see this request.

 How  I can resolve this problem?

 I want this improvement could be applied next release.

 I look forward to hearing from you.

 Sincerely.
 from Daekyung Kim.


>>>
>>>
>>> --
>>>
>>> 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
>>> https://wso2.com/signature
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>> https://store.wso2.com/store/
>>>
>>> Don't make Trees rare, we should keep them with care
>>>
>>
>
>
> --
>
> 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
> https://wso2.com/signature
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IOTS] Failed to get realtime data from IoTS in 1.0.0 alpha

2016-08-04 Thread Ruwan Yatawara
Hi Json,

This is most likely due to the fact that you are accessing the devicemgt
app via a 'localhost' url. Please replace the host section of your
devicemgt app url, with the ip address, and you will be able to see the
statistics.

Please let us know if this fixes the issue you are facing.

Thanks and Regards,

Ruwan Yatawara

Associate Technical Lead,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://ruwansrants.blogspot.com/
  https://500px.com/ruwan_ace
www: :http://wso2.com


On Thu, Aug 4, 2016 at 7:47 AM, 云展智创  wrote:

> Hi all,
>
> When I open the IoTS devicemgt ui to view the realtime statistic data of
> my raspberry pi device, I always get below error, so that the graph can now
> show any temperature line. Can anyone help me? Thanks.
>
> WebSocket connection to '
> wss://192.168.2.109:9443/secured-outputui/org.wso2.iot.devices.temperature/1.0.0?token=ecd222ae10d959deb02d3bf2b8f6=1iukwdj4luwxe=raspberrypi'
> failed: WebSocket opening handshake was canceled
>
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: API Management, IOT
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2-extensions contribution..

2016-08-04 Thread Malaka Silva
Thx for the information Kim.

@Vivekananthan - Can we check this and merge?

On Thu, Aug 4, 2016 at 1:54 PM, 김대경  wrote:

> Hi Silva,
>
> I sent all information about improvement by email before...
>
> Did you mean..
> create issue in wso2 jira?
>
> Code change is about 6 line.
> I think this is so simple change..
>
> What should I do..?
>
>  sent before ===
> Hi Silva.
>
> This is about Pull request.
> https://github.com/wso2-extensions/esb-integration-base/pull/3
>
> In other language in UTF-8 like ko_KR.UTF-8, one char is not 4 byte.
>
> So, split response stream by 1024 byte may cause split one character..
>
> For example assume that '한글's bit is '010100110111'  and it is located on
> 1024th byte.
>
> Then, current code will split it into xxx~xxx01010011 and 0111xxx~xxx.
> And then it will be casted to string by new String(byte[]).
> In this case '한글' will be converted to similarly '한�'.
>
> I improved this case by read response stream by BufferedReader and char
> array.
>
> Please check the code, I commited.
>
> Sincerely.
>
> 2016. 8. 4. 오후 5:12에 "Malaka Silva" 님이 작성:
>
> Hi Kim,
>>
>> Please send us more details about the improvement and will check and
>> merge the request.
>>
>> Find more information in [1]
>>
>> [1]
>> https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store
>>
>> -- Forwarded message --
>> From: 김대경 
>> Date: Wed, Aug 3, 2016 at 1:21 PM
>> Subject: wso2-extensions contribution..
>> To: malaka.si...@gmail.com
>>
>>
>> Dear Silva.
>>
>> Thank you for read this mail.
>>
>> I'm writing to inquire about github contribution..
>>
>> I'm testing wso2 esb's functionalites.
>>
>> While.. I found a little improvement.
>>
>> So I recently created pull request to
>> wso2-extensions/esb-integration-base.
>>
>> But.. I think no one see this request.
>>
>> How  I can resolve this problem?
>>
>> I want this improvement could be applied next release.
>>
>> I look forward to hearing from you.
>>
>> Sincerely.
>> from Daekyung Kim.
>>
>> On Thu, Aug 4, 2016 at 7:04 AM, Malaka Silva 
>> wrote:
>>
>>> Hi Kim,
>>>
>>> Please send us more details about the imporvement and will check and
>>> merge the request.
>>>
>>> Find more information in [1]
>>>
>>> [1]
>>> https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store
>>>
>>> -- Forwarded message --
>>> From: 김대경 
>>> Date: Wed, Aug 3, 2016 at 1:21 PM
>>> Subject: wso2-extensions contribution..
>>> To: malaka.si...@gmail.com
>>>
>>>
>>> Dear Silva.
>>>
>>> Thank you for read this mail.
>>>
>>> I'm writing to inquire about github contribution..
>>>
>>> I'm testing wso2 esb's functionalites.
>>>
>>> While.. I found a little improvement.
>>>
>>> So I recently created pull request to
>>> wso2-extensions/esb-integration-base.
>>>
>>> But.. I think no one see this request.
>>>
>>> How  I can resolve this problem?
>>>
>>> I want this improvement could be applied next release.
>>>
>>> I look forward to hearing from you.
>>>
>>> Sincerely.
>>> from Daekyung Kim.
>>>
>>>
>>
>>
>> --
>>
>> 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
>> https://wso2.com/signature
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>> https://store.wso2.com/store/
>>
>> Don't make Trees rare, we should keep them with care
>>
>


-- 

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
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/

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

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Release][BPS] WSO2 BPS 3.6.0-Beta is Released

2016-08-04 Thread Milinda Perera
Hi Devs,

BPS team is pleased to announce the Beta release of WSO2 Business Process
Server 3.6.0. This release comes with both the run-time and the tooling
distributions.

*WSO2 BPS 3.6.0-BETA*

The distribution is available to download at [1].

[1] https://github.com/wso2/product-bps/releases/tag/v3.6.0-beta

This release​ ​contains following improvements and bug fixes [2].

[2] https://wso2.org/jira/issues/?filter=13179

Known issue for this release [3].

[3] https://wso2.org/jira/issues/?filter=13180


*WSO2 BPS Tooling 3.6.0-BETA*

The tooling distribution is available to download at [4].

[4]
https://github.com/wso2/devstudio-tooling-bps/releases/tag/Released-release-3.6.0-beta-beta-2016-08-04-103432

It contains following improvements and bug fixes [5].

[5] https://wso2.org/jira/issues/?filter=13181


*~ WSO2 BPS Team ~*

-- 
Milinda Perera
Senior Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2-extensions contribution..

2016-08-04 Thread Malaka Silva
Hi Kim,

Please send us more details about the improvement and will check and merge
the request.

Find more information in [1]

[1]
https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store

-- Forwarded message --
From: 김대경 
Date: Wed, Aug 3, 2016 at 1:21 PM
Subject: wso2-extensions contribution..
To: malaka.si...@gmail.com


Dear Silva.

Thank you for read this mail.

I'm writing to inquire about github contribution..

I'm testing wso2 esb's functionalites.

While.. I found a little improvement.

So I recently created pull request to wso2-extensions/esb-integration-base.

But.. I think no one see this request.

How  I can resolve this problem?

I want this improvement could be applied next release.

I look forward to hearing from you.

Sincerely.
from Daekyung Kim.

On Thu, Aug 4, 2016 at 7:04 AM, Malaka Silva  wrote:

> Hi Kim,
>
> Please send us more details about the imporvement and will check and merge
> the request.
>
> Find more information in [1]
>
> [1]
> https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Store
>
> -- Forwarded message --
> From: 김대경 
> Date: Wed, Aug 3, 2016 at 1:21 PM
> Subject: wso2-extensions contribution..
> To: malaka.si...@gmail.com
>
>
> Dear Silva.
>
> Thank you for read this mail.
>
> I'm writing to inquire about github contribution..
>
> I'm testing wso2 esb's functionalites.
>
> While.. I found a little improvement.
>
> So I recently created pull request to wso2-extensions/esb-integration-base.
>
> But.. I think no one see this request.
>
> How  I can resolve this problem?
>
> I want this improvement could be applied next release.
>
> I look forward to hearing from you.
>
> Sincerely.
> from Daekyung Kim.
>
>


-- 

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
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/

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

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] [EMM] Adding multiple scopes to a single API resource endpoint

2016-08-04 Thread Milan Perera
Hi Sam,

Thanks for the clarification.

On Thu, Aug 4, 2016 at 12:34 PM, Sam Sivayogam  wrote:

> Hi Milan,
>
> In APIM scopes are there to give access controls based on user roles. A
> scope can contain multiple user roles so if you want to block multiple
> roles add those roles to a* single scope *and assign to the particular
> resource. IMO there is no need to create multiple scopes with different
> roles and assigning it to the same resource, when you can already create a
> scope with multiple roles.
>
> Thanks,
> Sam
>
> On Thu, Aug 4, 2016 at 12:25 PM, Milan Perera  wrote:
>
>> Hi all,
>>
>> While going through the code I found that URITemplate class has an
>> attribute to store multiple scopes.
>>
>> package org.wso2.carbon.apimgt.api.model;
>>
>>
>> public class URITemplate implements Serializable {
>> *...*
>> private Scope scope;
>> private List scopes = new ArrayList();
>>
>> Can we use this scopes attribute to do the $subject?
>>
>>
>> Regards,
>>
>>
>> On Thu, Aug 4, 2016 at 12:09 PM, Milan Perera  wrote:
>>
>>> Hi all,
>>>
>>> Is $subject possible?
>>> I noticed that $subject capability is limited in UI.
>>>
>>> Regards,
>>>
>>> --
>>> *Milan Perera *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>>> Email: mi...@wso2.com  | Web: www.wso2.com
>>> 
>>> 
>>>
>>
>>
>>
>> --
>> *Milan Perera *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>> Email: mi...@wso2.com  | Web: www.wso2.com
>> 
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Sam Sivayogam*
>
> Software Engineer
> Mobile  : +94 772 906 439
> Office   : +94 112 145 345
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>



-- 
*Milan Perera *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 77 309 7088 | Work: +94 11 214 5345
Email: mi...@wso2.com  | Web: www.wso2.com


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


Re: [Dev] Installing Features to Carbon Server

2016-08-04 Thread Eranda Rajapakshe
Hi Lakshani,

Thanks a lot, I was able to install it with "WSO2 Carbon - Tasks Feature".

One more thing, I found that in some situations several features are
bundled together for a single feature. For an example I want to
install "Application
Management Server Feature", but it is bundled with "Application Management
UI Feature" and packaged as "Application Management Feature" [3]. Is there
anyway I can install only the "Application Management Server Feature"
(without the UI Feature) to the Carbon server?

[3].
https://github.com/wso2/carbon-commons/blob/master/features/application-mgt/org.wso2.carbon.application.mgt.feature/pom.xml

Thanks,

On Thu, Aug 4, 2016 at 12:06 PM, Lakshani Gamage  wrote:

> Hi Eranda,
>
> You can install "WSO2 Carbon - Tasks Feature" as
> org.wso2.carbon.ntask.core.feature is bundled with
> org.wso2.carbon.ntask.feature [2].
> You can install that feature using any version of "Tasks" in below image.
>
> [image: Inline image 2]
>
>
> [2]
> https://github.com/wso2/carbon-commons/blob/master/features/ntask/org.wso2.carbon.ntask.feature/pom.xml
>
> Thanks,
> Lakshani.
>
> On Thu, Aug 4, 2016 at 10:34 AM, Eranda Rajapakshe 
> wrote:
>
>> Hi,
>>
>> I am trying to install features to Carbon 4.4.7 from repo [1]
>> I need to install the feature "WSO2 Carbon - Tasks Core Feature" which
>> has the feature id of "org.wso2.carbon.ntask.core.feature.group". But this
>> feature doesn't get listed down as an Available Feature in the Carbon
>> server.
>>
>> But when I looked into the content.xml in the p2-repo, that specific
>> feature is mentioned. Is this feature bundled inside another one (which is
>> listed in the Carbon server)?
>> How can I install this feature?
>>
>> [1]. http://product-dist.wso2.com/p2/carbon/releases/wilkes/
>>
>>
>> Thanks,
>> --
>> *Eranda Rajapakshe*
>> Software Engineer
>> WSO2 Inc.
>> Mobile : +94784822608
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer, WSO2*
>
> *Mobile : +94 71 5478184 <%2B94%20%280%29%20773%20451194>*
> *Blog : http://lakshanigamage.blogspot.com/
> *
>



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


Re: [Dev] [APIM] [EMM] Adding multiple scopes to a single API resource endpoint

2016-08-04 Thread Sam Sivayogam
Hi Milan,

In APIM scopes are there to give access controls based on user roles. A
scope can contain multiple user roles so if you want to block multiple
roles add those roles to a* single scope *and assign to the particular
resource. IMO there is no need to create multiple scopes with different
roles and assigning it to the same resource, when you can already create a
scope with multiple roles.

Thanks,
Sam

On Thu, Aug 4, 2016 at 12:25 PM, Milan Perera  wrote:

> Hi all,
>
> While going through the code I found that URITemplate class has an
> attribute to store multiple scopes.
>
> package org.wso2.carbon.apimgt.api.model;
>
>
> public class URITemplate implements Serializable {
> *...*
> private Scope scope;
> private List scopes = new ArrayList();
>
> Can we use this scopes attribute to do the $subject?
>
>
> Regards,
>
>
> On Thu, Aug 4, 2016 at 12:09 PM, Milan Perera  wrote:
>
>> Hi all,
>>
>> Is $subject possible?
>> I noticed that $subject capability is limited in UI.
>>
>> Regards,
>>
>> --
>> *Milan Perera *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>> Email: mi...@wso2.com  | Web: www.wso2.com
>> 
>> 
>>
>
>
>
> --
> *Milan Perera *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
> Email: mi...@wso2.com  | Web: www.wso2.com
> 
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sam Sivayogam*

Software Engineer
Mobile  : +94 772 906 439
Office   : +94 112 145 345
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-08-04 Thread Supun Sethunga
Hi Mahesh,

samoa dependency version in siddhi-extension should be
*0.4.0-incubating-SNAPSHOT*. That should solve the issue

Regards,
Supun

On Thu, Aug 4, 2016 at 11:50 AM, Mahesh Dananjaya  wrote:

> Hi all,
> samoa is in my local repository and dependencies works fine with all other
> extensions that add samoa 0.4.0-incubator dependencies. But only when i
> build carbon-ml, it gives priority for the remote repository for looking
> samoa. SO any help with this to give priority for local m2 repo before
> carbon-ml building is looking for the remote one. I am getting the error
> because of this. maven option -U also not seems to be working here. any
> help please.
>
> [ERROR] Failed to execute goal on project
> org.wso2.carbon.ml.siddhi.extension: Could not resolve dependencies for
> project 
> org.wso2.carbon.ml:org.wso2.carbon.ml.siddhi.extension:bundle:1.1.2-SNAPSHOT:
> The following artifacts could not be resolved:
> org.apache.samoa:samoa-api:jar:0.4.0-incubating,
> org.apache.samoa:samoa-local:jar:0.4.0-incubating: Could not find artifact
> org.apache.samoa:samoa-api:jar:0.4.0-incubating in wso2-nexus (
> http://maven.wso2.org/nexus/content/groups/wso2-public/)
>
> Since samoa will be used for future work, is it possible to add that in
> the relevant wso2 repo. Because there are still no samoa 0.4.0-incubator
> maven repo. only 0.3.0. we cannot continue our work with the 0.3.0 since it
> is outdated.
>
> thank you.
> regards,
> Mahesh.
>
> On Wed, Aug 3, 2016 at 4:29 PM, Miyuru Dayarathna 
> wrote:
>
>> Adding Jayan to this email thread.
>>
>> --
>> Thanks,
>> Miyuru Dayarathna
>> Senior Technical Lead
>> Mobile: +94713527783
>> Blog: http://miyurublog.blogspot.com
>>
>> On Wed, Aug 3, 2016 at 3:11 PM, Supun Sethunga  wrote:
>>
>>> Hi Mahesh,
>>>
>>> you should build carbon-ml *without *-U option. -U means you force mvn
>>> to look for updates in remote repo. Rather run it with -o option. Also, can
>>> you double check whether the dependencies are defined correctly (group
>>> Id's, versions etc).
>>>
>>> Alternatively, it seems there is a samoa released version in mvn repo.
>>> Maybe you could try that one as well. But that's v0.3.0..
>>>
>>> [1] https://mvnrepository.com/artifact/org.apache.samoa
>>>
>>> On Wed, Aug 3, 2016 at 2:54 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi Supun,
 I just neeed a little help. I am in the process of integrating my samoa
 core functions and extension into carbon-ml's siddhi extension. For samoa i
 am using locally built samoa project to provide samoa 0.4.0
 dependencies,since we dont have it in the maven repo or else where. But
 when i build carbon-ml by adding samoa dependencies, it seems to be maven
 search for remote location, not the local maven repo first. I am running
 maven with -U option. But still the problems occurs. Is there any specific
 thing in carbon-ml like settings to search remote before local one? I just
 need to give local maven repo for the dependency. My extension seperately
 working fine, so there is no problem wihat the local dependencies outside
 carbon-ml. So can you please help me with this.thank you.
 regards,
 Mahesh.

 On Fri, Jul 22, 2016 at 3:17 PM, Srinath Perera 
 wrote:

> Hi Mahesh,
>
> On Thu, Jul 21, 2016 at 2:10 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi All,
>> I am onto connecting cep streams with samoa streams to data analysis
>> using samoa framework. To connect samoa with cep siddhi event streams 
>> what
>> i we can do is that try to convert cep streams into samoa streams or else
>> writing wrpper for samoa for cep  streasm to be used. In both cases i 
>> have
>> to covert siddhi cep streasm into samoa streams. Samoa is using MOA to
>> analyse data. Moo contains ML framework to analyse stream data. Samoa is
>> wrapping MOA withsome of its classes.
>>
>> Samoa streams is based on MOA, Instance and InstanceStreams. Samoa
>> see streams as a stream of instances [1]. So if we are going to convert 
>> cep
>> events into samoa instances , it will take time. But if we have some
>> similarity between cep siddhi streams and samoa streasm we can reduce the
>> time.
>> 1. What is the underlying infrastructure for cep siddhi streasm.?
>> 2. Are there anything as Instances or InstanceStreams kind of
>> implmentation underlying cep streams?
>> 3. How can i get more underestanding on CEP siddhi streams.
>>
>> On the other hand i can use my cep siddhi extension and put those
>> events into event queue and convert them into samoa instances and feed 
>> them
>> into samoa streaming ml topologies.
>>
> I think this is OK. I assume this is much easier. Let's do this and
> check the performance.
>
>

Re: [Dev] [APIM] [EMM] Adding multiple scopes to a single API resource endpoint

2016-08-04 Thread Milan Perera
Hi all,

While going through the code I found that URITemplate class has an
attribute to store multiple scopes.

package org.wso2.carbon.apimgt.api.model;


public class URITemplate implements Serializable {
*...*
private Scope scope;
private List scopes = new ArrayList();

Can we use this scopes attribute to do the $subject?


Regards,


On Thu, Aug 4, 2016 at 12:09 PM, Milan Perera  wrote:

> Hi all,
>
> Is $subject possible?
> I noticed that $subject capability is limited in UI.
>
> Regards,
>
> --
> *Milan Perera *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
> Email: mi...@wso2.com  | Web: www.wso2.com
> 
> 
>



-- 
*Milan Perera *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 77 309 7088 | Work: +94 11 214 5345
Email: mi...@wso2.com  | Web: www.wso2.com


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


Re: [Dev] GSoC2016-Contact Development Team Feature

2016-08-04 Thread Nathiesha Maddage
Hi Kavith,

I started with creating a micro service. Thank you for the reference.
If you can please show me how to host it in the cloud, maybe during
tomorrow meeting.

Thanks and regards

Nathiesha

On Wed, Aug 3, 2016 at 10:22 AM, Kavith Lokuhewage  wrote:

> Hi Nathiesha,
>
> Friday morning seems to work for us. I will send you an invitation shortly.
>
> BTW, instead of implementing a JAX-RS service, we can implement a micro
> service using WSO2 MSF4J 2.0.0. And WSO2 app cloud now supports deploying
> micro-services on the cloud.
>
> Please follow [1] to create a micro service. It has detailed steps with a
> hello world service sample. Once you define the service structure, you will
> be able to reuse most of the code from existing publishers.
> However we have to externalize credentials for JIRA and SMTP to a file.
> You may use Java Preferences API to do that.
>
> For now, test it on your local env. We can directly host the jar in the
> cloud and get a URL for the service. I can show you how to do it in a quick
> call if needed. Anyway, local testing is sufficient for now and make sure
> that the service URL is configurable via eclipse preferences.
>
> Thanks,
>
> [1] *https://github.com/wso2/msf4j *
>
> *Kavith Lokuhewage*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +94779145123
> Linkedin 
> Twitter 
>
> On Wed, Aug 3, 2016 at 8:58 AM, Nathiesha Maddage <
> nathieshamadd...@gmail.com> wrote:
>
>> Hi Kavith,
>>
>> I will fork the repo as you have suggested and I got started with the
>> REST API part.
>> How about Friday morning for the next meeting?
>>
>> Thanks and Regards
>>
>> Nathiesha
>>
>> On Tue, Aug 2, 2016 at 9:42 PM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Nathiesha,
>>>
>>> Nothing wrong with both poms and yeah, pom1.xml will break the build.
>>> However, I think there's a proper solution to this.
>>> Take a fork of the developer-studio-kernel repo, add your plugin to
>>> plugins folder. Keep working on that repo afterwards. This way, after
>>> finalizing the development, you can directly send a pull request to kernel
>>> repo from your fork.
>>> Yes, we use the qualifier in versions, in addition to major, minor and
>>> patch version components.
>>>
>>> As we discussed during previous meeting, you can now start working on
>>> moving email and jira publishing logic to a web app and expose a single
>>> rest API for to invoke them. So, eclipse plugin will call to this rest
>>> service and only a single publisher will be implemented in the plugin. In
>>> this way, we can get rid of asking users to register on our jira and asking
>>> them to enter their gmail credentials - both which are most likely ignored
>>> by users. We will create a bot jira user and email account and keep those
>>> credentials within the web app it self - and only ask users about their
>>> contact information (name, email - in case we need to get back - and
>>> company) when sending the error report.
>>>
>>> BTW, we can have another review on this Friday. Please propose a time
>>> which fits for you.
>>>
>>> Thanks,
>>>
>>>
>>> *Kavith Lokuhewage*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +94779145123
>>> Linkedin 
>>> Twitter 
>>>
>>> On Tue, Aug 2, 2016 at 8:33 AM, Nathiesha Maddage <
>>> nathieshamadd...@gmail.com> wrote:
>>>
 Hi Kavith,

 I tried creating the pom.xml by referring to the Developer Studio
 plugin projects in git hub. Following the same structure as in the github
 plugin projects. I came up with this, pom1.xml.

 However since my project is still not under those parent projects as in
 github, I created another pom2.xml as follows, by removing the parent tag,
 by adding p2 repositaries and tycho plugin. After fixing couple of errors,
 I could successfully build the project using pom2.xml.

 Can you please have a look at the two pom.xml files and tell me if they
 seem to be OK or if there are any issues in them? If that is OK, I can move
 to the next milestone of the project.

 Furthermore I changed the Bundle-Version in the project manifest to
 4.2.0.qualifier, because the plugin projects in git hub under Developer
 studio seem to have that version. I hope that is OK.

 Thanks for the article on osgi services. I will go through it.

 Thanks and regards

 Nathiesha

 On Mon, Aug 1, 2016 at 8:22 AM, Kavith Lokuhewage 
 wrote:

> Hi Nathiesha,
>
> How is the progress on converting project to a maven project? Please
> let us know if you face any issues.
>
> BTW, [1] is a good article on 

[Dev] [APIM] [EMM] Adding multiple scopes to a single API resource endpoint

2016-08-04 Thread Milan Perera
Hi all,

Is $subject possible?
I noticed that $subject capability is limited in UI.

Regards,

-- 
*Milan Perera *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 77 309 7088 | Work: +94 11 214 5345
Email: mi...@wso2.com  | Web: www.wso2.com


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


Re: [Dev] Installing Features to Carbon Server

2016-08-04 Thread Lakshani Gamage
Hi Eranda,

You can install "WSO2 Carbon - Tasks Feature" as
org.wso2.carbon.ntask.core.feature is bundled with
org.wso2.carbon.ntask.feature [2].
You can install that feature using any version of "Tasks" in below image.

[image: Inline image 2]


[2]
https://github.com/wso2/carbon-commons/blob/master/features/ntask/org.wso2.carbon.ntask.feature/pom.xml

Thanks,
Lakshani.

On Thu, Aug 4, 2016 at 10:34 AM, Eranda Rajapakshe  wrote:

> Hi,
>
> I am trying to install features to Carbon 4.4.7 from repo [1]
> I need to install the feature "WSO2 Carbon - Tasks Core Feature" which has
> the feature id of "org.wso2.carbon.ntask.core.feature.group". But this
> feature doesn't get listed down as an Available Feature in the Carbon
> server.
>
> But when I looked into the content.xml in the p2-repo, that specific
> feature is mentioned. Is this feature bundled inside another one (which is
> listed in the Carbon server)?
> How can I install this feature?
>
> [1]. http://product-dist.wso2.com/p2/carbon/releases/wilkes/
>
>
> Thanks,
> --
> *Eranda Rajapakshe*
> Software Engineer
> WSO2 Inc.
> Mobile : +94784822608
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshani Gamage

*Software Engineer, WSO2*

*Mobile : +94 71 5478184 <%2B94%20%280%29%20773%20451194>*
*Blog : http://lakshanigamage.blogspot.com/
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-08-04 Thread Mahesh Dananjaya
Hi all,
samoa is in my local repository and dependencies works fine with all other
extensions that add samoa 0.4.0-incubator dependencies. But only when i
build carbon-ml, it gives priority for the remote repository for looking
samoa. SO any help with this to give priority for local m2 repo before
carbon-ml building is looking for the remote one. I am getting the error
because of this. maven option -U also not seems to be working here. any
help please.

[ERROR] Failed to execute goal on project
org.wso2.carbon.ml.siddhi.extension: Could not resolve dependencies for
project 
org.wso2.carbon.ml:org.wso2.carbon.ml.siddhi.extension:bundle:1.1.2-SNAPSHOT:
The following artifacts could not be resolved:
org.apache.samoa:samoa-api:jar:0.4.0-incubating,
org.apache.samoa:samoa-local:jar:0.4.0-incubating: Could not find artifact
org.apache.samoa:samoa-api:jar:0.4.0-incubating in wso2-nexus (
http://maven.wso2.org/nexus/content/groups/wso2-public/)

Since samoa will be used for future work, is it possible to add that in the
relevant wso2 repo. Because there are still no samoa 0.4.0-incubator maven
repo. only 0.3.0. we cannot continue our work with the 0.3.0 since it is
outdated.

thank you.
regards,
Mahesh.

On Wed, Aug 3, 2016 at 4:29 PM, Miyuru Dayarathna  wrote:

> Adding Jayan to this email thread.
>
> --
> Thanks,
> Miyuru Dayarathna
> Senior Technical Lead
> Mobile: +94713527783
> Blog: http://miyurublog.blogspot.com
>
> On Wed, Aug 3, 2016 at 3:11 PM, Supun Sethunga  wrote:
>
>> Hi Mahesh,
>>
>> you should build carbon-ml *without *-U option. -U means you force mvn
>> to look for updates in remote repo. Rather run it with -o option. Also, can
>> you double check whether the dependencies are defined correctly (group
>> Id's, versions etc).
>>
>> Alternatively, it seems there is a samoa released version in mvn repo.
>> Maybe you could try that one as well. But that's v0.3.0..
>>
>> [1] https://mvnrepository.com/artifact/org.apache.samoa
>>
>> On Wed, Aug 3, 2016 at 2:54 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Supun,
>>> I just neeed a little help. I am in the process of integrating my samoa
>>> core functions and extension into carbon-ml's siddhi extension. For samoa i
>>> am using locally built samoa project to provide samoa 0.4.0
>>> dependencies,since we dont have it in the maven repo or else where. But
>>> when i build carbon-ml by adding samoa dependencies, it seems to be maven
>>> search for remote location, not the local maven repo first. I am running
>>> maven with -U option. But still the problems occurs. Is there any specific
>>> thing in carbon-ml like settings to search remote before local one? I just
>>> need to give local maven repo for the dependency. My extension seperately
>>> working fine, so there is no problem wihat the local dependencies outside
>>> carbon-ml. So can you please help me with this.thank you.
>>> regards,
>>> Mahesh.
>>>
>>> On Fri, Jul 22, 2016 at 3:17 PM, Srinath Perera 
>>> wrote:
>>>
 Hi Mahesh,

 On Thu, Jul 21, 2016 at 2:10 PM, Mahesh Dananjaya <
 dananjayamah...@gmail.com> wrote:

> Hi All,
> I am onto connecting cep streams with samoa streams to data analysis
> using samoa framework. To connect samoa with cep siddhi event streams what
> i we can do is that try to convert cep streams into samoa streams or else
> writing wrpper for samoa for cep  streasm to be used. In both cases i have
> to covert siddhi cep streasm into samoa streams. Samoa is using MOA to
> analyse data. Moo contains ML framework to analyse stream data. Samoa is
> wrapping MOA withsome of its classes.
>
> Samoa streams is based on MOA, Instance and InstanceStreams. Samoa see
> streams as a stream of instances [1]. So if we are going to convert cep
> events into samoa instances , it will take time. But if we have some
> similarity between cep siddhi streams and samoa streasm we can reduce the
> time.
> 1. What is the underlying infrastructure for cep siddhi streasm.?
> 2. Are there anything as Instances or InstanceStreams kind of
> implmentation underlying cep streams?
> 3. How can i get more underestanding on CEP siddhi streams.
>
> On the other hand i can use my cep siddhi extension and put those
> events into event queue and convert them into samoa instances and feed 
> them
> into samoa streaming ml topologies.
>
 I think this is OK. I assume this is much easier. Let's do this and
 check the performance.


> There is another option. In Samoa what they are basically doing is
> that wrapping MOA ML framework and write some classes for build streaming
> ml topologies. So as the other option i can wrap samoa moa with my design
> and use moa ml framework directly. (No need for Samoa extension). I have
> building some topologies to streaming data analysis [2]. Main problem