Re: [Dev] Build error for "WSO2 IoT Server - P2 Profile Gen"

2016-03-09 Thread 云展智创
Ruwan,

Thank you very much! Now I can start the IoTS. I remember I had pull all the 
updates on Tuesday, but anyway, you solve my problem. Thanks again.
--
Zhanwen 

API & IOT Management 

在 2016年3月10日,下午2:07,Ruwan Yatawara  写道:

> Hi Zhawen,
> 
> We have on-going development happening on the aforementioned set of branches. 
> The CXF error you have quoted is something we have fixed some time ago. Can 
> you please verify if you have taken latest pulls from the branches?
> 
> Thanks and Regards,
> 
> Ruwan Yatawara
> 
> Senior Software Engineer,
> WSO2 Inc.
> 
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
> www: :http://wso2.com
> 
> 
> On Thu, Mar 10, 2016 at 11:02 AM, 云展智创  wrote:
> Hi all,
> 
> After several build tries, the error message were the same as below for every 
> devices:
> 
>>> [2016-03-08 17:05:40,729] ERROR 
>>> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
>>> org.springframework.beans.factory.BeanCreationException: Error creating 
>>> bean with name 'AndroidSenseController': Cannot create inner bean 
>>> 'AndroidSenseControllerService' of type 
>>> [org.wso2.carbon.device.mgt.iot.androidsense.controller.service.impl.AndroidSenseControllerService]
>>>  while setting bean property 'serviceBeans' with key [0]; nested exception 
>>> is org.springframework.beans.factory.BeanCreationException: Error creating 
>>> bean with name 'AndroidSenseControllerService' defined in URL 
>>> [jndi:/localhost/android_sense/WEB-INF/cxf-servlet.xml]: Instantiation of 
>>> bean failed; nested exception is java.lang.NoClassDefFoundError: 
>>> org/wso2/carbon/device/mgt/iot/exception/DeviceControllerException
>>> at 
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
>>> at 
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
>>> at 
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>>> at 
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>>> 
>>> [2016-03-08 17:05:40,734] ERROR {org.apache.catalina.core.StandardContext} 
>>> -  Servlet [CXFServlet] in web application [/android_sense] threw load() 
>>> exception
>>> java.lang.ClassNotFoundException: 
>>> org.wso2.carbon.device.mgt.iot.exception.DeviceControllerException
>>> at 
>>> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>>> at 
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>> 
>>> [2016-03-08 17:05:40,871] ERROR 
>>> {org.wso2.carbon.apimgt.webapp.publisher.lifecycle.util.AnnotationUtil} -  
>>> Error encountered while scanning for annotations
>>> java.lang.NoClassDefFoundError: 
>>> org/wso2/carbon/device/mgt/iot/exception/DeviceControllerException
>>> at java.lang.Class.getDeclaredMethods0(Native Method)
>>> at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
>>> at java.lang.Class.getDeclaredMethods(Class.java:1855)
> 
> 
> Any suggestions for this? Thanks.
> --
> Zhanwen 
> 
> 在 2016年3月9日,上午12:04,云展智创  写道:
> 
>> Hi Ruwan,
>> 
>> Thanks for help. I had pulled all the updates of IoTS-1.0.0-M4 and build the 
>> product-iot-server as the order you mentioned, but still got the same errors 
>> when startup.
>> carbon-apimgt  (release-4.3.x)
>> uhf-template-app (IoTS-1.0.0-M4)
>> carbon-device-mgt (IoTS-1.0.0-M4)
>> carbon-device-mgt-plugins (IoTS-1.0.0-M4)
>> product-iot-server (master)
>> 
>> I have attached the error log below.
>> 
>> --
>> Zhanwen 
>> 
>> IOT & API Management
>> 
>> 在 2016年3月8日,下午6:49,Ruwan Yatawara  写道:
>> 
>>> Hi Zhanwen,
>>> 
>>> Please build the following APIM branch as well, as the particular version 
>>> we are using has not been released yet.
>>> 
>>> https://github.com/wso2/carbon-apimgt/tree/release-4.3.x
>>> 
>>> Thanks and Regards,
>>> 
>>> Ruwan Yatawara
>>> 
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> 
>>> email : ruw...@wso2.com
>>> mobile : +94 77 9110413
>>> blog : http://ruwansrants.blogspot.com/
>>> www: :http://wso2.com
>>> 
>>> 
>>> On Tue, Mar 8, 2016 at 3:45 PM, Ruwan Yatawara  wrote:
>>> Hi Yasith,
>>> 
>>> Please go ahead and build the components in the following order. You will 
>>> be able to build a working distribution.
>>> 
>>> https://github.com/wso2/carbon-device-mgt/tree/IoTS-1.0.0-M4
>>> https://github.com/wso2/carbon-device-mgt-plugins/tree/IoTS-1.0.0-M4
>>> 
>>> https://github.com/wso2-incubator/product-iot-server/tree/master
>>> 
>>> 
>>> Thanks and Regards,
>>> 
>>> Ruwan Yatawara

Re: [Dev] [ESB] Message processors support to On Store Sequence

2016-03-09 Thread Dilshani Subasinghe
Hi all,

Found the solution for particular issue. Error indicating about failing to
connect deactivate sequence.



* WARN - ForwardingService Failed to send the message through the
deactivate sequence. Sequence name does not Exist.*
According to configuration, after maximum delivery attempts, it will find
the deactivate sequence. But in this scenario, "Deactivate sequence" not
given.

So Configured "Drop message after maximum delivery attempts" as "Enabled".

This redelivery process going on because of back-end service is not alive
or processor can't find endpoint.

In this scenario, it was given direct endpoint (
http://127.0.0.1:9000/services/SimpleStockQuoteService) rather than giving
previously created endpoint. So it also cause for the issue.

Configuring those parameters, solved the issue. Hope this will be helpful
to someone.

Regards,
Dilshani.


On Thu, Mar 10, 2016 at 8:14 AM, Dilshani Subasinghe 
wrote:

> Hi ESB Team,
>
> When I am configuring Store mediator, I created an On Store Sequence.
>
>
>
> *http://ws.apache.org/ns/synapse
> "> sequence="conf:/registrySeq"
> xmlns:axis2ns17="http://ws.apache.org/ns/synapse
> "/>*
>
> Then I created another sequence with a store mediator (Store mediator used
> On Store Sequence)
>
>
>
>
>
> * sequence="conf:/registrySeq"/>  *
> Created a proxy and invoked it using axis2Client.
>
>
>
>
> * transports="http https"> inSequence="onstoreSeq"/>*
>
> Then I tried to add a Scheduled Message Forwarding Processor to send
> messages in the message store. As I used Store mediator through On Store
> Sequence, processor will automatically deactivate:
>
>
>
>
>
>
>
>
>
>
>
>
>
> *ForwardingService Deactivating the message processor
> [storeProce]java.lang.NullPointerExceptionat
> org.apache.synapse.message.processor.impl.forwarder.ForwardingService.dispatch(ForwardingService.java:431)
> at
> org.apache.synapse.message.processor.impl.forwarder.ForwardingService.execute(ForwardingService.java:204)
> at
> org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:90)
> at
> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)[2016-03-09 23:58:51,712]  WARN -
> ForwardingService Failed to send the message through the deactivate
> sequence. Sequence name does not Exist.*
>
>
> *Issue*: Can we implement message processor which have connection to On
> Store Sequence as it not including in synapse ? Why message processor do
> not identify On Store Sequence?
>
> Any clarification on this ? Any help will be highly appreciated.
>
> PS: Attached Synapse Configuration XML.
>
> Thank you.
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> Software Engineer - QA
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94773375185
>



-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

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


Re: [Dev] [AppCloud] Sending a file to jeggery rest api through java code

2016-03-09 Thread Manuranga Perera
Does it work if you upload through the browser?
If yes, put tcpmon in-front and see how your request is different form the
browser request.

On Thu, Mar 10, 2016 at 11:38 AM, Danushka Fernando 
wrote:

> Hi All
> I am trying to do $subject for a test case. Tried with sending the file
> and the file input stream. Both didn't work. What should I send here. In
> Jaggery side its retrieving by request.getFile().
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>



-- 
With regards,
*Manu*ranga Perera.

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


Re: [Dev] Adding an array of objects to a JSON dataservice

2016-03-09 Thread Chanika Geeganage
Hi Dulith,

In your request there shouldn't have an '_' between the http method and the
resource path. In your case, it should be

 _postr_batch_req

not _post_r_batch_req

Same applies to _post_r

Thanks

On Thu, Mar 10, 2016 at 9:30 AM, Chanika Geeganage  wrote:

> Hi Dulitha,
>
> I did a quick test and JSON batch insert works fine. Have you enabled
> batch requests in the data service? Can you please send the dataservice
> config.
>
> Thanks
>
> On Thu, Mar 10, 2016 at 8:49 AM, Dulitha Wijewantha 
> wrote:
>
>> Hi guys,
>> Is it possible for me to add an array of objects to the data service? I
>> have looked at the possibility of Batch queries (
>> https://github.com/wso2/product-dss/blob/master/modules/samples/dbs/rdbms/BatchRequestSample.dbs
>> and docs - https://docs.wso2.com/display/DSS350/JSON+Mapping+Sample)
>>
>> When I am sending in the request like below -
>>
>> { "_post_r_batch_req": {
>> "_post_r": [
>> {
>> "added_by": "d",
>> "end_date": "2016-03-14T00:00:00+05:30",
>> "start_date": "2016-07-16T00:00:00+05:30",
>> "status": "a",
>> "type": "a",
>> "email": "b...@b.com"
>> }, {
>> "added_by": "d",
>> "end_date": "2016-03-14T00:00:00+05:30",
>> "start_date": "2016-07-16T00:00:00+05:30",
>> "status": "a",
>> "type": "a",
>> "email": "c...@c.com"
>> }
>> ]
>> }
>> }
>>
>> I am getting the below exception. Any ideas?
>>
>> 08:48:58,912 org.apache.catalina.core.StandardWrapperValve  -
>>  Servlet.service() for servlet [bridgeservlet] in context with path [/]
>> threw exception
>> java.lang.NullPointerException
>> at
>> org.apache.axis2.json.gson.JsonFormatter.writeTo(JsonFormatter.java:100)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:411)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:288)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:45)
>> at
>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144)
>> at
>> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:89)
>> at
>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:831)
>> at
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:227)
>> at
>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>> at
>> 

Re: [Dev] [AS 6.0.0] HTTP Monitoring dashboard - Required DS Enhancements

2016-03-09 Thread Nipuna Chandradasa
Hi Lochana,

1st requirement, drill down navigation, is implemented and will be reviewed
EOD. How it works is there is a exposed functionality by dashboard server
which can be access by any gadget and callback function can be pass as a
parameter to that function. After a event which navigate to a page with
drill down data that callback functionality will be called and drill down
data will be passed as a parameter to the callback. Using these data who
ever developing the gadget can manipulate the gadget with the data in the
drill down scenario.

Will inform after the code and functionality review.

Thank you.

On Wed, Mar 9, 2016 at 10:26 AM, Lochana Ranaweera 
wrote:

> Hi all,
>
> The HTTP Monitoring Dashboard for WSO2 platform is currently being
> implemented targeting AS 6.0.0 as the first phase. During last review it
> was agreed that the following improvements will be provided from DS side.
> Please note that the dashboard is to be deployed as a collection of user
> preferred set of gadgets in the DS.
>
>1. To analyze statistics per web application, a drill-down navigation
>mechanism is needed from within a data table gadget. This will result in a
>variable number of pages depending on the number of web applications
>publishing data in the AS. As of now, rendering a page is not possible
>inside a gadget. This functionality will be provided so that a URL can be
>passed as an argument to render such information in another page.
>2. Removing the title and the properties icon from the gadgets
>permanently.
>3. Making the dashboard designer grid fine grain to help render gadget
>sizes better.
>
> Please note that improvements [2] and [3] are assigned less priority than
> [1], given the time constraint.
>
> Feedback on this matter is highly appreciated.
>
> Thanks and regards,
>
> --
> Lochana Ranaweera
> Intern Software Engineer
> WSO2 Inc: http://wso2.com
> Blog: https://lochanaranaweera.wordpress.com/
> Mobile: +94716487055 
>
>


-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppCloud] [Automation] Reading a file from resources folder

2016-03-09 Thread Danushka Fernando
Hi
I am trying to do $subject in a test case. I tried code below. Didn't work.
Can some one shed some light here.

ClassLoader classLoader = getClass().getClassLoader();
File uploadArtifact = new File(classLoader.getResource(resourcePath).getFile());


Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Cloud] Test Automation HTTP Client issue

2016-03-09 Thread Danushka Fernando
Sorry for the noise. Seems I haven't compiled the changed code. ;). :D. :D.
:D

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Thu, Mar 10, 2016 at 10:09 AM, Dharshana Warusavitharana <
dharsha...@wso2.com> wrote:

> Hi Danushka,
>
> HTTP client you used is quite out dated
> We have two new rest clients designed to work generically using wink and
> JAX-RS2.
>
> We are moving the generic client to the automation utility space so you
> can useit.
> For now please refer G-Reg Store- publisher test cases for reference.
>
> We will push it to generic location and post you the location.
>
> Thank you,
> Dharshana.
>
> On Thu, Mar 10, 2016 at 9:55 AM, Danushka Fernando 
> wrote:
>
>> Hi All
>>
>> I am currently working on developing test cases for appcloud. Here I have
>> reused the code we developed for app factory. We are executing the tests
>> via the rest api of the jaggery app. Here also as same as App Factory we
>> are first calling the login rest api get the session and then calling the
>> create application endpoint with the session header.
>>
>> But when I tried with the test case for app cloud, login call succeed and
>> for create application call I am getting the carbon login page as the
>> result. I tried the same urls I used in test cases in curl commands and
>> they works as expected. Here I am using the HTTPRequestUtil provided by
>> automation framework.
>> Any Ideas what's going wrong here. Any Ideas would be appreciated.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : dharsha...@wso2.com 
> Tel  : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94770342233
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppCloud] Sending a file to jeggery rest api through java code

2016-03-09 Thread Danushka Fernando
Hi All
I am trying to do $subject for a test case. Tried with sending the file and
the file input stream. Both didn't work. What should I send here. In
Jaggery side its retrieving by request.getFile().

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build error for "WSO2 IoT Server - P2 Profile Gen"

2016-03-09 Thread Ruwan Yatawara
Hi Zhawen,

We have on-going development happening on the aforementioned set of
branches. The CXF error you have quoted is something we have fixed some
time ago. Can you please verify if you have taken latest pulls from the
branches?

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

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


On Thu, Mar 10, 2016 at 11:02 AM, 云展智创  wrote:

