cancel
Showing results for 
Search instead for 
Did you mean: 

User <Administrator> is not authenticated

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Mattias
Active Participant
0 Kudos

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