Hi Experts,
I have a portal component which extends AbstractPortalComponent, it is as follows:
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response) { response.write("<HTML>----------"+WPUMFactory.getServiceUserFactory()+"----------</HTML>"); }
Due to the stmt WPUMFactory.getServiceUserFactory(), i m getting following error:
-
Portal Runtime Error
An exception occurred while processing a request for :
iView : myProject.myProjectComp
Component Name : myProject.myProjectComp
com/sapportals/wcm/util/usermanagement/WPUMFactory.
Exception id: 05:20_04/12/07_0020_14261850
See the details for the exception ID in the log file
-
Can anyone suggest me why i m getting this error???
Eagerly waiting for the reply and help.....
Hi,
Did you add a sharing reference to <i>knowledgemanagement</i> in the portalapp.xml?
If not, please do so.
Best regards,
Avishai Zamir
because WPUM..... returns an object of type com.sapportals.portal.security.usermanagement.IUser
If you want to print the username or so do:
com.sapportals.portal.security.usermanagement.IUser iuser = WPUM....
iuser.getDisplayName();
The second statement returns a string
Im sure this will help you.
Add a comment