> Hi all,
>
> After several build tries, the error message were the same as below for
> every devices:
>
> [2016-03-08 17:05:40,729] ERROR
>>> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean with name 'AndroidSenseController': Cannot create inner bean
>>> 'AndroidSenseControllerService' of type
>>> [org.wso2.carbon.device.mgt.iot.androidsense.controller.service.impl.AndroidSenseControllerService]
>>> while setting bean property 'serviceBeans' with key [0]; nested exception
>>> is org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean with name 'AndroidSenseControllerService' defined in URL
>>> [jndi:/localhost/android_sense/WEB-INF/cxf-servlet.xml]: Instantiation of
>>> bean failed; nested exception is java.lang.NoClassDefFoundError:
>>> org/wso2/carbon/device/mgt/iot/exception/DeviceControllerException
>>> at
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
>>> at
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
>>> at
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>>> at
>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>>>
>>> [2016-03-08 17:05:40,734] ERROR
>>> {org.apache.catalina.core.StandardContext} -  Servlet [CXFServlet] in web
>>> application [/android_sense] threw load() exception
>>> java.lang.ClassNotFoundException:
>>> org.wso2.carbon.device.mgt.iot.exception.DeviceControllerException
>>> at
>>> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>>> at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>>
>>> [2016-03-08 17:05:40,871] ERROR
>>> {org.wso2.carbon.apimgt.webapp.publisher.lifecycle.util.AnnotationUtil} -
>>> Error encountered while scanning for annotations
>>> java.lang.NoClassDefFoundError:
>>> org/wso2/carbon/device/mgt/iot/exception/DeviceControllerException
>>> at java.lang.Class.getDeclaredMethods0(Native Method)
>>> at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
>>> at java.lang.Class.getDeclaredMethods(Class.java:1855)
>>>
>>
> Any suggestions for this? Thanks.
> --
> Zhanwen
>
> 在 2016年3月9日,上午12:04,云展智创  写道:
>
> Hi Ruwan,
>
> Thanks for help. I had pulled all the updates of IoTS-1.0.0-M4 and build
> the product-iot-server as the order you mentioned, but still got the same
> errors when startup.
> carbon-apimgt  (release-4.3.x)
> uhf-template-app (IoTS-1.0.0-M4)
> carbon-device-mgt (IoTS-1.0.0-M4)
> carbon-device-mgt-plugins (IoTS-1.0.0-M4)
> product-iot-server (master)
>
> I have attached the error log below.
> 
> --
> Zhanwen
>
> IOT & API Management
>
> 在 2016年3月8日,下午6:49,Ruwan Yatawara  写道:
>
> Hi Zhanwen,
>
> Please build the following APIM branch as well, as the particular version
> we are using has not been released yet.
>
> https://github.com/wso2/carbon-apimgt/tree/release-4.3.x
>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Senior Software Engineer,
> WSO2 Inc.
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
> www: :http://wso2.com
>
>
> On Tue, Mar 8, 2016 at 3:45 PM, Ruwan Yatawara  wrote:
>
>> Hi Yasith,
>>
>> Please go ahead and build the components in the following order. You will
>> be able to build a working distribution.
>>
>> https://github.com/wso2/carbon-device-mgt/tree/IoTS-1.0.0-M4
>> https://github.com/wso2/carbon-device-mgt-plugins/tree/IoTS-1.0.0-M4
>>
>> https://github.com/wso2-incubator/product-iot-server/tree/master
>>
>>
>> Thanks and Regards,
>>
>> Ruwan Yatawara
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>>
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>> www: :http://wso2.com
>>
>>
>> On Tue, Mar 8, 2016 at 3:05 PM, 云展智创  wrote:
>>
>>> Yasith,
>>>
>>> Thank you. Now I can build product-iot-server successfully (I didn’t
>>> build the carbon-analytics-common in your last mail but still pass the IoTS
>>> building process. Was that step 

Re: [Dev] DSS insert with values with spaces and special characters

2016-03-09 Thread Udara Liyanage
Hi Chanika,

After escaping text from client side, I was able to get the issue resolved.

However is there any way where we can ask DSS to escape/parse those values
by modifying query or some mechanism.

On Thu, Mar 10, 2016 at 10:55 AM, Udara Liyanage  wrote:

> Hi Chanika,
>
> Now I escapded the value using StringEscapeUtils.escapeHtml.
> But still it throws a similar error.
>
> Escaped value:
> role=Lead - HR  Administration
>
> On Thu, Mar 10, 2016 at 10:41 AM, Chanika Geeganage 
> wrote:
>
>> Hi Udara,
>>
>> White spaces are parsed without any issue. For the character & you can
>> pass it as '' or wrap it within CDATA.For an example,
>>
>> 
>>
>> Thanks
>>
>>
>> On Thu, Mar 10, 2016 at 9:59 AM, Udara Liyanage  wrote:
>>
>>> Hi,
>>>
>>> I have below query in my DSS configs. However this fails when values
>>> have spaces or special characters &.
>>>   
>>>   INSERT  INTO
>>> employees(Employee_Id,First_Name,Last_Name,Work_Email,Gender,Job_Role,Department,Reports_To,Product,)
>>> VALUES ( :id,
>>> :firstName,:lastName,:email,:gender,:role,:department,:reportsTo,:product,:team);
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>
>>>
>>> Problematic values:
>>> department=HUMAN RESOURCES AND ADMINISTRATION, role=Lead - HR &
>>> Administration,
>>>
>>>
>>> I tried escaping with single quote (':department') and double
>>> quote(":department"), both did not work for me.  What modification should
>>> be done to add values with spaces and special characters.
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> web: http://udaraliyanage.wordpress.com
>>> phone: +94 71 443 6897
>>>
>>
>>
>>
>> --
>> Best Regards..
>>
>> Chanika Geeganage
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>>
>>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Postgres issue with both autoCommit true and false

2016-03-09 Thread Pramod Thakur
Hi,

I am getting the following error in wso2 api manager if the
true

Again if i will make it false false
then there is connection issue, it is not able to retrive connection from
the pool, what is the solution.




org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled.

   at
org.postgresql.jdbc.PgConnection.commit(PgConnection.java:741)

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

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

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

   at
org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)

   at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)

   at
org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51)

   at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)

   at
org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:71)

   at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)

   at
org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153)

   at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)

   at
org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41)

   at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)

   at
org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80)

   at com.sun.proxy.$Proxy14.commit(Unknown Source)

   at
org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.updateApplicationKeyTypeMapping(ApiMgtDAO.java:4092)

   at
org.wso2.carbon.apimgt.impl.utils.ApplicationUtils.updateOAuthAppAssociation(ApplicationUtils.java:172)

   at
org.wso2.carbon.apimgt.impl.workflow.AbstractApplicationRegistrationWorkflowExecutor.dogenerateKeysForApplication(AbstractApplicationRegistrationWorkflowExecutor.java:154)

   at
org.wso2.carbon.apimgt.impl.workflow.AbstractApplicationRegistrationWorkflowExecutor.generateKeysForApplication(AbstractApplicationRegistrationWorkflowExecutor.java:119)

   at
org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:81)

   at
org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:58)

   at
org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2179)

   at
org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicationRegistration(UserAwareAPIConsumer.java:34)

   at
org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getApplicationKey(APIStoreHostObject.java:751)

   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

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

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

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

   at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)

   at
org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)

   at
org.jaggeryjs.rhino.store.modules.subscription.c2._c_anonymous_2(/store/modules/subscription/key.jag:39)

   at
org.jaggeryjs.rhino.store.modules.subscription.c2.call(/store/modules/subscription/key.jag)

   at
org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)

   at
org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)

   at
org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)

   at
org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)

   at
org.jaggeryjs.rhino.store.modules.subscription.c0._c_anonymous_9(/store/modules/subscription/module.jag:32)

   at
org.jaggeryjs.rhino.store.modules.subscription.c0.call(/store/modules/subscription/module.jag)

   at
org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)

   at
org.jaggeryjs.rhino.store.site.blocks.subscription.subscription_add.ajax.c0._c_anonymous_1(/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag:239)

   at

Re: [Dev] Session Affinity in Kubernetes

2016-03-09 Thread Imesh Gunaratne
On Thu, Mar 10, 2016 at 10:49 AM, Nishadi Kirielle  wrote:

> Hi all,
> I have only tested for http traffic earlier. Although the kubernetes
> service loadbalancer template has support for https, when I have deployed
> an application ( dell/tomcat ) which has the support for https, the ha
> proxy load balancer did not identify it as a https service in the haproxy
> configuration file. It just identified the application as a http
> application and updated the configuration file accordingly.
>

Yes, in our K8S services we have defined the protocol as TCP, not as
HTTPS/SSL. Therefore there is no way for the service load balancer to find
this information by looking at the services.


> Thus I have manually altered the ha proxy configuration file to support
> for https traffic with a self signed certificate specific for the node ip.
> But it fails in accessing the application, since the application needs the
> self signed certificate specific to the application.
> As a solution for this I'm trying with bind option 'cert' to bind several
> certificate files[2] of the specific applications.
>

Shall we try with the default self signed certificate distributed with a
WSO2 product?

Thanks

>
> Any suggestions on this are highly appreciated.
> [1] .
> https://github.com/kubernetes/contrib/tree/master/service-loadbalancer
> [2] .
> https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#5.1-crt
>
> Thanks
>
> On Wed, Mar 9, 2016 at 10:33 AM, Imesh Gunaratne  wrote:
>
>> Hi Deep,
>>
>> On Tue, Mar 8, 2016 at 8:08 PM, Deependra Ariyadewa 
>> wrote:
>>
>>>
>>> On Mon, Mar 7, 2016 at 10:30 AM, Nishadi Kirielle 
>>> wrote:
>>>
 Hi All,
 I have written the blog post on load balancing and session affinity in
 kubernetes. [1]

>>>
>>> I am going test session affinity for HTTPS triffic in Kubernetes
>>> following your configurations. Did you try to enable session affinity for
>>> HTTPS triffic in Kubernetes.
>>>
>>> We would need to configure haproxy with relevant SSL certificates for
>> HTTPS to work. I do not think we tested it. See [1] for the haproxy config
>> template used by the service load balancer. This will get packaged to the
>> Docker service load balancer Docker image [2].
>>
>> [1]
>> https://github.com/kubernetes/contrib/blob/master/service-loadbalancer/template.cfg
>> [2]
>> https://github.com/kubernetes/contrib/blob/master/service-loadbalancer/Dockerfile
>>
>> Thanks
>>
>>
>>> Thanks,
>>> Deependra.
>>>

 Thank you

 [1].
 http://nishadikirielle.blogspot.com/2016/03/load-balancing-kubernetes-services-and.html

 On Fri, Mar 4, 2016 at 8:22 PM, Nishadi Kirielle 
 wrote:

> Thanks a lot. I will write a blog post and share it.
>
> Thanks
>
>
>
> On Fri, Mar 4, 2016 at 6:07 PM, Sagara Gunathunga 
> wrote:
>
>>
>> Great, it would be better if Nishadi can write a step by step blog
>> post about how to do this.  We had to do a 30 hours hackathon to change
>> MSF4J Pet-store sample due to this issue :)
>>
>> Thanks !
>>
>> On Fri, Mar 4, 2016 at 5:54 PM, Imesh Gunaratne 
>> wrote:
>>
>>> Indeed! Overall great effort!!
>>>
>>> Thanks
>>>
>>> On Fri, Mar 4, 2016 at 3:36 PM, Lakmal Warusawithana <
>>> lak...@wso2.com> wrote:
>>>
 Great work Nishadi!

 On Fri, Mar 4, 2016 at 3:34 PM, Nishadi Kirielle 
 wrote:

> Hi all,
> In attempting to configure session affinity in kubernetes load
> balancing, I tried to run nginx alpha ingress controller[1] to expose 
> the
> services through ingress. But the generated nginx configuration file 
> were
> missing the service ports to access the services. Thus I have manually
> updated the configuration file to check the functionality of ingress. 
> Since
> session affinity is available in haproxy, I have created a haproxy 
> docker
> container and manually updated its configuration file in order to 
> check its
> functionality with ingress.
> As per a suggestion of Imesh and Lakmal, I have tried kubernetes
> service loadbalancer repo[2]. There, they have developed the load 
> balancing
> directly with pods, bypassing the services. This procedure corrects 
> the
> session affinity problem in load balancing in kubernetes.
>
> Thanks
>
> [1] .
> https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx-alpha
> [2] .
> https://github.com/kubernetes/contrib/tree/master/service-loadbalancer
>
> On Mon, Feb 29, 2016 at 12:35 PM, Imesh Gunaratne 
> wrote:
>
>>
>>

Re: [Dev] Build error for "WSO2 IoT Server - P2 Profile Gen"

2016-03-09 Thread 云展智创
Hi all,

After several build tries, the error message were the same as below for every 
devices:

>> [2016-03-08 17:05:40,729] ERROR 
>> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
>> org.springframework.beans.factory.BeanCreationException: Error creating bean 
>> with name 'AndroidSenseController': Cannot create inner bean 
>> 'AndroidSenseControllerService' of type 
>> [org.wso2.carbon.device.mgt.iot.androidsense.controller.service.impl.AndroidSenseControllerService]
>>  while setting bean property 'serviceBeans' with key [0]; nested exception 
>> is org.springframework.beans.factory.BeanCreationException: Error creating 
>> bean with name 'AndroidSenseControllerService' defined in URL 
>> [jndi:/localhost/android_sense/WEB-INF/cxf-servlet.xml]: Instantiation of 
>> bean failed; nested exception is java.lang.NoClassDefFoundError: 
>> org/wso2/carbon/device/mgt/iot/exception/DeviceControllerException
>>  at 
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
>>  at 
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
>>  at 
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>>  at 
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>> 
>> [2016-03-08 17:05:40,734] ERROR {org.apache.catalina.core.StandardContext} - 
>>  Servlet [CXFServlet] in web application [/android_sense] threw load() 
>> exception
>> java.lang.ClassNotFoundException: 
>> org.wso2.carbon.device.mgt.iot.exception.DeviceControllerException
>>  at 
>> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154)
>>  at 
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
>>  at java.lang.Class.getDeclaredConstructors0(Native Method)
>> 
>> [2016-03-08 17:05:40,871] ERROR 
>> {org.wso2.carbon.apimgt.webapp.publisher.lifecycle.util.AnnotationUtil} -  
>> Error encountered while scanning for annotations
>> java.lang.NoClassDefFoundError: 
>> org/wso2/carbon/device/mgt/iot/exception/DeviceControllerException
>>  at java.lang.Class.getDeclaredMethods0(Native Method)
>>  at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
>>  at java.lang.Class.getDeclaredMethods(Class.java:1855)


Any suggestions for this? Thanks.
--
Zhanwen 

在 2016年3月9日,上午12:04,云展智创  写道:

> Hi Ruwan,
> 
> Thanks for help. I had pulled all the updates of IoTS-1.0.0-M4 and build the 
> product-iot-server as the order you mentioned, but still got the same errors 
> when startup.
> carbon-apimgt  (release-4.3.x)
> uhf-template-app (IoTS-1.0.0-M4)
> carbon-device-mgt (IoTS-1.0.0-M4)
> carbon-device-mgt-plugins (IoTS-1.0.0-M4)
> product-iot-server (master)
> 
> I have attached the error log below.
> 
> --
> Zhanwen 
> 
> IOT & API Management
> 
> 在 2016年3月8日,下午6:49,Ruwan Yatawara  写道:
> 
>> Hi Zhanwen,
>> 
>> Please build the following APIM branch as well, as the particular version we 
>> are using has not been released yet.
>> 
>> https://github.com/wso2/carbon-apimgt/tree/release-4.3.x
>> 
>> Thanks and Regards,
>> 
>> Ruwan Yatawara
>> 
>> Senior Software Engineer,
>> WSO2 Inc.
>> 
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>> www: :http://wso2.com
>> 
>> 
>> On Tue, Mar 8, 2016 at 3:45 PM, Ruwan Yatawara  wrote:
>> Hi Yasith,
>> 
>> Please go ahead and build the components in the following order. You will be 
>> able to build a working distribution.
>> 
>> https://github.com/wso2/carbon-device-mgt/tree/IoTS-1.0.0-M4
>> https://github.com/wso2/carbon-device-mgt-plugins/tree/IoTS-1.0.0-M4
>> 
>> https://github.com/wso2-incubator/product-iot-server/tree/master
>> 
>> 
>> Thanks and Regards,
>> 
>> Ruwan Yatawara
>> 
>> Senior Software Engineer,
>> WSO2 Inc.
>> 
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>> www: :http://wso2.com
>> 
>> 
>> On Tue, Mar 8, 2016 at 3:05 PM, 云展智创  wrote:
>> Yasith,
>> 
>> Thank you. Now I can build product-iot-server successfully (I didn’t build 
>> the carbon-analytics-common in your last mail but still pass the IoTS 
>> building process. Was that step necessary? But I did build the 
>> carbon-event-processing branch release 2.0.11 before for other testing). But 
>> when I deploy the product in the target folder and run wso2server.sh. There 
>> were lots of java errors about device plugin such as:
>> 
>> [2016-03-08 17:05:40,729] ERROR 
>> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
>> org.springframework.beans.factory.BeanCreationException: Error creating 

Re: [Dev] Native Cloud Support for Running WSO2 Middleware on RedHat OpenShift

2016-03-09 Thread Noel Yahan
Yes of course, Please let me know what time works best for you.

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


Re: [Dev] DSS insert with values with spaces and special characters

2016-03-09 Thread Udara Liyanage
Hi Chanika,

Now I escapded the value using StringEscapeUtils.escapeHtml.
But still it throws a similar error.

Escaped value:
role=Lead - HR  Administration

On Thu, Mar 10, 2016 at 10:41 AM, Chanika Geeganage 
wrote:

> Hi Udara,
>
> White spaces are parsed without any issue. For the character & you can
> pass it as '' or wrap it within CDATA.For an example,
>
> 
>
> Thanks
>
>
> On Thu, Mar 10, 2016 at 9:59 AM, Udara Liyanage  wrote:
>
>> Hi,
>>
>> I have below query in my DSS configs. However this fails when values have
>> spaces or special characters &.
>>   
>>   INSERT  INTO
>> employees(Employee_Id,First_Name,Last_Name,Work_Email,Gender,Job_Role,Department,Reports_To,Product,)
>> VALUES ( :id,
>> :firstName,:lastName,:email,:gender,:role,:department,:reportsTo,:product,:team);
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>
>>
>> Problematic values:
>> department=HUMAN RESOURCES AND ADMINISTRATION, role=Lead - HR &
>> Administration,
>>
>>
>> I tried escaping with single quote (':department') and double
>> quote(":department"), both did not work for me.  What modification should
>> be done to add values with spaces and special characters.
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>
>
> --
> Best Regards..
>
> Chanika Geeganage
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Session Affinity in Kubernetes

2016-03-09 Thread Nishadi Kirielle
Hi all,
I have only tested for http traffic earlier. Although the kubernetes
service loadbalancer template has support for https, when I have deployed
an application ( dell/tomcat ) which has the support for https, the ha
proxy load balancer did not identify it as a https service in the haproxy
configuration file. It just identified the application as a http
application and updated the configuration file accordingly.
Thus I have manually altered the ha proxy configuration file to support for
https traffic with a self signed certificate specific for the node ip. But
it fails in accessing the application, since the application needs the self
signed certificate specific to the application.
As a solution for this I'm trying with bind option 'cert' to bind several
certificate files[2] of the specific applications.

