Help needed - about change password page

I had created a change password page and successfully connected to the access database via jdbc-odbc bridge. But, there are still some errors with the coding.
The situation is like that: whether the NewPassword==ConfirmPassword or NewPassword!=CofirmPassword or both blank, there will always pop up a message dialog "The confirm password and new password must be same."(which I wrote in JOptionPane) and will not update the database that i had linked. I try to correct it but fail.
Can somebody help me to correct the code below?
Thank you!
========================================================================void jButton1_actionPerformed(ActionEvent e) {
String userid = jTextField1.getText(); //UserName
char[] passwd2 = jPasswordField2.getPassword(); //NewPassword
char[] passwd3 = jPasswordField3.getPassword(); //ConfirmPassword
try {
connection = getDBConnection();
if( passwd2 != passwd3 ){
JOptionPane.showMessageDialog(null, "The confirm password and new password must be same.", "Change Password Fail", JOptionPane.INFORMATION_MESSAGE );
jPasswordField2.setText("");
jPasswordField3.setText("");
else {
String query = "UPDATE UserInfo SET Password = '"+ passwd2 +"' WHERE UserID='" + userid +"'";
Statement statement = connection.createStatement ();
ResultSet resultSet = statement.executeQuery( query );
int result = statement.executeUpdate ( query );
if ( result == 1 )
JOptionPane.showMessageDialog ( null," Password successfully changed", "Password changed", JOptionPane.INFORMATION_MESSAGE );
else {
jPasswordField2.setText( " " );
jPasswordField3.setText( " " );
JOptionPane.showMessageDialog ( null,"Fail to change password.\n Please reenter the new password.","Fail", JOptionPane.INFORMATION_MESSAGE);
catch (SQLException sqlex ){
sqlex.printStackTrace();

yup, i change as the code as u suggested..the change password page run success but got bugs as below. i don't know the reason. please correct me though the coding. thanks!
========================================================================
java.sql.SQLException: No ResultSet was produced
     at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:255)
     at logintry.DataMiningFrame.jButton1_actionPerformed(DataMiningFrame.java:239)
     at logintry.DataMiningFrame$1.actionPerformed(DataMiningFrame.java:77)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
     at java.awt.Component.processMouseEvent(Component.java:3715)
     at java.awt.Component.processEvent(Component.java:3544)
     at java.awt.Container.processEvent(Container.java:1164)
     at java.awt.Component.dispatchEventImpl(Component.java:2593)
     at java.awt.Container.dispatchEventImpl(Container.java:1213)
     at java.awt.Component.dispatchEvent(Component.java:2497)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
     at java.awt.Container.dispatchEventImpl(Container.java:1200)
     at java.awt.Window.dispatchEventImpl(Window.java:914)
     at java.awt.Component.dispatchEvent(Component.java:2497)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

Similar Messages

  • Change password page in 11,5,10

    Need to know how to add some text to the Change password page in 11,5,10

    The Tip message is stored in FND_NEW_MESSAGES table.
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_NEW_MESSAGES&c_owner=APPLSYS&c_type=TABLE
    To modify the message, use the Application Developer responsibility and navigate to Application --> Messages, then query up the message and make needed changes.
    Handy SQL for the Oracle Applications (Doc ID 731190.1) (See Section 2.1)
    You will need to bounce Apache for the change to take effect.
    Pl be aware that future patches and upgrades will reset the message back to it's original value.
    HTH
    Srini

  • Unable to view "Change password" page in other lang than English

    Hello,
    We have a stange problem:
    Installed APEX 3.0.1 over 10.2.0.3 Database, no errors.
    Applied Spanish and French translations (load_es and load_fr), no errors.
    Create a new Workspace.
    Create a single application (blank page).
    Create a new user (no developer, no admin) and checked "Require Change of password on first use"
    Default language in Browser English, try to login into single app with the new user and redirected to change password correctly.
    If the Default language in browser is Spanish or French, trying to log into single app next error appears:
    Error: El elemento "P50_USER_NAME" no aparece porque la pantalla HTML todavía no estaba abierta.
    Same error for elements "P50_ENTER_CURRENT_PASSWORD", "P50_PASSWORD" ,"P50_CONFIRM_PASSWORD" and "P50_SESSION".
    A simple error translation into English will be something like that:
    Error.The element (or item) "P50_USER_NAME" does not appear because the HTML screen were not open yet.
    If I try to enter with and admin user into /pls/apex app in Spanish...work fine!!!
    Any ideas....to desperate with this error. I tried to translate the application.
    Thanks in advanced.

    Hi Scott,
    Are you saying that when you run your application using an end-user account whose password must be changed, but that user is also an admin, that the change password page works fine?
    No, the application fails using end-user and admin user.
    When I said /pls/apex I was talking about the page that has "Application Builder", "SQL Workshop"...etc in this page it works fine.
    Any ideas???
    Regards.

  • Removing the need to change password

    This is related to [Pass language parameter to MSA;
    Because we are looking to pass username and a set password with the mobileclient.exe we would like to remove the need to change password every x days
    Is there a database entry that we can change or settings in MSY that will prevent it from triggering the password change?
    This is MSA 5.0 SP11
    Thanks
    James

    Hello James,
    You can change the Password parameter using MSY.
    1> Login to MSY -> Cross-Component Settings -> Password Paramter.
    2> Select the Password Parameter "pass_exp_time" -> Parameter Value to 0.
    3> Save
    Hope this will resolve your query. This disable the need to change the password.
    Regards,
    Merul

  • Number of days before user needs to change password

    If I enter a value for "Number of days before user needs to change password" will that effect both user and supervisor accounts or just user accounts? I have a supervisor account that we use for a lot of processes and do not want it to expire. However, our corporate security policy is to have user passwords expire at least every 90 days. Has anyone faced this before?<BR><BR>Thanks,<BR><BR>Mburkett

    mburkett,<BR><BR>Version 7.X has the external authentication option. The integration with active directory is very easy and can be configured in a few minutes. However, if your Essbase user names are different than MSAD user names, you would have to replace all Essbase users with their domain ID in order to use external authentication. If the user names are the same, it is only a matter of changing the flag to use the external AD password, rather then the Essbase password. <BR><BR>If you are not using Hyperion HUB, you should install it prior to implementing External Authentication.<BR><BR>I don't know the details of your custom job scheduler, but if it is based on ESSCMD, I dont see why it would not continue to work with an upgraded version.<BR><BR>Good Luck,<BR><BR>Chris

  • Going to change password page from link in application

    We don't intend to give our users access to the OID self-service console, but we do want a "change password" button in the SSO partner app. I've written a change password page according to spec and it's plugged into the configuration database, but the question is, how do I invoke it from a link?

    You mean "Customizing the Single Sign-On Interface?
    What that says is "The WWSSSO_APP_USER_MGR.CHANGE_PASSWORD routine is invoked", which, I presumed, in this context means using the URL I found.
    As I said, I can't see how to do this from an external site without making a nasty hole in the firewall. How would you "invoke" WWSSSO_APP_USER_MGR.CHANGE_PASSWORD from a servlet or the like?
    The only idea I could come up with is for the servlet to copy the SSO headers an make it's own URLConnection to the directory interface. That seems improbably clumbsy, and would require me to change the password change page to (in order to relay the results in a similar fashion).

  • 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

  • HT5312 forgot my security question can you help me my daughter down loaded a games need to change password asap

    I have forgotten my security questions and i need to change my apple pass word please can you let me know how to do this
    thanks

    Call Apple to help reset your Security Question.
    http://support.apple.com/kb/HT5699

  • SBS 2008 RWW displays "Your password has expired. Change it on the Change Password page."

    I have one User Account that when logging into RWW , a dialog (as attached) comes up? From my experience, when a password needs to be changed you are simply taken to the change password screen to enter old password and new. This AD account even has Password
    does not expire set.
    Even after changing password in AD this comes up - there are some other worrying things happening with this account as when the User opened their mailbox all of their Unread Items were marked as Read. Not sure if this is related. 
    When I login with another Test User Account, I cannot force the same dialog to come up and a google does not show me much.
    Could RWW of been compromised or is there something in User AD Account? I ended up resetting Users' password via AD just to be safe, but dialog still comes up. 

    Hi,
    Did this encounter for all the user accounts or just for a specific one?
    In general,if it is determined that the user must change the password upon logging on to the site (for example, the password has expired or set to User must change password at next logon), the logon page will present that error message to the user.
    Please check the prperties of that user account to see if you have selected "User must change password at next logon"check box.
    In addition, please check the default domain policy via the path below: Computer Configuration/Windows Settings/Security Settings/Account Policies/Password Policy
    Pleae check the value you have configured for “Maximum password age”.
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Java.lang.NullPointerException in end user change password page

    Hi All
    I need to notify a user whenever he changes his password. when i log in to the user page and change password i get java.lang.NullPointerException.
    Any ideas???
    Help is appreciated.
    Thanks

    What exactly are you clicking on in the end user page? Your problem could be a number of things. You can get this error when the xml in a file it is referencing is not properly formed. e.g if you had not properly closed a tag in a config file.

  • Warn About Changes and page flow

    Hi, in dev guide, it is said:
    For any single page, or first page in a navigation flow where the retainAM URL parameter value is set to Y (and the pages share the same root UI application module) as you navigate between each page, set the Warn About Changes property to True on the pageLayout region.
    in other word, if pages in page flow are in the same AM, after changing am in the first page, anytime leave the following page to click the home link(oracle branding), the WarnAboutChanges msg should be alerted?
    But,
    Now I have two pages, using the same AM, set the two pages' property "Warn About Changes" to true.
    And I want to implement this: after inputing some words, and click a sunmitButton forward to pageB(add retainAM = Y in setForwardURL in code), then in pageB don't do anything, but click home link, WarnAboutChanges message does not alert.
    Could anyone help to explain this?
    And how to implement the page flow warnAboutChanges?
    And how root application module to set if different pages in different AMs?
    PreThanks to you very much!

    But,
    Now I have two pages, using the same AM, set the two pages' property "Warn About Changes" to true.
    And I want to implement this: after inputing some words, and click a sunmitButton forward to pageB(add retainAM = Y in setForwardURL in code), then in pageB don't do anything, but click home link, WarnAboutChanges message does not alert.
    Could anyone help to explain this?
    I asked u previously also read dev guide properly, here it what dev guide say:
    "By default, the Warn About Changes property is set to True for each of the items in this list except for the
    OASubmitButtonBean whose default value is False (a ccording to the UI guidelines, the "Warn About
    Changes" check should be performed for all submit button instances except for Cancel, Apply and Submit
    buttons). If you want to explicitly enable the check for a submit button, set this property to True. Note that can
    also set it programmatically by calling OASubmitButtonBean.setWarnAboutChanges(pageContext,
    Boolean.TRUE) in processRequest()."
    I hope this answers ur question.
    And how to implement the page flow warnAboutChanges?
    Read "Save Model ('Warn About Changes')" in dev guide :).And how root application module to set if different pages in different AMs?
    You can nest differnt AMs in on AM in AM wizard.--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can you help me about change data captures in 10.2.0.3

    Hi,
    I made research about Change Data Capture and I try to implement it between two databases for two small tables in 10g release 2.MY CDC implementation uses archive logs to replicate data.
    Change Data Capture Mode Asynchronous autolog archive mode..It works correctly( except for ddl).Now I have some questions about CDC implementation for large tables.
    I have one senario to implement but I do not find exactly how can I do it correctly.
    I have one table (name test) that consists of 100 000 000 rows , everyday 1 000 000 transections occurs on this table and I archive the old
    data more than one year manually.This table is in the source db.I want to replicate this table by using Change Data Capture to other stage database.
    There are some questions about my senario in the following.
    1.How can I make the first load operations? (test table has 100 000 000 rows in the source db)
    2.In CDC, it uses change table (name test_ch) it consists of extra rows related to opearations for stage table.But, I need the orjinal table (name test) for applicaton works in stage database.How can I move the data from change table (test_ch) to orjinal table (name test) in stage database? (I don't prefer to use view for test table)
    3.How can I remove some data from change table(name test_ch) in stage db?It cause problem or not?
    4.There is a way to replicate ddl operations between two database?
    5. How can I find the last applied log on stage db in CDC?How can I find archive gap between source db and stage db?
    6.How can I make the maintanence of change tables in stage db?

    Asynchronous CDC uses Streams to generate the change records. Basically, it is a pre-packaged DML Handler that converts the changes into inserts into the change table. You indicated that you want the changes to be written to the original table, which is the default behavior of Streams replication. That is why I recommended that you use Streams directly.
    <p>
    Yes, it is possible to capture changes from a production redo/archive log at another database. This capability is called "downstream" capture in the Streams manuals. You can configure this capability using the MAINTAIN_* procedures in DBMS_STREAMS_ADM package (where * is one of TABLES, SCHEMAS, or GLOBAL depending on the granularity of change capture).
    <p>
    A couple of tips for using these procedures for downstream capture:
    <br>1) Don't forget to set up log shipping to the downstream capture database. Log shipping is setup exactly the same way for Streams as for Data Guard. Instructions can be found in the Streams Replication Administrator's Guide. This configuration has probably already been done as part of your initial CDC setup.
    <br>2) Run the command at the database that will perform the downstream capture. This database can also be the destination (or target) database where the changes are to be applied.
    <br>3) Explicitly define the parameters capture_queue_name and apply_queue_name to be the same queue name. Example:
    <br>capture_queue_name=>'STRMADMIN.STREAMS_QUEUE'
    <br>apply_queue_name=>'STRMADMIN.STREAMS_QUEUE'

  • Help needed regarding change of system CLASSPATH

    Hi All,
    I need to change the system CLASSPATH using my java programe. I tried the following code but its not working though it returns the correct CLASSPATH, but unable to do the modification. All I need is to append a new jar file in the existing CLASSPATH..
    code]
    try{
              sysMap = System.getenv();
              }catch(Exception se1){
                        System.out.println("Exception in finding Environment properties");
              Set Keys = sysMap.keySet();
              Iterator It = Keys.iterator();
              while(It.hasNext()){
                   String strNow =(String) It.next();
                   if(strNow.contains("CLASSPATH")){
                        System.setProperty("CLASSPATH", ".;C:\\Calypso\\Software\\\\Release\\jars\\calypso.jar;C:\\Calypso\\Software\\Release\\build;C:\\Calypso\\Software\\Release\\build\\calypsofx;C:\\Calypso\\Software\\Release\\resources;C:\\Calypso\\Software\\Release;C:\\Calypso\\Software\\Release\\jars\\jconn2.jar;C:\\Calypso\\Software\\Release\\jars\\jaxb-1.0.4\\;C:\\Calypso\\Software\\Release\\jars\\javacup.jar;C:\\Calypso\\Software\\Release\\jars\\antlr.jar;C:\\Calypso\\Software\\Release\\jars\\ojdbc14.zip;C:\\Calypso\\Software\\Release\\jars\\web\\servlet.jar;C:\\Calypso\\Software\\Release\\jars\\web\\webserver.jar;C:\\Calypso\\Software\\Release\\jars\\ftp.jar;C:\\Calypso\\Software\\Release\\jars\\itext-1.02b.jar;C:\\Calypso\\Software\\Release\\jars\\Jama-1.0.1.jar;C:\\jdk1.5.0_10\\bin;C:\\Calypso\\Software\\Release\\webfx\\calypsoWebFXServer.jar;C:\\XXX.jar");
                        System.out.println("Classpath changed");
    Any help will be appreciated.

    Hi Kaj ,
    Well I am in a situation where we need to extend a
    existing system and we are providing the client with
    a new jar file for every modification. Now all I need
    is that our programe automatically add (infect
    append) the jar file in the existing system
    CLASSPATH, so that the client need not to add(append)
    the new jar files all the time.
    Can you provide any help??As others have said, use -cp as argument when you start your application. It's quite common that people write a script that adds all jars in a certain directory to the argument to -cp.
    Kaj

  • Problem about Changing Password?

    1 After logining in mobile server,I tried to change the password,but it sometimes failed.
    2 After changing the password in webtogo client,I found the password in mobile server had been also changed.
    What relationship about the password between online and offline?
    Will you please give me some advice?
    Thanks a lot!

    No, we didn't change the network name or the SSID.
    I am trying to get my head around how the preference files work. I understand that changing the password would change the preference file, but after further changing, I noticed that if I changed the password back to the original password, it would no longer connect. Then, I changed it back to the password from which I had changed the original password, and it did not connect. Then, after changing it to a brand new password, it connected.

  • Need to change passwords, Unity, IPCC and CCM

    I need to change the admin passwords on all servers. What, if anything, can I expect to break.
    Thanks

    also, you will not just change passwords from the windows account manager hopefully.
    cisco provides utilities or procedures for changing passwords in most of these environments.
    for CCM follow:
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_administration_guide_chapter09186a00801ec5d0.html
    for UNITY follow:
    http://www.cisco.com/en/US/products/sw/voicesw/ps2237/products_tech_note09186a0080093f54.shtml
    for IPCC see:
    http://www.cisco.com/iam/unified/ipcc1/Problems_Caused_by_Password_Changes.htm#wp1097435
    for IVR follow:
    http://www.cisco.com/en/US/products/sw/custcosw/ps1846/products_qanda_item09186a008022e8e3.shtml

Maybe you are looking for

  • HT204053 I have two apple IDs and want to delete one. How do I do that?

    I need to delete an apple ID and can't figure out how.

  • Problem expanding contents of directories, PLEASE HELP

    This problem is not just ITUNES specific, it seems to happen throughout the OS...whenever there is a directory with subcontents, for instance, in my podcast area of itunes...i will see a grey arrow next to the podcast, and by clicking that arrow, the

  • Additional Cost Center Default value

    Hello Experts, I have one problem..when I want to book incoming invoice using FB01, The system pics up the cost center XXXX automatically. And that is the mystery at the moment. Why it is Default cost center XXXX ? There are some other cost centers w

  • .tmp files

    Oooo ...oooo, I have a new one:  Does CS6 fix the extremely annoying (<-yeah I did, I used the B I U trifeccta) habit of AE storing .TMP files wherever in the hell it sees fit (usually, but no always, the drive with the most space).  I never saw a co

  • How to make screens cycle through like a slide show.

    I need to have about ten screens (with hypertrends and whatnot) cycle through like a slide show.  I figured i'd use a pulse timer...aaaaand some if then statements...Hmmm......Help me out!!! Old Fart once said "You can't polish a turd." Thnx dad...