cancel
Showing results for 
Search instead for 
Did you mean: 

Error of using getEP5User

Former Member
0 Kudos

I used the following common methods to create resource context:

IWDClientUser wdClientUser = WDClientUser.getCurrentUser();

com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();

com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);

IResourceContext resourceContext = new ResourceContext(ep5User);

I did not get any compilation error, however got runtime error at the method of creating ep5User....did not get specific error message, only got the following "

tacktrace: [Ljava.lang.StackTraceElement;@10f310f3"

The version of NWDS I used is 7.0 SP11P, and the portal version is EP7 SP9.

Thank you for any suggestions!

Rong

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rong,

the code looks fine for me,

debug your app to find the reason, or write out your stacktrace like that...

catch(Exception e){

e.printStacktrace(response.getWriter());

// instead of response.getWriter().write(e);

}