Any suggestions on this are highly appreciated.
[1] . https://github.com/kubernetes/contrib/tree/master/service-loadbalancer
[2] . https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#5.1-crt

Thanks

On Wed, Mar 9, 2016 at 10:33 AM, Imesh Gunaratne  wrote:

> Hi Deep,
>
> On Tue, Mar 8, 2016 at 8:08 PM, Deependra Ariyadewa  wrote:
>
>>
>> On Mon, Mar 7, 2016 at 10:30 AM, Nishadi Kirielle 
>> wrote:
>>
>>> Hi All,
>>> I have written the blog post on load balancing and session affinity in
>>> kubernetes. [1]
>>>
>>
>> I am going test session affinity for HTTPS triffic in Kubernetes
>> following your configurations. Did you try to enable session affinity for
>> HTTPS triffic in Kubernetes.
>>
>> We would need to configure haproxy with relevant SSL certificates for
> HTTPS to work. I do not think we tested it. See [1] for the haproxy config
> template used by the service load balancer. This will get packaged to the
> Docker service load balancer Docker image [2].
>
> [1]
> https://github.com/kubernetes/contrib/blob/master/service-loadbalancer/template.cfg
> [2]
> https://github.com/kubernetes/contrib/blob/master/service-loadbalancer/Dockerfile
>
> Thanks
>
>
>> Thanks,
>> Deependra.
>>
>>>
>>> Thank you
>>>
>>> [1].
>>> http://nishadikirielle.blogspot.com/2016/03/load-balancing-kubernetes-services-and.html
>>>
>>> On Fri, Mar 4, 2016 at 8:22 PM, Nishadi Kirielle 
>>> wrote:
>>>
 Thanks a lot. I will write a blog post and share it.

 Thanks



 On Fri, Mar 4, 2016 at 6:07 PM, Sagara Gunathunga 
 wrote:

>
> Great, it would be better if Nishadi can write a step by step blog
> post about how to do this.  We had to do a 30 hours hackathon to change
> MSF4J Pet-store sample due to this issue :)
>
> Thanks !
>
> On Fri, Mar 4, 2016 at 5:54 PM, Imesh Gunaratne 
> wrote:
>
>> Indeed! Overall great effort!!
>>
>> Thanks
>>
>> On Fri, Mar 4, 2016 at 3:36 PM, Lakmal Warusawithana > > wrote:
>>
>>> Great work Nishadi!
>>>
>>> On Fri, Mar 4, 2016 at 3:34 PM, Nishadi Kirielle 
>>> wrote:
>>>
 Hi all,
 In attempting to configure session affinity in kubernetes load
 balancing, I tried to run nginx alpha ingress controller[1] to expose 
 the
 services through ingress. But the generated nginx configuration file 
 were
 missing the service ports to access the services. Thus I have manually
 updated the configuration file to check the functionality of ingress. 
 Since
 session affinity is available in haproxy, I have created a haproxy 
 docker
 container and manually updated its configuration file in order to 
 check its
 functionality with ingress.
 As per a suggestion of Imesh and Lakmal, I have tried kubernetes
 service loadbalancer repo[2]. There, they have developed the load 
 balancing
 directly with pods, bypassing the services. This procedure corrects the
 session affinity problem in load balancing in kubernetes.

 Thanks

 [1] .
 https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx-alpha
 [2] .
 https://github.com/kubernetes/contrib/tree/master/service-loadbalancer

 On Mon, Feb 29, 2016 at 12:35 PM, Imesh Gunaratne 
 wrote:

>
>
> On Mon, Feb 29, 2016 at 12:12 PM, Lakmal Warusawithana <
> lak...@wso2.com> wrote:
>
>>
>>
>> On Mon, Feb 29, 2016 at 11:56 AM, Imesh Gunaratne > > wrote:
>>
>>> Hi Lakmal,
>>>
>>> On Mon, Feb 29, 2016 at 11:37 AM, Lakmal Warusawithana <
>>> lak...@wso2.com> wrote:
>>>
 Hi,

 What is we are tying to do here? Are we trying to verify the
 ClientIP when exposing service 

Re: [Dev] DSS insert with values with spaces and special characters

2016-03-09 Thread Chanika Geeganage
Hi Udara,

White spaces are parsed without any issue. For the character & you can pass
it as '' or wrap it within CDATA.For an example,



Thanks


On Thu, Mar 10, 2016 at 9:59 AM, Udara Liyanage  wrote:

> Hi,
>
> I have below query in my DSS configs. However this fails when values have
> spaces or special characters &.
>   
>   INSERT  INTO
> employees(Employee_Id,First_Name,Last_Name,Work_Email,Gender,Job_Role,Department,Reports_To,Product,)
> VALUES ( :id,
> :firstName,:lastName,:email,:gender,:role,:department,:reportsTo,:product,:team);
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>
>
> Problematic values:
> department=HUMAN RESOURCES AND ADMINISTRATION, role=Lead - HR &
> Administration,
>
>
> I tried escaping with single quote (':department') and double
> quote(":department"), both did not work for me.  What modification should
> be done to add values with spaces and special characters.
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Best Regards..

Chanika Geeganage
Software Engineer
WSO2, Inc.; http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] - XSLT mediator: Features

2016-03-09 Thread Chathurika De Silva
Hi ESB team

The $subject, the documentation gives
http://ws.apache.org/ns/synapse/transform/feature/dom as the example. Is
there any predefined feature list that can be used here?

Thank You
Erandi

-- 
*Chathurika Erandi*
Software Engineer,
WSO2 Inc.

*E-mail:* chathuri...@wso2.com
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Browse registry resource filtering by media type

2016-03-09 Thread Danesh Kuruppu
Hi Awanthika,

We cannot filter resources in Registry browser. for your case, you need to
use registry search to filter results. Anyway media type is attached in the
registry resource. We can check the mediatype of the resource once we
retrieved the registry resource.

Thanks
Danesh

On Thu, Mar 10, 2016 at 9:07 AM, Awanthika Senarath 
wrote:

> Hi,
>
> Is $subject doable?
>
> We have a requirement in Developer Studio to load registry resources and
> process them separately accorgin to they file type. For an example if it is
> an XML , XSD or a JSON we need to process them in separate methods.
>
> Currently we are retrieving only the resource path from our registry
> browser and then we retrieve it as a stream to temp file created in the
> file system. Hence We are unable to differentiate the file type.
>
> We have a combo box for the user to select the file type we wants to load
> and for users local file system we are filtering the files according to the
> file extension. What we look for is something similar in browsing registry
> resources.
>
> If that is not possible retrieving the file type on selection would also
> be adequate.
>
> Appreciate your input on this.
>
> Regards
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 

Danesh Kuruppu
Software Engineer
WSO2 Inc,
Mobile: +94 (77) 1690552
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Cloud] Test Automation HTTP Client issue

2016-03-09 Thread Dharshana Warusavitharana
Hi Danushka,

HTTP client you used is quite out dated
We have two new rest clients designed to work generically using wink and
JAX-RS2.

We are moving the generic client to the automation utility space so you can
useit.
For now please refer G-Reg Store- publisher test cases for reference.

We will push it to generic location and post you the location.

Thank you,
Dharshana.

On Thu, Mar 10, 2016 at 9:55 AM, Danushka Fernando 
wrote:

> Hi All
>
> I am currently working on developing test cases for appcloud. Here I have
> reused the code we developed for app factory. We are executing the tests
> via the rest api of the jaggery app. Here also as same as App Factory we
> are first calling the login rest api get the session and then calling the
> create application endpoint with the session header.
>
> But when I tried with the test case for app cloud, login call succeed and
> for create application call I am getting the carbon login page as the
> result. I tried the same urls I used in test cases in curl commands and
> they works as expected. Here I am using the HTTPRequestUtil provided by
> automation framework.
> Any Ideas what's going wrong here. Any Ideas would be appreciated.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>



-- 

Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : dharsha...@wso2.com 
Tel  : +94 11 214 5345
Fax :+94 11 2145300
cell : +94770342233
blog : http://dharshanaw.blogspot.com

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


Re: [Dev] Regarding GSOC 2016 project 21

2016-03-09 Thread Tharindu Edirisinghe
Hi Asantha,

Shall we have a hangout session tonight (Between 9.00 p.m to 11.00 p.m) so
I can give you some help with the implementation.

Regards,
TharinduE

On Thu, Mar 10, 2016 at 10:04 AM, Asantha Thilina 
wrote:

> hi tharindu,
>  i'm working on implementation of user store for mongodb i have a small
> problem regarding build the user store project packaging as jar  instead of
>  bundle when i build the jar file and add to lib folder in identity server
> it's not throwing any error but it not showing my user store when i going
> to create new user store in admin panel ,when i view the structure of jar
> it not contain osgi service component package i think that because it is
> packaging as jar  i'm using eclipse mars as development environment any
> suggestion would be grateful.
>
> thanks,
> Regards,
> Asantha
>
> On Tue, Mar 8, 2016 at 7:09 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> Great ! We'll review the work and share our feedback soon. Meanwhile you
>> can start a blog and write your experiences too. Since you have got the
>> understanding of userstore managers, now you can directly jump into the
>> implementation of the project as well.
>>
>> Regards,
>> TharinduE
>>
>> On Sun, Mar 6, 2016 at 1:07 AM, Asantha Thilina > > wrote:
>>
>>> Hi,
>>>
>>> I done the practice tasks 1 - 5 and i shared  what i have been done so
>>> far  in github, below i put the link to my repository
>>> waiting for feedback...
>>>
>>> https://github.com/asanthamax/customuserstoremanager
>>>
>>> Thanks,
>>> Regards,
>>> Asantha
>>>
>>>
>>>
>>> On Mon, Feb 29, 2016 at 7:41 PM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
 [Adding Dev mailing list]

 Hi Asantha,

 In order to make you familiar with this project with regard to WSO2
 platform, we would like you to complete the following task which would
 provide an understanding on how the userstore managers are used in WSO2
 products.


 1. Refer [1] and understand how a userstore manager can be written and
 used in a product like WSO2 Identity Server [2].

 2. Refer [3] and understand more about Claims and Claim Management.

 3. Referring [1], extend the
 org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager class and write your
 own JDBC userstore manaager. (MySQL is preferred).

 4. Introduce a new claim called lastPasswordResetTimestamp which tracks
 the timestamp of each user's last successful password reset attempt. (in
 WSO2 Identity Server). For this you can refer [1] and override the
 doUpdateCredential, doUpdateCredentialByAdmin methods in the custom
 userstore manager you wrote in previous step. Inside these methods after
 successful password reset, set the current timestemp as a user claim. For
 this you can refer [4].

 5. In the JDBC userstore manager you have written in above step,
 override the doAuthenticate method. Inside the method, after performing
 authentication, compare the timestamp of the last time the user updated the
 credentials with current timestamp. If it is greater than 60 days (you can
 hardcode this value for the moment) return an exception with a message
 saying the user has to reset the password as it is expired. (For the users
 where the claim for password reset timestamp is empty, you can let the
 users successfully authenticate)

 When performing above tasks, if you face any difficulty, you can ask
 for help from this mail thread. You can use GitHub to share your source
 code and after completing a deliverable from above steps, you can share
 your progress with us.

 If you need further clarifications, please get back.

 [1]
 https://docs.wso2.com/display/IS510/Writing+a+Custom+User+Store+Manager
 [2] http://wso2.com/products/identity-server/
 [3]
 http://tharindue.blogspot.com/2015/08/claim-management-operations-in-wso2.html
 [4]
 http://tharindue.blogspot.com/2015/12/tracking-last-successful-login-attempt.html
 [5]
 http://tharindue.blogspot.com/2015/05/a-workaround-for-renaming-username-of.html

 Regards,
 TharinduE



 On Mon, Feb 29, 2016 at 9:35 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Dear Sir,
> first of all thanks a lot for the quick response and references ,I
> studying the references that you sent  and that are really helpful for me
> to understand the procedure and prepare a proposal. i am really interest 
> in
> take part of this project in GSoC.
> I understand the circumstances and willing to take part it in
> individually.
> As you mentioned I would be really grateful on behalf of my team if
> you can support us to find a project which will suits for our research 
> also
> and it would be really helpful if we can 

Re: [Dev] Regarding GSOC 2016 project 21

2016-03-09 Thread Asantha Thilina
hi tharindu,
 i'm working on implementation of user store for mongodb i have a small
problem regarding build the user store project packaging as jar  instead of
 bundle when i build the jar file and add to lib folder in identity server
it's not throwing any error but it not showing my user store when i going
to create new user store in admin panel ,when i view the structure of jar
it not contain osgi service component package i think that because it is
packaging as jar  i'm using eclipse mars as development environment any
suggestion would be grateful.

thanks,
Regards,
Asantha

On Tue, Mar 8, 2016 at 7:09 AM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> Great ! We'll review the work and share our feedback soon. Meanwhile you
> can start a blog and write your experiences too. Since you have got the
> understanding of userstore managers, now you can directly jump into the
> implementation of the project as well.
>
> Regards,
> TharinduE
>
> On Sun, Mar 6, 2016 at 1:07 AM, Asantha Thilina 
> wrote:
>
>> Hi,
>>
>> I done the practice tasks 1 - 5 and i shared  what i have been done so
>> far  in github, below i put the link to my repository
>> waiting for feedback...
>>
>> https://github.com/asanthamax/customuserstoremanager
>>
>> Thanks,
>> Regards,
>> Asantha
>>
>>
>>
>> On Mon, Feb 29, 2016 at 7:41 PM, Tharindu Edirisinghe > > wrote:
>>
>>> [Adding Dev mailing list]
>>>
>>> Hi Asantha,
>>>
>>> In order to make you familiar with this project with regard to WSO2
>>> platform, we would like you to complete the following task which would
>>> provide an understanding on how the userstore managers are used in WSO2
>>> products.
>>>
>>>
>>> 1. Refer [1] and understand how a userstore manager can be written and
>>> used in a product like WSO2 Identity Server [2].
>>>
>>> 2. Refer [3] and understand more about Claims and Claim Management.
>>>
>>> 3. Referring [1], extend the
>>> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager class and write your
>>> own JDBC userstore manaager. (MySQL is preferred).
>>>
>>> 4. Introduce a new claim called lastPasswordResetTimestamp which tracks
>>> the timestamp of each user's last successful password reset attempt. (in
>>> WSO2 Identity Server). For this you can refer [1] and override the
>>> doUpdateCredential, doUpdateCredentialByAdmin methods in the custom
>>> userstore manager you wrote in previous step. Inside these methods after
>>> successful password reset, set the current timestemp as a user claim. For
>>> this you can refer [4].
>>>
>>> 5. In the JDBC userstore manager you have written in above step,
>>> override the doAuthenticate method. Inside the method, after performing
>>> authentication, compare the timestamp of the last time the user updated the
>>> credentials with current timestamp. If it is greater than 60 days (you can
>>> hardcode this value for the moment) return an exception with a message
>>> saying the user has to reset the password as it is expired. (For the users
>>> where the claim for password reset timestamp is empty, you can let the
>>> users successfully authenticate)
>>>
>>> When performing above tasks, if you face any difficulty, you can ask for
>>> help from this mail thread. You can use GitHub to share your source code
>>> and after completing a deliverable from above steps, you can share your
>>> progress with us.
>>>
>>> If you need further clarifications, please get back.
>>>
>>> [1]
>>> https://docs.wso2.com/display/IS510/Writing+a+Custom+User+Store+Manager
>>> [2] http://wso2.com/products/identity-server/
>>> [3]
>>> http://tharindue.blogspot.com/2015/08/claim-management-operations-in-wso2.html
>>> [4]
>>> http://tharindue.blogspot.com/2015/12/tracking-last-successful-login-attempt.html
>>> [5]
>>> http://tharindue.blogspot.com/2015/05/a-workaround-for-renaming-username-of.html
>>>
>>> Regards,
>>> TharinduE
>>>
>>>
>>>
>>> On Mon, Feb 29, 2016 at 9:35 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Dear Sir,
 first of all thanks a lot for the quick response and references ,I
 studying the references that you sent  and that are really helpful for me
 to understand the procedure and prepare a proposal. i am really interest in
 take part of this project in GSoC.
 I understand the circumstances and willing to take part it in
 individually.
 As you mentioned I would be really grateful on behalf of my team if you
 can support us to find a project which will suits for our research also and
 it would be really helpful if we can extend this same project for suits to
 our research as well.
 Thanks,
 Regards,
 Asantha

>>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] If OUT_ONLY is true, call mediator failed to send the request body to backend service

2016-03-09 Thread Nuwan Wimalasekara
Hi Viraj/Isuru,

