[Dev] Integration Testing for an Admin Service
Hi, How can I perform $subject? Note : I followed the following article to write the service http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Thanks -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Pls merge the pull request
Sorry about the mistake(there were .idea files) I ignored them and created a new pull request as suggested by Dunith and Lakshman Please merge the pull request [2] <https://github.com/wso2/carbon-analytics-common/pull/4> [2] https://github.com/wso2/carbon-analytics-common/pull/4 Thank You and Kind Regards, On Wed, Mar 25, 2015 at 4:55 PM, Pubudu Dodangoda wrote: > > Hi Dunith, > > Please merge the pull request [1] > <https://github.com/wso2/carbon-analytics-common/pull/3> which consists > of the back-end code for analytics dashboard > > [1] https://github.com/wso2/carbon-analytics-common/pull/3 > > Thank You and Regards, > -- > Pubudu Dodangoda > BSc Engineering(Hon's) Undergraduate > Department of Computer Science Engineering > University of Moratuwa > 0716053681 / 0775192994 > -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Pls merge the pull request
Hi Dunith, Please merge the pull request [1] <https://github.com/wso2/carbon-analytics-common/pull/3> which consists of the back-end code for analytics dashboard [1] https://github.com/wso2/carbon-analytics-common/pull/3 Thank You and Regards, -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Granting permission per method in an Admin Service
Hi Danushka, Thanks for the reply, What I don't understand here is this part , "/permission/admin/manage/ event-streams" Can you explain it a bit Thanks and Regards, On Tue, Mar 24, 2015 at 1:25 PM, Danushka Fernando wrote: > Hi Pubudu > Yes it's doable with mentioned code. What it says is authorize the given > operation for the mentioned permission. > > Thanks & Regards > Danushka Fernando > Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > > > On Mar 24, 2015 11:53 AM, "Pubudu Dodangoda" wrote: > >> Is it possible to do $Subject by editing the services.xml file? >> >> I think adding something similar to follows should do. But I have no idea >> about the elements and the attributes in the following xml code section >> >> >> >> /permission/admin/manage/event-streams >> >> >> >> Can someone explain the above code-section, and how it would be used in >> another case? >> >> Reference - CEP-Event Stream manager - services.xml >> <https://github.com/wso2/carbon-event-processing/blob/master/components/event-stream/event-stream-manager/org.wso2.carbon.event.stream.manager.admin/src/main/resources/META-INF/services.xml> >> >> Thank you, >> -- >> Pubudu Dodangoda >> BSc Engineering(Hon's) Undergraduate >> Department of Computer Science Engineering >> University of Moratuwa >> 0716053681 / 0775192994 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Granting permission per method in an Admin Service
Is it possible to do $Subject by editing the services.xml file? I think adding something similar to follows should do. But I have no idea about the elements and the attributes in the following xml code section /permission/admin/manage/event-streams Can someone explain the above code-section, and how it would be used in another case? Reference - CEP-Event Stream manager - services.xml <https://github.com/wso2/carbon-event-processing/blob/master/components/event-stream/event-stream-manager/org.wso2.carbon.event.stream.manager.admin/src/main/resources/META-INF/services.xml> Thank you, -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] JSON parsing platform standard library
Hi Inosh, I have used gson and jackson few times. Jackson seems to be faster. but gson on the other hand is more compatible. Reason for mentioning that is, I had problems when using jackson with SOAP. If you don't have much issues regarding the speed, I recommend using gson, as it is more compatible, easy to use, and easy to understand Regards, Pubudu. On Tue, Mar 24, 2015 at 1:14 AM, Vishanth Balasubramaniam < vishan...@wso2.com> wrote: > Hi Inosh, > > IMO i think it is either Jackson or Gson. Jackson is considered to be a > faster library than Gson and also I remember Gson was having some case > insensitive problem, I am not sure if it still does. > > Regards, > Vishanth. > > On Mon, Mar 23, 2015 at 10:57 PM, Prabath Abeysekera > wrote: > >> Hi Guys, >> >> Came across [4] while I was searching for any good performance benchmark >> done over the JSON parser libraries around. As it appears, the results were >> published like 3 years back and I'm pretty sure that most of these >> libraries have come a long way since then. However, based on the results >> the blog carries, I'm tempted to use either Jackson or Staxon purely >> because of the performance numbers, since there's going to be loads of >> serialization/de-serilaization of JSON messages taking place in the >> critical path as part of most of the MDM functionalities. One interesting >> point to note is that, even though, the numbers published against Staxon >> doesn't look too attractive, things can perhaps be different if we properly >> use it in its streaming-mode. Therefore, I'd prefer we do some tests around >> and select one out of the libraries mentioned above. >> >> @Inosh, would you be able check on this and see what suits us the most? >> >> [4] >> http://blog.novoj.net/2012/02/05/json-java-parsers-generators-microbenchmark/ >> >> Cheers, >> Prabath >> >> On Mon, Mar 23, 2015 at 9:41 PM, Ishan Jayawardena >> wrote: >> >>> Hi Inosh, >>> ESB uses StAXON [1] in builders/formatters and Jayway JsonPath [2] for >>> JSONPath evaluation. >>> The ScriptMediator depends on google-gson[3] >>> >>> [1] https://github.com/beckchr/staxon >>> [2] https://github.com/jayway/JsonPath >>> [3] https://code.google.com/p/google-gson/ >>> >>> Thanks, >>> Ishan. >>> >>> >>> On Mon, Mar 23, 2015 at 7:25 PM, Inosh Perera wrote: >>> >>>> Hi all, >>>> What is platform standard library used for JSON parsing? I have seen >>>> some variation such as Gson, Jackson, jsonpath. >>>> >>>> Regards, >>>> Inosh >>>> >>>> -- >>>> Inosh Perera >>>> Software Engineer, WSO2 Inc. >>>> Tel: 0785293686 >>>> >>>> ___ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Ishan Jayawardena >>> Senior Software Engineer >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Prabath Abeysekara >> Associate Technical Lead, Data TG. >> WSO2 Inc. >> Email: praba...@wso2.com >> Mobile: +94774171471 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Vishanth Balasubramaniam* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: *+94771737718* > about me: *http://about.me/vishanth <http://about.me/vishanth>* > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory
acker/get/saveConfig.jag:26)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.call(/appmgt/modules/issuetracker/get/saveConfig.jag)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c0.exec(/appmgt/modules/issuetracker/get/saveConfig.jag)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)* >>>>>>>>>>>> * 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:305)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)* >>>>>>>>>>>> * 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 >>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)* >>>>>>>>>>>> * at >>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)* >>>>>>>>>>>> * at >>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)* >>>>>>>>>>>> * at java.lang.Thread.run(Thread.java:744)* >>>>>>>>>>>> *Caused by: java.lang.NullPointerException* >>>>>>>>>>>> * at >>>>>>>>>>>> org.wso2.carbon.context.PrivilegedCarbonContext.getOSGiService(PrivilegedCarbonContext.java:448)* >>>>>>>>>>>> * at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown >>>>>>>>>>>> Source)* >>>>>>>>>>>> * at >>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)* >>>>>>>>>>>> * at java.lang.reflect.Method.invoke(Method.java:606)* >>>>>>>>>>>> * at >>>>>>>>>>>> org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)* >>>>>>>>>>>> * ... 50 more* >>>>>>>>>>>> * {module/issuetracker/saveConfig.jag}* >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Following is the code segment in saveConfig.jag, which is >>>>>>>>>>>> responsible for calling the osgi service. >>>>>>>>>>>> >>>>>>>>>>>> try{ >>>>>>>>>>>> >>>>>>>>>>>> context.startTenantFlow(); >>>>>>>>>>>> context.getThreadLocalCarbonContext().setTenantId(tenantId); >>>>>>>>>>>> >>>>>>>>>>>> context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain); >>>>>>>>>>>> >>>>>>>>>>>> server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject("applicationName", >>>>>>>>>>>> issueTrackerConfig); >>>>>>>>>>>> }catch(e){ >>>>>>>>>>>> log.error(e); >>>>>>>>>>>> }finally{ >>>>>>>>>>>> context.endTenantFlow(); >>>>>>>>>>>> } >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> It would be really helpful, if someone can help me to overcome >>>>>>>>>>>> this problem. >>>>>>>>>>>> >>>>>>>>>>>> Thanks. >>>>>>>>>>>> Regards, >>>>>>>>>>>> Dilhasha >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> *M.N.F. Dilhasha* >>>>>>>>>>>> Software Engineering Intern | *WSO2 Lanka* >>>>>>>>>>>> >>>>>>>>>>>> email : >>>>>>>>>>>> *dilha...@wso2.com *mobile : +94 77 8449321 >>>>>>>>>>>> >>>>>>>>>>>> ___ >>>>>>>>>>>> Dev mailing list >>>>>>>>>>>> Dev@wso2.org >>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> *Mahesh Chinthaka Vidanagama* | Software Engineer >>>>>>>>>>> WSO2, Inc | lean. enterprise. middleware. >>>>>>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>>>>>>>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >>>>>>>>>>> Email: mahe...@wso2.com | Web: www.wso2.com >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ___ >>>>>>>>>> Dev mailing list >>>>>>>>>> Dev@wso2.org >>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> *Mahesh Chinthaka Vidanagama* | Software Engineer >>>>>>>> WSO2, Inc | lean. enterprise. middleware. >>>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>>>>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >>>>>>>> Email: mahe...@wso2.com | Web: www.wso2.com >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> *Mahesh Chinthaka Vidanagama* | Software Engineer >>>>>>> WSO2, Inc | lean. enterprise. middleware. >>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>>>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >>>>>>> Email: mahe...@wso2.com | Web: www.wso2.com >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> *Mahesh Chinthaka Vidanagama* | Software Engineer >>>> WSO2, Inc | lean. enterprise. middleware. >>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >>>> Email: mahe...@wso2.com | Web: www.wso2.com >>>> >>> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Sending an Arraylist using a SOAP mesage
How can I perform $subject ? I can send other data(string, int, objects etc) But when I try to send an Arraylist, I get the following value at the debugger {OMElementmpl@10789}"http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";>my role" this is the soap message I sent http://schemas.xmlsoap.org/soap/envelope/"; xmlns:adm="http://admin.dashboard.analytics.carbon.wso2.org"; xmlns:xsd=" http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";> myId my role my role2 Thank You and kind Regards -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Carbon Context API Documentation
If I say it specifically,I want to know how to get all the resources in a directory in registry I know how to do this when the resource names are known, by using this registry.getResource("resourceName") I want to get all the resources Thank You and kind regards On Mon, Mar 16, 2015 at 1:19 PM, Pubudu Dodangoda wrote: > Where can I find the complete documentations for carbon context API? link > <https://docs.wso2.com/display/Carbon420/CarbonContext+API> > > I mean something similar to this collections > <http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html> > > My truest intention is to get an idea about the methods provided in this > API for Registry access > > If someone can point me in the correct direction, I'd be very much > grateful > > Thank You > -- > Pubudu Dodangoda > BSc Engineering(Hon's) Undergraduate > Department of Computer Science Engineering > University of Moratuwa > 0716053681 / 0775192994 > -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Carbon Context API Documentation
Where can I find the complete documentations for carbon context API? link <https://docs.wso2.com/display/Carbon420/CarbonContext+API> I mean something similar to this collections <http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html> My truest intention is to get an idea about the methods provided in this API for Registry access If someone can point me in the correct direction, I'd be very much grateful Thank You -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [GSoC2015] Proposal 18: Extensible Visual Composer Siddhi Language
Hi, I am Pubudu Dodangoda, an Engineering undergraduate from Computer Science and Engineering department, University of Moratuwa. At the moment I am an intern, here, at WSO2, assigned to BAM. I went through the GSoC proposal list. I am interested in proposal [1] <https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal18:ExtensibleVisualComposerSiddhiLanguage> and looking forward to contribute. I would like to have a discussion on further details regarding the $subject and how I can contribute for the Project. Prior Experience - 1. My fast track training project was on a similar tech-scope, which was to develop a visualization JS library(IGVIZ) using D3JS and currently being improved by us(Dunith, Tharindu, Fawsan, and I) which will be used in CEP and BAM in the upcoming releases. 2. Ongoing project for the Analytics- Dashboard which involves JS, Bootstrap, HTML, JSP, SOAP-backend(now), Rest(earlier),etc is now under development(final phases). Please let me know when you could share your time for this. [1] ExtensibleVisualComposerSiddhiLanguage <https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal18:ExtensibleVisualComposerSiddhiLanguage> Thank You and Kind Regards -- *Pubudu Dodangoda* BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering(CSE) University of Moratuwa *0716053681* / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSDL generation for SOAP webservice ISSUE
I am trying to write a carbon component by referring link <http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/> I can generate the correct WSDL file for a simple service But when the service class is kind of complex, I get the following issue, when trying to test the wsdl using SOAP UI *Source:* https://10.100.4.135:9443/services/DashboardAdminService?wsdl *Error:* type 'Enum@http://www.w3.org/2001/XMLSchema' not found. I googled the issue and found this on stackoverflow <http://stackoverflow.com/questions/6017441/generate-wsdl-file-and-webservice-client-based-on-wsdl-file-in-maven> But I am unable to solve the issue What can I do to solve this? Note- I think the problem is when trying to convert complex objects(objects inside objects) into xml I have attached below the WSDL file here, in it, the "widgets" element is a complex object in the corresponding service class Thank You and Kind Regards -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 http://schemas.xmlsoap.org/wsdl/"; xmlns:ns1="http://org.apache.axis2/xsd"; xmlns:ns="http://admin.dashboard.analytics.carbon.wso2.org"; xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; targetNamespace="http://admin.dashboard.analytics.carbon.wso2.org";> DashboardAdminService http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";> http://context.carbon.wso2.org/xsd";> http://context.carbon.wso2.org/xsd"; xmlns:ax24="http://data.admin.dashboard.analytics.carbon.wso2.org/xsd"; attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://admin.dashboard.analytics.carbon.wso2.org";> http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";> http://context.carbon.wso2.org/xsd";> http://schemas.xmlsoap.org/soap/http"; style="document">
[Dev] Governance Registry Help
I am trying to save Objects in the registry as resources via a REST api A resource is successfully saved and can be downloaded when the content is a String But whenever I try to save some other type of object, and try to download the resource, I get the following error message in the terminal. ( A resource is saved, but cannot be downloaded, it redirects to the same page) [2015-03-09 12:15:13,657] ERROR {org.wso2.carbon.registry.resource.ui.utils.GetResourceContentProcessor} - The resource content was empty. Is there any special procedure to be followed when saving an object of type other than String Thank you and Kind Regards -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] GSoc-2015 Proposal - User-Managed Access (UMA) Profile for OAuth2
Hi, I am Pubudu Dodangoda, an Engineering undergraduate from Computer Science and Engineering department, University of Moratuwa. I went through the GSoC proposal list and interested in proposal [1] <https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal7:User-ManagedAccess(UMA)ProfileforOAuth2> and looking forward to contribute. Currently I am in the BAM team I am working on a Rest API backend for BAM analytics Dashboard using Apache CXF (Used WSO2 developer studio) I worked with the User management stub to authenticate a user as a test I will be using OAuth to replace this in the near future Please let me know if we could have a discussion on $subject [1] User-Managed Access (UMA) Profile for OAuth2 <https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal7:User-ManagedAccess(UMA)ProfileforOAuth2> Thank You and Kind Regards, -- *Pubudu Dodangoda* Software Engineering Intern WSO2 Inc.(http://wso2.com) SRI LANKA 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Registry Access Using Carbon Context
I am trying to access the local registry (to save and to get a resource) I get the following exception, java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: loader constraint violation: when resolving method "org.apache.axis2.util.XMLUtils.toOM(Lorg/w3c/dom/Element;)Lorg/apache/axiom/om/OMElement;" the class loader (instance of org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current class, org/wso2/carbon/utils/multitenancy/CarbonContextHolder, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, org/apache/axis2/util/XMLUtils, have different Class objects for the type MElement; used in the signature Last time when I got this exception, adding Provided to the respective artifact dependency solved the problem But here, when I do that I get a NoSuchMethod Exception for the line where the Carbon Context is defined Notes- I used the following code for registry access CarbonContext cctx= CarbonContext.getCurrentContext(); Registry registry=cctx.getRegistry(RegistryType.LOCAL_REPOSITORY); try{ Resource resource=registry.newResource(); resource.setContent("Dashboard_Test"); registry.put("RandomPath", resource); }catch(RegistryException re){ re.printStackTrace();} Thank You -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Internal User Authentication
I have a method which authenticates a user using an authentication stub, which requires the code to provide the service end point and the configuration context specifically Is there a way to authenticate a user internally without going on this long route? Note- The web app is hosted inside the BAM, and start automatically when the carbon server starts -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] (no subject)
Sending null as the remote address param solved the problem! On Tue, Feb 17, 2015 at 2:14 PM, Pubudu Dodangoda wrote: > > I am trying to authenticate a valid user (say admin/admin) via a > webservice which is hosted inside the BAM > The procedure I followed is as follows > > Create an AuthenticationAdminStub > login using admin/ admin > > I have 3 issues > 1) Will this procedure work? > 2)What should be the service URL which should be given as a parameter to > the AuthenticationAdminStub? > 3)What should be the remote address which should be given to the > login(userName,password,remoteAddress) method? > -- > Pubudu Dodangoda > BSc Engineering(Hon's) Undergraduate > Department of Computer Science Engineering > University of Moratuwa > 0716053681 / 0775192994 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] (no subject)
I am trying to authenticate a valid user (say admin/admin) via a webservice which is hosted inside the BAM The procedure I followed is as follows Create an AuthenticationAdminStub login using admin/ admin I have 3 issues 1) Will this procedure work? 2)What should be the service URL which should be given as a parameter to the AuthenticationAdminStub? 3)What should be the remote address which should be given to the login(userName,password,remoteAddress) method? -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Authenticate a User Help
I am trying to authenticate a valid user (say admin/admin) via a webservice which is hosted inside the BAM The procedure I followed is as follows Create an AuthenticationAdminStub login using admin/ admin I have 3 issues 1) Will this procedure work? 2)What should be the service URL which should be given as a parameter to the AuthenticationAdminStub? 3)What should be the remote address which should be given to the login(userName,password,remoteAddress) method? -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] User Authentication using AuthenticationAdminStub
I am trying to authenticate admin/admin user using the org.wso2.carbon.authenticator.stub.AuthenticationAdminStub I get the following exception "org.apache.axis2.AxisFault: Connection has been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty" Following is a portion of the code, String trustStore = System.getProperty("user.dir") + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator + "wso2carbon.jks"; System.setProperty("javax.net.ssl.trustStore", trustStore); System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon"); serviceEndPoint = "https://localhost:9443/dashboardConfigs/ "; AuthenticationAdminStub authStub = new AuthenticationAdminStub(serviceEndPoint); authStub._getServiceClient().getOptions().setManageSession(true); authenticate = authStub.login("admin", "admin","localhost"); Can someone propose a solution? Thanks -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Configuration Context Help
I am trying to authenticate a user using the org.wso2.carbon.user.mgt.stub When I run the client an exception occurs while trying to access the following method configContext =ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,null); java.lang.LinkageError: loader constraint violation: when resolving method "org.wso2.securevault.SecretResolverFactory.create(Lorg/apache/axiom/om/OMElement;Z)Lorg/wso2/securevault/SecretResolver;" the class loader (instance of org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current class, org/apache/axis2/deployment/AxisConfigBuilder, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, org/wso2/securevault/SecretResolverFactory, have different Class objects for the type iom/om/OMElement;Z)Lorg/wso2/securevault/SecretResolve What am I missing. What should be given as a configuration context for the AuthenticationAdminStub(...) method? Thanks -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev