Re: [Dev] [DEV] Error when trying to retrieve Service Providers in IS

2014-10-25 Thread Shiva Balachandran
Hi Johann, I logged in as the Admin in the server and then executed the code block given below and the error is still popping up. I would also like to know if it is possible to use the ApplicationManagementService instance inside another package apart from the management package if the dependenci

Re: [Dev] [DEV] Error when trying to retrieve Service Providers in IS

2014-10-24 Thread Johann Nallathamby
Looks like the CarbonContext doesn't have a username. It shouldn't be the case if you have logged in to the server. Thanks, Johann. On Fri, Oct 24, 2014 at 5:38 PM, Shiva Balachandran wrote: > Hi All, > > I am doing some development work on IS, I used the following code to > retrieve all the se

[Dev] [DEV] Error when trying to retrieve Service Providers in IS

2014-10-24 Thread Shiva Balachandran
Hi All, I am doing some development work on IS, I used the following code to retrieve all the service providers ApplicationManagementService aptMgtService = ApplicationManagementService.getInstance(); try{ log.info(aptMgtService); ApplicationBasicInfo[] applicationBasicInfo = aptMgtService.getAll