Thanks for the response. I debug the code and found that message is cloning
properly with buffer. But the problem is when try to send the request body
to backend by the TargetHandler, the buffer has zero length content. That
is why, it does not send the message body to backend. need to find when it
get cleared and will debug further.

Thanks,
Nuwanw

On Thu, Mar 10, 2016 at 9:32 AM, Isuru Udana  wrote:

> Hi Nuwan,
>
> We are cloning the message because we need to keep the original message to
> proceed with the rest of the meditators in the message flow. We we do not
> clone at the Call, since the stream is getting consumed for the first
> invocation, we won't be able to continue.
>
> Thanks.
>
> On Wed, Mar 9, 2016 at 5:41 PM, Viraj Senevirathne 
> wrote:
>
>> Hi Nuwan,
>>
>> In call mediator if OUT_ONLY is true it will clone the message and will
>> send that new message context to the backend. If there are other mediators
>> after call mediator mediation will continue with the original message
>> context. This is happening as call mediator is a non blocking sender (It
>> will not wait).
>>
>> But if you don't want cloning you will have to use call mediator in
>> *blocking* mode. Then original message context will be passed and it
>> will wait till request send out to the backend before starting mediating
>> subsequent mediators.
>>
>> Thank You,
>>
>>
>> On Wed, Mar 9, 2016 at 5:32 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi
>>>
>>> Call mediator is not submitting the request body to backend service if
>>> OUT_ONLY is true. When the TargetHandler try to send the message body by
>>> reading the Buffer_source, It already got cleared.
>>>
>>> The problem is that inside the call mediator, messageContext is cloned.
>>> Then the buffer is not created in Pipe class. so the buffer has zero length
>>> content.
>>> Is there any reason to clone the message if OUT_ONLY is true inside the
>>> call mediator?
>>>
>>> if we remove cloning the message and proceed with the incomming message
>>> context, the issue is resolved.
>>>
>>>
>>> boolean outOnlyMessage =
>>> "true".equals(synInCtx.getProperty(SynapseConstants.OUT_ONLY));
>>>
>>> // Prepare the outgoing message context
>>> MessageContext synOutCtx = null;
>>> if (outOnlyMessage) {
>>> try {
>>> *synOutCtx =
>>> MessageHelper.cloneMessageContext(synInCtx);*
>>> } catch (AxisFault axisFault) {
>>> handleException("Error occurred while cloning msg
>>> context", axisFault, synInCtx);
>>> }
>>> } else {
>>> synOutCtx = synInCtx;
>>> }
>>>
>>>
>>> Proxy configuration introduce issue.
>>>
>>>   
>>>  
>>>  
>>>  
>>> 
>>>http://localhost:9000/services/SimpleStockQuoteService"/>
>>> 
>>>  
>>>   
>>>
>>> [1] https://wso2.org/jira/browse/ESBJAVA-4469
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> --
>>> Nuwan Wimalasekara
>>> Senior Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> phone: +94 71 668 4620
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Viraj Senevirathne
>> Software Engineer; WSO2, Inc.
>>
>> Mobile : +94 71 958 0269
>> Email : vir...@wso2.com
>>
>
>
>
> --
> *Isuru Udana*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>



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

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


Re: [Dev] [APIM]Why API Import/Export only through HTTPS?

2016-03-09 Thread Thilini Cooray
Hi Abimaran,

This was designed to check role as we wanted to restrict import export
access only to admin users.
This is because the user who accesses this tool gets the capability to
export any API available in his tenant. Users with only create and publish
permissions should not be able to export other users' APIs. As this can
cause API ownership issues.

You can import and export APIs with only admin role.
However, after importing these APIs are on CREATED state. In order to edit
them and publish them, user should have crete and publish permissions.

Thanks.

On Thu, Mar 10, 2016 at 1:28 AM, Abimaran Kugathasan 
wrote:

> Hi Thilini,
>
> So, we can have admin role without any permissions set it. Will this work?
> Why this was designed to check the role, not permission?
>
> On Tue, Mar 8, 2016 at 10:39 PM, Thilini Cooray  wrote:
>
>> Hi Abimaran,
>>
>> At the moment this tools functioning based on role based approach not
>> permission based. Therefore any user with admin role in the server can use
>> it.
>>
>> Thanks.
>>
>> On Wed, Mar 9, 2016 at 8:25 AM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi Chamin,
>>>
>>> My question was what are the permission the user need to have to
>>> export/import the API, not about invoking the API.
>>>
>>> On Tue, Mar 8, 2016 at 9:43 PM, Chamin Dias  wrote:
>>>
 Hi,

 After importing the API, it will be in "Created" state. Please change
 the lifecycle of the API to "Published". After that, any user who has
 "Internal/subscriber" role can invoke the imported API.

 Thanks.

 On Wed, Mar 9, 2016 at 7:16 AM, Abimaran Kugathasan 
 wrote:

> Hi Thilini.
>
> Thanks for the response. I thought it's supported through both https
> and http only default https supported.
>
> Do you know what are the permission we need to have for the user who
> will invoke this API Export/Import functionality?
>
> On Tue, Mar 8, 2016 at 10:27 AM, Thilini Cooray 
> wrote:
>
>> Hi Abimaran,
>>
>> API Import Export tool is accessible to users with admin privileges.
>> Admin credentials needs to be passed and all details of APIs
>> (including their actual endpoints, security levels) are routed through
>> public channels.
>> Therefore we decided to restrict it only for HTTPS considering the
>> security aspects.
>>
>> Thanks.
>>
>> On Tue, Mar 8, 2016 at 8:03 PM, Abimaran Kugathasan <
>> abima...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>>
>>> Why API Import/Export [1] should be done only through HTTPS?
>>>
>>> I tried through HTTP Servlet port, it don't work
>>>
>>> curl -H "Authorization:Basic YWRtaW46YWRtaW4=" -X GET "
>>> http://localhost:9763/api-import-export-v1.0.1/export-api?name=CalculatorAPI=1.0=admin;
>>> -k > CalculatorAPI.zip
>>>
>>> Following log noticed
>>>
>>> [2016-03-08 09:32:45,981]  WARN - CompositeValve To enable SaaS mode
>>> for the webapp, /api-import-export-v1.0.1, configure the 
>>> CarbonTomcatRealm
>>> in META-INF/context.xml.
>>>
>>>
>>> [1] :
>>> https://docs.wso2.com/display/AM1100/Migrating+the+APIs+to+a+Different+Environment
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>>
>>> Software Engineer | WSO2 Inc
>>> Data & APIs Technologies Team
>>> Mobile : +94 773922820
>>>
>>> 
>>> 
>>> 
>>>   
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> *Thilini Cooray*
>> Software Engineer
>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>> E-mail : thili...@wso2.com
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>


 --
 Chamin Dias
 *Software Engineer*
 Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
 Email : cham...@wso2.com
 Blog : https://chamindias.wordpress.com/

>>>
>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>>
>>> Software Engineer | WSO2 Inc
>>> Data & APIs Technologies Team
>>> Mobile : +94 773922820
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>
>>

[Dev] DSS insert with values with spaces and special characters

2016-03-09 Thread Udara Liyanage
Hi,

I have below query in my DSS configs. However this fails when values have
spaces or special characters &.
  
  INSERT  INTO
employees(Employee_Id,First_Name,Last_Name,Work_Email,Gender,Job_Role,Department,Reports_To,Product,)
VALUES ( :id,
:firstName,:lastName,:email,:gender,:role,:department,:reportsTo,:product,:team);
  
  
  
  
  
  
  
  
  
  
   

Problematic values:
department=HUMAN RESOURCES AND ADMINISTRATION, role=Lead - HR &
Administration,


I tried escaping with single quote (':department') and double
quote(":department"), both did not work for me.  What modification should
be done to add values with spaces and special characters.

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [App Cloud] Test Automation HTTP Client issue

2016-03-09 Thread Danushka Fernando
Hi All

I am currently working on developing test cases for appcloud. Here I have
reused the code we developed for app factory. We are executing the tests
via the rest api of the jaggery app. Here also as same as App Factory we
are first calling the login rest api get the session and then calling the
create application endpoint with the session header.

But when I tried with the test case for app cloud, login call succeed and
for create application call I am getting the carbon login page as the
result. I tried the same urls I used in test cases in curl commands and
they works as expected. Here I am using the HTTPRequestUtil provided by
automation framework.
Any Ideas what's going wrong here. Any Ideas would be appreciated.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB500][Error]- Delivery Delay property in Cluster Setup

2016-03-09 Thread Dilshani Subasinghe
Hi all,

Added a jira issue[1] for particular error.

[1] - https://wso2.org/jira/browse/ESBJAVA-4474

Regards,
Dilshani

On Mon, Mar 7, 2016 at 2:06 PM, Dilshani Subasinghe 
wrote:

> Hi all,
>
> When testing the feature "JMS 2.0:Delivery Delay" [1] in a cluster setup,
> it gave the following error.
>
> Any idea about error or how to solve that ?
>
> Any support is highly appreciated.
>
> ERROR - Axis2Sender Unexpected error during sending message out
> javax.jms.JMSRuntimeException: HQ129012: The property name {0} is not a
> valid java identifier.
> at
> org.hornetq.jms.client.HornetQMessage.checkProperty(HornetQMessage.java:1113)
> at
> org.hornetq.jms.client.HornetQMessage.setStringProperty(HornetQMessage.java:797)
> at
> org.apache.axis2.transport.jms.JMSUtils.setTransportHeaders(JMSUtils.java:322)
> at
> org.apache.axis2.transport.jms.JMSSender.createJMSMessage(JMSSender.java:482)
> at
> org.apache.axis2.transport.jms.JMSSender.sendOverJMS(JMSSender.java:187)
> at
> org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:169)
> at
> org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:558)
> at
> org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:79)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:551)
> at
> org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:387)
> at
> org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:65)
> at
> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:111)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:86)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:163)
> at
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:211)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:395)
> at
> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
>
>
> [1] -
> https://docs.google.com/document/d/19vEMJEYBo_iSgo3GoRJ5s4cNtcHvLJmd3G6QnldiGrs/edit
>
> Thank you,
>
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> Software Engineer - QA
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94773375185
>



-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

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


Re: [Dev] If OUT_ONLY is true, call mediator failed to send the request body to backend service

2016-03-09 Thread Isuru Udana
Hi Nuwan,

We are cloning the message because we need to keep the original message to
proceed with the rest of the meditators in the message flow. We we do not
clone at the Call, since the stream is getting consumed for the first
invocation, we won't be able to continue.

Thanks.

On Wed, Mar 9, 2016 at 5:41 PM, Viraj Senevirathne  wrote:

> Hi Nuwan,
>
> In call mediator if OUT_ONLY is true it will clone the message and will
> send that new message context to the backend. If there are other mediators
> after call mediator mediation will continue with the original message
> context. This is happening as call mediator is a non blocking sender (It
> will not wait).
>
> But if you don't want cloning you will have to use call mediator in
> *blocking* mode. Then original message context will be passed and it will
> wait till request send out to the backend before starting mediating
> subsequent mediators.
>
> Thank You,
>
>
> On Wed, Mar 9, 2016 at 5:32 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi
>>
>> Call mediator is not submitting the request body to backend service if
>> OUT_ONLY is true. When the TargetHandler try to send the message body by
>> reading the Buffer_source, It already got cleared.
>>
>> The problem is that inside the call mediator, messageContext is cloned.
>> Then the buffer is not created in Pipe class. so the buffer has zero length
>> content.
>> Is there any reason to clone the message if OUT_ONLY is true inside the
>> call mediator?
>>
>> if we remove cloning the message and proceed with the incomming message
>> context, the issue is resolved.
>>
>>
>> boolean outOnlyMessage =
>> "true".equals(synInCtx.getProperty(SynapseConstants.OUT_ONLY));
>>
>> // Prepare the outgoing message context
>> MessageContext synOutCtx = null;
>> if (outOnlyMessage) {
>> try {
>> *synOutCtx =
>> MessageHelper.cloneMessageContext(synInCtx);*
>> } catch (AxisFault axisFault) {
>> handleException("Error occurred while cloning msg
>> context", axisFault, synInCtx);
>> }
>> } else {
>> synOutCtx = synInCtx;
>> }
>>
>>
>> Proxy configuration introduce issue.
>>
>>   
>>  
>>  
>>  
>> 
>>http://localhost:9000/services/SimpleStockQuoteService"/>
>> 
>>  
>>   
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-4469
>>
>> Thanks,
>> Nuwanw
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Viraj Senevirathne
> Software Engineer; WSO2, Inc.
>
> Mobile : +94 71 958 0269
> Email : vir...@wso2.com
>



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


Re: [Dev] Adding an array of objects to a JSON dataservice

2016-03-09 Thread Chanika Geeganage
Hi Dulitha,

I did a quick test and JSON batch insert works fine. Have you enabled batch
requests in the data service? Can you please send the dataservice config.

Thanks

On Thu, Mar 10, 2016 at 8:49 AM, Dulitha Wijewantha 
wrote:

> Hi guys,
> Is it possible for me to add an array of objects to the data service? I
> have looked at the possibility of Batch queries (
> https://github.com/wso2/product-dss/blob/master/modules/samples/dbs/rdbms/BatchRequestSample.dbs
> and docs - https://docs.wso2.com/display/DSS350/JSON+Mapping+Sample)
>
> When I am sending in the request like below -
>
> { "_post_r_batch_req": {
> "_post_r": [
> {
> "added_by": "d",
> "end_date": "2016-03-14T00:00:00+05:30",
> "start_date": "2016-07-16T00:00:00+05:30",
> "status": "a",
> "type": "a",
> "email": "b...@b.com"
> }, {
> "added_by": "d",
> "end_date": "2016-03-14T00:00:00+05:30",
> "start_date": "2016-07-16T00:00:00+05:30",
> "status": "a",
> "type": "a",
> "email": "c...@c.com"
> }
> ]
> }
> }
>
> I am getting the below exception. Any ideas?
>
> 08:48:58,912 org.apache.catalina.core.StandardWrapperValve  -
>  Servlet.service() for servlet [bridgeservlet] in context with path [/]
> threw exception
> java.lang.NullPointerException
> at org.apache.axis2.json.gson.JsonFormatter.writeTo(JsonFormatter.java:100)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:411)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:288)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:45)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144)
> at
> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:89)
> at
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:831)
> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:227)
> at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> 

[Dev] Browse registry resource filtering by media type

2016-03-09 Thread Awanthika Senarath
Hi,

Is $subject doable?

We have a requirement in Developer Studio to load registry resources and
process them separately accorgin to they file type. For an example if it is
an XML , XSD or a JSON we need to process them in separate methods.

Currently we are retrieving only the resource path from our registry
browser and then we retrieve it as a stream to temp file created in the
file system. Hence We are unable to differentiate the file type.

We have a combo box for the user to select the file type we wants to load
and for users local file system we are filtering the files according to the
file extension. What we look for is something similar in browsing registry
resources.

If that is not possible retrieving the file type on selection would also be
adequate.

Appreciate your input on this.

Regards
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding an array of objects to a JSON dataservice

2016-03-09 Thread Dulitha Wijewantha
Hi guys,
Is it possible for me to add an array of objects to the data service? I
have looked at the possibility of Batch queries (
https://github.com/wso2/product-dss/blob/master/modules/samples/dbs/rdbms/BatchRequestSample.dbs
and docs - https://docs.wso2.com/display/DSS350/JSON+Mapping+Sample)

When I am sending in the request like below -

{ "_post_r_batch_req": {
"_post_r": [
{
"added_by": "d",
"end_date": "2016-03-14T00:00:00+05:30",
"start_date": "2016-07-16T00:00:00+05:30",
"status": "a",
"type": "a",
"email": "b...@b.com"
}, {
"added_by": "d",
"end_date": "2016-03-14T00:00:00+05:30",
"start_date": "2016-07-16T00:00:00+05:30",
"status": "a",
"type": "a",
"email": "c...@c.com"
}
]
}
}

I am getting the below exception. Any ideas?

08:48:58,912 org.apache.catalina.core.StandardWrapperValve  -
 Servlet.service() for servlet [bridgeservlet] in context with path [/]
threw exception
java.lang.NullPointerException
at org.apache.axis2.json.gson.JsonFormatter.writeTo(JsonFormatter.java:100)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:411)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:288)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:45)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144)
at
org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:89)
at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:831)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:227)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at

Re: [Dev] (no subject)

2016-03-09 Thread Isuru Haththotuwa
Hi Hardik,

Nice to see your interest in the project.

You do not need external hardware, can setup Openshift locally using Docker
[1].

The basic requirement is to get WSO2 middleware products running in
OpenShift. As a starting point, please get an understanding of how you can
deploy a WSO2 product in OpenShift. Afterwards, please get an understanding
of how Carbon Clustering works, and check the existing Membership scheme
for Kubernetes [2].

Please communicate via WSO2 Developer List (dev@wso2.org) to get a better
visibility and wider input.

[1]. https://docs.openshift.org/latest/getting_started/administrators.html

[2].
https://github.com/wso2/kubernetes-artifacts/tree/master/common/kubernetes-membership-scheme

