on 06-26-2009 9:16 AM
Hello Xperts,
I am using ICacheService and following part of code is throws exception
ICacheService cache = (ICacheService) PortalRuntime.getRuntimeResources().getService(ICacheService.KEY);
cache.put(EB_Constants.CKEY_COMPANIES, companies, true);
Any idea if I am missing any configuration on the server?
-Ashutosh
Hi Ashutosh,
Are you just trying to do this by "Deploy Archive and Run"?? If yes then try testing your application, by creating an iView in the portal.
Since you are using PortalRuntime class (ICacheService ), therefore you have to take the PRT runtime to successfully execute the ICacheService interface. It will receive an object reference only if it is able to find that class. And this class will be available only at PRT level.
I hope this solves the issues.
Thanks and Regards
Pravesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
create an iView in the portal and then test your application.
You are using PortalRuntime class, may be this class is not getting the object reference so you are getting this exception when you deploy and run...
Regards,
Saleem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
9 | |
9 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.