Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-23 Thread Danushka Fernando
For the completeness of this thread, osgi services and web services are two different kind of services in carbon platform. When you run listAdminServices in osgi console it will return the web services which are admin services. We define admin services in services.xml. On the other hand for osgi se

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-23 Thread Fathima Dilhasha
Hi, Thanks Pubudu. There was a missing OSGI bundle registration for Issue Tracking component. I was able to fix the issue by fixing that. Regards, Dilhasha Fathima Dilhasha Nazeer (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineer

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-23 Thread Pubudu Dodangoda
I think you should also be able to find the wsdl for the service by giving the url shown at the OSGI console Please refer the following link on how to view the wsdl for the service(under the "Writing the service stub" section) http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-co

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Fathima Dilhasha
The service is listed in OSGI console. Where else can I check to see why the service is not found? *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Lanka* email : *dilha...@wso2.com *mobile : +94 77 8449321 On Wed, Mar 18, 2015 at 2:37 PM, Danushka Fernando wrote: > Null pointer is comi

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Danushka Fernando
Null pointer is coming from Carbon Context. So seems somehow osgi service is not found. Thanks & Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Mar 18, 2015 at 1:18 PM, Fathima Dilhasha wrote: > Hi, > > Yeah 'createProject' is a method I int

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Fathima Dilhasha
Hi, Yeah 'createProject' is a method I introduced. I've patched it to my AppFactory instance. Okay, I will debug backend code and see. Thanks. Regards, Dilhasha *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Lanka* email : *dilha...@wso2.com *mobile : +94 77 8449321 On Wed, Mar 18, 2

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Mahesh Chinthaka
Hi, Is this 'createProject' method implemented by you inside IssueTrackerService ?? Because in my code I cannot see such a method in IssueTrackerService. You can debug the backend code to find out the place where NP occurs. On Wed, Mar 18, 2015 at 11:40 AM, Fathima Dilhasha wrote: > Hi, > > I

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-17 Thread Fathima Dilhasha
Hi, I tried logging in between the steps. * tenantId and tenantDomain are not null * The null pointer exception takes place in the following line. server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName", issueTrackerConfig); Is i

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-17 Thread Fathima Dilhasha
Hi Mahesh, Thanks for the points. I'll work on those and see. Regards, Dilhasha *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Lanka* email : *dilha...@wso2.com *mobile : +94 77 8449321 On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka wrote: > Sorry I missed this, > getting modMan

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-17 Thread Mahesh Chinthaka
Sorry I missed this, getting modManager varialbe , put this befor getting the tenant domain. var modManager = jagg.module("manager"); On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka wrote: > Hi Dilhasha, > I think you havent got the tenant domain properly. > > you may use following to get ten

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-17 Thread Mahesh Chinthaka
Hi Dilhasha, I think you havent got the tenant domain properly. you may use following to get tenant domain. var tenantDomain = modManager.getTenantDomain(); you may use following to set tenant domain n id context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true); in between the

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-17 Thread Fathima Dilhasha
Thanks for the points Dhanushka. Please correct me if I have not understood the points correctly. 1. I checked in the OSGI console and it shows the osgi service I'm using. Is there any other thing I need to check? 2. I will try that out. 3. I will have to refer to the module as follows,right? *

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-17 Thread Danushka Fernando
Few points 1. Did you check whether your osgi bundle is activated or not? May be that's the issue. Seems it cannot find the osgi service. 2. When start tenant flow in setTenantDomain method there is a another signature which will take in tenantDomain (String) and resolveTenantID (bo

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-17 Thread Fathima Dilhasha
Hi Mahesh, Thanks for the response. Following is the code in saveConfig.jag include("/jagg/jagg.jag"); include("/jagg/constants.jag"); include("/jagg/config_reader.jag"); include("/modules/manager/manager.jag"); (function () { var carbon = require('carbon'); var log = new Log("module/i

Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-17 Thread Mahesh Chinthaka
Hi Dilhasha, This could be either not setting tenant domain/ id properly or, issueTrackerConfig parameter might be null at that moment. can you share the code segment of whole function please. So we can see the reason for NPE. On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha wrote: > Hi, > >

[Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-17 Thread Fathima Dilhasha
Hi, I'm trying to access an osgi service available in WSO2 Appfactory, from the 'appmgt' jaggery app. In this process I get the following exception in the server. *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR {module/issuetracker/saveConfig.jag} - org.mozilla.javascript.WrappedException: Wrappe