On Wed, Mar 9, 2016 at 9:46 PM, Hardik Patel  wrote:

> Hello sir,
>
> I am Final year student in BE CSE. Working on Java based IOT project.
> I am interested in taking part in gsoc 2016. I am interested in
> project 30 "[cloud] Native Cloud Support for Running WSO2 Middleware
> on RedHat OpenShift".
> Can you give me more details about this project?
> And what hardware required for this cloud project? Do I need external
> hardware like server and etc?
>



-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Message processors support to On Store Sequence

2016-03-09 Thread Dilshani Subasinghe
Hi ESB Team,

When I am configuring Store mediator, I created an On Store Sequence.



*http://ws.apache.org/ns/synapse
">http://ws.apache.org/ns/synapse
"/>*

Then I created another sequence with a store mediator (Store mediator used
On Store Sequence)





*  *
Created a proxy and invoked it using axis2Client.




*
*

Then I tried to add a Scheduled Message Forwarding Processor to send
messages in the message store. As I used Store mediator through On Store
Sequence, processor will automatically deactivate:













*ForwardingService Deactivating the message processor
[storeProce]java.lang.NullPointerExceptionat
org.apache.synapse.message.processor.impl.forwarder.ForwardingService.dispatch(ForwardingService.java:431)
at
org.apache.synapse.message.processor.impl.forwarder.ForwardingService.execute(ForwardingService.java:204)
at
org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:90)
at
org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)[2016-03-09 23:58:51,712]  WARN -
ForwardingService Failed to send the message through the deactivate
sequence. Sequence name does not Exist.*


*Issue*: Can we implement message processor which have connection to On
Store Sequence as it not including in synapse ? Why message processor do
not identify On Store Sequence?

Any clarification on this ? Any help will be highly appreciated.

PS: Attached Synapse Configuration XML.

Thank you.

-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

Mobile: +94773375185

http://ws.apache.org/ns/synapse;>

15000























http://localhost:9000.*; source="get-property('To')">







The main sequence for the message mediation


http://127.0.0.1:9000/services/SimpleStockQuoteService;>
1000
false
4
1
Disabled
1000
true
http://127.0.0.1:9000/services/SimpleStockQuoteService


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


Re: [Dev] Native Cloud Support for Running WSO2 Middleware on RedHat OpenShift

2016-03-09 Thread Noel Yahan
Hi All, I did some research and I was able to deploy several wso2 servers
using docker images in openshift v3 (WSO2 Jaggery and WSO2 ESB). I went
through [1] to get overall understanding how docker and kubernetes work
together with new openshift.I wrote 2 dockerfiles for wso2-jaggery [3] and
wso2-esb [4].Instead of using the docker all in one virtual machine image I
used openshift origin docker container [2] and I ran into some issues so I
had to use ubuntu 15.04 instead of ubuntu 14.04 to solve those issues.
These are the steps I follow to deploy wso2 servers on openshift v3 [5] .
[1] https://blog.openshift.com/openshift-v3-deep-dive-docker-kubernetes/
[2] https://docs.openshift.org/latest/getting_started/administrators.html
[3] https://hub.docker.com/r/noelyahan/wso2-jaggery-openshift [4]
https://hub.docker.com/r/noelyahan/wso2-esb-openshift/
[5]
http://noelyahan.blogspot.com/2016/03/deploy-wso2-products-on-openshift-v3.html



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


Re: [Dev] [APIM]Why API Import/Export only through HTTPS?

2016-03-09 Thread Abimaran Kugathasan
Hi Thilini,

So, we can have admin role without any permissions set it. Will this work?
Why this was designed to check the role, not permission?

On Tue, Mar 8, 2016 at 10:39 PM, Thilini Cooray  wrote:

> Hi Abimaran,
>
> At the moment this tools functioning based on role based approach not
> permission based. Therefore any user with admin role in the server can use
> it.
>
> Thanks.
>
> On Wed, Mar 9, 2016 at 8:25 AM, Abimaran Kugathasan 
> wrote:
>
>> Hi Chamin,
>>
>> My question was what are the permission the user need to have to
>> export/import the API, not about invoking the API.
>>
>> On Tue, Mar 8, 2016 at 9:43 PM, Chamin Dias  wrote:
>>
>>> Hi,
>>>
>>> After importing the API, it will be in "Created" state. Please change
>>> the lifecycle of the API to "Published". After that, any user who has
>>> "Internal/subscriber" role can invoke the imported API.
>>>
>>> Thanks.
>>>
>>> On Wed, Mar 9, 2016 at 7:16 AM, Abimaran Kugathasan 
>>> wrote:
>>>
 Hi Thilini.

 Thanks for the response. I thought it's supported through both https
 and http only default https supported.

 Do you know what are the permission we need to have for the user who
 will invoke this API Export/Import functionality?

 On Tue, Mar 8, 2016 at 10:27 AM, Thilini Cooray 
 wrote:

> Hi Abimaran,
>
> API Import Export tool is accessible to users with admin privileges.
> Admin credentials needs to be passed and all details of APIs
> (including their actual endpoints, security levels) are routed through
> public channels.
> Therefore we decided to restrict it only for HTTPS considering the
> security aspects.
>
> Thanks.
>
> On Tue, Mar 8, 2016 at 8:03 PM, Abimaran Kugathasan  > wrote:
>
>> Hi,
>>
>>
>> Why API Import/Export [1] should be done only through HTTPS?
>>
>> I tried through HTTP Servlet port, it don't work
>>
>> curl -H "Authorization:Basic YWRtaW46YWRtaW4=" -X GET "
>> http://localhost:9763/api-import-export-v1.0.1/export-api?name=CalculatorAPI=1.0=admin;
>> -k > CalculatorAPI.zip
>>
>> Following log noticed
>>
>> [2016-03-08 09:32:45,981]  WARN - CompositeValve To enable SaaS mode
>> for the webapp, /api-import-export-v1.0.1, configure the 
>> CarbonTomcatRealm
>> in META-INF/context.xml.
>>
>>
>> [1] :
>> https://docs.wso2.com/display/AM1100/Migrating+the+APIs+to+a+Different+Environment
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>>
>> Software Engineer | WSO2 Inc
>> Data & APIs Technologies Team
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>>   
>>
>>
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>



 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data & APIs Technologies Team
 Mobile : +94 773922820

 
 
   
 


>>>
>>>
>>> --
>>> Chamin Dias
>>> *Software Engineer*
>>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>>> Email : cham...@wso2.com
>>> Blog : https://chamindias.wordpress.com/
>>>
>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>>
>> Software Engineer | WSO2 Inc
>> Data & APIs Technologies Team
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>> 
>>
>>
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>



-- 
Thanks
Abimaran Kugathasan

Software Engineer | WSO2 Inc
Data & APIs Technologies Team
Mobile : +94 773922820


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


[Dev] [DEV] WSO2 App Manager 1.2.0 Milestone 2 Released

2016-03-09 Thread Lahiru Cooray
Hi All,

WSO2 App Manager team pleased to announce the WSO2 APP Manager 1.2.0 -
Milestone 2 release. It contains following new features, improvements and
bug fixes.

You can download this distribution from below link.
*http://builder1.us1.wso2.org/~appm/release-1.2.0/M2/wso2appm-1.2.0-M2.zip
*


*New Features *
1. New asset type - sites.
2. Configurable subscription option for Web App and Sites asset types.
3. Multiple version support for Web App and Sites  asset types.
4. Java APIs for all key App Manager functionalities that need to be
integrated with device management functionalities.
5. Role based visibility control for mobile apps.



*Improvements*1. Navigation improvements in App Store.
2. Add missing functionalities to Store/Publisher REST API and improvements.
3. Responsive store UI by Boostrap3 upgrade.
4. New theme for store UI

*Bug Fixes*
WSO2 App Manager 1.2.0-M2 resolved issues



Regards,
App Manager Team.

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

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


Re: [Dev] DAS Lucene Query group by using multiple fields

2016-03-09 Thread Seshika Fernando
Only thing is then we will have to create multiple columns for the
different dimensions - eg:- username/eventid, role/eventid, IDP/eventId etc;

On Wed, Mar 9, 2016 at 9:25 PM, Gimantha Bandara  wrote:

> Hi all,
>
> I think we cannot use primary keys since this table has row data and same
> eventId can have multiple roles associated with the same username. We need
> the role information. If we define primary keys we will probably have only
> one record per eventId, because the last record that comes with the same
> eventId and username will place the older record.
>
> What we can do is, as Rukshan said, create a separate one column with with
> username and eventId (comma separated), index it as a facet and then
> implement a custom aggregate function to get the unique eventId count per
> user. At runtime, we cannot combine random fields and create facets. a
> single field should contain comma separated values ( In this scenario,
> "username, eventId").
>
> On Wed, Mar 9, 2016 at 8:39 PM, Rukshan Premathunga 
> wrote:
>
>> Hi all,
>>
>> we need this two level of grouping is due to duplicated rows right? in
>> that case can we define the userName, authSuccess as primary key when
>> persist. Then this duplication will not occur and unique rows will persist.
>> If it worked we can use the query damith mention earlier, right?
>>
>> If it not worked, i'm sure that we need extra attribute with composition
>> of  "eventId" and "userName", if we need multi level grouping.
>>
>> Thanks and regards.
>>
>>
>> On Wed, Mar 9, 2016 at 8:09 PM, Seshika Fernando 
>> wrote:
>>
>>> Hi Rukshan,
>>>
>>> Could you clarify whether we need to create a seperate row for this? My
>>> understanding of facets was that you can combine fields and create facets,
>>> without creating a column (that combines other fields) explicitly.
>>>
>>> seshi
>>>
>>> On Wed, Mar 9, 2016 at 8:03 PM, Damith Wickramasinghe 
>>> wrote:
>>>
 Hi Rukshan,

 Thanks for the response. For above approach we need to have another
 column which has comma separated values for the facet values which is not
 having in my row data table at the moment. I was thinking of finding a way
 to achieve it without creating this additional field.

 @seshika if this is the case we will have to run a spark query to
 create this additional column. Either we can send this as another attribute
 from IS side but I don't think its  a correct approach since we have to
 handle these data customizations in DAS side. WDYT ?

 Regards,
 Damith.

 On Wed, Mar 9, 2016 at 7:29 PM, Rukshan Premathunga 
 wrote:

