on 10-05-2007 3:57 PM
Hi,
I am getting an error "User <Administrator> is not authenticated" while trying to access the Favorites thru webdynpro java.
Please have a look at the following code and I am getting an error at " collection.getChildren();"
com.sap.security.api.IUser sapUser = UMFactory.getAuthenticator().getLoggedInUser();
IUser ep5User =null;
ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
String username = ep5User.getId();
IResourceContext resourceContext = new ResourceContext(ep5User);
IResourceFactory resourceFactory = ResourceFactory.getInstance();
RID pathRID = RID.getRID("/userhome/" + username + "/favorites");
IResource resource=resourceFactory.getResource(pathRID, resourceContext);
ICollection collection = (ICollection) resource;
IResourceList resourceList = collection.getChildren();
IResourceListIterator resourceListIterator=resourceList.listIterator();
Please help me out, if anybody has any idea.
Thanks & Regards,
Ram
Hi Rambabu,
Did you find a solution for this, I'm getting the same error when trying to access a document from a Session Bean.
Regards
Mattias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.