Standard Error Messages in Custom Change Password Screen

Hi All,
I've developed a custom change password screen in Web Dynpro. I want to use the standard messages that appear in the portal logon screen. I looked in the portal logon par and got the umelogonbase.jar and found in my eclipse dir the com.sap.security.core.jar wich this last one depends. I put then in an externallib and wrapped them in a JEE lib. Declared dependency from my WD DC to the JEE lib and added the library reference in the WD DC.
I have the following code:
try {
     IUserAccount userAcc = UMFactory.getUserAccountFactory().getUserAccountByLogonId(wdContext.currentInfoElement().getLogon());
     userAcc.setPassword(wdContext.currentInfoElement().getOldPassword(), wdContext.currentInfoElement().getNewPassword());
} catch (UMException e) {
     e.printStackTrace();
     error = true;
     LogonMessageBean bean = new LogonMessageBean(WDClientUser.getLoggedInClientUser().getLocale());
     String msg = bean.print(new Message(e.getMessage()));
     wdComponentAPI.getMessageManager().reportWarning(msg);
But when I try to execute my app I get the following exception:
   java.lang.VerifyError: (class: com/cafedecolombia/ols/um/ChangePassword, method: test signature: ()V) Incompatible object argument for function call
    at com.cafedecolombia.ols.um.wdp.InternalChangePassword.(InternalChangePassword.java:109)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    ... 28 more
Does anyone has successfully done this? Is there any other dependencies? Is there an EASIER way to do this? Is there any initialization needed?
Any help will be highly appreciated.
Regards,
Andrés Acero

Ok so here is how I solved it.
I found this very interesting article called "SAP Authentication Guideline" and there the author mentions that the messages are defined in class SecuritPolicy of the core security jar. So with that in mind this is how my code finally worked out:
try {
     IUserAccount userAcc = UMFactory.getUserAccountFactory().getUserAccountByLogonId(wdContext.currentInfoElement().getLogon());
     IUserAccount mutableUserAcc = UMFactory.getUserAccountFactory().getMutableUserAccount(userAcc.getUniqueID());
     mutableUserAcc.setPassword(wdContext.currentInfoElement().getOldPassword(), wdContext.currentInfoElement().getNewPassword());
     mutableUserAcc.commit();
} catch (UMException e) {
     e.printStackTrace();
     error = true;
     ISecurityPolicy policy = SecurityPolicyFactory.getInstance().getSecurityPolicy();
     wdComponentAPI.getMessageManager().reportWarning(policy.getLocalizedMessage(WDClientUser.getLoggedInClientUser().getLocale(), e));
Here is a link to the article on SDN:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/599ab890-0201-0010-12a1-b988e3a09735
If you have any comments please do.
Cheers,

Similar Messages

  • Complete List of Error Codes for Customized Change Password Page

    Hi,
    does anyone has a complete list of "Change Password Page Error Codes"?
    The list provided in the document:
    Oracle® Application Server Single Sign-On Administrator's Guide
    10g (9.0.4)
    Part Number B10851-01
    seems to be incomplete. (See: http://download-uk.oracle.com/docs/cd/B10464_01/manage.904/b10851/custom.htm#1009955 )
    I found at least three additional / different error codes:
    auth_fail_err
    pwd_minlength_err
    pwd_numeric_err
    I'm using a JSP Page.
    Thanks for help

    Hi,
    I found the list in the OID Admin Documentation. The list contains the error messages the OID sends to the client. In case of SSO, the client for the OID is the SSO server. So now I know which errors are transmitted to the server, I have to find out what the server sends to the SSO Page for Password change. Probably I should test all cases documented in the OID Admin doc to find the appropriate values for SSO Server.
    Thanks for the tip

  • Change Password Screen error in - External Facing Portal

    HI,
    We have developed an external facing portal for anonymous users and the EFP has protected content which will redirect the users to enter logon information to access it.
    The process of authentication also working well in EFP but we are getting some strange error when the password was "reset' by administrator.
    Here is the process...
    1. Password 'reset" by administrator
    2. user clicks on "protected content"
    3. Logon screen displayed
    4. After entering details, should be redirected to change their password but instead of that we are getting "Java iView Runtime error"
    I need expert views on this to solve.
    This is happening only when accessing EFP, user will be redirecting successfully to change password screen when accessing through "/irj/portal"
    Any solution.
    Thanks
    MMK

    Here is the scenario ..
    1. User's password was reset by administrator.
    **That's fine.
    2. User gets redirected to change their password when logging (first time after reset) ... when accessing via .. http://<server>:<port>/irj/portal
    **That's ok too, this is just a redirection.  At this point I would be doing https for external customers though.
    3. Occured "Java Ivew run time error" when the user trying to login from External Facing Portal ... via .. http://<server>:<port>/irj/portal/anonymous?guest_user=partners
    **At this point you will have to look at your .trc log files. (logviewer)   If this is just an access denied issue then look at permissions in the roles or groups.  If you are assigning a new password, is that effecting a group or system membership?  The .trc files will give a heads up.

  • When I try entering a new event in iCal on my MacBook Air, I get an error message popping up on my screen that says: The request for account "iCloud" failed.  The server responded with "502" to operation CalDAVSetPropertyQueueableOperation. Help!!??

    When I try entering a new event in iCal on my MacBook Air, I get an error message popping up on my screen that says:
    The server responded with “502”
    The request for account “iCloud” failed. 
    The server responded with “502” to operation CalDAVSetPropertyQueueableOperation.
    The request for account “iCloud” failed.
    I am then given the option of staying Online or going Offline.
    Can anyone help me?
    thanks

    Hello b.krushel,
    Thank you for using Apple Support Communities
    Any number of things could cause this issue, so I would recommend this article named iCloud: Troubleshooting iCloud Calendar found here http://support.apple.com/kb/TS3999.
    These sections in particular:
    General Troubleshooting
    Make sure there are no current issues listed on the System Status that affect iCloud Calendar. The System Status is located on the iCloud Support webpage.
    Make sure you have fully enabled iCloud Calendar for the client you are using (for more setup and troubleshooting information on iOS, OS X, Windows and iCloud.com, see the additional details below).
    Check to see if the issue you are seeing is covered in iCloud Help. To search iCloud Help, visit help.apple.com/icloud.
    Check your settings and preferences as something may not be set up correctly. For example, having incorrect date and time settings can cause issues which are easily resolved by entering the appropriate settings.
    Troubleshooting Calendar on OS X Mountain Lion (iCal on OS X Lion)Note: For instructions on setting up iCloud Calendar with Calendar or iCal on your Mac, see iCloud Setup.If you are having trouble with Calendar or iCal on a Mac and you are using iCloud Calendar, try each of these steps, testing after each to see if the issue is resolved:
    Make sure you are using OS X Lion v10.7.2 or later. Click here for help verifying the version of OS X you are using.
    Make sure your computer is online. Attempt to view www.apple.com and iCloud.com. If you can't connect to the Internet, your iCloud calendars and events will not update in iCal. Click here for more information about troubleshooting your Internet connection.
    Verify that your iCloud member name is entered into the iCloud Preference pane in System Preferences. See iCloud Setup for more information about setting up iCloud on a Mac.
    Make sure you enter and update calendar information in the iCloud section of Calendar or iCal. Only calendars and events in the iCloud section of the Calendar or iCal Calendar list will be pushed to iCloud. Both Calendar and iCal for the Mac support the display of and interaction with multiple accounts and datastores, for example, iCloud, On My Mac, Exchange, Google, and so on. This makes it easy to create or modify events or calendars in a section of  Calendar or iCal that may not be updating iCloud. Learn more about moving local calendars to iCloud.
    In some cases, you may find that you have data duplicated in both the local On My Mac and the iCloud sections of Calendar or iCal. Learn more about resolving this issue.
    You can make the iCloud calendar your default calendar for all new events. In Calendar on OS X Mountain Lion, choose Calendar > Preferences > General, or in OS X Lion, choose iCal > Preferences > Generaland under the Default Calendar heading, select one of the Calendars under the iCloud heading. Close the Preferences window to save this change.
    If recent changes simply don't appear, try forcing Calendar or iCal to refresh by selecting Refresh All from theCalendar menu.
    Make sure your account was successfully created in Calendar on your Mac (or iCal). After upgrading to iCloud Calendar, you may need to quit and reopen Calendar (or iCal). To confirm your account is configured correctly in iCal:
    Open Calendar (or iCal).
    Open Calendar (or iCal) Preferences.
    Click Accounts. You should see an account with your iCloud member name entered.
    Turn iCloud Calendars off and back on
    Quit Calendar (or iCal).
    Choose Apple () menu > System Preferences > iCloud.
    Remove the checkmark in the checkbox next to Calendars.
    Close System Preferences and wait about a minute.
    Open System Preferences and choose iCloud.
    Replace the checkmark next to Calendars.
    Close System Preferences.
    Open Calendar (or iCal) and test to see if the issue has been resolved.
    Restart your computer. This may sound simple, but it does reinitialize your network and application settings and can frequently resolve issues.
    Take care,
    Sterling

  • Error message in customer exit

    HI ABAPer's,
    I am facing the one problem  while giving the error message in customer exit  ZXM06U43(POCustomer exit). The scenario is i am looping the  tekpo(PO line item) internal tables and doing some validations if any lineitem fail in the validation i need  give the error message .I dd the  but all ways it showing the error in last line item in the  PO.
    Thanks,
    Harinath

    Hi,
    You have to either leave the screen. Also you can try EXIT in place of LEAVE SCREEN as per suitable to your transaction.
    SAMPLE CODE:
      IF SY-SUBRC <> 0.
        MESSAGE E059(ZGO) WITH I_MSEG-MATNR I_MSEG-AUFNR.
        LEAVE SCREEN.
      ENDIF.
    Regds,
    Anil
    Edited by: Anil Katoch on Sep 3, 2009 7:37 AM

  • HT5538 Every time I try to use apple ID for face time I got an error message "the username or password was incorrect" although they are right and I use them in App Store and I cloud even after resetting my password

    Every time I try to use apple ID for face time I got an error message "the username or password was incorrect" although they are right and I use them in App Store and I cloud even after resetting my password, the problem happens also with iMessage . Please help

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • My iphone 3GS no longer syncs with iTunes. The phone is recognised, backs up but then I get an error message: "Waiting for changes to be applied". BUT unlike other people, it doesn't stay stuck on it, instead the process closes down immediately

    Hi all,
    Apologies: I've just joined the community and didn't quite figure how to write a msg! Hope it works...
    Anyway,
    I read many posts on this annoying error message (Waiting for changes to be applied) in the last 2/3 days, but they all refer to the sync staying stuck on it.
    Mine doesn't.
    I read the message, then it quickly shuts down the sync and the iTunes progress bar only shows the apple...
    As suggested by many, I removed voice msgs, turned off/on, tried to sync in individual stages (calendar only...) but nothing works.
    I am up to date on iTunes (11.1.1.11) and have IOS 6.1.3 on my phone, to sync on a Win8 pc (all worked fine until recently).
    I have had this phone for several years and it has never done this.
    It worked absolutely fine, until I loaded the latest version of iTunes it seems...
    Any suggestions?
    Many thanks

    ALSO, on the iPod under Settings>General>iTunes Sync, you may need to back out of the "iTunes Wi-fi Sync," and reopen it to get it to update.
    (I use iTunes 11.1.5.5)

  • I get error messages frequently when changing windows or starting firefox

    this is the fourth time i'm trying to contact you guys. i keep getting error messages when i changed windows saying oops this is embarassing... etc. try again button works sometimes, sometimes not, if not have to restart, erases my bookmark menu tabs which i LOVE, and sometimes they come back. i love you guys so much more than internet explorer, but i have had to use internet explorer now almost all the time because of this problem. also, if you could make it so that one can delete blocks of unwanted email (like click the first unwanted email and the last one and then control/shift like in the old days) that would be AWESOME, but i have found that i can't do this in other applications anymore either so maybe it's something windows operating systems took out as they make new versions, but if you guys could create it in your email site wow, everyone would LOVE YOU!!!!!! so many do already, all my IT guys use you and my friends who are halfway computer literate. i hope you can help me with my problem, also i think i read you partner with clients for their websites to improve/add features. is that true? i'd love to do that if so, i'm using go daddy now, and haven't done half the stuff i want to do on my site. thank you for your positivity and you guys make up for those nasty virus makers who wreck people's lives, businesses,.. using their brilliance to harm people, it so sad. thank you again. i hope this goes through this time. i think i'm going to copy and paste it this time on Word so I can mail it to you if i screw up again!
    thank you again so much!
    Deborah Wong, MD
    == This happened ==
    A few times a week
    == 5-8 weeks ago ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; MSDigitalLocker; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    HOW FRUSTRATING! NOW WHAT IS HAPPENING? WHEN I GO TO ANY WEBSITE THE PAGE FREEZES. TOP OF PAGE READS, MOZILLA FIREFOX NOT RESPONDING, THINK I"LL GO BACK TO IE, WAY TOO MANY ERRORS AND NO TECH SUPPORT ANSWERS

  • Standard Error message

    Hi,
    I have a Internal table from which i need to update to a DB table. while Inserting or modfying record to DB table,I need to capture the standard error message. For ex.. PErsonnel number is Locked.
    And i need to dispaly all these error message list in a report.
    My Q is, How to get the standard error message.
    Thanks,
    Kanal.

    Hi,
      call function 'HR_INFOTYPE_OPERATION'
        exporting
          infty          = '0416'
          number        = p0416-pernr
          subtype       = p0416-subty
          objectid      = p0416-objps
          lockindicator = p0416-sprps
          validityend   = p0416-endda
          validitybegin = p0416-begda
          recordnumber  = p0416-seqnr
          record        = p0416
          operation     = 'EDQ'
          nocommit      = nocommit
        importing
          return        = error_message
          key           = pakey.

  • I use google with firefox, everytime i open firefox and begin browsing or go to check my mail i get a firefox not responding error message on top left of screen. How do i get rid of this?

    Question
    I use google with firefox, everytime i open firefox and begin browsing or go to check my mail i get a firefox not responding error message on top left of screen. How do i get rid of this?

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode.]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]

  • Keep getting error message "user name or password for aol is incorrect". I have reset both username and password and still can't get my mail.  This problem only seems to exist in the evening.

    Keep getting error message "user name or password for aol is incorrect
    ". Have reset both and problem still exists.  Problem appears to be in the evening hours only.

    reset the password to re confirm that that isn't the issue

  • My 4s now has error messages and locks to apple screen since iOS 6.1.2

    My 4s now has error messages and locks to apple screen since iOS 6.1.2 update. Can't do anything with it. Its almost frozen, then every now and then it descides to work?

  • Can we display custom error message in user decision step screen.

    Hi,
    My requirement is to display error message when approver selects reject button in user decision step.
    based on some condition i need to display error message in user decision screen when approver tries to
    reject .
    Please help
    Thanks,
    Phani

    Hi ibrahim,
    Thanks for your Replay.
    steps
    1. cretae global class with interface  IF_SWF_IFS_WORKITEM_EXIT.
    2. cretae Event with importing parameter.
    where i need to call EVENT_RAISED method ,do inned to call that method in
    IF_SWF_IFS_WORKITEM_EXIT ?
    how  SWRCO_EVENT_AFTER_EXECUTION value is passed to method EVENT_RAISED ?
    Thanks,
    phani

  • Error when forced to change password

    Hello,
    We are running W7 Embedded Standard edition.  We have a unit where the user if forced to change their password but get the error message "configuration information could not be read from the domain controller, either because the machine is unavailable,
    or access has been denied".  It is a standalone PC.  To rebuild will require a huge effort. This is the only active account on the PC.  The Administrator and guest accounts are disabled.  Any suggestions on how to get around this ?

     If FBWF or EWF is in the image, disable them and the try changing the password. Also, make sure the user didn't attached the machine to a domain.
    Changing local account policy so passwords never time out. You can create a custom security policy template that installs with the OS that disables password timeout.
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • Error message from user exit - current screen becomes grayed(non-editable)

    I am working on a Sales Order (VA01/VA02) user exit(USEREXIT_SAVE_DOCUMENT_PREPARE) in MV45AFZZ program. I am validating certain values entered by user in this exit. Based on a condition, I issue a error message e.g. "message e001(ZV) with .....". I expect the processing to interrupt and the system control  returns to the current screen. When there is an error, error message shows up on the status bar, but the current screen is completely grayed out(non-editable), not able to modify the incorrect entries. I keep hitting ENTER but no change to the grayed screen. Is there anything wrong in the way I issue error message?
    I am on ECC6.
    Thanks.

    could you please help me if possible in my senario :-
    I am validating a field(serial number while creating delivery) in standard exit ZXQSMU04 and written a code to display an error message. The functionality is working correctly on validation and displaying the error message. But once the error is getting trigger the serial number field is becoming in gray mode i.e non editable.
    I tried a lot to overcome this issue but not getting success could anyone help me to make the field editable while triggering the error message.
    Please note : Its an exit and not having any message field in export or return table. Also tried with warning and information message.
    Thanks in advance.
    Regards,
    Gautam Kumar

Maybe you are looking for

  • "Class not found" error at runtime when ExternalLib DC is included in WD DC

    Hi All, I am getting "Class not found" exception at runtime when external library DC is included in Webdynpro DC. I am following the below steps.. 1) Created a Webdynpro DC - "testProj" to which i need to add the external library DC. 2) Created a DC

  • Problem with ATP check in release of process order

    Hi gurus, I have next problem in automatic release of process order: No checking group is maintained for product 000000000791104015, plant VFMX in matl master. Situation: I've some materials without MRP views in material master data but apparently th

  • HRMS Integration with third party Project Management Tool

    Hi All, We have plans of procurring a third party Project Management Tool which needs to be integrated to existing Oracle Financials. Project Management Tool needs employee information for its functioning. a)Is there any API available for this purpos

  • Integration of struts 1.2 with jdev 10 g

    hi, i have downloaded struts 1.2 , now i want to integrate with jdeveloper 10 g. How can I acheive this?

  • Unable to get the form displayed in Working Time

    Hi, We are implementing ESS with ECC5.0 on EP6. When I go for Working time and click on Time Statement for a Chosen period .. below it doesn't display me the form needed. I have checked from the Tx : HRFORMS, the Form Name :SAP_TIM_99_0001 & 0002 are