> Hi Damith,
>
> you can define a  facet attribute (ex: eventId_userName_facet) with
> composition of eventId and userName. Then you can request the query
> as below.
>
> {
> tableName : "AUTHENTICATIONANALYTICSSTREAM",
> groupByField:"eventId_userName_facet",
> aggregateLevel: 1,
> query  : "timestamp:[" + startTimeStamp + " TO " +
> endTimeStamp + "] AND authenticationSuccess:True",
> NoOfRecords : 100,
> aggregateFields : [
> {
> fieldName:"eventId",
> aggregate:"COUNT",
> alias:"AuthSuccess_Sum"
> }
> ]
> }
>
>
> Thanks and Regards.
>
> On Wed, Mar 9, 2016 at 5:25 PM, Damith Wickramasinghe <
> dami...@wso2.com> wrote:
>
>> Hi,
>>
>> Assume following row data set is persisted in DAS for stream
>> definition of eventId , userName, authSuccess .
>>
>> 1,user1,true
>> 1,user1,true
>> 2,user1,true
>> 3,user2,true
>> 3,user2,true
>> 3,user2,true
>> 4,user3,true
>> 4,user3,true
>> 5,user3,true
>> 6,user3,true
>>
>>
>> I need to query above data set and get per user success count for a
>> given time period. Since we have duplicate event ids we need to group by
>> eventid first and then group by username.Assume above data range is for a
>> specific time period. Final result I need is below which has two fields
>> username and authSuccessCount.
>>
>> user1 , 2
>> user2 , 1
>> user3 , 3
>>
>> I can follow below type of query to group by using one field by
>> making the eventId a Facet.
>>
>> {
>> tableName : "AUTHENTICATIONANALYTICSSTREAM",
>> groupByField:"eventId",
>> query  : "timestamp:[" + startTimeStamp + " TO " +
>> endTimeStamp + "] AND authenticationSuccess:True",
>> NoOfRecords : 100,
>> aggregateFields : [
>> {
>> 

Re: [Dev] DAS Lucene Query group by using multiple fields

2016-03-09 Thread Gimantha Bandara
Hi all,

I think we cannot use primary keys since this table has row data and same
eventId can have multiple roles associated with the same username. We need
the role information. If we define primary keys we will probably have only
one record per eventId, because the last record that comes with the same
eventId and username will place the older record.

What we can do is, as Rukshan said, create a separate one column with with
username and eventId (comma separated), index it as a facet and then
implement a custom aggregate function to get the unique eventId count per
user. At runtime, we cannot combine random fields and create facets. a
single field should contain comma separated values ( In this scenario,
"username, eventId").

On Wed, Mar 9, 2016 at 8:39 PM, Rukshan Premathunga 
wrote:

> Hi all,
>
> we need this two level of grouping is due to duplicated rows right? in
> that case can we define the userName, authSuccess as primary key when
> persist. Then this duplication will not occur and unique rows will persist.
> If it worked we can use the query damith mention earlier, right?
>
> If it not worked, i'm sure that we need extra attribute with composition
> of  "eventId" and "userName", if we need multi level grouping.
>
> Thanks and regards.
>
>
> On Wed, Mar 9, 2016 at 8:09 PM, Seshika Fernando  wrote:
>
>> Hi Rukshan,
>>
>> Could you clarify whether we need to create a seperate row for this? My
>> understanding of facets was that you can combine fields and create facets,
>> without creating a column (that combines other fields) explicitly.
>>
>> seshi
>>
>> On Wed, Mar 9, 2016 at 8:03 PM, Damith Wickramasinghe 
>> wrote:
>>
>>> Hi Rukshan,
>>>
>>> Thanks for the response. For above approach we need to have another
>>> column which has comma separated values for the facet values which is not
>>> having in my row data table at the moment. I was thinking of finding a way
>>> to achieve it without creating this additional field.
>>>
>>> @seshika if this is the case we will have to run a spark query to create
>>> this additional column. Either we can send this as another attribute from
>>> IS side but I don't think its  a correct approach since we have to handle
>>> these data customizations in DAS side. WDYT ?
>>>
>>> Regards,
>>> Damith.
>>>
>>> On Wed, Mar 9, 2016 at 7:29 PM, Rukshan Premathunga 
>>> wrote:
>>>
 Hi Damith,

 you can define a  facet attribute (ex: eventId_userName_facet) with
 composition of eventId and userName. Then you can request the query as
 below.

 {
 tableName : "AUTHENTICATIONANALYTICSSTREAM",
 groupByField:"eventId_userName_facet",
 aggregateLevel: 1,
 query  : "timestamp:[" + startTimeStamp + " TO " +
 endTimeStamp + "] AND authenticationSuccess:True",
 NoOfRecords : 100,
 aggregateFields : [
 {
 fieldName:"eventId",
 aggregate:"COUNT",
 alias:"AuthSuccess_Sum"
 }
 ]
 }


 Thanks and Regards.

 On Wed, Mar 9, 2016 at 5:25 PM, Damith Wickramasinghe  wrote:

> Hi,
>
> Assume following row data set is persisted in DAS for stream
> definition of eventId , userName, authSuccess .
>
> 1,user1,true
> 1,user1,true
> 2,user1,true
> 3,user2,true
> 3,user2,true
> 3,user2,true
> 4,user3,true
> 4,user3,true
> 5,user3,true
> 6,user3,true
>
>
> I need to query above data set and get per user success count for a
> given time period. Since we have duplicate event ids we need to group by
> eventid first and then group by username.Assume above data range is for a
> specific time period. Final result I need is below which has two fields
> username and authSuccessCount.
>
> user1 , 2
> user2 , 1
> user3 , 3
>
> I can follow below type of query to group by using one field by making
> the eventId a Facet.
>
> {
> tableName : "AUTHENTICATIONANALYTICSSTREAM",
> groupByField:"eventId",
> query  : "timestamp:[" + startTimeStamp + " TO " +
> endTimeStamp + "] AND authenticationSuccess:True",
> NoOfRecords : 100,
> aggregateFields : [
> {
> fieldName:"eventId",
> aggregate:"COUNT",
> alias:"AuthSuccess_Sum"
> }
> ]
> }
>
> How can we have multiple grouping functionality to achieve above ?
>
> Thanks,
> Damith.
>
>
>
>
> --
> 

Re: [Dev] DAS Lucene Query group by using multiple fields

2016-03-09 Thread Rukshan Premathunga
Hi all,

we need this two level of grouping is due to duplicated rows right? in that
case can we define the userName, authSuccess as primary key when persist.
Then this duplication will not occur and unique rows will persist. If it
worked we can use the query damith mention earlier, right?

If it not worked, i'm sure that we need extra attribute with composition of
 "eventId" and "userName", if we need multi level grouping.

Thanks and regards.


On Wed, Mar 9, 2016 at 8:09 PM, Seshika Fernando  wrote:

> Hi Rukshan,
>
> Could you clarify whether we need to create a seperate row for this? My
> understanding of facets was that you can combine fields and create facets,
> without creating a column (that combines other fields) explicitly.
>
> seshi
>
> On Wed, Mar 9, 2016 at 8:03 PM, Damith Wickramasinghe 
> wrote:
>
>> Hi Rukshan,
>>
>> Thanks for the response. For above approach we need to have another
>> column which has comma separated values for the facet values which is not
>> having in my row data table at the moment. I was thinking of finding a way
>> to achieve it without creating this additional field.
>>
>> @seshika if this is the case we will have to run a spark query to create
>> this additional column. Either we can send this as another attribute from
>> IS side but I don't think its  a correct approach since we have to handle
>> these data customizations in DAS side. WDYT ?
>>
>> Regards,
>> Damith.
>>
>> On Wed, Mar 9, 2016 at 7:29 PM, Rukshan Premathunga 
>> wrote:
>>
>>> Hi Damith,
>>>
>>> you can define a  facet attribute (ex: eventId_userName_facet) with
>>> composition of eventId and userName. Then you can request the query as
>>> below.
>>>
>>> {
>>> tableName : "AUTHENTICATIONANALYTICSSTREAM",
>>> groupByField:"eventId_userName_facet",
>>> aggregateLevel: 1,
>>> query  : "timestamp:[" + startTimeStamp + " TO " +
>>> endTimeStamp + "] AND authenticationSuccess:True",
>>> NoOfRecords : 100,
>>> aggregateFields : [
>>> {
>>> fieldName:"eventId",
>>> aggregate:"COUNT",
>>> alias:"AuthSuccess_Sum"
>>> }
>>> ]
>>> }
>>>
>>>
>>> Thanks and Regards.
>>>
>>> On Wed, Mar 9, 2016 at 5:25 PM, Damith Wickramasinghe 
>>> wrote:
>>>
 Hi,

 Assume following row data set is persisted in DAS for stream definition
 of eventId , userName, authSuccess .

 1,user1,true
 1,user1,true
 2,user1,true
 3,user2,true
 3,user2,true
 3,user2,true
 4,user3,true
 4,user3,true
 5,user3,true
 6,user3,true


 I need to query above data set and get per user success count for a
 given time period. Since we have duplicate event ids we need to group by
 eventid first and then group by username.Assume above data range is for a
 specific time period. Final result I need is below which has two fields
 username and authSuccessCount.

 user1 , 2
 user2 , 1
 user3 , 3

 I can follow below type of query to group by using one field by making
 the eventId a Facet.

 {
 tableName : "AUTHENTICATIONANALYTICSSTREAM",
 groupByField:"eventId",
 query  : "timestamp:[" + startTimeStamp + " TO " +
 endTimeStamp + "] AND authenticationSuccess:True",
 NoOfRecords : 100,
 aggregateFields : [
 {
 fieldName:"eventId",
 aggregate:"COUNT",
 alias:"AuthSuccess_Sum"
 }
 ]
 }

 How can we have multiple grouping functionality to achieve above ?

 Thanks,
 Damith.




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

 mobile: *+94728671315 <%2B94728671315>*


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


>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>>
>>
>>
>>
>> --
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <%2B94728671315>*
>>
>>
>


-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DAS Lucene Query group by using multiple fields

2016-03-09 Thread Seshika Fernando
Hi Rukshan,

Could you clarify whether we need to create a seperate row for this? My
understanding of facets was that you can combine fields and create facets,
without creating a column (that combines other fields) explicitly.

seshi

On Wed, Mar 9, 2016 at 8:03 PM, Damith Wickramasinghe 
wrote:

> Hi Rukshan,
>
> Thanks for the response. For above approach we need to have another column
> which has comma separated values for the facet values which is not having
> in my row data table at the moment. I was thinking of finding a way to
> achieve it without creating this additional field.
>
> @seshika if this is the case we will have to run a spark query to create
> this additional column. Either we can send this as another attribute from
> IS side but I don't think its  a correct approach since we have to handle
> these data customizations in DAS side. WDYT ?
>
> Regards,
> Damith.
>
> On Wed, Mar 9, 2016 at 7:29 PM, Rukshan Premathunga 
> wrote:
>
>> Hi Damith,
>>
>> you can define a  facet attribute (ex: eventId_userName_facet) with
>> composition of eventId and userName. Then you can request the query as
>> below.
>>
>> {
>> tableName : "AUTHENTICATIONANALYTICSSTREAM",
>> groupByField:"eventId_userName_facet",
>> aggregateLevel: 1,
>> query  : "timestamp:[" + startTimeStamp + " TO " +
>> endTimeStamp + "] AND authenticationSuccess:True",
>> NoOfRecords : 100,
>> aggregateFields : [
>> {
>> fieldName:"eventId",
>> aggregate:"COUNT",
>> alias:"AuthSuccess_Sum"
>> }
>> ]
>> }
>>
>>
>> Thanks and Regards.
>>
>> On Wed, Mar 9, 2016 at 5:25 PM, Damith Wickramasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> Assume following row data set is persisted in DAS for stream definition
>>> of eventId , userName, authSuccess .
>>>
>>> 1,user1,true
>>> 1,user1,true
>>> 2,user1,true
>>> 3,user2,true
>>> 3,user2,true
>>> 3,user2,true
>>> 4,user3,true
>>> 4,user3,true
>>> 5,user3,true
>>> 6,user3,true
>>>
>>>
>>> I need to query above data set and get per user success count for a
>>> given time period. Since we have duplicate event ids we need to group by
>>> eventid first and then group by username.Assume above data range is for a
>>> specific time period. Final result I need is below which has two fields
>>> username and authSuccessCount.
>>>
>>> user1 , 2
>>> user2 , 1
>>> user3 , 3
>>>
>>> I can follow below type of query to group by using one field by making
>>> the eventId a Facet.
>>>
>>> {
>>> tableName : "AUTHENTICATIONANALYTICSSTREAM",
>>> groupByField:"eventId",
>>> query  : "timestamp:[" + startTimeStamp + " TO " +
>>> endTimeStamp + "] AND authenticationSuccess:True",
>>> NoOfRecords : 100,
>>> aggregateFields : [
>>> {
>>> fieldName:"eventId",
>>> aggregate:"COUNT",
>>> alias:"AuthSuccess_Sum"
>>> }
>>> ]
>>> }
>>>
>>> How can we have multiple grouping functionality to achieve above ?
>>>
>>> Thanks,
>>> Damith.
>>>
>>>
>>>
>>>
>>> --
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> 
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94728671315 <%2B94728671315>*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>>
>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DAS Lucene Query group by using multiple fields

2016-03-09 Thread Damith Wickramasinghe
Hi Rukshan,

Thanks for the response. For above approach we need to have another column
which has comma separated values for the facet values which is not having
in my row data table at the moment. I was thinking of finding a way to
achieve it without creating this additional field.

@seshika if this is the case we will have to run a spark query to create
this additional column. Either we can send this as another attribute from
IS side but I don't think its  a correct approach since we have to handle
these data customizations in DAS side. WDYT ?

Regards,
Damith.

On Wed, Mar 9, 2016 at 7:29 PM, Rukshan Premathunga 
wrote:

> Hi Damith,
>
> you can define a  facet attribute (ex: eventId_userName_facet) with
> composition of eventId and userName. Then you can request the query as
> below.
>
> {
> tableName : "AUTHENTICATIONANALYTICSSTREAM",
> groupByField:"eventId_userName_facet",
> aggregateLevel: 1,
> query  : "timestamp:[" + startTimeStamp + " TO " +
> endTimeStamp + "] AND authenticationSuccess:True",
> NoOfRecords : 100,
> aggregateFields : [
> {
> fieldName:"eventId",
> aggregate:"COUNT",
> alias:"AuthSuccess_Sum"
> }
> ]
> }
>
>
> Thanks and Regards.
>
> On Wed, Mar 9, 2016 at 5:25 PM, Damith Wickramasinghe 
> wrote:
>
>> Hi,
>>
>> Assume following row data set is persisted in DAS for stream definition
>> of eventId , userName, authSuccess .
>>
>> 1,user1,true
>> 1,user1,true
>> 2,user1,true
>> 3,user2,true
>> 3,user2,true
>> 3,user2,true
>> 4,user3,true
>> 4,user3,true
>> 5,user3,true
>> 6,user3,true
>>
>>
>> I need to query above data set and get per user success count for a given
>> time period. Since we have duplicate event ids we need to group by eventid
>> first and then group by username.Assume above data range is for a specific
>> time period. Final result I need is below which has two fields username and
>> authSuccessCount.
>>
>> user1 , 2
>> user2 , 1
>> user3 , 3
>>
>> I can follow below type of query to group by using one field by making
>> the eventId a Facet.
>>
>> {
>> tableName : "AUTHENTICATIONANALYTICSSTREAM",
>> groupByField:"eventId",
>> query  : "timestamp:[" + startTimeStamp + " TO " +
>> endTimeStamp + "] AND authenticationSuccess:True",
>> NoOfRecords : 100,
>> aggregateFields : [
>> {
>> fieldName:"eventId",
>> aggregate:"COUNT",
>> alias:"AuthSuccess_Sum"
>> }
>> ]
>> }
>>
>> How can we have multiple grouping functionality to achieve above ?
>>
>> Thanks,
>> Damith.
>>
>>
>>
>>
>> --
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <%2B94728671315>*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>



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

lean.enterprise.middleware

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


Re: [Dev] [DEV] [PET] Could not pass ftp over http proxy.

2016-03-09 Thread Vivekananthan Sivanayagam
Hi Malaka ,

We had a screen sharing and this is solved now. It is working fine. The
problem was in a configuration of authentication part.

@Anuruddha

Thank you for helping and to solve this issue.





*Thank youVivekananthan Sivanayagam*

*Associate Software Engineer | WSO2*

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

On Wed, Mar 9, 2016 at 4:05 PM, Malaka Silva  wrote:

> Great thx Anuruddha.
>
> On Wed, Mar 9, 2016 at 3:56 PM, Anuruddha Premalal 
> wrote:
>
>> Hi Malaka,
>>
>> My setup in a VM. Will join a for a screen sharing session with Vivek.
>>
>> On Wed, Mar 9, 2016 at 3:40 PM, Malaka Silva  wrote:
>>
>>> Hi Anuruddha,
>>>
>>> I think you already have the setup? Great if you could share it
>>> with Vivekananthan if possible?
>>>
>>> On Wed, Mar 9, 2016 at 1:38 PM, Vivekananthan Sivanayagam <
>>> vivekanant...@wso2.com> wrote:
>>>
 Hi Anuruddha,

 I have tried and getting same error again.






 *Thank youVivekananthan Sivanayagam*

 *Associate Software Engineer | WSO2*

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

 On Wed, Mar 9, 2016 at 12:05 PM, Anuruddha Premalal  wrote:

> Hi Vivek,
>
> As the error log mentioned, it's clearly an authentication error from
> the squid proxy. Consult[1] to configure squid proxy users, you should be
> all set once the squid users are properly confifgured.
>
> Response received from the proxy:
> HTTP/1.1 403 Forbidden
> Server: squid/3.3.8
> Mime-Version: 1.0
> Date: Wed, 09 Mar 2016 05:14:22 GMT
> Content-Type: text/html
> Content-Length: 3107
> X-Squid-Error: ERR_ACCESS_DENIED 0
> Vary: Accept-Language
> Content-Language: en
> X-Cache: MISS from squidproxy.com
> X-Cache-Lookup: NONE from squidproxy.com:3128
> Via: 1.1 squidproxy.com (squid/3.3.8)
> Connection: keep-alive
>
> [1]
> http://www.cyberciti.biz/tips/linux-unix-squid-proxy-server-authentication.html
>
>
> On Wed, Mar 9, 2016 at 10:59 AM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi ,
>>
>> I tried as Anuruddha suggested after I made minor changes in my code,
>> when I skipped "Squid" proxy, it is working fine and we can get expected
>> output. When I tried with "Squid" proxy, I got following error[1].
>>
>> [1]
>>
>>  ERROR - FileFtpOverProxy Error occurred while
>> uploading:HTTPTunnelConnector: connection failed
>> Response received from the proxy:
>> HTTP/1.1 403 Forbidden
>> Server: squid/3.3.8
>> Mime-Version: 1.0
>> Date: Wed, 09 Mar 2016 05:14:22 GMT
>> Content-Type: text/html
>> Content-Length: 3107
>> X-Squid-Error: ERR_ACCESS_DENIED 0
>> Vary: Accept-Language
>> Content-Language: en
>> X-Cache: MISS from squidproxy.com
>> X-Cache-Lookup: NONE from squidproxy.com:3128
>> Via: 1.1 squidproxy.com (squid/3.3.8)
>> Connection: keep-alive
>>
>> java.io.IOException: HTTPTunnelConnector: connection failed
>> Response received from the proxy:
>> HTTP/1.1 403 Forbidden
>> Server: squid/3.3.8
>> Mime-Version: 1.0
>> Date: Wed, 09 Mar 2016 05:14:22 GMT
>> Content-Type: text/html
>> Content-Length: 3107
>> X-Squid-Error: ERR_ACCESS_DENIED 0
>> Vary: Accept-Language
>> Content-Language: en
>> X-Cache: MISS from squidproxy.com
>> X-Cache-Lookup: NONE from squidproxy.com:3128
>> Via: 1.1 squidproxy.com (squid/3.3.8)
>> Connection: keep-alive
>>
>> at
>> org.apache.commons.net.ftp.FTPHTTPClient.tunnelHandshake(FTPHTTPClient.java:194)
>> at
>> org.apache.commons.net.ftp.FTPHTTPClient._openDataConnection_(FTPHTTPClient.java:114)
>> at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
>> at
>> org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
>> at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
>> at
>> org.wso2.carbon.connector.FileFtpOverProxy.ftpOverHttp(FileFtpOverProxy.java:194)
>> at
>> org.wso2.carbon.connector.FileFtpOverProxy.connect(FileFtpOverProxy.java:58)
>> at
>> org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
>> at
>> org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>> at
>> org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:97)
>> at
>> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
>> at

Re: [Dev] If OUT_ONLY is true, call mediator failed to send the request body to backend service

2016-03-09 Thread Viraj Senevirathne
Hi Nuwan,

In call mediator if OUT_ONLY is true it will clone the message and will
send that new message context to the backend. If there are other mediators
after call mediator mediation will continue with the original message
context. This is happening as call mediator is a non blocking sender (It
will not wait).

But if you don't want cloning you will have to use call mediator in
*blocking* mode. Then original message context will be passed and it will
wait till request send out to the backend before starting mediating
subsequent mediators.

Thank You,


On Wed, Mar 9, 2016 at 5:32 PM, Nuwan Wimalasekara  wrote:

> Hi
>
> Call mediator is not submitting the request body to backend service if
> OUT_ONLY is true. When the TargetHandler try to send the message body by
> reading the Buffer_source, It already got cleared.
>
> The problem is that inside the call mediator, messageContext is cloned.
> Then the buffer is not created in Pipe class. so the buffer has zero length
> content.
> Is there any reason to clone the message if OUT_ONLY is true inside the
> call mediator?
>
> if we remove cloning the message and proceed with the incomming message
> context, the issue is resolved.
>
>
> boolean outOnlyMessage =
> "true".equals(synInCtx.getProperty(SynapseConstants.OUT_ONLY));
>
> // Prepare the outgoing message context
> MessageContext synOutCtx = null;
> if (outOnlyMessage) {
> try {
> *synOutCtx = MessageHelper.cloneMessageContext(synInCtx);*
> } catch (AxisFault axisFault) {
> handleException("Error occurred while cloning msg
> context", axisFault, synInCtx);
> }
> } else {
> synOutCtx = synInCtx;
> }
>
>
> Proxy configuration introduce issue.
>
>   
>  
>  
>  
> 
>http://localhost:9000/services/SimpleStockQuoteService"/>
> 
>  
>   
>
> [1] https://wso2.org/jira/browse/ESBJAVA-4469
>
> Thanks,
> Nuwanw
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Viraj Senevirathne
Software Engineer; WSO2, Inc.

Mobile : +94 71 958 0269
Email : vir...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] If OUT_ONLY is true, call mediator failed to send the request body to backend service

2016-03-09 Thread Nuwan Wimalasekara
Hi

Call mediator is not submitting the request body to backend service if
OUT_ONLY is true. When the TargetHandler try to send the message body by
reading the Buffer_source, It already got cleared.

The problem is that inside the call mediator, messageContext is cloned.
Then the buffer is not created in Pipe class. so the buffer has zero length
content.
Is there any reason to clone the message if OUT_ONLY is true inside the
call mediator?

if we remove cloning the message and proceed with the incomming message
context, the issue is resolved.


boolean outOnlyMessage =
"true".equals(synInCtx.getProperty(SynapseConstants.OUT_ONLY));

// Prepare the outgoing message context
MessageContext synOutCtx = null;
if (outOnlyMessage) {
try {
*synOutCtx = MessageHelper.cloneMessageContext(synInCtx);*
} catch (AxisFault axisFault) {
handleException("Error occurred while cloning msg context",
axisFault, synInCtx);
}
} else {
synOutCtx = synInCtx;
}


Proxy configuration introduce issue.

  
 
 
 

   http://localhost:9000/services/SimpleStockQuoteService"/>

 
  

[1] https://wso2.org/jira/browse/ESBJAVA-4469

Thanks,
Nuwanw

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

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


[Dev] DAS Lucene Query group by using multiple fields

2016-03-09 Thread Damith Wickramasinghe
Hi,

Assume following row data set is persisted in DAS for stream definition of
eventId , userName, authSuccess .

1,user1,true
1,user1,true
2,user1,true
3,user2,true
3,user2,true
3,user2,true
4,user3,true
4,user3,true
5,user3,true
6,user3,true


I need to query above data set and get per user success count for a given
time period. Since we have duplicate event ids we need to group by eventid
first and then group by username.Assume above data range is for a specific
time period. Final result I need is below which has two fields username and
authSuccessCount.

user1 , 2
user2 , 1
user3 , 3

I can follow below type of query to group by using one field by making the
eventId a Facet.

{
tableName : "AUTHENTICATIONANALYTICSSTREAM",
groupByField:"eventId",
query  : "timestamp:[" + startTimeStamp + " TO " +
endTimeStamp + "] AND authenticationSuccess:True",
NoOfRecords : 100,
aggregateFields : [
{
fieldName:"eventId",
aggregate:"COUNT",
alias:"AuthSuccess_Sum"
}
]
}

How can we have multiple grouping functionality to achieve above ?

Thanks,
Damith.




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

lean.enterprise.middleware

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


Re: [Dev] Aggregate feature for event publishing

2016-03-09 Thread Mohanadarshan Vivekanandalingam
Hi All,

We have created the aggregate feature for event publisher and committed to
carbon-analytics-common repo... Please find it in [1]..

[1]
https://github.com/wso2/carbon-analytics-common/tree/master/features/event-publisher/org.wso2.carbon.event.publisher.aggregate.feature

Thanks,
Mohan


On Tue, Mar 8, 2016 at 3:25 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
> On Tue, Mar 8, 2016 at 12:09 PM, Malith Dhanushka  wrote:
>
>> Hi CEP team,
>>
>> Hi Malith,
>
>
>
>> I tried to configure a vanilla carbon server to publish events to DAS by
>> installing event publisher features. So following are the features that i
>> had to install to get it working.
>>
>> Application Deployer Event Processing
>> Data Bridge - Data Publisher Aggregate
>> Event Processor
>> Event Processor Manager Commons
>> Event Processor Manager Core
>> Event Publisher
>> Event Publisher Output Adapter
>> Event Statistics
>> Event Stream
>> Registry Core
>>
>> And also noticed that server features related to event publishing are not
>> available in the p2 repo. So shall we create a aggregate feature for event
>> publishing by including server features of above list ?
>>
>
> Yes, Let's start work on creating $subjected feature..  May be we can
> avoid some unrelated features as well..
>
> Thanks,
> Mohan
>
>
>> Thanks
>> Malith
>> --
>> Malith Dhanushka
>> Senior Software Engineer - Data Technologies
>> *WSO2, Inc. : wso2.com *
>> *Mobile*  : +94 716 506 693
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Senior Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 
*V. Mohanadarshan*
*Senior Software Engineer,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


[Dev] Restructuring Kubernetes-Artifacts and Docker-Artifacts

2016-03-09 Thread Vishanth Balasubramaniam
Hi,

Now that we are planning to move the docker artifacts to a separate git
repository from wso2/kubernetes-artifacts. I would like to propose the
following directory structure for the Kubernetes-Artifacts [1] and
Docker-Artifacts repositories.

wso2/kubernetes-artifacts
|--- common
|--- |--- kubernetes-membership-scheme/
|--- |--- scripts/
|--- /
|--- |--- README.md
|--- |--- deploy.sh
|--- |--- undeploy.sh
|--- |--- rolling-update.sh
|--- |--- deployments/
|--- |--- |--- default/
|--- |--- |--- |--- -default-controller.yaml
|--- |--- |--- |--- -default-service.yaml
|--- |--- |--- distributed/
|--- |--- |--- |--- -manager-controller.yaml
|--- |--- |--- |--- -manager-service.yaml
|--- |--- |--- |--- -worker-controller.yaml
|--- |--- |--- |--- -worker-service.yaml

wso2/docker-artifacts
|--- common
|--- |--- base-image/
|--- |--- scripts/
|--- /
|--- |--- README.md
|--- |--- Docker file
|--- |--- build.sh
|--- |--- run.sh
|--- |--- save.sh
|--- |--- scp.sh

WDYT? Provide your thoughts.

[1] - https://github.com/wso2/kubernetes-artifacts

Regards,
Vishanth

-- 
*Vishanth Balasubramaniam*
Committer & PMC Member, Apache Stratos,
Software Engineer, WSO2 Inc.; http://wso2.com

mobile: *+94 77 17 377 18*
about me: *http://about.me/vishanth *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Synapse-2.1.7-wso2v2 Released

2016-03-09 Thread Viraj Senevirathne
Hi,

Please note $subject.

   org.apache.synapse
   Apache-Synapse
   2.1.7-wso2v2

Thanks,

-- 
Viraj Senevirathne
Software Engineer; WSO2, Inc.

Mobile : +94 71 958 0269
Email : vir...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [PET] Could not pass ftp over http proxy.

2016-03-09 Thread Malaka Silva
Great thx Anuruddha.

On Wed, Mar 9, 2016 at 3:56 PM, Anuruddha Premalal 
wrote:

> Hi Malaka,
>
> My setup in a VM. Will join a for a screen sharing session with Vivek.
>
> On Wed, Mar 9, 2016 at 3:40 PM, Malaka Silva  wrote:
>
>> Hi Anuruddha,
>>
>> I think you already have the setup? Great if you could share it
>> with Vivekananthan if possible?
>>
>> On Wed, Mar 9, 2016 at 1:38 PM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> Hi Anuruddha,
>>>
>>> I have tried and getting same error again.
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Thank youVivekananthan Sivanayagam*
>>>
>>> *Associate Software Engineer | WSO2*
>>>
>>> *E:vivekanant...@wso2.com *
>>> *M:+94752786138 <%2B94752786138>*
>>>
>>> On Wed, Mar 9, 2016 at 12:05 PM, Anuruddha Premalal 
>>> wrote:
>>>
 Hi Vivek,

 As the error log mentioned, it's clearly an authentication error from
 the squid proxy. Consult[1] to configure squid proxy users, you should be
 all set once the squid users are properly confifgured.

 Response received from the proxy:
 HTTP/1.1 403 Forbidden
 Server: squid/3.3.8
 Mime-Version: 1.0
 Date: Wed, 09 Mar 2016 05:14:22 GMT
 Content-Type: text/html
 Content-Length: 3107
 X-Squid-Error: ERR_ACCESS_DENIED 0
 Vary: Accept-Language
 Content-Language: en
 X-Cache: MISS from squidproxy.com
 X-Cache-Lookup: NONE from squidproxy.com:3128
 Via: 1.1 squidproxy.com (squid/3.3.8)
 Connection: keep-alive

 [1]
 http://www.cyberciti.biz/tips/linux-unix-squid-proxy-server-authentication.html


 On Wed, Mar 9, 2016 at 10:59 AM, Vivekananthan Sivanayagam <
 vivekanant...@wso2.com> wrote:

> Hi ,
>
> I tried as Anuruddha suggested after I made minor changes in my code,
> when I skipped "Squid" proxy, it is working fine and we can get expected
> output. When I tried with "Squid" proxy, I got following error[1].
>
> [1]
>
>  ERROR - FileFtpOverProxy Error occurred while
> uploading:HTTPTunnelConnector: connection failed
> Response received from the proxy:
> HTTP/1.1 403 Forbidden
> Server: squid/3.3.8
> Mime-Version: 1.0
> Date: Wed, 09 Mar 2016 05:14:22 GMT
> Content-Type: text/html
> Content-Length: 3107
> X-Squid-Error: ERR_ACCESS_DENIED 0
> Vary: Accept-Language
> Content-Language: en
> X-Cache: MISS from squidproxy.com
> X-Cache-Lookup: NONE from squidproxy.com:3128
> Via: 1.1 squidproxy.com (squid/3.3.8)
> Connection: keep-alive
>
> java.io.IOException: HTTPTunnelConnector: connection failed
> Response received from the proxy:
> HTTP/1.1 403 Forbidden
> Server: squid/3.3.8
> Mime-Version: 1.0
> Date: Wed, 09 Mar 2016 05:14:22 GMT
> Content-Type: text/html
> Content-Length: 3107
> X-Squid-Error: ERR_ACCESS_DENIED 0
> Vary: Accept-Language
> Content-Language: en
> X-Cache: MISS from squidproxy.com
> X-Cache-Lookup: NONE from squidproxy.com:3128
> Via: 1.1 squidproxy.com (squid/3.3.8)
> Connection: keep-alive
>
> at
> org.apache.commons.net.ftp.FTPHTTPClient.tunnelHandshake(FTPHTTPClient.java:194)
> at
> org.apache.commons.net.ftp.FTPHTTPClient._openDataConnection_(FTPHTTPClient.java:114)
> at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
> at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
> at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
> at
> org.wso2.carbon.connector.FileFtpOverProxy.ftpOverHttp(FileFtpOverProxy.java:194)
> at
> org.wso2.carbon.connector.FileFtpOverProxy.connect(FileFtpOverProxy.java:58)
> at
> org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
> at
> org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
> at
> org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:97)
> at
> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
> at
> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
> at
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:185)
> at 

