Hi guys,
To be honest I normally develop in ABAP Webdynpro but have had to change to Java Webdynpro for one specific piece of development.
Here goes....I am debugging my application in Eclipse with the code being deployed remotely to the server. Here is the code snippet that is not working:
IWDClientUser wdClientUser =WDClientUser.getCurrentUser();
com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
sapUser.getAccessibilityLevel();
com.sapportals.portal.security.usermanagement.IUser ep5User =
com.sapportals.wcm.util.usermanagement.WPUMFactory.getUserFactory().getEP5User(sapUser);{code}
The BOLD line above always raises an NULLPOINTER exception.
The application is not in an iView yet on the Portal as I am still coding....but surely I can test like this?
Reason I need the user is that I need to upload files to KM......
I have all the correct JAR files installed......I think.....
1) \lib\prtapi.jar
2) Portal user management API - \portalapps\com.sap.portal.usermanagement\lib\com.sap.security.api.e p5.jar
3) \portalapps\com.sap.netweaver.bc.rf\lib\bc.rf.framework_api.jar
4) KM Repository Framework APIs - \portalapps\com.sap.netweaver.bc.rf.service\lib\bc.rf.global.service.urlgenerator_api.jar
5) Repository Framework Utility: URL Generator - \portalapps\com.sap.netweaver.bc.sf\lib\bc.sf.framework_api.jar
6)Repository Framework: Repository Services \portalapps\com.sap.netweaver.bc.util\lib\bc.util.public_api.jar
7) com.sap.security.api.perm.jar
This is really holding back my development time.....does anyone have any ideas on why it is throwing a nullpointer exception or how I can get around this error?
Thanks for the help 😉
Lynton