on 04-10-2007 10:03 AM
Hi All,
I have a backend table contains user and category. once user is loggied in we will see who is logged in(In my application we see category here whether it is manager, developer, or client). Here it is my code. i'm getting null pointer exception. I do not know much about webdynpro API. Can any one help me.
try{
IWDClientUser user = WDClientUser.getCurrentUser();
//here we get user name.
if(user.getClientUserID().matches(wdContext.current__Arch__Arm_Get_User_Cat_InputElement().getIm_User()))
{
wdContext.currentOutputElement().getEx_User_Cat();
}
} catch(WDUMException e) {
e.printStackTrace();
}
finally
{
}
Any suggitions.
Thank you
Regards
Ravi
Ravi,
catch(WDUMException e) {
wdComponentAPI.getMessageManager().reportException(e.toSting(),false);
}
*Use this message manager code inside your Catch block.and Run your application to find the type of exception.
*I suggest you to null check this code
wdContext.currentOutputElement().getEx_User_Cat();
Regards,
Ramganesan K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can put some print statements and trace the place where u get null. Also look at the log for details, if any.
Regards,
Harini S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi ,
in your match function get user from output node
if(user.getClientUserID().matches(<b>wdContext.currentOutputElement().getEx_User_Cat()</b>)
{
}
I think you are getting null pointer exception because of wdContext.current__Arch__Arm_Get_User_Cat_InputElement().getIm_User() stmt.
Regards,
Sunitha
null
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.