Re: [Dev] [DEV] [PET] Could not pass ftp over http proxy.

2016-03-09 Thread Anuruddha Premalal
Hi Malaka,

My setup in a VM. Will join a for a screen sharing session with Vivek.

On Wed, Mar 9, 2016 at 3:40 PM, Malaka Silva  wrote:

> Hi Anuruddha,
>
> I think you already have the setup? Great if you could share it
> with Vivekananthan if possible?
>
> On Wed, Mar 9, 2016 at 1:38 PM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi Anuruddha,
>>
>> I have tried and getting same error again.
>>
>>
>>
>>
>>
>>
>> *Thank youVivekananthan Sivanayagam*
>>
>> *Associate Software Engineer | WSO2*
>>
>> *E:vivekanant...@wso2.com *
>> *M:+94752786138 <%2B94752786138>*
>>
>> On Wed, Mar 9, 2016 at 12:05 PM, Anuruddha Premalal 
>> wrote:
>>
>>> Hi Vivek,
>>>
>>> As the error log mentioned, it's clearly an authentication error from
>>> the squid proxy. Consult[1] to configure squid proxy users, you should be
>>> all set once the squid users are properly confifgured.
>>>
>>> Response received from the proxy:
>>> HTTP/1.1 403 Forbidden
>>> Server: squid/3.3.8
>>> Mime-Version: 1.0
>>> Date: Wed, 09 Mar 2016 05:14:22 GMT
>>> Content-Type: text/html
>>> Content-Length: 3107
>>> X-Squid-Error: ERR_ACCESS_DENIED 0
>>> Vary: Accept-Language
>>> Content-Language: en
>>> X-Cache: MISS from squidproxy.com
>>> X-Cache-Lookup: NONE from squidproxy.com:3128
>>> Via: 1.1 squidproxy.com (squid/3.3.8)
>>> Connection: keep-alive
>>>
>>> [1]
>>> http://www.cyberciti.biz/tips/linux-unix-squid-proxy-server-authentication.html
>>>
>>>
>>> On Wed, Mar 9, 2016 at 10:59 AM, Vivekananthan Sivanayagam <
>>> vivekanant...@wso2.com> wrote:
>>>
 Hi ,

 I tried as Anuruddha suggested after I made minor changes in my code,
 when I skipped "Squid" proxy, it is working fine and we can get expected
 output. When I tried with "Squid" proxy, I got following error[1].

 [1]

  ERROR - FileFtpOverProxy Error occurred while
 uploading:HTTPTunnelConnector: connection failed
 Response received from the proxy:
 HTTP/1.1 403 Forbidden
 Server: squid/3.3.8
 Mime-Version: 1.0
 Date: Wed, 09 Mar 2016 05:14:22 GMT
 Content-Type: text/html
 Content-Length: 3107
 X-Squid-Error: ERR_ACCESS_DENIED 0
 Vary: Accept-Language
 Content-Language: en
 X-Cache: MISS from squidproxy.com
 X-Cache-Lookup: NONE from squidproxy.com:3128
 Via: 1.1 squidproxy.com (squid/3.3.8)
 Connection: keep-alive

 java.io.IOException: HTTPTunnelConnector: connection failed
 Response received from the proxy:
 HTTP/1.1 403 Forbidden
 Server: squid/3.3.8
 Mime-Version: 1.0
 Date: Wed, 09 Mar 2016 05:14:22 GMT
 Content-Type: text/html
 Content-Length: 3107
 X-Squid-Error: ERR_ACCESS_DENIED 0
 Vary: Accept-Language
 Content-Language: en
 X-Cache: MISS from squidproxy.com
 X-Cache-Lookup: NONE from squidproxy.com:3128
 Via: 1.1 squidproxy.com (squid/3.3.8)
 Connection: keep-alive

 at
 org.apache.commons.net.ftp.FTPHTTPClient.tunnelHandshake(FTPHTTPClient.java:194)
 at
 org.apache.commons.net.ftp.FTPHTTPClient._openDataConnection_(FTPHTTPClient.java:114)
 at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
 at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
 at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
 at
 org.wso2.carbon.connector.FileFtpOverProxy.ftpOverHttp(FileFtpOverProxy.java:194)
 at
 org.wso2.carbon.connector.FileFtpOverProxy.connect(FileFtpOverProxy.java:58)
 at
 org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
 at
 org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
 at
 org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:97)
 at
 org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
 at
 org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
 at
 org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:185)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
 at
 

Re: [Dev] [DEV] [PET] Could not pass ftp over http proxy.

2016-03-09 Thread Malaka Silva
Hi Anuruddha,

I think you already have the setup? Great if you could share it
with Vivekananthan if possible?

On Wed, Mar 9, 2016 at 1:38 PM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> Hi Anuruddha,
>
> I have tried and getting same error again.
>
>
>
>
>
>
> *Thank youVivekananthan Sivanayagam*
>
> *Associate Software Engineer | WSO2*
>
> *E:vivekanant...@wso2.com *
> *M:+94752786138 <%2B94752786138>*
>
> On Wed, Mar 9, 2016 at 12:05 PM, Anuruddha Premalal 
> wrote:
>
>> Hi Vivek,
>>
>> As the error log mentioned, it's clearly an authentication error from the
>> squid proxy. Consult[1] to configure squid proxy users, you should be all
>> set once the squid users are properly confifgured.
>>
>> Response received from the proxy:
>> HTTP/1.1 403 Forbidden
>> Server: squid/3.3.8
>> Mime-Version: 1.0
>> Date: Wed, 09 Mar 2016 05:14:22 GMT
>> Content-Type: text/html
>> Content-Length: 3107
>> X-Squid-Error: ERR_ACCESS_DENIED 0
>> Vary: Accept-Language
>> Content-Language: en
>> X-Cache: MISS from squidproxy.com
>> X-Cache-Lookup: NONE from squidproxy.com:3128
>> Via: 1.1 squidproxy.com (squid/3.3.8)
>> Connection: keep-alive
>>
>> [1]
>> http://www.cyberciti.biz/tips/linux-unix-squid-proxy-server-authentication.html
>>
>>
>> On Wed, Mar 9, 2016 at 10:59 AM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> Hi ,
>>>
>>> I tried as Anuruddha suggested after I made minor changes in my code,
>>> when I skipped "Squid" proxy, it is working fine and we can get expected
>>> output. When I tried with "Squid" proxy, I got following error[1].
>>>
>>> [1]
>>>
>>>  ERROR - FileFtpOverProxy Error occurred while
>>> uploading:HTTPTunnelConnector: connection failed
>>> Response received from the proxy:
>>> HTTP/1.1 403 Forbidden
>>> Server: squid/3.3.8
>>> Mime-Version: 1.0
>>> Date: Wed, 09 Mar 2016 05:14:22 GMT
>>> Content-Type: text/html
>>> Content-Length: 3107
>>> X-Squid-Error: ERR_ACCESS_DENIED 0
>>> Vary: Accept-Language
>>> Content-Language: en
>>> X-Cache: MISS from squidproxy.com
>>> X-Cache-Lookup: NONE from squidproxy.com:3128
>>> Via: 1.1 squidproxy.com (squid/3.3.8)
>>> Connection: keep-alive
>>>
>>> java.io.IOException: HTTPTunnelConnector: connection failed
>>> Response received from the proxy:
>>> HTTP/1.1 403 Forbidden
>>> Server: squid/3.3.8
>>> Mime-Version: 1.0
>>> Date: Wed, 09 Mar 2016 05:14:22 GMT
>>> Content-Type: text/html
>>> Content-Length: 3107
>>> X-Squid-Error: ERR_ACCESS_DENIED 0
>>> Vary: Accept-Language
>>> Content-Language: en
>>> X-Cache: MISS from squidproxy.com
>>> X-Cache-Lookup: NONE from squidproxy.com:3128
>>> Via: 1.1 squidproxy.com (squid/3.3.8)
>>> Connection: keep-alive
>>>
>>> at
>>> org.apache.commons.net.ftp.FTPHTTPClient.tunnelHandshake(FTPHTTPClient.java:194)
>>> at
>>> org.apache.commons.net.ftp.FTPHTTPClient._openDataConnection_(FTPHTTPClient.java:114)
>>> at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
>>> at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
>>> at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
>>> at
>>> org.wso2.carbon.connector.FileFtpOverProxy.ftpOverHttp(FileFtpOverProxy.java:194)
>>> at
>>> org.wso2.carbon.connector.FileFtpOverProxy.connect(FileFtpOverProxy.java:58)
>>> at
>>> org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
>>> at
>>> org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>>> at
>>> org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:97)
>>> at
>>> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
>>> at
>>> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>>> at
>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>>> at
>>> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:185)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at
>>> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
>>> at
>>> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:363)
>>> at
>>> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
>>> at
>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>> at
>>> 

