Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.
[looping Ruchira] On Fri, Apr 24, 2015 at 10:44 AM, Supun Sethunga sup...@wso2.com wrote: Hi Malith, It gives the same result. Thanks, Supun On Fri, Apr 24, 2015 at 10:41 AM, Malith Munasinghe mali...@wso2.com wrote: Links for the above [1] http://stackoverflow.com/questions/10801122/handling-multipart-attachments-in-cxf-apis On Fri, Apr 24, 2015 at 10:40 AM, Malith Munasinghe mali...@wso2.com wrote: Hi Supun, As discussed in [1] for CXF 2.6.x api file uploading using multipart content type can be done using Attachement Argument type instead of InputStream. Can you try using @Multipart(value = file) @NotNull Attachment attachment Then use InputStream inputStream = attcehment.getObject(InputStream.class); to get the InputStream. Thank you, Regards On Fri, Apr 24, 2015 at 9:26 AM, Supun Sethunga sup...@wso2.com wrote: Hi Malith, Using the latest Chrome/Firefox versions. This isn't working when called from a java-client either. Catch here is, rest of the form data get submitted correctly. AFAIU problem is in the way the file is streamed to the server (the way it gets attached to the request). Thanks, Supun On Fri, Apr 24, 2015 at 9:14 AM, Malith Munasinghe mali...@wso2.com wrote: Hi Supun, Can you check the browser version of yours ? As of [1] FormData emulation for older browser (Below Safari 5 / Firefox 4) you might have to change it to the way mentioned in top Ranked answer. [1] http://stackoverflow.com/questions/5392344/sending-multipart-formdata-with-jquery-ajax On Fri, Apr 24, 2015 at 9:02 AM, Supun Sethunga sup...@wso2.com wrote: Hi Malith/Thilini, Thanks for the suggestion. I had tried that. Didn't work :/ Regards, Supun On Fri, Apr 24, 2015 at 8:45 AM, Thilini Cooray thili...@wso2.com wrote: Hi Supun, [1] also suggests to make contentType false. [1] http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data Thanks. On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe mali...@wso2.com wrote: Hi Supun! Try Making contentType: false, Regards, Malith. On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga sup...@wso2.com wrote: Hi, Requirement was to let a user upload a data file from a UI (html/jaggery), and the backend which handles file uploading is exposed as a REST service. Backend service method I wrote looks as follows: @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.MULTIPART_FORM_DATA) public Response uploadDataset(@Multipart(datasetName) String datasetName, @Multipart(version) String version, @Multipart(description) String description, @Multipart(sourceType) String sourceType, @Multipart(destination) String destination, @Multipart(sourcePath) String sourcePath, @Multipart(dataFormat) String dataFormat, @Multipart(file) InputStream inputStream) { . . . . . . } The InputStream is then written to a file at the server side. This method works fine when I call this with CURL using: *curl -X POST -b cookies http://localhost:9763/api/datasets http://localhost:9763/api/datasets -H Authorization: Basic YWRtaW46YWRtaW4= -H Content-Type: multipart/form-data --form datasetName=TestDataset --form version=1.0.0 --form description=TestDescription --form sourceType=file --form destination=file --form dataFormat=CSV --form file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form sourcePath=/temp* Also works fine when I used Chrome's REST client. However, when I call the same service, using AJAX, the file is written with empty content. Follow is the sample snippet. *var formData = new FormData();* * formData.append(file, fileInput[0]['files'][0], 'IndiansDiabetes.csv');* * formData.append(datasetName, name);* * formData.append(version, version);* * formData.append(description, comments);* * formData.append(sourceType, dataSourceType);* * formData.append(sourcePath, null);* * formData.append(destination, dataTargetType);** formData.append(dataFormat, dataType);* * var baseUrl = getBaseUrl(window.location.href);* * $.ajax({* * type: 'POST',* * url: baseUrl + '/api/datasets', * * contentType: multipart/form-data,* *processData: false,* * data: formData,** beforeSend : function(xhr) {* *xhr.setRequestHeader(Authorization, Basic + YWRtaW46YWRtaW4=);* *},* *success : function(res){* * console.log('success');* *},* *error : function(res){* * console.log('failed');* *} * *});** })* One thing I noticed was, When calling the service
Re: [Dev] [Orbit] Please review the PR for Spark 1.3.0
thanks Maheshika On Thu, May 7, 2015 at 12:01 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun Both were deployed successfully. On Tue, May 5, 2015 at 6:54 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Niranda, Released the following orbit bundles. (finally! ;) ) spark-core_2.10 spark-sql_2.10 @Maheshika, can you release these two orbit bundles. Please make sure to use JDK 7 for building. On Tue, May 5, 2015 at 12:46 PM, Niranda Perera nira...@wso2.com wrote: Hi Kasun, Could you please check this bundle again. I fix the issue, and it did not affect the orbit bundle. rgds On Wed, Apr 29, 2015 at 5:00 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Niranda, I believe the point Supun making is if there are two versions of spark 1.3.0 has made there way into a pack, then only one version will be picked up. This is an unlikely scenario. But as a best practice, it'll be better to export the exact version from now on. On Wed, Apr 29, 2015 at 10:45 AM, Niranda Perera nira...@wso2.com wrote: Hi Supun, let me understand the scenario here. say there are 2 OSGI bundle in the environment spark v 1.3.0 and spark v 1.2.1 and we have a component org.wso2.analytics.spark.core which imports org.apache.spark version [1.2.1, 1.4.0). then AFAIK in the OSGI environment, org.wso2.analytics.spark.core gets wired to the latest version in the runtime. @carbon team pls correct me if I'm wrong but I do not think it has anything to do with the Export-Package tag in the orbit bundle. rgds On Wed, Apr 29, 2015 at 10:22 AM, Supun Sethunga sup...@wso2.com wrote: Hi Niranda, are you referring to this? Export-Package org.apache.spark.*;version=${spark.version};-split-package:=merge-first /Export-Package Yes exactly. My concern was, what if multiple versions of the same package were in the same osgi environment.. I know its very highly unlikely, but IF such a case happens, then I think spark (or any bundle) will pick up only one of the versions. Thanks, Supun On Mon, Apr 27, 2015 at 10:55 AM, Niranda Perera nira...@wso2.com wrote: Hi Supun, are you referring to this? Export-Package org.apache.spark.*;version=${spark.version};-split-package:=merge-first /Export-Package well, AFAIK what export-package does is, it exposes the org.apache.spark.* classes in the OSGI environment. since we are not doing any patching for the original classes, I dont think we have to change the version to 1.3.0.wso2v1 @sameera, pls correct me if I'm wrong. rgds On Wed, Apr 22, 2015 at 9:06 AM, Supun Sethunga sup...@wso2.com wrote: Hi Sameera/Niranda, With parallel to this, Im in the process of migrating the spark Ml-Lib and spark streaming versions for product ML. Just wanted to clear myself, shouldn't the export-package-version of all spark packages be 1.3.0.wso2v1, rather than 1.3.0? Thanks, Supun On Fri, Apr 17, 2015 at 4:39 PM, Niranda Perera nira...@wso2.com wrote: oh. are you referring to the Bundle-Classpathpatch.jar,./Bundle-Classpath line? I did not include it in the orbit bundle. but I checked the bundles in a fresh carbon server and it seems like the patch gets attached successfully. Screenshot from 2015-04-17 16:20:15.png https://docs.google.com/a/wso2.com/file/d/0B1GsnfycTl32bDMyNG5DMDhRcHc/edit?usp=drive_web I checked it with BAM pack also. bundle-classpath tag, is it mandatory to be in the for the orbit bundle, for the patch to get attached? the patch pom is as follows https://github.com/nirandaperera/carbon-analytics/blob/clustering%2B130%2BMT/components/analytics/analytics-processors/org.wso2.carbon.analytics.spark.patch/pom.xml On Thu, Apr 16, 2015 at 3:05 PM, Anjana Fernando anj...@wso2.com wrote: Niranda, yeah, we would have to put that part to be able to later patch it. A sample can be found here [1]. [1] https://github.com/wso2/orbit/blob/master/tomcat/7.0.59.wso2v2/pom.xml Cheers, Anjana. On Thu, Apr 16, 2015 at 3:00 PM, Sameera Jayasoma same...@wso2.com wrote: I meant to say, do we need to add the patch.jar line to the spark bundle as we've done in Tomcat bundle. Thanks, Sameera. On Thu, Apr 16, 2015 at 12:31 PM, Niranda Perera nira...@wso2.com wrote: Hi Sameera, No its not. The patch is in org.wso2.analytics.spark.patch component. Its still not committed to carbon - analytics Rgds On Thu, Apr 16, 2015, 12:17 Sameera Jayasoma same...@wso2.com wrote: Hi Niranda, Does this include fragment-bundle/patch modification also? Thanks, Sameera. On Thu, Apr 16, 2015 at 8:03 AM, Niranda Perera nira...@wso2.com wrote: Hi, Kind reminder on this. Best regards Niranda Perera Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 On Apr 14, 2015 19:17, Niranda Perera nira...@wso2.com wrote: Hi Sameera, Could you please review this PR [1] for Spark 1.3.0. this upgrades 1.2.1 to 1.3.0. this upgrade is done, because
Re: [Dev] [Orbit] Please review the PR for Spark 1.3.0
Hi Kasun Both were deployed successfully. On Tue, May 5, 2015 at 6:54 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Niranda, Released the following orbit bundles. (finally! ;) ) spark-core_2.10 spark-sql_2.10 @Maheshika, can you release these two orbit bundles. Please make sure to use JDK 7 for building. On Tue, May 5, 2015 at 12:46 PM, Niranda Perera nira...@wso2.com wrote: Hi Kasun, Could you please check this bundle again. I fix the issue, and it did not affect the orbit bundle. rgds On Wed, Apr 29, 2015 at 5:00 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Niranda, I believe the point Supun making is if there are two versions of spark 1.3.0 has made there way into a pack, then only one version will be picked up. This is an unlikely scenario. But as a best practice, it'll be better to export the exact version from now on. On Wed, Apr 29, 2015 at 10:45 AM, Niranda Perera nira...@wso2.com wrote: Hi Supun, let me understand the scenario here. say there are 2 OSGI bundle in the environment spark v 1.3.0 and spark v 1.2.1 and we have a component org.wso2.analytics.spark.core which imports org.apache.spark version [1.2.1, 1.4.0). then AFAIK in the OSGI environment, org.wso2.analytics.spark.core gets wired to the latest version in the runtime. @carbon team pls correct me if I'm wrong but I do not think it has anything to do with the Export-Package tag in the orbit bundle. rgds On Wed, Apr 29, 2015 at 10:22 AM, Supun Sethunga sup...@wso2.com wrote: Hi Niranda, are you referring to this? Export-Package org.apache.spark.*;version=${spark.version};-split-package:=merge-first /Export-Package Yes exactly. My concern was, what if multiple versions of the same package were in the same osgi environment.. I know its very highly unlikely, but IF such a case happens, then I think spark (or any bundle) will pick up only one of the versions. Thanks, Supun On Mon, Apr 27, 2015 at 10:55 AM, Niranda Perera nira...@wso2.com wrote: Hi Supun, are you referring to this? Export-Package org.apache.spark.*;version=${spark.version};-split-package:=merge-first /Export-Package well, AFAIK what export-package does is, it exposes the org.apache.spark.* classes in the OSGI environment. since we are not doing any patching for the original classes, I dont think we have to change the version to 1.3.0.wso2v1 @sameera, pls correct me if I'm wrong. rgds On Wed, Apr 22, 2015 at 9:06 AM, Supun Sethunga sup...@wso2.com wrote: Hi Sameera/Niranda, With parallel to this, Im in the process of migrating the spark Ml-Lib and spark streaming versions for product ML. Just wanted to clear myself, shouldn't the export-package-version of all spark packages be 1.3.0.wso2v1, rather than 1.3.0? Thanks, Supun On Fri, Apr 17, 2015 at 4:39 PM, Niranda Perera nira...@wso2.com wrote: oh. are you referring to the Bundle-Classpathpatch.jar,./Bundle-Classpath line? I did not include it in the orbit bundle. but I checked the bundles in a fresh carbon server and it seems like the patch gets attached successfully. Screenshot from 2015-04-17 16:20:15.png https://docs.google.com/a/wso2.com/file/d/0B1GsnfycTl32bDMyNG5DMDhRcHc/edit?usp=drive_web I checked it with BAM pack also. bundle-classpath tag, is it mandatory to be in the for the orbit bundle, for the patch to get attached? the patch pom is as follows https://github.com/nirandaperera/carbon-analytics/blob/clustering%2B130%2BMT/components/analytics/analytics-processors/org.wso2.carbon.analytics.spark.patch/pom.xml On Thu, Apr 16, 2015 at 3:05 PM, Anjana Fernando anj...@wso2.com wrote: Niranda, yeah, we would have to put that part to be able to later patch it. A sample can be found here [1]. [1] https://github.com/wso2/orbit/blob/master/tomcat/7.0.59.wso2v2/pom.xml Cheers, Anjana. On Thu, Apr 16, 2015 at 3:00 PM, Sameera Jayasoma same...@wso2.com wrote: I meant to say, do we need to add the patch.jar line to the spark bundle as we've done in Tomcat bundle. Thanks, Sameera. On Thu, Apr 16, 2015 at 12:31 PM, Niranda Perera nira...@wso2.com wrote: Hi Sameera, No its not. The patch is in org.wso2.analytics.spark.patch component. Its still not committed to carbon - analytics Rgds On Thu, Apr 16, 2015, 12:17 Sameera Jayasoma same...@wso2.com wrote: Hi Niranda, Does this include fragment-bundle/patch modification also? Thanks, Sameera. On Thu, Apr 16, 2015 at 8:03 AM, Niranda Perera nira...@wso2.com wrote: Hi, Kind reminder on this. Best regards Niranda Perera Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 On Apr 14, 2015 19:17, Niranda Perera nira...@wso2.com wrote: Hi Sameera, Could you please review this PR [1] for Spark 1.3.0. this upgrades 1.2.1 to 1.3.0. this upgrade is done, because 1.3.0 comes with some major API changes and we wanted to include those API changes before the DAS (BAM)
Re: [Dev] [CDMF] Connect IOT Devices with CDMF
Hi Ayyoob, In order to enroll and manage devices, first you have to create a plugin (OSGI service) which should contain the device specific operations, policies and etc. Then you can register that plugin in the core[1]. So then you will have to implement JAX-RS service that should communicate with that plugin and get the things done. [1]https://github.com/wso2/carbon-device-mgt Thanks, On Thu, May 7, 2015 at 12:27 PM, Ayyoob Hamza ayy...@wso2.com wrote: Hi all, We are intending to enroll and manage iot devices with the cdmf. For this purpose we couldn't find a web service that could perform this task on[1].Therefore we thought of creating a patch to expose a secured JAX-RS service with basic authentication for device management. What are your thoughts on this ? [1]https://github.com/wso2/carbon-device-mgt Best Regards, *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Test Automation Framework Support for MQTT Server
Hi Waruna, I don't think we have enabled ActiveMQ broker for MQTT. Can you check whether MQTT endpoint is exposed. And any workaround to get it started. The version we used is 5.9.1 and it should support for MQTT. Thanks, Krishantha. On Tue, May 5, 2015 at 6:29 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Hi All, We are planning to ship MQTT event adapter support with CEP 4.0.0. We are done with the implementation but facing some issues in writing integration tests.. To test this functionality, we have used the ActiveMQ as the MQTT server. ActiveMQ version 5.9.0 and upwards contains a mqtt endpoint. Based on [1], Automation framework has activemq 5.9.1 support. But when I am trying-out, I haven't seen a mqtt endpoint. It only has below endpoint, INFO [org.apache.activemq.transport.TransportServerThreadSupport] - Listening for connections at: tcp://localhost:61616 INFO [org.apache.activemq.broker.TransportConnector] - Connector tcp:// 127.0.0.1:61616 started INFO [org.apache.activemq.broker.BrokerService] - Apache ActiveMQ 5.9.1 (testBroker, ID:mohan-ThinkPad-T530-35747-1430828992894-0:1) started INFO [org.apache.activemq.broker.BrokerService] - For help or more information please see: http://activemq.apache.org By default, ActiveMQ has mqtt endpoint in port 1883.. Can someone from Automation team help on this.. This is a blocker to consider the feature as done-done .. [1] https://wso2.org/jira/browse/TA-901 Thanks, Mohan -- *V. Mohanadarshan* *Software Engineer,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com http://wso2.com * *lean.enterprise.middleware.* email: mo...@wso2.com phone:(+94) 771117673 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Integration test Error
Hi Chanaka, I have already enabled in axis2.xml the https transport as you mentioned. But I got this error. thank you On Thu, May 7, 2015 at 9:28 AM, Chanaka Fernando chana...@wso2.com wrote: Hi Vanii, According to the error message, axis2.xml file does not have the https transport enabled. Please go through the axis2.xml file and enable the https transport sender and receiver as mentioned below. transportReceiver name=https class=org.apache.synapse.transport.passthru.PassThroughHttpSSLListener parameter name=port locked=false8243/parameter parameter name=non-blocking locked=falsetrue/parameter !--parameter name=bind-address locked=falsehostname or IP address/parameter-- !--parameter name=WSDLEPRPrefix locked=falsehttps://apachehost:port/somepath/parameter-- parameter name=httpGetProcessor locked=falseorg.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor/parameter parameter name=keystore locked=false KeyStore Locationrepository/resources/security/wso2carbon.jks/Location TypeJKS/Type Passwordwso2carbon/Password KeyPasswordwso2carbon/KeyPassword /KeyStore /parameter parameter name=truststore locked=false TrustStore Locationrepository/resources/security/client-truststore.jks/Location TypeJKS/Type Passwordwso2carbon/Password /TrustStore /parameter !--parameter name=SSLVerifyClientrequire/parameter supports optional|require or defaults to none -- /transportReceiver transportSender name=https class=org.apache.synapse.transport.passthru.PassThroughHttpSSLSender parameter name=non-blocking locked=falsetrue/parameter parameter name=keystore locked=false KeyStore Locationrepository/resources/security/wso2carbon.jks/Location TypeJKS/Type Passwordwso2carbon/Password KeyPasswordwso2carbon/KeyPassword /KeyStore /parameter parameter name=truststore locked=false TrustStore Locationrepository/resources/security/client-truststore.jks/Location TypeJKS/Type Passwordwso2carbon/Password /TrustStore /parameter !--parameter name=HostnameVerifierDefaultAndLocalhost/parameter-- !--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -- /transportSender Thanks, Chanaka On Wed, May 6, 2015 at 6:45 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Vanil, The error message states of invalid transports. Please check this mail thread[1]. Also, please check if your configuration if you made any on the axis2 files is correct. [1] - http://mail.wso2.org/mailarchive/dev/2012-March/001991.html Thank you. Regards, Shiva Balachandran On Wed, May 6, 2015 at 4:09 PM, Vanii Thiyagarajah va...@wso2.com wrote: When I am running the integration test of billiving connector I got following error I have attached the error log . Can you please give any suggestions on this ? [2015-05-06 15:35:34,603] ERROR {org.apache.sandesha2.SandeshaModule} - Could not load module policies. Using default values. [2015-05-06 15:35:34,603] ERROR {org.apache.sandesha2.SandeshaModule} - Could not load module policies. Using default values. [2015-05-06 15:35:34,900] INFO {org.apache.synapse.transport.nhttp.HttpCoreNIOSender} - HTTP Sender starting [2015-05-06 15:35:34,900] INFO {org.apache.synapse.transport.nhttp.HttpCoreNIOSender} - HTTP Sender starting [2015-05-06 15:35:34,924] INFO {org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server} - Starting sample Axis2 server [2015-05-06 15:35:34,967] INFO {org.apache.synapse.transport.nhttp.HttpCoreNIOListener} - HTTP Listener started on 0:0:0:0:0:0:0:0:9000 [2015-05-06 15:35:34,967] INFO {org.apache.synapse.transport.nhttp.HttpCoreNIOListener} - HTTP Listener started on 0:0:0:0:0:0:0:0:9000 [2015-05-06 15:35:36,967] INFO {org.wso2.carbon.automation.core.PlatformExecutionManager} - Deploying services.. [2015-05-06 15:35:36,984] WARN {org.apache.axis2.deployment.ServiceBuilder} - Service [ DataSourceAdmin] is trying to expose in a transport : https and which is not available in Axis2 [2015-05-06 15:35:36,984] WARN {org.apache.axis2.deployment.ServiceBuilder} - Service [ DataSourceAdmin] is trying to expose in a transport : https and which is not available in Axis2 [2015-05-06 15:35:36,999] ERROR {org.wso2.carbon.automation.core.PlatformExecutionManager} - Unable to start servers org.apache.axis2.deployment.DeploymentException: Service [DataSourceAdmin] is trying expose in tranpsorts: transports transporthttps/transport /transports and which is/are not available in Axis2 at
Re: [Dev] Test Automation Framework Support for MQTT Server
HI Krishantha, Will check on that. Thanks, On Thu, May 7, 2015 at 11:54 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Waruna, I don't think we have enabled ActiveMQ broker for MQTT. Can you check whether MQTT endpoint is exposed. And any workaround to get it started. The version we used is 5.9.1 and it should support for MQTT. Thanks, Krishantha. On Tue, May 5, 2015 at 6:29 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Hi All, We are planning to ship MQTT event adapter support with CEP 4.0.0. We are done with the implementation but facing some issues in writing integration tests.. To test this functionality, we have used the ActiveMQ as the MQTT server. ActiveMQ version 5.9.0 and upwards contains a mqtt endpoint. Based on [1], Automation framework has activemq 5.9.1 support. But when I am trying-out, I haven't seen a mqtt endpoint. It only has below endpoint, INFO [org.apache.activemq.transport.TransportServerThreadSupport] - Listening for connections at: tcp://localhost:61616 INFO [org.apache.activemq.broker.TransportConnector] - Connector tcp:// 127.0.0.1:61616 started INFO [org.apache.activemq.broker.BrokerService] - Apache ActiveMQ 5.9.1 (testBroker, ID:mohan-ThinkPad-T530-35747-1430828992894-0:1) started INFO [org.apache.activemq.broker.BrokerService] - For help or more information please see: http://activemq.apache.org By default, ActiveMQ has mqtt endpoint in port 1883.. Can someone from Automation team help on this.. This is a blocker to consider the feature as done-done .. [1] https://wso2.org/jira/browse/TA-901 Thanks, Mohan -- *V. Mohanadarshan* *Software Engineer,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com http://wso2.com * *lean.enterprise.middleware.* email: mo...@wso2.com phone:(+94) 771117673 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.
Hi Supun, First of all it has nothing to do with Jaggery. i.e. Jaggery is a server side framework and what you do here is sending a file from your browser to a JAX-RS backend. When you upload binaries from a browser, most probably you will have to post it with multipart content type. For that, the simplest approach is to use an HTML form with multipart type and just submit the form. In this case browser will do the HTTP post, but not you JavaScript code. Else, you can use a client side JavaScript library which does file uploading such as [1] or [2](this is used in ES as well). But if you don't have any specific requirement to go with JavaScript, then just go with the HTML form. /Ruchira [1] https://blueimp.github.io/jQuery-File-Upload [2] http://malsup.com/jquery/form/#file-upload On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga sup...@wso2.com wrote: Hi, Requirement was to let a user upload a data file from a UI (html/jaggery), and the backend which handles file uploading is exposed as a REST service. Backend service method I wrote looks as follows: @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.MULTIPART_FORM_DATA) public Response uploadDataset(@Multipart(datasetName) String datasetName, @Multipart(version) String version, @Multipart(description) String description, @Multipart(sourceType) String sourceType, @Multipart(destination) String destination, @Multipart(sourcePath) String sourcePath, @Multipart(dataFormat) String dataFormat, @Multipart(file) InputStream inputStream) { . . . . . . } The InputStream is then written to a file at the server side. This method works fine when I call this with CURL using: *curl -X POST -b cookies http://localhost:9763/api/datasets http://localhost:9763/api/datasets -H Authorization: Basic YWRtaW46YWRtaW4= -H Content-Type: multipart/form-data --form datasetName=TestDataset --form version=1.0.0 --form description=TestDescription --form sourceType=file --form destination=file --form dataFormat=CSV --form file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form sourcePath=/temp* Also works fine when I used Chrome's REST client. However, when I call the same service, using AJAX, the file is written with empty content. Follow is the sample snippet. *var formData = new FormData();* * formData.append(file, fileInput[0]['files'][0], 'IndiansDiabetes.csv');* * formData.append(datasetName, name);* * formData.append(version, version);* * formData.append(description, comments);* * formData.append(sourceType, dataSourceType);* * formData.append(sourcePath, null);* * formData.append(destination, dataTargetType);** formData.append(dataFormat, dataType);* * var baseUrl = getBaseUrl(window.location.href);* * $.ajax({* * type: 'POST',* * url: baseUrl + '/api/datasets', * * contentType: multipart/form-data,* *processData: false,* * data: formData,** beforeSend : function(xhr) {* *xhr.setRequestHeader(Authorization, Basic + YWRtaW46YWRtaW4=);* *},* *success : function(res){* * console.log('success');* *},* *error : function(res){* * console.log('failed');* *} * *});** })* One thing I noticed was, When calling the service using CURL and REST-Client, the *@Multipart(file) InputStream inputStream* binds to a LoadingByteArrayOutputStream, but when calling from AJAX (or even with a java client) it binds to a org.apache.cxf.attachment.DelegatingInputStream, and hence writing an empty content to the server. Any idea on how to overcome this? Thanks, Supun -- *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 -- *Ruchira Wageesha**Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.
Hi Ruchira, Thanks for the quick response. The reason for going for JavaScript was, the backend is secured with Basic Auth, and AFAIK there is no way to set security headers to the html form submission request. Will try out the suggested libraries. Thanks, Supun On Thu, May 7, 2015 at 12:08 PM, Ruchira Wageesha ruch...@wso2.com wrote: Hi Supun, First of all it has nothing to do with Jaggery. i.e. Jaggery is a server side framework and what you do here is sending a file from your browser to a JAX-RS backend. When you upload binaries from a browser, most probably you will have to post it with multipart content type. For that, the simplest approach is to use an HTML form with multipart type and just submit the form. In this case browser will do the HTTP post, but not you JavaScript code. Else, you can use a client side JavaScript library which does file uploading such as [1] or [2](this is used in ES as well). But if you don't have any specific requirement to go with JavaScript, then just go with the HTML form. /Ruchira [1] https://blueimp.github.io/jQuery-File-Upload [2] http://malsup.com/jquery/form/#file-upload On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga sup...@wso2.com wrote: Hi, Requirement was to let a user upload a data file from a UI (html/jaggery), and the backend which handles file uploading is exposed as a REST service. Backend service method I wrote looks as follows: @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.MULTIPART_FORM_DATA) public Response uploadDataset(@Multipart(datasetName) String datasetName, @Multipart(version) String version, @Multipart(description) String description, @Multipart(sourceType) String sourceType, @Multipart(destination) String destination, @Multipart(sourcePath) String sourcePath, @Multipart(dataFormat) String dataFormat, @Multipart(file) InputStream inputStream) { . . . . . . } The InputStream is then written to a file at the server side. This method works fine when I call this with CURL using: *curl -X POST -b cookies http://localhost:9763/api/datasets http://localhost:9763/api/datasets -H Authorization: Basic YWRtaW46YWRtaW4= -H Content-Type: multipart/form-data --form datasetName=TestDataset --form version=1.0.0 --form description=TestDescription --form sourceType=file --form destination=file --form dataFormat=CSV --form file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form sourcePath=/temp* Also works fine when I used Chrome's REST client. However, when I call the same service, using AJAX, the file is written with empty content. Follow is the sample snippet. *var formData = new FormData();* * formData.append(file, fileInput[0]['files'][0], 'IndiansDiabetes.csv');* * formData.append(datasetName, name);* * formData.append(version, version);* * formData.append(description, comments);* * formData.append(sourceType, dataSourceType);* * formData.append(sourcePath, null);* * formData.append(destination, dataTargetType);** formData.append(dataFormat, dataType);* * var baseUrl = getBaseUrl(window.location.href);* * $.ajax({* * type: 'POST',* * url: baseUrl + '/api/datasets', * * contentType: multipart/form-data,* *processData: false,* * data: formData,** beforeSend : function(xhr) {* *xhr.setRequestHeader(Authorization, Basic + YWRtaW46YWRtaW4=);* *},* *success : function(res){* * console.log('success');* *},* *error : function(res){* * console.log('failed');* *} * *});** })* One thing I noticed was, When calling the service using CURL and REST-Client, the *@Multipart(file) InputStream inputStream* binds to a LoadingByteArrayOutputStream, but when calling from AJAX (or even with a java client) it binds to a org.apache.cxf.attachment.DelegatingInputStream, and hence writing an empty content to the server. Any idea on how to overcome this? Thanks, Supun -- *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 -- *Ruchira Wageesha**Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444 %2B94%2077%205493444* -- *Supun Sethunga* Software Engineer WSO2, Inc. http://wso2.com/ lean | enterprise |
Re: [Dev] [Carbon][AppM] Calling OSGi service in Jaggery gives a NullPointerException
I tried different approaches with org.wso2.carbon.user.api.UserStoreManager OSGi service, however I couldn't overcome the NullPointerException. I think one must initialize the UserStoreManager service before using it, but couldn't find an initializing method. *Solution:* Instead of using UserStoreManager OSGi service, I used org.wso2.carbon.user.core.service.RealmService OSGi service. Using the RealmService you can get TenantUserRealm object for a given tenant ID. From that you can get an UserStoreManager object. This object (usManager) has all functionality of UserStoreManager OSGi service. Refer following sample code. var carbon = require('carbon'); var store = require('store'); var server = store.server; function test(role){ var realmService = carbon.server.osgiService('org.wso2.carbon.user.core.service.RealmService'); var tenantId = server.current(session).tenantId; var usManager = realmService.getTenantUserRealm(tenantId).getUserStoreManager(); return usManager.getUserListOfRole(role); } Thanks regards. On Tue, Apr 21, 2015 at 10:52 AM, Sajith Ariyarathna sajit...@wso2.com wrote: I'm developing a web app for AppM and I want to do some user management tasks. - retrieving all users for a given role - retrieving claims of a given user To accomplish above tasks, I want to call getUserListOfRole() method getUserClaimValues() method in the org.wso2.carbon.user.api.UserStoreManager OSGi service. I wrote my Jaggery code as following based on [1] [2]. routeManager.register('GET', 'publisher', '/publisher/api/provisioning/users/{role}', function (context) { log.info(### in API call); var role = context.params.role; var carbon = require('carbon'); var userService = carbon.server.osgiService('org.wso2.carbon.user.api.UserStoreManager'); log.info(### acquired OSGi service); *#30* var usrs = userService.getUserListOfRole(role); print(usrs); }); Above code gives me a NullPointerException. [2015-04-21 10:40:02,575] INFO - provisioning_api_router:jag ### in API call [2015-04-21 10:40:02,579] INFO - provisioning_api_router:jag ### acquired OSGi service [2015-04-21 10:40:02,583] ERROR - WebAppManager org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/publisher/apis/v1/provisioning_api_router.jag#30) org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/publisher/apis/v1/provisioning_api_router.jag#30) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:536) at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.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:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) at
Re: [Dev] According to iOS 8 we need an SSL cert for app download
Guys, Let's please get this tested and verified soon. And also have this added to the documentation, as part of the deployment guide, for better visibility. Cheers, Prabath On Thu, May 7, 2015 at 2:44 PM, Inosh Perera ino...@wso2.com wrote: Hi Chan, If this is true, it only means that in order to test iOS MAM features, we need to have SSL, either self-signed or from another CA. So, this is a deployment level configuration that we need to document? Am I missing something? Regards, Inosh On Thu, May 7, 2015 at 1:56 PM, Dulitha Wijewantha duli...@wso2.com wrote: bump On Fri, Apr 17, 2015 at 6:16 PM, Dulitha Wijewantha duli...@wso2.com wrote: Hi dilshan, According to iOS 8 [1] we'll need a validated ssl certificate to the server in order to download the app. [1] - http://bencollier.net/2014/03/ios-enterprise-app-error-cannot-install-applications-because-the-certificate-is-not-valid/ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- Prabath Abeysekara Technical Lead WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [CDMF] Connect IOT Devices with CDMF
Hi all, We are intending to enroll and manage iot devices with the cdmf. For this purpose we couldn't find a web service that could perform this task on[1].Therefore we thought of creating a patch to expose a secured JAX-RS service with basic authentication for device management. What are your thoughts on this ? [1]https://github.com/wso2/carbon-device-mgt Best Regards, *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Clarification on Key validator and Key manager server profiles.
Hi Sewmini, KeyManager configuration will be mainly used when integrating with a Third Party Authorization Server. Configuration specific to the external Authorization Server can be provided under KeyManager section. This is explained in doc link available at [1]. When clustering, you should only change the KeyValidator section. Gateway should know the location of the KeyValidator, so KeyValidator section of Gateway should be configured pointing to KeyValidator component. Store will be talking to KeyVaidator when creating OAuth clients. Therefore , Store should also know the location of KeyValidator. [1] https://docs.google.com/document/d/14y-1QmYsf2sm5n_5nFh8R4fePSxlcdMLO_J4FxTmWyc/edit On Thu, May 7, 2015 at 3:58 PM, Sewmini Jayaweera sewm...@wso2.com wrote: Hi All, As per the offline discussion, Key validator server profile is acting as Key manager when there is no third party Auth server is used. In the API Manager 1.9.0 pack AM_HOME/repository/conf/api-manager.xml Key validator is enabled and Key manager is being commented out by default. 1. Is there a reason why Key Manager configuration is there? 2. If so when should we enable Key manager instead of Key validator? 3. When we are clustering instead of changing Key manager configurations should we change key validation configurations and what are the configurations? Thanks Regards, Sewmini Sewmini Jayaweera *Software Engineer - QA Team* Mobile: +94 (0) 773 381 250 sewm...@wso2.com -- *Amila De Silva* WSO2 Inc. mobile :(+94) 775119302 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [CDMF] Connect IOT Devices with CDMF
Thanks for the info Milan *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 On Thu, May 7, 2015 at 12:39 PM, Milan Perera mi...@wso2.com wrote: Hi Ayyoob, In order to enroll and manage devices, first you have to create a plugin (OSGI service) which should contain the device specific operations, policies and etc. Then you can register that plugin in the core[1]. So then you will have to implement JAX-RS service that should communicate with that plugin and get the things done. [1]https://github.com/wso2/carbon-device-mgt Thanks, On Thu, May 7, 2015 at 12:27 PM, Ayyoob Hamza ayy...@wso2.com wrote: Hi all, We are intending to enroll and manage iot devices with the cdmf. For this purpose we couldn't find a web service that could perform this task on[1].Therefore we thought of creating a patch to expose a secured JAX-RS service with basic authentication for device management. What are your thoughts on this ? [1]https://github.com/wso2/carbon-device-mgt Best Regards, *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Orbit] Please review the PR for Spark 1.3.0
Hi SupunS, We reviewed the PR and found some issues in it. 1. all groupIds are not in the correct format 2. in import package section you have used *;resolution:=optional which is not recommended. 3. Export-Package section of breeze_2.10, it has some conflicting package name entries Please correct them and validate the pom file against the guidelines given in [1] and resend a pull request. [1] https://docs.google.com/a/wso2.com/document/d/1I3nWPnG6139YobZzQWPFOUxYEmHxqf9ieWykmQupPtc/edit?usp=sharing Thanks, Jayanga. *Jayanga Dissanayake* Senior Software Engineer WSO2 Inc. - http://wso2.com/ lean . enterprise . middleware email: jaya...@wso2.com mobile: +94772207259 On Thu, May 7, 2015 at 4:41 PM, Supun Sethunga sup...@wso2.com wrote: Hi Kasun/Sameera Can you please review and merge the PR [1]. This upgrades the spark-mllib and spark-streaming versions to 1.3.0 (for ML), with parallel to the spark-core version upgrade in BAM. [1] https://github.com/wso2/orbit/pull/87 Thanks, Supun On Thu, May 7, 2015 at 12:02 PM, Niranda Perera nira...@wso2.com wrote: thanks Maheshika On Thu, May 7, 2015 at 12:01 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun Both were deployed successfully. On Tue, May 5, 2015 at 6:54 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Niranda, Released the following orbit bundles. (finally! ;) ) spark-core_2.10 spark-sql_2.10 @Maheshika, can you release these two orbit bundles. Please make sure to use JDK 7 for building. On Tue, May 5, 2015 at 12:46 PM, Niranda Perera nira...@wso2.com wrote: Hi Kasun, Could you please check this bundle again. I fix the issue, and it did not affect the orbit bundle. rgds On Wed, Apr 29, 2015 at 5:00 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Niranda, I believe the point Supun making is if there are two versions of spark 1.3.0 has made there way into a pack, then only one version will be picked up. This is an unlikely scenario. But as a best practice, it'll be better to export the exact version from now on. On Wed, Apr 29, 2015 at 10:45 AM, Niranda Perera nira...@wso2.com wrote: Hi Supun, let me understand the scenario here. say there are 2 OSGI bundle in the environment spark v 1.3.0 and spark v 1.2.1 and we have a component org.wso2.analytics.spark.core which imports org.apache.spark version [1.2.1, 1.4.0). then AFAIK in the OSGI environment, org.wso2.analytics.spark.core gets wired to the latest version in the runtime. @carbon team pls correct me if I'm wrong but I do not think it has anything to do with the Export-Package tag in the orbit bundle. rgds On Wed, Apr 29, 2015 at 10:22 AM, Supun Sethunga sup...@wso2.com wrote: Hi Niranda, are you referring to this? Export-Package org.apache.spark.*;version=${spark.version};-split-package:=merge-first /Export-Package Yes exactly. My concern was, what if multiple versions of the same package were in the same osgi environment.. I know its very highly unlikely, but IF such a case happens, then I think spark (or any bundle) will pick up only one of the versions. Thanks, Supun On Mon, Apr 27, 2015 at 10:55 AM, Niranda Perera nira...@wso2.com wrote: Hi Supun, are you referring to this? Export-Package org.apache.spark.*;version=${spark.version};-split-package:=merge-first /Export-Package well, AFAIK what export-package does is, it exposes the org.apache.spark.* classes in the OSGI environment. since we are not doing any patching for the original classes, I dont think we have to change the version to 1.3.0.wso2v1 @sameera, pls correct me if I'm wrong. rgds On Wed, Apr 22, 2015 at 9:06 AM, Supun Sethunga sup...@wso2.com wrote: Hi Sameera/Niranda, With parallel to this, Im in the process of migrating the spark Ml-Lib and spark streaming versions for product ML. Just wanted to clear myself, shouldn't the export-package-version of all spark packages be 1.3.0.wso2v1, rather than 1.3.0? Thanks, Supun On Fri, Apr 17, 2015 at 4:39 PM, Niranda Perera nira...@wso2.com wrote: oh. are you referring to the Bundle-Classpathpatch.jar,./Bundle-Classpath line? I did not include it in the orbit bundle. but I checked the bundles in a fresh carbon server and it seems like the patch gets attached successfully. Screenshot from 2015-04-17 16:20:15.png https://docs.google.com/a/wso2.com/file/d/0B1GsnfycTl32bDMyNG5DMDhRcHc/edit?usp=drive_web I checked it with BAM pack also. bundle-classpath tag, is it mandatory to be in the for the orbit bundle, for the patch to get attached? the patch pom is as follows https://github.com/nirandaperera/carbon-analytics/blob/clustering%2B130%2BMT/components/analytics/analytics-processors/org.wso2.carbon.analytics.spark.patch/pom.xml On Thu, Apr 16, 2015 at 3:05 PM, Anjana Fernando anj...@wso2.com wrote: Niranda, yeah, we would have to put that part to be able to later patch it. A sample can be found here
Re: [Dev] ML expects first row of a dataset to be the header row
Attaching created JIRA [1]. [1] https://wso2.org/jira/browse/ML-15 On Thu, May 7, 2015 at 10:00 AM, Nirmal Fernando nir...@wso2.com wrote: Ok, got it! Thanks :-) We'll add an option then. On Thu, May 7, 2015 at 9:52 AM, Upul Bandara u...@wso2.com wrote: I'm sorry my bad! We have to tell, the header is missing. [image: Inline image 1] On Thu, May 7, 2015 at 9:44 AM, Nirmal Fernando nir...@wso2.com wrote: It seems this is the first row of the dataset, with an X if a value is a number :-) On Thu, May 7, 2015 at 9:41 AM, Upul Bandara u...@wso2.com wrote: I think asking is a valid option. Some tools automatically detect header. Ex: R [image: Inline image 2] Sometimes, they might check the ration between string an numbers in the first line. If we looking at the code related to read.csv we can get an idea On Thu, May 7, 2015 at 9:34 AM, Nirmal Fernando nir...@wso2.com wrote: hmm.. another option :-) I think we can stick to the helper line. On Thu, May 7, 2015 at 9:31 AM, Supun Sethunga sup...@wso2.com wrote: We have to ask from the user, giving them an option to select. :) On Thu, May 7, 2015 at 9:27 AM, Nirmal Fernando nir...@wso2.com wrote: On Thu, May 7, 2015 at 9:23 AM, Upul Bandara u...@wso2.com wrote: Iris dataset is a bit old one. Nowadays, most of the datasets come with a header row. +1 adding a helper line in UI. But if header is missing, can't we add a set of dummy feature names ( such as F1, F2, and etc. ) and continue the model building process ? How can we detect that the header row is missing? On Thu, May 7, 2015 at 9:15 AM, Nirmal Fernando nir...@wso2.com wrote: Popular Iris dataset doesn't seem to have it. On Thu, May 7, 2015 at 9:13 AM, Supun Sethunga sup...@wso2.com wrote: +1 for adding a helper. Think its also the general standard to have the first row as the header in datasets. On Thu, May 7, 2015 at 8:47 AM, Nirmal Fernando nir...@wso2.com wrote: Hi All, Currently, ML expects first row of a dataset to be the header row. How should we enforce this? We can't do a validation here AFAIU, but we could add a helper line in UI, mentioning that we expect the first row to be the header row. Wdyt? -- Thanks regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Supun Sethunga* Software Engineer WSO2, Inc. http://wso2.com/ lean | enterprise | middleware Mobile : +94 716546324 -- Thanks regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- Upul Bandara, Associate Technical Lead, WSO2, Inc., Mob: +94 715 468 345. -- Thanks regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Supun Sethunga* Software Engineer WSO2, Inc. http://wso2.com/ lean | enterprise | middleware Mobile : +94 716546324 -- Thanks regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- Upul Bandara, Associate Technical Lead, WSO2, Inc., Mob: +94 715 468 345. -- Thanks regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- Upul Bandara, Associate Technical Lead, WSO2, Inc., Mob: +94 715 468 345. -- Thanks regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *CD Athuraliya* Software Engineer WSO2, Inc. lean . enterprise . middleware Mobile: +94 716288847 94716288847 LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter https://twitter.com/cdathuraliya | Blog http://cdathuraliya.tumblr.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API manager alpha release updates
HI, Can you please share the latest P2? Current P2 has only APIM 1.8.0 features and can we use that to test new features? On Thu, Apr 30, 2015 at 1:07 PM, Sewmini Jayaweera sewm...@wso2.com wrote: Hi all, I have paused API manager testing and started setting up API manager cluster. Thanks Regards, Sewmini -- *Ushani Balasooriya* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; +94772636796 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please merge PR
Hi, $subject for [1]. [1] https://github.com/wso2/carbon-identity/pull/265 thanks, -- Supun Malinga, Senior Software Engineer, WSO2 Inc. http://wso2.com email: sup...@wso2.com sup...@wso2.com mobile: +94 (0)71 56 91 321 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Implement a WS-Addressing and MTOM validation framework
Hi Naasheer , What is the progress of this ? On Fri, May 1, 2015 at 10:15 AM, Isuru Ranawaka isu...@wso2.com wrote: Hi Naasheer, Did you able to identify use cases of the MTOM validation scenarios .Some interesting video can be found here [1]. -As first step try to understand difference between Base64Encoding Decoding and MTOM . Then you will be able to understand advantages of MTOM. -Try to understand Header formats of the HTTP message with MTOM and without MTOM. - Try to understand message sizes and how binary data is transfered over MTOM and how it gives performance gain. -Try to figure out how Message Builders and Formatters works with MTOM. After gain knowledge of above areas you will be able to fully complete the MTOM validation framework. [1] http://www.youtube.com/watch?v=Tfv1gNXiAuE Thanks IsuruR On Wed, Apr 29, 2015 at 12:33 PM, Naasheer Ali naashe...@wso2.com wrote: Hi, Please find the pdf of the milestone. Regards, -- *Naasheer Ali* | Associate Software Engineer WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: naashe...@wso2.com On Wed, Apr 29, 2015 at 12:07 PM, Naasheer Ali naashe...@wso2.com wrote: Hi, I'm trying to develop MTOM validation framework. These are the meeting notes with Isuru Ranawaka. Meeting MInues : 1. Try to understand more on WS-Addressing and MTOM. 2. Run the ESB samples on MTOM. 3. Write use cases and test with ESB manually. Please find the milestone for the test cases : Milestone for writing use case on MTOM https://docs.google.com/a/wso2.com/spreadsheets/d/1y-8vpJlSN1wqby7IJ2Z6r0lluca5IA_x1drk5oCawKQ/edit?usp=drive_web Regards, -- *Naasheer Ali* | Associate Software Engineer WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: naashe...@wso2.com -- Best Regards Isuru Ranawaka M: +94714629880 Blog : http://isurur.blogspot.com/ -- Best Regards Isuru Ranawaka M: +94714629880 Blog : http://isurur.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [GSoC-2015] Data Wrangler extension for WSO2 Machine Learner
Hi all, Thank you for selecting my proposal [1] https://docs.google.com/document/d/18NFa23CrhXqnHrkl_AuRz3sQ3Axg7SEmiA7l66Hl9_0/edit?usp=sharing for GSoC 2015. I am really looking forward to work with you all and contribute to WSO2. I have already completed my primary research on wrangler and would like to meet you to get feedback on the proposed architecture. I am planning to start working on the project before 25th of May. Thank you, Danula [1] - https://docs.google.com/document/d/18NFa23CrhXqnHrkl_AuRz3sQ3Axg7SEmiA7l66Hl9_0/edit?usp=sharing ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ESB JAVA-2834 Issue fixing
I have done with the issue, Please find the pull request bellow[1]. [1]https://github.com/wso2/wso2-synapse/pull/180 On Fri, May 8, 2015 at 10:52 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi I'm doing the ESB $ Jira Issue. I've reproduced the issue by using following proxy target inSequence log separator=\n property name=value1 value=hello/ property name=value2 value=hai/ /log respond/ /inSequence outSequence log/ send/ /outSequence /target -- Regards S.Sriashalya, Associate Software Engineer, WSO2 *Inc*. lean . enterprise . middleware -- Regards S.Sriashalya, Associate Software Engineer, WSO2 *Inc*. lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BPS][Carbon] A way to delay shutdown of hazelcast instance at server shutdown
Hi Vinod, Add following property to hazelcast.properties file. This will stop calling shutdown hook of hazelcast when you hit Ctrl+C. hazelcast.shutdownhook.enabled=false Cheers! On Thu, May 7, 2015 at 8:58 PM, Vinod Kavinda vi...@wso2.com wrote: Hi all, I'm working on the issue [1] where we need to shutdown a time scheduler in BPS, before the hazelcast instance, at the server shutdown. I found this issue [2], but it is unresolved. Is there any workarounds? [1] - https://wso2.org/jira/browse/BPS-470 [2] - https://wso2.org/jira/browse/CARBON-14719 Thanks and Regards, Vinod Kavinda -- Vinod Kavinda Software Engineer, *WSO2, Inc http://www.wso2.com.* Mobile : +94 (0) 712 415544 vi...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Indika Sampath Senior Software Engineer WSO2 Inc. http://wso2.com Phone: +94 716 424 744 Blog: http://indikasampath.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] ESB JAVA-2834 Issue fixing
Hi I'm doing the ESB $ Jira Issue. I've reproduced the issue by using following proxy target inSequence log separator=\n property name=value1 value=hello/ property name=value2 value=hai/ /log respond/ /inSequence outSequence log/ send/ /outSequence /target -- Regards S.Sriashalya, Associate Software Engineer, WSO2 *Inc*. lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ESB JAVA-2834 Issue fixing
Hi Sriashalya, Code does not seems to be formatted properly. Also send the pull requests to develop branch. On Fri, May 8, 2015 at 11:06 AM, Sriashalya Srivathsan asha...@wso2.com wrote: I have done with the issue, Please find the pull request bellow[1]. [1]https://github.com/wso2/wso2-synapse/pull/180 On Fri, May 8, 2015 at 10:52 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi I'm doing the ESB $ Jira Issue. I've reproduced the issue by using following proxy target inSequence log separator=\n property name=value1 value=hello/ property name=value2 value=hai/ /log respond/ /inSequence outSequence log/ send/ /outSequence /target -- Regards S.Sriashalya, Associate Software Engineer, WSO2 *Inc*. lean . enterprise . middleware -- Regards S.Sriashalya, Associate Software Engineer, WSO2 *Inc*. lean . enterprise . middleware -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS] Changing response format in a data service
Adding Rajith and Anjana On Fri, May 8, 2015 at 7:57 AM, Madhawa Gunasekara madha...@wso2.com wrote: Hi Kasun, Is your stored procedure gives only one contact person every time? if it is only one person, then I don't think it will be a bad practice. Regards On Fri, May 8, 2015 at 1:55 AM, Kasun De Silva kas...@wso2.com wrote: Hi Devs, Say I have a DSS service as follows, data name=EPAGetContactPersonDS serviceNamespace= services.info.epa.mydeq.azdeq.gov config id=MyDeqAzuriteDS property name=carbon_datasource_nameMyDeqAzuriteDS/property /config query id=getContactPerson useConfig=MyDeqAzuriteDS sqlcall ARD_MYDEQ_EPAID_SUMMARY_PKG.get_contact_person(?, ?, ?, ?, ?, ?)/sql result defaultNamespace=http://mydeq.azdeq.gov/epa/info/data; element=contact_person_info rowName=contact_person element column=CUS_IDNO name=cus_idno xsdType=xs:string optional=true/ element column=CUSNAM_IDNO name=cusnam_idno xsdType=xs:string optional=true/ element column=PLCNAM_IDNO name=plcnam_idno xsdType=xs:string optional=true/ element column=ADDRESS_LINE1 name=address1 xsdType=xs:string optional=true/ element column=ADDRESS_LINE2 name=address2 xsdType=xs:string optional=true/ element column=CITY name=city xsdType=xs:string optional=true/ element column=STATE name=state xsdType=xs:string optional=true/ element column=COUNTRY_CODE name=country xsdType=xs:string optional=true/ element column=POSTAL_CODE name=zip xsdType=xs:string optional=true/ element column=PLUS4 name=plus4 xsdType=xs:string optional=true/ element column=START_DATE name=start_date xsdType=xs:string optional=true/ element column=CUS_EMAIL name=email xsdType=xs:string optional=true/ element column=CATEGORY name=category xsdType=xs:string optional=true/ element column=LAST_NAME name=last_name xsdType=xs:string optional=true/ element column=FIRST_NAME name=first_name xsdType=xs:string optional=true/ element column=MIDDLE_I name=middle_initial xsdType=xs:string optional=true/ element column=PREFIX name=prefix xsdType=xs:string optional=true/ element column=SUFFIX name=suffix xsdType=xs:string optional=true/ element column=KNOWN_AS name=known_as xsdType=xs:string optional=true/ element column=TITLE name=title xsdType=xs:string optional=true/ element column=COMPANY_NAME name=company_name xsdType=xs:string optional=true/ element column=AREA_CODE name=phone_area_code xsdType=xs:string optional=true/ element column=PHONE name=phone_number xsdType=xs:string optional=true/ element column=EXT name=phone_ext xsdType=xs:string optional=true/ element column=PHONE_TYPE name=phone_type xsdType=xs:string optional=true/ /result param name=p_place_idno sqlType=INTEGER/ param name=p_cus_idno sqlType=INTEGER/ param name=p_epaid sqlType=STRING/ param name=p_contact sqlType=ORACLE_REF_CURSOR type=OUT/ param name=p_err_code sqlType=STRING type=OUT/ param name=p_err_msg sqlType=STRING type=OUT/ /query resource method=GET path=getContactPerson/{p_place_idno}/{p_cus_idno}/{p_epaid} call-query href=getContactPerson with-param name=p_place_idno query-param=p_place_idno/ with-param name=p_cus_idno query-param=p_cus_idno/ with-param name=p_epaid query-param=p_epaid/ /call-query /resource /data From this service I get a response as below, { contact_person_info: { contact_person: [ { cus_idno: #, cusnam_idno: #, plcnam_idno: ##, address1: , address2: #, city: #, state: ##, country: , zip: , plus4: , start_date: ###, email: , category: , last_name: , first_name: , middle_initial: ###, prefix: , suffix: , known_as: , title: , company_name: , phone_area_code: #, phone_number: , phone_ext: , phone_type: # } ] } } But In my use case I want the the following response instead of the above. { contact_person: { cus_idno: #, cusnam_idno: #, plcnam_idno: ##, address1:
Re: [Dev] [DSS] Changing response format in a data service
Hi Kasun, Is your stored procedure gives only one contact person every time? if it is only one person, then I don't think it will be a bad practice. Regards On Fri, May 8, 2015 at 1:55 AM, Kasun De Silva kas...@wso2.com wrote: Hi Devs, Say I have a DSS service as follows, data name=EPAGetContactPersonDS serviceNamespace= services.info.epa.mydeq.azdeq.gov config id=MyDeqAzuriteDS property name=carbon_datasource_nameMyDeqAzuriteDS/property /config query id=getContactPerson useConfig=MyDeqAzuriteDS sqlcall ARD_MYDEQ_EPAID_SUMMARY_PKG.get_contact_person(?, ?, ?, ?, ?, ?)/sql result defaultNamespace=http://mydeq.azdeq.gov/epa/info/data; element=contact_person_info rowName=contact_person element column=CUS_IDNO name=cus_idno xsdType=xs:string optional=true/ element column=CUSNAM_IDNO name=cusnam_idno xsdType=xs:string optional=true/ element column=PLCNAM_IDNO name=plcnam_idno xsdType=xs:string optional=true/ element column=ADDRESS_LINE1 name=address1 xsdType=xs:string optional=true/ element column=ADDRESS_LINE2 name=address2 xsdType=xs:string optional=true/ element column=CITY name=city xsdType=xs:string optional=true/ element column=STATE name=state xsdType=xs:string optional=true/ element column=COUNTRY_CODE name=country xsdType=xs:string optional=true/ element column=POSTAL_CODE name=zip xsdType=xs:string optional=true/ element column=PLUS4 name=plus4 xsdType=xs:string optional=true/ element column=START_DATE name=start_date xsdType=xs:string optional=true/ element column=CUS_EMAIL name=email xsdType=xs:string optional=true/ element column=CATEGORY name=category xsdType=xs:string optional=true/ element column=LAST_NAME name=last_name xsdType=xs:string optional=true/ element column=FIRST_NAME name=first_name xsdType=xs:string optional=true/ element column=MIDDLE_I name=middle_initial xsdType=xs:string optional=true/ element column=PREFIX name=prefix xsdType=xs:string optional=true/ element column=SUFFIX name=suffix xsdType=xs:string optional=true/ element column=KNOWN_AS name=known_as xsdType=xs:string optional=true/ element column=TITLE name=title xsdType=xs:string optional=true/ element column=COMPANY_NAME name=company_name xsdType=xs:string optional=true/ element column=AREA_CODE name=phone_area_code xsdType=xs:string optional=true/ element column=PHONE name=phone_number xsdType=xs:string optional=true/ element column=EXT name=phone_ext xsdType=xs:string optional=true/ element column=PHONE_TYPE name=phone_type xsdType=xs:string optional=true/ /result param name=p_place_idno sqlType=INTEGER/ param name=p_cus_idno sqlType=INTEGER/ param name=p_epaid sqlType=STRING/ param name=p_contact sqlType=ORACLE_REF_CURSOR type=OUT/ param name=p_err_code sqlType=STRING type=OUT/ param name=p_err_msg sqlType=STRING type=OUT/ /query resource method=GET path=getContactPerson/{p_place_idno}/{p_cus_idno}/{p_epaid} call-query href=getContactPerson with-param name=p_place_idno query-param=p_place_idno/ with-param name=p_cus_idno query-param=p_cus_idno/ with-param name=p_epaid query-param=p_epaid/ /call-query /resource /data From this service I get a response as below, { contact_person_info: { contact_person: [ { cus_idno: #, cusnam_idno: #, plcnam_idno: ##, address1: , address2: #, city: #, state: ##, country: , zip: , plus4: , start_date: ###, email: , category: , last_name: , first_name: , middle_initial: ###, prefix: , suffix: , known_as: , title: , company_name: , phone_area_code: #, phone_number: , phone_ext: , phone_type: # } ] } } But In my use case I want the the following response instead of the above. { contact_person: { cus_idno: #, cusnam_idno: #, plcnam_idno: ##, address1: , address2: #, city: #,
Re: [Dev] [BPS][Carbon] A way to delay shutdown of hazelcast instance at server shutdown
HI Vinod, AFAIK you have to implement [1] in BPS to handle these scenario in server shutdown. [1] https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/ServerShutdownHandler.java Thank you. On Thu, May 7, 2015 at 8:58 PM, Vinod Kavinda vi...@wso2.com wrote: Hi all, I'm working on the issue [1] where we need to shutdown a time scheduler in BPS, before the hazelcast instance, at the server shutdown. I found this issue [2], but it is unresolved. Is there any workarounds? [1] - https://wso2.org/jira/browse/BPS-470 [2] - https://wso2.org/jira/browse/CARBON-14719 Thanks and Regards, Vinod Kavinda -- Vinod Kavinda Software Engineer, *WSO2, Inc http://www.wso2.com.* Mobile : +94 (0) 712 415544 vi...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Private Pass] Configurator component (bash) for configuring a given Carbon server
Hi Devs, Please find the new architecture of Configurator. *Templates-* Contains templates for each wso2 product and configs.ini in the below structure. templates └── AppServer ├── conf │ ├── axis2 │ │ └── axis2.jinja │ ├── carbon.jinja │ └── tomcat │ └── catalina-server.jinja └── configs.ini *configs.ini *:- This file contains 3 sections. [SETTINGS] - Configurator specific settings [DEFAULTS] - Default values of place holders [PARAMS] - Key value pairs for changing parameters Following is a sample config.ini file. Configurator will generate the xml based on values and settings provided in config.ini. These xml files will be then copied to the pack in the given folder structure. Configurator is capable of reading configs from config.ini or environment variables based on settings. If a value is not set configurator will use values defined in the DEFAULTS section of the config.ini file. On Wed, May 6, 2015 at 11:22 AM, Anuruddha Liyanarachchi anurudd...@wso2.com wrote: Hi Imesh, I have now pushed my changes to [1]. Did we had a discussion on selecting Jinja as a template engine for this? I would like to see a review of Jinja compared to other python based template engines and reasons for selecting it. Following are the technologies available similar to jinja http://jinja.pocoo.org/. Mako http://www.makotemplates.org/ Genshi http://genshi.edgewall.org/ Django https://www.djangoproject.com/ According to the Jinja website benchmarks from the testsuite show that Jinja2 has a similar performance to Mako and is between 10 and 20 times faster than Django’s template engine or Genshi[2]. Further more the [3] contains detailed comparison with real values. [1] https://github.com/anuruddhal/product-private-paas/tree/master/Configurator [2]http://jinja.pocoo.org/docs/dev/faq/ [3] http://blog.sendwithus.com/python-templating-performance-showdown-django-vs-jinja/ On Wed, May 6, 2015 at 10:05 AM, Imesh Gunaratne im...@wso2.com wrote: Good work Anuruddha! I guess you are working on a PPaaS fork. Please commit your changes to your personal git repository and arrange a code review so that we can review the implementation design at early stages. Once you are done with the initial implementation please send a PR. Did we had a discussion on selecting Jinja as a template engine for this? I would like to see a review of Jinja compared to other python based template engines and reasons for selecting it. I would recommend not to refer Puppet when designing the Configurator. It would be better think out of the box and design according to the need we have here in Carbon cartridges. Configurator would be similar to Stratos cartridge agent and might need to use the same python base plugin architecture we used in PCA. Thanks On Tue, May 5, 2015 at 7:38 PM, Rajkumar Rajaratnam rajkum...@wso2.com wrote: On Tue, May 5, 2015 at 7:15 PM, Anuruddha Liyanarachchi anurudd...@wso2.com wrote: Hi Raj, I hope this is similar to puppet, where we keep some default carbon sever configuration template files and change parameters using tags, etc. Please confirm it. Configurator changes the parameters in default carbon server configurations files by reading parameters from a file. This is similar to puppet. I would like to see the format of the file from which Configurator reads the configurations. Can you please paste that here? Please find the sample configurations file below. [DEFAULTS] clustering=true members={mgt.as.wso2.com: 4100,as.wso2.com: 4300} localMemberHost= 127.0.1.1 localMemberPort= 4100 subDomain= mgt stratos_instance_data_worker_host_name= as.wso2.com stratos_instance_data_mgt_host_name= mgt.as.wso2.com portOffset=1 http_proxy_port=80 https_proxy_port=443 We should have something similar node definition in puppet right? Otherwise, this configuration will get applied to all nodes, regardless of whether they are AS, ESB etc? Or is there any other way to handle it? Thanks. On Tue, May 5, 2015 at 7:09 PM, Reka Thirunavukkarasu r...@wso2.com wrote: Hi Anuriddha, Good work in getting the Configurator also with template model. As you have mentioned, now we can process only few files. If we are to add new files, just writing *.jinja file is enough or do we need to configure something about this file somewhere like in puppet we mentioned in the manifests? Thanks, Reka On Tue, May 5, 2015 at 5:43 PM, Anuruddha Liyanarachchi anurudd...@wso2.com wrote: Hi Devs, I have created the $subject using python and Jinja2. Configurator is now capable of generating axis2.xml, Carbon.xml and catalina-server.xml based on clustering configurations. Following structure was used to create the configurator. Currently these configurations are read from a file. I will update the thread as I move on. . ├── Configurator.iml ├── Constants.py ├── Constants.pyc ├── Main.py ├──
Re: [Dev] [CDMF] Connect IOT Devices with CDMF
Thanks Dulitha, I will look into it and let you know Regards, *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 On Fri, May 8, 2015 at 7:36 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi Ayyob, So below are the things you need to do to get things started - - You'll have to write an IoT device-mgt plugin - https://github.com/wso2/carbon-device-mgt-plugins - You'll need to write a JAX-RS layer where the IOT agent communicates - I started some work on a python based agent - https://github.com/dulichan/iot-ref-arch/tree/master/python-agent/agent. I think we can start from there. Please meet me to talk further on this. Cheers~ On Thu, May 7, 2015 at 4:52 PM, Ayyoob Hamza ayy...@wso2.com wrote: Thanks for the info Milan *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 On Thu, May 7, 2015 at 12:39 PM, Milan Perera mi...@wso2.com wrote: Hi Ayyoob, In order to enroll and manage devices, first you have to create a plugin (OSGI service) which should contain the device specific operations, policies and etc. Then you can register that plugin in the core[1]. So then you will have to implement JAX-RS service that should communicate with that plugin and get the things done. [1]https://github.com/wso2/carbon-device-mgt Thanks, On Thu, May 7, 2015 at 12:27 PM, Ayyoob Hamza ayy...@wso2.com wrote: Hi all, We are intending to enroll and manage iot devices with the cdmf. For this purpose we couldn't find a web service that could perform this task on[1].Therefore we thought of creating a patch to expose a secured JAX-RS service with basic authentication for device management. What are your thoughts on this ? [1]https://github.com/wso2/carbon-device-mgt Best Regards, *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [CDMF] Connect IOT Devices with CDMF
Hi Ayyob, So below are the things you need to do to get things started - - You'll have to write an IoT device-mgt plugin - https://github.com/wso2/carbon-device-mgt-plugins - You'll need to write a JAX-RS layer where the IOT agent communicates - I started some work on a python based agent - https://github.com/dulichan/iot-ref-arch/tree/master/python-agent/agent. I think we can start from there. Please meet me to talk further on this. Cheers~ On Thu, May 7, 2015 at 4:52 PM, Ayyoob Hamza ayy...@wso2.com wrote: Thanks for the info Milan *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 On Thu, May 7, 2015 at 12:39 PM, Milan Perera mi...@wso2.com wrote: Hi Ayyoob, In order to enroll and manage devices, first you have to create a plugin (OSGI service) which should contain the device specific operations, policies and etc. Then you can register that plugin in the core[1]. So then you will have to implement JAX-RS service that should communicate with that plugin and get the things done. [1]https://github.com/wso2/carbon-device-mgt Thanks, On Thu, May 7, 2015 at 12:27 PM, Ayyoob Hamza ayy...@wso2.com wrote: Hi all, We are intending to enroll and manage iot devices with the cdmf. For this purpose we couldn't find a web service that could perform this task on[1].Therefore we thought of creating a patch to expose a secured JAX-RS service with basic authentication for device management. What are your thoughts on this ? [1]https://github.com/wso2/carbon-device-mgt Best Regards, *Ayyoob Hamza* *Software Engineer* WSO2 Inc.; http://wso2.com email: ayy...@wso2.com cell: +94 77 1681010 %2B94%2077%207779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Utilizing JAX-RS services without rewriting APIs in the jaggery app
Hi guys, This has been a long-standing argument which we couldn't conclude. I will take Policy-Mgt as an example to explain the problem. There is a front-end UI that gives the feature to add a policy to the system. This UI will call an HTTP endpoint using Ajax. The question is regarding the implementation of the HTTP endpoint. Below are the two approaches currently used:- - Write an HTTP API in the Jaggery App - This will convert the POST input to a Java object and call an OSGi service to save it. - Write a JAX-RS service - This will convert the POST input to a Java object and call an OSGi service to save it (Object is serialized to JAXB) I am +1 for using as much as possible JAX-RS services instead of writing an HTTP API in the Jaggery App. Below are my reasons - 1. Writing a Jaggery API couples the API implementation to the Jaggery App. Jaggery App is a UI representation IMO. 2. Couples the authentication mechanism (the Session) to the API. This has currently happened in the API Manager store and publisher apps where a session cookie is needed to invoke the API [1] 3. Introducing of wrapper objects and another module layer to the Jaggery app. Since there is no JSON serialization libraries (such as a JAXB), before calling OSGi, wrapper objects have to be created. This increases the complexity in the module layer. Below are the reasons that I can think of why we need to write Jaggery APIs - - Plugin functionality to UUF? - Where a unit can contain it's API implementation. - Calling JAX-RS securely from front-end JS. We have discussed and arrived at a solution [2] I understand that we can't eliminate the module layer completely because we need to perform backend rendering. But think about it, the only time a backend rendering is needed- is to render an individual view. WDYT? [1] - https://docs.wso2.com/display/AM190/Store+APIs [2] - Calling secured JAX-RS services from the browser - Dev mail Cheers~ -- Dulitha Wijewantha (Chan) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Middleware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Sending mails to OpenIDConnect mail list
hi all, I have subscribed to the openID Connect mail list and I got subscription successful mail form them too. I am receiving their mails but the problem is I can't send mails to the thread. Once I sent a mail to the thread, I'm getting an auto generated mail by mentioning the mail awaits moderator approval. If any one have subscribed to the above mail list please advice me on this. Thanks and regards, Hasanthi Dissanayake Software Engineer | WSO2 E: hasan...@wso2.com nirosh...@wso2.com M :0718407133| http://wso2.com http://wso2.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Carbon][AppM] Calling OSGi service in Jaggery gives a NullPointerException
Hi, I think you can use the method described in the jaggery docs [1] as well. Also this does not include the getUserListOfRole method, but I see that GayanD has done the changes for it[2]. [1] http://jaggeryjs.org/documentation.jag?api=UserManager [2] [Dev] [Jaggery] Adding getUserListOfRole to the user-manager.js On Thu, May 7, 2015 at 2:22 PM, Sajith Ariyarathna sajit...@wso2.com wrote: I tried different approaches with org.wso2.carbon.user.api.UserStoreManager OSGi service, however I couldn't overcome the NullPointerException. I think one must initialize the UserStoreManager service before using it, but couldn't find an initializing method. *Solution:* Instead of using UserStoreManager OSGi service, I used org.wso2.carbon.user.core.service.RealmService OSGi service. Using the RealmService you can get TenantUserRealm object for a given tenant ID. From that you can get an UserStoreManager object. This object (usManager) has all functionality of UserStoreManager OSGi service. Refer following sample code. var carbon = require('carbon'); var store = require('store'); var server = store.server; function test(role){ var realmService = carbon.server.osgiService('org.wso2.carbon.user.core.service.RealmService'); var tenantId = server.current(session).tenantId; var usManager = realmService.getTenantUserRealm(tenantId).getUserStoreManager(); return usManager.getUserListOfRole(role); } Thanks regards. On Tue, Apr 21, 2015 at 10:52 AM, Sajith Ariyarathna sajit...@wso2.com wrote: I'm developing a web app for AppM and I want to do some user management tasks. - retrieving all users for a given role - retrieving claims of a given user To accomplish above tasks, I want to call getUserListOfRole() method getUserClaimValues() method in the org.wso2.carbon.user.api.UserStoreManager OSGi service. I wrote my Jaggery code as following based on [1] [2]. routeManager.register('GET', 'publisher', '/publisher/api/provisioning/users/{role}', function (context) { log.info(### in API call); var role = context.params.role; var carbon = require('carbon'); var userService = carbon.server.osgiService('org.wso2.carbon.user.api.UserStoreManager'); log.info(### acquired OSGi service); *#30* var usrs = userService.getUserListOfRole(role); print(usrs); }); Above code gives me a NullPointerException. [2015-04-21 10:40:02,575] INFO - provisioning_api_router:jag ### in API call [2015-04-21 10:40:02,579] INFO - provisioning_api_router:jag ### acquired OSGi service [2015-04-21 10:40:02,583] ERROR - WebAppManager org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/publisher/apis/v1/provisioning_api_router.jag#30) org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/publisher/apis/v1/provisioning_api_router.jag#30) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:536) at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.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:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at
[Dev] Why is the activate method of an OSGi bundle called more than once?
Hi all, I'm facing this situation where the activate method of an OSGi bundle[1] is called many times. As you can see in below OSGi console output, the service, that the bundle exposes, is also registered many times. What should be the reason for this strange behavior? osgi ss forum Framework is launched. id State Bundle 229 ACTIVE org.wso2.carbon.forum_1.2.0.SNAPSHOT osgi osgi osgi b 229 org.wso2.carbon.forum_1.2.0.SNAPSHOT [229] Id=229, Status=ACTIVE Data Root=/home/bhathiya/git/product-apim/modules/distribution/product/target/wso2am-1.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/229/data Registered Services {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =146} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =148} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =150} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =152} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =154} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =156} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =159} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =161} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =163} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =165} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =167} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =169} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =171} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =173} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =175} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =177} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =179} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =181} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =183} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =185} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =186} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =188} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =190} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =192} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =194} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =195} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =197} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =199} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =201} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =203} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =204} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =206} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =207} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =208} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =302} No services in use. Exported packages org.wso2.carbon.forum; version=0.0.0[exported] org.wso2.carbon.forum.dto; version=0.0.0[exported] org.wso2.carbon.forum.registry; version=0.0.0[exported] Imported packages javax.xml.namespace; version=0.0.0org.eclipse.osgi_3.8.1.v20120830-144521 [0] org.apache.axis2.context; version=1.6.1.wso2v10axis2_1.6.1.wso2v10 [13] org.apache.commons.logging; version=1.1.1org.wso2.carbon.logging_4.2.0 [295] org.osgi.framework; version=1.7.0org.eclipse.osgi_3.8.1.v20120830-144521 [0] org.osgi.service.component; version=1.2.0org.eclipse.osgi.services_3.3.100.v20120522-1822 [133] org.wso2.carbon.context; version=4.2.0org.wso2.carbon.utils_4.2.0 [462] org.wso2.carbon.governance.api.exception; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.governance.api.generic; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.governance.api.generic.dataobjects; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.governance.api.util; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.registry.core; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.registry.core.config; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.registry.core.exceptions; version=1.0.1org.wso2.carbon.registry.core_4.2.0 [355] org.wso2.carbon.registry.core.jdbc.realm; version=1.0.1org.wso2.carbon.registry.core_4.2.0
Re: [Dev] Why is the activate method of an OSGi bundle called more than once?
Hi, AFAIR this happens if any uncaught exception thrown during the bundle activate method. Try to catch with throwable and see whether you are getting any sort of runtime exceptions. Thanks, Sinthuja On Thu, May 7, 2015 at 6:59 PM, Bhathiya Jayasekara bhath...@wso2.com wrote: Hi all, I'm facing this situation where the activate method of an OSGi bundle[1] is called many times. As you can see in below OSGi console output, the service, that the bundle exposes, is also registered many times. What should be the reason for this strange behavior? osgi ss forum Framework is launched. id State Bundle 229 ACTIVE org.wso2.carbon.forum_1.2.0.SNAPSHOT osgi osgi osgi b 229 org.wso2.carbon.forum_1.2.0.SNAPSHOT [229] Id=229, Status=ACTIVE Data Root=/home/bhathiya/git/product-apim/modules/distribution/product/target/wso2am-1.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/229/data Registered Services {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =146} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =148} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =150} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =152} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =154} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =156} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =159} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =161} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =163} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =165} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =167} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =169} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =171} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =173} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =175} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =177} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =179} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =181} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =183} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =185} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =186} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =188} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =190} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =192} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =194} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =195} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =197} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =199} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =201} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =203} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =204} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =206} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =207} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =208} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =302} No services in use. Exported packages org.wso2.carbon.forum; version=0.0.0[exported] org.wso2.carbon.forum.dto; version=0.0.0[exported] org.wso2.carbon.forum.registry; version=0.0.0[exported] Imported packages javax.xml.namespace; version=0.0.0org.eclipse.osgi_3.8.1.v20120830-144521 [0] org.apache.axis2.context; version=1.6.1.wso2v10axis2_1.6.1.wso2v10 [13] org.apache.commons.logging; version=1.1.1org.wso2.carbon.logging_4.2.0 [295] org.osgi.framework; version=1.7.0org.eclipse.osgi_3.8.1.v20120830-144521 [0] org.osgi.service.component; version=1.2.0org.eclipse.osgi.services_3.3.100.v20120522-1822 [133] org.wso2.carbon.context; version=4.2.0org.wso2.carbon.utils_4.2.0 [462] org.wso2.carbon.governance.api.exception; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.governance.api.generic; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.governance.api.generic.dataobjects; version=4.2.2org.wso2.carbon.governance.api_4.2.2 [232] org.wso2.carbon.governance.api.util;
Re: [Dev] Integration test Error
What is the test framework you are using? On Thu, May 7, 2015 at 2:45 PM, Vanii Thiyagarajah va...@wso2.com wrote: Hi Chanaka, I have already enabled in axis2.xml the https transport as you mentioned. But I got this error. thank you On Thu, May 7, 2015 at 9:28 AM, Chanaka Fernando chana...@wso2.com wrote: Hi Vanii, According to the error message, axis2.xml file does not have the https transport enabled. Please go through the axis2.xml file and enable the https transport sender and receiver as mentioned below. transportReceiver name=https class=org.apache.synapse.transport.passthru.PassThroughHttpSSLListener parameter name=port locked=false8243/parameter parameter name=non-blocking locked=falsetrue/parameter !--parameter name=bind-address locked=falsehostname or IP address/parameter-- !--parameter name=WSDLEPRPrefix locked=falsehttps://apachehost:port/somepath/parameter-- parameter name=httpGetProcessor locked=falseorg.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor/parameter parameter name=keystore locked=false KeyStore Locationrepository/resources/security/wso2carbon.jks/Location TypeJKS/Type Passwordwso2carbon/Password KeyPasswordwso2carbon/KeyPassword /KeyStore /parameter parameter name=truststore locked=false TrustStore Locationrepository/resources/security/client-truststore.jks/Location TypeJKS/Type Passwordwso2carbon/Password /TrustStore /parameter !--parameter name=SSLVerifyClientrequire/parameter supports optional|require or defaults to none -- /transportReceiver transportSender name=https class=org.apache.synapse.transport.passthru.PassThroughHttpSSLSender parameter name=non-blocking locked=falsetrue/parameter parameter name=keystore locked=false KeyStore Locationrepository/resources/security/wso2carbon.jks/Location TypeJKS/Type Passwordwso2carbon/Password KeyPasswordwso2carbon/KeyPassword /KeyStore /parameter parameter name=truststore locked=false TrustStore Locationrepository/resources/security/client-truststore.jks/Location TypeJKS/Type Passwordwso2carbon/Password /TrustStore /parameter !--parameter name=HostnameVerifierDefaultAndLocalhost/parameter-- !--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -- /transportSender Thanks, Chanaka On Wed, May 6, 2015 at 6:45 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Vanil, The error message states of invalid transports. Please check this mail thread[1]. Also, please check if your configuration if you made any on the axis2 files is correct. [1] - http://mail.wso2.org/mailarchive/dev/2012-March/001991.html Thank you. Regards, Shiva Balachandran On Wed, May 6, 2015 at 4:09 PM, Vanii Thiyagarajah va...@wso2.com wrote: When I am running the integration test of billiving connector I got following error I have attached the error log . Can you please give any suggestions on this ? [2015-05-06 15:35:34,603] ERROR {org.apache.sandesha2.SandeshaModule} - Could not load module policies. Using default values. [2015-05-06 15:35:34,603] ERROR {org.apache.sandesha2.SandeshaModule} - Could not load module policies. Using default values. [2015-05-06 15:35:34,900] INFO {org.apache.synapse.transport.nhttp.HttpCoreNIOSender} - HTTP Sender starting [2015-05-06 15:35:34,900] INFO {org.apache.synapse.transport.nhttp.HttpCoreNIOSender} - HTTP Sender starting [2015-05-06 15:35:34,924] INFO {org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server} - Starting sample Axis2 server [2015-05-06 15:35:34,967] INFO {org.apache.synapse.transport.nhttp.HttpCoreNIOListener} - HTTP Listener started on 0:0:0:0:0:0:0:0:9000 [2015-05-06 15:35:34,967] INFO {org.apache.synapse.transport.nhttp.HttpCoreNIOListener} - HTTP Listener started on 0:0:0:0:0:0:0:0:9000 [2015-05-06 15:35:36,967] INFO {org.wso2.carbon.automation.core.PlatformExecutionManager} - Deploying services.. [2015-05-06 15:35:36,984] WARN {org.apache.axis2.deployment.ServiceBuilder} - Service [ DataSourceAdmin] is trying to expose in a transport : https and which is not available in Axis2 [2015-05-06 15:35:36,984] WARN {org.apache.axis2.deployment.ServiceBuilder} - Service [ DataSourceAdmin] is trying to expose in a transport : https and which is not available in Axis2 [2015-05-06 15:35:36,999] ERROR {org.wso2.carbon.automation.core.PlatformExecutionManager} - Unable to start servers org.apache.axis2.deployment.DeploymentException: Service [DataSourceAdmin] is trying expose in
[Dev] [DSS] Changing response format in a data service
Hi Devs, Say I have a DSS service as follows, data name=EPAGetContactPersonDS serviceNamespace= services.info.epa.mydeq.azdeq.gov config id=MyDeqAzuriteDS property name=carbon_datasource_nameMyDeqAzuriteDS/property /config query id=getContactPerson useConfig=MyDeqAzuriteDS sqlcall ARD_MYDEQ_EPAID_SUMMARY_PKG.get_contact_person(?, ?, ?, ?, ?, ?)/sql result defaultNamespace=http://mydeq.azdeq.gov/epa/info/data; element=contact_person_info rowName=contact_person element column=CUS_IDNO name=cus_idno xsdType=xs:string optional=true/ element column=CUSNAM_IDNO name=cusnam_idno xsdType=xs:string optional=true/ element column=PLCNAM_IDNO name=plcnam_idno xsdType=xs:string optional=true/ element column=ADDRESS_LINE1 name=address1 xsdType=xs:string optional=true/ element column=ADDRESS_LINE2 name=address2 xsdType=xs:string optional=true/ element column=CITY name=city xsdType=xs:string optional=true/ element column=STATE name=state xsdType=xs:string optional=true/ element column=COUNTRY_CODE name=country xsdType=xs:string optional=true/ element column=POSTAL_CODE name=zip xsdType=xs:string optional=true/ element column=PLUS4 name=plus4 xsdType=xs:string optional=true/ element column=START_DATE name=start_date xsdType=xs:string optional=true/ element column=CUS_EMAIL name=email xsdType=xs:string optional=true/ element column=CATEGORY name=category xsdType=xs:string optional=true/ element column=LAST_NAME name=last_name xsdType=xs:string optional=true/ element column=FIRST_NAME name=first_name xsdType=xs:string optional=true/ element column=MIDDLE_I name=middle_initial xsdType=xs:string optional=true/ element column=PREFIX name=prefix xsdType=xs:string optional=true/ element column=SUFFIX name=suffix xsdType=xs:string optional=true/ element column=KNOWN_AS name=known_as xsdType=xs:string optional=true/ element column=TITLE name=title xsdType=xs:string optional=true/ element column=COMPANY_NAME name=company_name xsdType=xs:string optional=true/ element column=AREA_CODE name=phone_area_code xsdType=xs:string optional=true/ element column=PHONE name=phone_number xsdType=xs:string optional=true/ element column=EXT name=phone_ext xsdType=xs:string optional=true/ element column=PHONE_TYPE name=phone_type xsdType=xs:string optional=true/ /result param name=p_place_idno sqlType=INTEGER/ param name=p_cus_idno sqlType=INTEGER/ param name=p_epaid sqlType=STRING/ param name=p_contact sqlType=ORACLE_REF_CURSOR type=OUT/ param name=p_err_code sqlType=STRING type=OUT/ param name=p_err_msg sqlType=STRING type=OUT/ /query resource method=GET path=getContactPerson/{p_place_idno}/{p_cus_idno}/{p_epaid} call-query href=getContactPerson with-param name=p_place_idno query-param=p_place_idno/ with-param name=p_cus_idno query-param=p_cus_idno/ with-param name=p_epaid query-param=p_epaid/ /call-query /resource /data From this service I get a response as below, { contact_person_info: { contact_person: [ { cus_idno: #, cusnam_idno: #, plcnam_idno: ##, address1: , address2: #, city: #, state: ##, country: , zip: , plus4: , start_date: ###, email: , category: , last_name: , first_name: , middle_initial: ###, prefix: , suffix: , known_as: , title: , company_name: , phone_area_code: #, phone_number: , phone_ext: , phone_type: # } ] } } But In my use case I want the the following response instead of the above. { contact_person: { cus_idno: #, cusnam_idno: #, plcnam_idno: ##, address1: , address2: #, city: #, state: ##, country: , zip: , plus4: , start_date: ###, email: , category: , last_name: , first_name: , middle_initial: ###, prefix: ,
Re: [Dev] Why is the activate method of an OSGi bundle called more than once?
Hi Bhathiya, I came across similar kind of a issue and found out that it was due to some missing constraints( some dependancy jars were missing, actually they were unavailable in osgi environment). Therefore this particular osgi bundle's activation gets failed and it retries. You can find the exact reason by catching throwable and printing stack trace in your activate method of the service component. And fix that, then the bundle will get activated for sure :) On Thu, May 7, 2015 at 7:32 PM, Sinthuja Ragendran sinth...@wso2.com wrote: Hi, AFAIR this happens if any uncaught exception thrown during the bundle activate method. Try to catch with throwable and see whether you are getting any sort of runtime exceptions. Thanks, Sinthuja On Thu, May 7, 2015 at 6:59 PM, Bhathiya Jayasekara bhath...@wso2.com wrote: Hi all, I'm facing this situation where the activate method of an OSGi bundle[1] is called many times. As you can see in below OSGi console output, the service, that the bundle exposes, is also registered many times. What should be the reason for this strange behavior? osgi ss forum Framework is launched. id State Bundle 229 ACTIVE org.wso2.carbon.forum_1.2.0.SNAPSHOT osgi osgi osgi b 229 org.wso2.carbon.forum_1.2.0.SNAPSHOT [229] Id=229, Status=ACTIVE Data Root=/home/bhathiya/git/product-apim/modules/distribution/product/target/wso2am-1.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/229/data Registered Services {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =146} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =148} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =150} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =152} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =154} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =156} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =159} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =161} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =163} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =165} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =167} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =169} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =171} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =173} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =175} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =177} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =179} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =181} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =183} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =185} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =186} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =188} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =190} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =192} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =194} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =195} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =197} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =199} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =201} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =203} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =204} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =206} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =207} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =208} {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id =302} No services in use. Exported packages org.wso2.carbon.forum; version=0.0.0[exported] org.wso2.carbon.forum.dto; version=0.0.0[exported] org.wso2.carbon.forum.registry; version=0.0.0[exported] Imported packages javax.xml.namespace; version=0.0.0org.eclipse.osgi_3.8.1.v20120830-144521 [0] org.apache.axis2.context; version=1.6.1.wso2v10axis2_1.6.1.wso2v10 [13] org.apache.commons.logging; version=1.1.1org.wso2.carbon.logging_4.2.0 [295] org.osgi.framework; version=1.7.0org.eclipse.osgi_3.8.1.v20120830-144521 [0] org.osgi.service.component;
Re: [Dev] Test Automation Framework Support for MQTT Server
Thanks Krishantha... @Waruna, please let us know if you found any option.. Thanks, Mohan On Thu, May 7, 2015 at 11:57 AM, Waruna Perera waru...@wso2.com wrote: HI Krishantha, Will check on that. Thanks, On Thu, May 7, 2015 at 11:54 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Waruna, I don't think we have enabled ActiveMQ broker for MQTT. Can you check whether MQTT endpoint is exposed. And any workaround to get it started. The version we used is 5.9.1 and it should support for MQTT. Thanks, Krishantha. On Tue, May 5, 2015 at 6:29 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Hi All, We are planning to ship MQTT event adapter support with CEP 4.0.0. We are done with the implementation but facing some issues in writing integration tests.. To test this functionality, we have used the ActiveMQ as the MQTT server. ActiveMQ version 5.9.0 and upwards contains a mqtt endpoint. Based on [1], Automation framework has activemq 5.9.1 support. But when I am trying-out, I haven't seen a mqtt endpoint. It only has below endpoint, INFO [org.apache.activemq.transport.TransportServerThreadSupport] - Listening for connections at: tcp://localhost:61616 INFO [org.apache.activemq.broker.TransportConnector] - Connector tcp:// 127.0.0.1:61616 started INFO [org.apache.activemq.broker.BrokerService] - Apache ActiveMQ 5.9.1 (testBroker, ID:mohan-ThinkPad-T530-35747-1430828992894-0:1) started INFO [org.apache.activemq.broker.BrokerService] - For help or more information please see: http://activemq.apache.org By default, ActiveMQ has mqtt endpoint in port 1883.. Can someone from Automation team help on this.. This is a blocker to consider the feature as done-done .. [1] https://wso2.org/jira/browse/TA-901 Thanks, Mohan -- *V. Mohanadarshan* *Software Engineer,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com http://wso2.com * *lean.enterprise.middleware.* email: mo...@wso2.com phone:(+94) 771117673 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *V. Mohanadarshan* *Software Engineer,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com 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] Clarification on Key validator and Key manager server profiles.
Hi All, As per the offline discussion, Key validator server profile is acting as Key manager when there is no third party Auth server is used. In the API Manager 1.9.0 pack AM_HOME/repository/conf/api-manager.xml Key validator is enabled and Key manager is being commented out by default. 1. Is there a reason why Key Manager configuration is there? 2. If so when should we enable Key manager instead of Key validator? 3. When we are clustering instead of changing Key manager configurations should we change key validation configurations and what are the configurations? Thanks Regards, Sewmini Sewmini Jayaweera *Software Engineer - QA Team* Mobile: +94 (0) 773 381 250 sewm...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] hector version upgrade from hector-core 1.1.4.wso2v1 to hector-core 2.0-.0
Hi All, We plan to upgrade hector version from hector-core 1.1.4.wso2v1 to hector-core 2.0-0 to support Java version 8. hector-core 2.0-0 required following dependencies. libthrift version 0.9.1 cassandra-thrift 2.0.12 We need to upgrade above dependencies also. Above dependencies currently existing as orbit bundles. New hector-core 2.0-0 released as an OSGi bundle. Therefore we don't need to maintain WSO2 orbit bundle but we have to release other two orbit dependencies. libthrift is used directly or transitively in below features: org.wso2.carbon.logging.mgt.server_4.4.0 org.wso2.carbon.databridge.agent.thrift.server_4.4.0 org.wso2.carbon.cassandra.datareader_4.3.4.SNAPSHOT org.wso2.carbon.tenant.common.ui_4.4.0 org.wso2.carbon.andes.ui_3.0.0.SNAPSHOT org.wso2.carbon.tenant.common_4.4.0 org.wso2.carbon.logging.mgt.ui_4.4.0 org.wso2.carbon.tenant.common.server_4.4.0 org.wso2.carbon.databridge.commons.thrift.server_4.4.0 org.wso2.carbon.tenant.throttling.agent_4.4.0 org.wso2.carbon.andes.server_3.0.0.SNAPSHOT org.wso2.carbon.tenant.deployment_4.4.0 org.wso2.carbon.messaging.andes_3.0.0.SNAPSHOT org.wso2.carbon.databridge.datapublisher_4.4.0 org.wso2.carbon.logging.mgt_4.4.0 cassandra-thrift 2.0.12 upgrade will break WSO2 Cassandra multi-tenancy implementation. Component/Feature owners, please take necessary action accordingly. Cheers! -- Indika Sampath Senior Software Engineer WSO2 Inc. http://wso2.com Phone: +94 716 424 744 Blog: http://indikasampath.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Orbit] Please review the PR for Spark 1.3.0
Hi Kasun/Sameera Can you please review and merge the PR [1]. This upgrades the spark-mllib and spark-streaming versions to 1.3.0 (for ML), with parallel to the spark-core version upgrade in BAM. [1] https://github.com/wso2/orbit/pull/87 Thanks, Supun On Thu, May 7, 2015 at 12:02 PM, Niranda Perera nira...@wso2.com wrote: thanks Maheshika On Thu, May 7, 2015 at 12:01 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun Both were deployed successfully. On Tue, May 5, 2015 at 6:54 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Niranda, Released the following orbit bundles. (finally! ;) ) spark-core_2.10 spark-sql_2.10 @Maheshika, can you release these two orbit bundles. Please make sure to use JDK 7 for building. On Tue, May 5, 2015 at 12:46 PM, Niranda Perera nira...@wso2.com wrote: Hi Kasun, Could you please check this bundle again. I fix the issue, and it did not affect the orbit bundle. rgds On Wed, Apr 29, 2015 at 5:00 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Niranda, I believe the point Supun making is if there are two versions of spark 1.3.0 has made there way into a pack, then only one version will be picked up. This is an unlikely scenario. But as a best practice, it'll be better to export the exact version from now on. On Wed, Apr 29, 2015 at 10:45 AM, Niranda Perera nira...@wso2.com wrote: Hi Supun, let me understand the scenario here. say there are 2 OSGI bundle in the environment spark v 1.3.0 and spark v 1.2.1 and we have a component org.wso2.analytics.spark.core which imports org.apache.spark version [1.2.1, 1.4.0). then AFAIK in the OSGI environment, org.wso2.analytics.spark.core gets wired to the latest version in the runtime. @carbon team pls correct me if I'm wrong but I do not think it has anything to do with the Export-Package tag in the orbit bundle. rgds On Wed, Apr 29, 2015 at 10:22 AM, Supun Sethunga sup...@wso2.com wrote: Hi Niranda, are you referring to this? Export-Package org.apache.spark.*;version=${spark.version};-split-package:=merge-first /Export-Package Yes exactly. My concern was, what if multiple versions of the same package were in the same osgi environment.. I know its very highly unlikely, but IF such a case happens, then I think spark (or any bundle) will pick up only one of the versions. Thanks, Supun On Mon, Apr 27, 2015 at 10:55 AM, Niranda Perera nira...@wso2.com wrote: Hi Supun, are you referring to this? Export-Package org.apache.spark.*;version=${spark.version};-split-package:=merge-first /Export-Package well, AFAIK what export-package does is, it exposes the org.apache.spark.* classes in the OSGI environment. since we are not doing any patching for the original classes, I dont think we have to change the version to 1.3.0.wso2v1 @sameera, pls correct me if I'm wrong. rgds On Wed, Apr 22, 2015 at 9:06 AM, Supun Sethunga sup...@wso2.com wrote: Hi Sameera/Niranda, With parallel to this, Im in the process of migrating the spark Ml-Lib and spark streaming versions for product ML. Just wanted to clear myself, shouldn't the export-package-version of all spark packages be 1.3.0.wso2v1, rather than 1.3.0? Thanks, Supun On Fri, Apr 17, 2015 at 4:39 PM, Niranda Perera nira...@wso2.com wrote: oh. are you referring to the Bundle-Classpathpatch.jar,./Bundle-Classpath line? I did not include it in the orbit bundle. but I checked the bundles in a fresh carbon server and it seems like the patch gets attached successfully. Screenshot from 2015-04-17 16:20:15.png https://docs.google.com/a/wso2.com/file/d/0B1GsnfycTl32bDMyNG5DMDhRcHc/edit?usp=drive_web I checked it with BAM pack also. bundle-classpath tag, is it mandatory to be in the for the orbit bundle, for the patch to get attached? the patch pom is as follows https://github.com/nirandaperera/carbon-analytics/blob/clustering%2B130%2BMT/components/analytics/analytics-processors/org.wso2.carbon.analytics.spark.patch/pom.xml On Thu, Apr 16, 2015 at 3:05 PM, Anjana Fernando anj...@wso2.com wrote: Niranda, yeah, we would have to put that part to be able to later patch it. A sample can be found here [1]. [1] https://github.com/wso2/orbit/blob/master/tomcat/7.0.59.wso2v2/pom.xml Cheers, Anjana. On Thu, Apr 16, 2015 at 3:00 PM, Sameera Jayasoma same...@wso2.com wrote: I meant to say, do we need to add the patch.jar line to the spark bundle as we've done in Tomcat bundle. Thanks, Sameera. On Thu, Apr 16, 2015 at 12:31 PM, Niranda Perera nira...@wso2.com wrote: Hi Sameera, No its not. The patch is in org.wso2.analytics.spark.patch component. Its still not committed to carbon - analytics Rgds On Thu, Apr 16, 2015, 12:17 Sameera Jayasoma same...@wso2.com wrote: Hi Niranda, Does this include fragment-bundle/patch modification also? Thanks, Sameera. On Thu, Apr 16, 2015 at 8:03 AM, Niranda Perera nira...@wso2.com