Re: [Dev] Installing IBM Websphere MQ

2016-03-09 Thread Mahesh Chinthaka
Thanks Aruna

On Wed, Mar 9, 2016 at 2:23 PM, Aruna Karunarathna  wrote:

>
>
> On Wed, Mar 9, 2016 at 2:18 PM, Mahesh Chinthaka  wrote:
>
>> Hi,
>>
>> Has anybody tried $subject.
>> Im trying to do [1]. But facing some issues on installing IBM MQ on my
>> machine.
>> Im using a Mac with Os X.
>>
>
> I tried to install in Ubuntu, but unable to do so. But installed in
> Windows without issues.
>
>>
>>
>> [1] -
>> https://docs.wso2.com/display/ESB481/Configure+with+IBM+WebSphere+MQ
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



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


Re: [Dev] Improvement to Maven archtype

2016-03-09 Thread Sumedha Rubasinghe
Resending. Bounced back.

On Wed, Mar 9, 2016 at 2:28 PM, Sumedha Rubasinghe  wrote:

> But this a programmer that we are talking about.
>
> It's contract first vs code first IMO.
> Our current approach is more close to code first now (and its not that bad
> IMO).
>
>
>
> On Wed, Mar 9, 2016 at 2:09 PM, Ruwan Yatawara  wrote:
>
>> Hi All,
>>
>> Had a chat with Joe, to gain some feedback on his experience of using the
>> IoTServer to declare his custom device type.
>>
>> One complaint that came up was that the hardware vendor needs to navigate
>> to the controller and manager interfaces and declare the structure and
>> outputs of the APIs, in code. We could very well automate this by giving
>> users the option to draft the structure of the API and output via a
>> definition language like swagger. Based on these inputs we may go ahead and
>> declare the stubs that can be later filled in by the user.
>>
>> This would make life easier for the vendor, and will also be invaluable
>> IMHO in our tolling strategy when we integrate the archtype to DevStudio.
>>
>> Thanks and Regards,
>>
>> Ruwan Yatawara
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>>
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>> www: :http://wso2.com
>>
>>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] How to enable tracing when execution plans deployed via CApp

2016-03-09 Thread Nirmal Fernando
Thanks Tishan!

On Wed, Mar 9, 2016 at 2:31 PM, Tishan Dahanayakage  wrote:

> Nirmal,
>
> You can add annotation '@Plan:trace('true')' just after '@Plan:name'
> annotation.
>
> Thanks
> Tishan
>
> On Wed, Mar 9, 2016 at 2:19 PM, Nirmal Fernando  wrote:
>
>> $subject please?
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



-- 

Thanks & regards,
Nirmal

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


Re: [Dev] [CEP] How to enable tracing when execution plans deployed via CApp

2016-03-09 Thread Tishan Dahanayakage
Nirmal,

You can add annotation '@Plan:trace('true')' just after '@Plan:name'
annotation.

Thanks
Tishan

On Wed, Mar 9, 2016 at 2:19 PM, Nirmal Fernando  wrote:

> $subject please?
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Tishan Dahanayakage
Software Engineer
WSO2, Inc.
Mobile:+94 716481328

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


Re: [Dev] Installing IBM Websphere MQ

2016-03-09 Thread Aruna Karunarathna
On Wed, Mar 9, 2016 at 2:18 PM, Mahesh Chinthaka  wrote:

> Hi,
>
> Has anybody tried $subject.
> Im trying to do [1]. But facing some issues on installing IBM MQ on my
> machine.
> Im using a Mac with Os X.
>

I tried to install in Ubuntu, but unable to do so. But installed in Windows
without issues.

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


-- 

*Aruna Sujith Karunarathna *
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CEP] How to enable tracing when execution plans deployed via CApp

2016-03-09 Thread Nirmal Fernando
$subject please?

-- 

Thanks & regards,
Nirmal

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


[Dev] Installing IBM Websphere MQ

2016-03-09 Thread Mahesh Chinthaka
Hi,

Has anybody tried $subject.
Im trying to do [1]. But facing some issues on installing IBM MQ on my
machine.
Im using a Mac with Os X.


[1] - https://docs.wso2.com/display/ESB481/Configure+with+IBM+WebSphere+MQ

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


Re: [Dev] [IS][GSOC]Document Based NoSQL Support for WSO2 Identity Server Database

2016-03-09 Thread Mohamed ZAJITH
Hi all,

I have created a simple article on *Migrating from MySQL DB to MongoDB*
http://blog.iamzajith.com/2016/03/migrating-from-mysql-db-to-mongodb.html



Sent with MailTrack


On Mon, Mar 7, 2016 at 4:27 PM, Mohamed ZAJITH 
wrote:

> Hi, Tharindu
> This is my blog
> 
> . i will continuously update my work.
>
>
>
>
> Sent with MailTrack
> 
>
> On Fri, Mar 4, 2016 at 11:40 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Mohamed,
>>
>> Great work ! Meanwhile, can you create a blog and write your experiences
>> too.. on how you prepare for this project and the stuff you try out.
>>
>> Regards,
>> TharinduE
>>
>> On Thu, Mar 3, 2016 at 9:41 PM, Mohamed ZAJITH 
>> wrote:
>>
>>>
>>> Hi Tharindu,
>>>
>>> i have finished the 4th task. now i am on a advanced MongoDB learning
>>> stage.
>>> meanwhile your blogger is helpful to me.
>>>
>>>
>>> Sent with MailTrack
>>> 
>>>
>>> On Thu, Mar 3, 2016 at 7:19 PM, Mohamed ZAJITH 
>>> wrote:
>>>
 Hi Tharindu,

 i have finished the 4th task. now i am on a advanced MongoDB learning
 stage.
 meanwhile your blogger is helpful to me.


 Sent with MailTrack
 

 On Sun, Feb 28, 2016 at 4:45 PM, Tharindu Edirisinghe <
 tharin...@wso2.com> wrote:

> Hi Mohammed,
>
> Good to hear that you are progressing through...
>
> Regards,
> Tharindu
>
> On Sat, Feb 27, 2016 at 10:26 PM, Mohamed ZAJITH <
> mohamedzaj...@gmail.com> wrote:
>
>> Hi
>> I have started the task 4
>>
>> Sent with MailTrack
>> 
>>
>> On Sat, Feb 27, 2016 at 10:24 PM, Mohamed ZAJITH <
>> mohamedzaj...@gmail.com> wrote:
>>
>>> Hi buddies
>>> previous problem is solved
>>>
>>>
>>> Sent with MailTrack
>>> 
>>>
>>> On Sat, Feb 27, 2016 at 9:22 PM, Mohamed ZAJITH <
>>> mohamedzaj...@gmail.com> wrote:
>>>
 Hi

 Tharindu I have error on IS. here attach image
 i'm follow this link
 http://tharindue.blogspot.com/2015/08/claim-management-operations-in-wso2.html
 
 can you help me?

 [2016-02-27 21:08:21,731] ERROR
 {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -
  org.wso2.carbon.user.core.UserStoreException: Error occurred while
 retrieving users for filter : % & max Item limit : 100

 Sent with MailTrack
 

 On Wed, Feb 24, 2016 at 10:07 AM, Mohamed ZAJITH <
 mohamedzaj...@gmail.com> wrote:

> Tharindu,
>
> I will grateful to you, that you are consider on this project. and
> I'm thanking you for the above resources.
> I have started the task 2 after finishing the task 1 and I will
> keep informed to you my updates.
>
> On Wed, Feb 24, 2016 at 7:51 AM, Tharindu Edirisinghe <
> tharin...@wso2.com> wrote:
>
>> Hi Mohamed,
>>
>> We are glad to see your interest in this project. In order to
>> make you familiar with this project with regard to WSO2 platform, we 
>> would
>> like you to complete the following task which would provide an
>> understanding on how the userstore managers are used in WSO2 
>> products.
>>
>>
>> 1. Refer [1] and understand how a userstore manager can be
>> written and used in a product like WSO2 Identity Server [2].
>>
>> 2. Refer [3] and understand more about Claims and Claim
>> Management.
>>
>> 3. Referring [1], extend the
>> *org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager* class and
>> write your own JDBC userstore manaager. (MySQL is preferred).
>>
>> 4. Introduce a new claim called 

Re: [Dev] [GSOC'16] Proposal 3 : Visual (Deep) Neural Network Builder

2016-03-09 Thread Supun Sethunga
Hi Vimuth,

For project Proposal 3, as we have mentioned in the project proposal as
well, the main objective is to integrate ensemble support for the existing
flow of the WSO2 Machine Learner. We are focusing on the three methods:
Bagging, Boosting and Stacking.

Since you have already run the product ML, you can also go through the
source code of WSO2 ML ([1] and [2]), and get familiarized with the current
implementations.

Please feel free to raise if you have any questions or any unclear points.

[1] https://github.com/wso2/carbon-ml
[2] https://github.com/wso2/product-ml

Regards,
Supun

On Wed, Mar 9, 2016 at 11:31 AM, Isuru Udana  wrote:

> [Looping project mentors]
>
> On Wed, Mar 9, 2016 at 11:11 AM, vimuth fernando  wrote:
>
>> Hi,
>>
>> I am a full time MSc student in the Dept. of Computer Science at
>> University of Moratuwa. I am thinking about taking part in GSOC this year
>> and saw that WSO2 has some interesting project ideas especially in the
>> Machine Learner project.
>>
>> I am interested in working on either Proposal 3 (Visual Neural Network
>> Builder) or Proposal 4 (Ensemble Methods Support for WSO2 Machine Learner).
>> I am open to working on either project.
>>
>> In Proposal 3, am i correct in understanding that the goal is to build
>> the UI that will use the algorithms implemented in spark?
>>
>> I have started to familiarize myself with the WSO2 Machine Learner using
>> the samples provided with the documentation.
>>
>> Your help in preparing a good proposal is much appreciated.
>>
>> Thank you very much.
>>
>> --
>> Vimuth Dinuka Fernando
>> Research Assistant, Department Of Computer Science and Engineering,
>> University Of Moratuwa,
>> Sri Lanka
>>
>> phone: 0777559890
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Isuru Udana*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [DEV] [PET] Could not pass ftp over http proxy.

2016-03-09 Thread Vivekananthan Sivanayagam
Hi Anuruddha,

I have tried and getting same error again.






*Thank youVivekananthan Sivanayagam*

*Associate Software Engineer | WSO2*

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

On Wed, Mar 9, 2016 at 12:05 PM, Anuruddha Premalal 
wrote:

> Hi Vivek,
>
> As the error log mentioned, it's clearly an authentication error from the
> squid proxy. Consult[1] to configure squid proxy users, you should be all
> set once the squid users are properly confifgured.
>
> Response received from the proxy:
> HTTP/1.1 403 Forbidden
> Server: squid/3.3.8
> Mime-Version: 1.0
> Date: Wed, 09 Mar 2016 05:14:22 GMT
> Content-Type: text/html
> Content-Length: 3107
> X-Squid-Error: ERR_ACCESS_DENIED 0
> Vary: Accept-Language
> Content-Language: en
> X-Cache: MISS from squidproxy.com
> X-Cache-Lookup: NONE from squidproxy.com:3128
> Via: 1.1 squidproxy.com (squid/3.3.8)
> Connection: keep-alive
>
> [1]
> http://www.cyberciti.biz/tips/linux-unix-squid-proxy-server-authentication.html
>
>
> On Wed, Mar 9, 2016 at 10:59 AM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi ,
>>
>> I tried as Anuruddha suggested after I made minor changes in my code,
>> when I skipped "Squid" proxy, it is working fine and we can get expected
>> output. When I tried with "Squid" proxy, I got following error[1].
>>
>> [1]
>>
>>  ERROR - FileFtpOverProxy Error occurred while
>> uploading:HTTPTunnelConnector: connection failed
>> Response received from the proxy:
>> HTTP/1.1 403 Forbidden
>> Server: squid/3.3.8
>> Mime-Version: 1.0
>> Date: Wed, 09 Mar 2016 05:14:22 GMT
>> Content-Type: text/html
>> Content-Length: 3107
>> X-Squid-Error: ERR_ACCESS_DENIED 0
>> Vary: Accept-Language
>> Content-Language: en
>> X-Cache: MISS from squidproxy.com
>> X-Cache-Lookup: NONE from squidproxy.com:3128
>> Via: 1.1 squidproxy.com (squid/3.3.8)
>> Connection: keep-alive
>>
>> java.io.IOException: HTTPTunnelConnector: connection failed
>> Response received from the proxy:
>> HTTP/1.1 403 Forbidden
>> Server: squid/3.3.8
>> Mime-Version: 1.0
>> Date: Wed, 09 Mar 2016 05:14:22 GMT
>> Content-Type: text/html
>> Content-Length: 3107
>> X-Squid-Error: ERR_ACCESS_DENIED 0
>> Vary: Accept-Language
>> Content-Language: en
>> X-Cache: MISS from squidproxy.com
>> X-Cache-Lookup: NONE from squidproxy.com:3128
>> Via: 1.1 squidproxy.com (squid/3.3.8)
>> Connection: keep-alive
>>
>> at
>> org.apache.commons.net.ftp.FTPHTTPClient.tunnelHandshake(FTPHTTPClient.java:194)
>> at
>> org.apache.commons.net.ftp.FTPHTTPClient._openDataConnection_(FTPHTTPClient.java:114)
>> at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
>> at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
>> at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
>> at
>> org.wso2.carbon.connector.FileFtpOverProxy.ftpOverHttp(FileFtpOverProxy.java:194)
>> at
>> org.wso2.carbon.connector.FileFtpOverProxy.connect(FileFtpOverProxy.java:58)
>> at
>> org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
>> at
>> org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>> at
>> org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:97)
>> at
>> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
>> at
>> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>> at
>> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:185)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
>> at
>> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:363)
>> at
>> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:142)
>> 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)
>>
>>
>> Please give me suggestion to solve this error.
>>
>>
>>
>>
>> *Thank youVivekananthan Sivanayagam*
>>
>> *Associate Software Engineer | WSO2*
>>
>> *E:vivekanant...@wso2.com *
>> 

Re: [Dev] Regarding GSoC2016 project

2016-03-09 Thread Upul Bandara
Hi Anurag,

The objective of the "Visual Neural Network Builder" project is to create a
Neural Network UI front-end for WSO2 Machine Learner.
UI front-end will help people to quickly try out different Neural Network
configurations.

As the initial step, you have to create a project proposal and following
blog post (Nirmal's proposal submitted to 2011 GSOC) would be a good
starting point.

http://nirmalfdo.blogspot.com/2011/04/apache-tuscany-develop-simple-tool-that.html

If you need further help, please let us know.

Thanks,
Upul

On Sun, Mar 6, 2016 at 12:15 PM, Anurag Kashyap 
wrote:

> Hi Upul,
>  I'm currently working as a research assistant at NTU, Singapore for my
> bachelor thesis in my final year, I looked at the list of GSoC projects
> for WSO2 and I'm particularly interested in the project *Visual (Deep)
> Neural Network Builder. *I am currently working on multi-label
> classification, so I have some experience in this field and I've been
> reading papers and writing code for their implementation. I believe I can
> contribute to this project as a GSoC intern. Eagerly awaiting a response!
>
> --
> Yours Sincerely,
> *Anurag Kashyap*
> *Research Assistant*
> *Robotics-|| *
> *Nanyang Technological University, Singapore*
>
> [image: Blog] 
>



-- 
Upul Bandara,
Associate Technical Lead, WSO2, Inc.,
Mob: +94 715 468 345.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev