I Can't Write in Database with firmware 4.3.5 ?

HI
I have an Iphone with 4.3.5, and in my app, i write on Database, but with this Iphone dosrn't write.
i have another iphone with 4.1, and i write on Databse without problems... the code is the Same!
if i Debug the iphone with 4.3.5, with app.debug, i have the trace with this error:
3122
Attempt to write a readonly database.
and i read:
Indicates that an operation could not be completed because the database is read only. This can occur if the database file is designated as read only in the operating system, if the database is opened in read-only mode, or if an older version of Adobe AIR accesses a database file created with a newer version of the runtime.
Please Help Me
Thank You!

You've tried what's mentioned on this page : http://support.apple.com/kb/TS3694#error3194 ?

Similar Messages

  • HT4972 Can you update your iPhone with firmware V 4.2.1 to v5. If so, How. I just tried  and it did nothing bu mess things up.

    Can you update your iPhone with firmware V 4.2.1 to v5. If so, How. I just tried  and it did nothing bu mess things up.

    Greg434 wrote:
    I'm screwed.  Time for a new phone. Model # A1242 plain old 3G. Thank you for your assistance Michael.
    Well, you're timing is perfect then   Are you eligible for any upgrade pricing from your service provider?
    I skipped over the iPhone 4s, and I am eligible for full upgrade pricing in almost exactly one month from yesterday, so I will be moving to an iPhone 5 next month.

  • How can I link my database with flash?

    Hi…
    How can I link my database with flash to display image (to
    display it in master details page)
    Please your help ASAP.
    Regards,

    You could use some server-side scripting like PHP or ASP.
    http://www.kirupa.com/web/index.htm

  • Can I use  the database with as the ses as a regular database?

    I write a application base on SES recently, and I need to store some data in the database. Can I use the the database with ses?
    I can login using sqlplus login the database using the same pc as the ses installed, but I cannot login using sqldeveloper on other pc.
    I set ORACLE_HOME equals SES_HOME
    ORACLE_SID as ses

    I have similar requirement to connect to the database.
    I have removed those two lines from sqlnet.ora.
    However, when I using tnsping, I got below error
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=SES.us.oracle.com))(ADDRESS=(PROTOCOL=TCP)(HOST=144.25.165.5)(PORT=1521)))
    TNS-12541: TNS:no listener
    anythings else that I need to do

  • Satellite A210 - can't write DVD-DL - need firmware for LG GSA-T20N

    I have problem with my DVD drive... I can't write DVD-DL discs (DVD+DL too).
    I'm looking for a firmware for my drive.
    On Toshiba Support I can find only firmware for Pioneer and Toshiba (TSSTCorp) drives.
    Lg says that Toshiba should have newest firmware.

    Hi
    I checked the Toshiba European driver page and found tree different firmware updates for TS-L632H, TS-L632 and TS-L632P but there is no update for LG GSA-T20N.
    If you are not able to burn the data on some double layer disks then you should try different brands.
    As far as I know your user manual should contains some details and information about the supported and compatible disks.
    Check it!

  • Can I create a database with the same name and DBID that one is dropped?

    Hello,
    I need to restore a backup database, made with Oracle Enterprise Manager, in a new one, because the original is dropped. I've tried it with the recovery tools but fails, i suppose because the dbid's are not the same.
    Then, Is it possible create a new database with the same old database dbid to restore de backup?
    Thank you very much.
    P.D.: I've too THE OLD spfile---.ora y el pwd---.ora

    I think you are using the same Composition Class on both project. On the properties tab, you can change this number (e.g.: EDGE-1637270).

  • Can Read but Can't Write to Database

    hi...i'm fairly new to java and have a problem w/ a database program i have written...i'm running windows xp along w/ access xp...the program i wrote works fine on my computer, however, the program is for my brother and on his computer it only reads from the database but can't write to it...unfortunately i packed the program in a jar file so when u run the program no console comes up to display the exceptions...he is running windows 98 (first edition) and doesn't have any version of access on his computer...i figure his odbc driver is out of date or something like that but i wouldn't know where to start to tackle this problem...any help w/ be very much appreciated...thank you...

    First, don't cross-post:
    http://forum.java.sun.com/thread.jsp?forum=54&thread=440288&tstart=0&trange=15
    Submit your question to the forum that best suits its contents. Don't try to increase your chances of getting a response by posting the same question here, there, and everywhere. It's considered rude.
    Second, if you've written a Java app that runs fine on XP, then your Java is okay. That's a good start.
    I think Windows 98 is the problem. It's rather old technology now. I would say that Windows 9x really isn't an application platform worth thinking about. You might be correct - the ODBC driver might be out of date.
    Is the version of Access you're running the same on both machines?

  • Can't acces the database with EM database control

    I just did a fresh 10g R2 (only oracle home) installation on a laptop with Win XP SP2 (spanish) and everything was fine. I can connect to de database using Plus or any other development tools. But when I open the EM start page (host:1158/em) using either IE or firefox (both spanish) I get the following message just below the EM logo: "EM couldn't connect to the database instance"
    The Instance, listener and agent are ok.
    I was reviewing the logs and i found these errors pointing to NLS configuration. But I don't know what's wrong.
    I have NLS_LANG set at KEY_OraDb10g_home1 with: LATIN AMERICAN SPANISH.WE8MSWIN1252.
    2006-11-06 10:40:58,435 [Orion Launcher] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-00604: error occurred at recursive SQL level 1
    ORA-12705: Cannot access NLS data files or invalid environment specified
    2006-11-06 10:41:04,885 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ias.ias.IASIntegration
    2006-11-06 10:41:06,867 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.eml.target.slb.common.SLBIntegration
    2006-11-06 10:41:07,438 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.eml.ssl.intg.SSLIntegration
    2006-11-06 10:41:08,069 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.tip.oem.central.domain.ProcessConnectDomainIntg
    2006-11-06 10:41:08,109 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2006-11-06 10:41:08,119 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2006-11-06 10:41:08,149 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2006-11-06 10:41:08,189 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.reports.em.RepIntg
    2006-11-06 10:41:08,209 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2006-11-06 10:41:08,219 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2006-11-06 10:41:08,249 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2006-11-06 10:41:08,259 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2006-11-06 10:41:08,259 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2006-11-06 10:41:08,299 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
    2006-11-06 10:41:09,992 [OmsServiceDriver thread] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-00604: error occurred at recursive SQL level 1
    ORA-12705: Cannot access NLS data files or invalid environment specified
    2006-11-06 10:41:10,062 [OmsServiceDriver thread] ERROR conn.ConnectionService blockUntilValid.485 - Connection pool is not valid. status =2
    2006-11-06 10:41:10,062 [OmsServiceDriver thread] ERROR conn.ConnectionService blockUntilValid.493 - Repository connection details are invalid.
    2006-11-06 10:41:10,443 [HttpRequestHandler-30568553] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-00604: error occurred at recursive SQL level 1
    ORA-12705: Cannot access NLS data files or invalid environment specified
    2006-11-06 10:41:10,603 [HttpRequestHandler-4171469] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-00604: error occurred at recursive SQL level 1
    ORA-12705: Cannot access NLS data files or invalid environment specified
    2006-11-06 10:41:10,913 [EMUI_10_41_10_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
    java.lang.IllegalStateException: Response has already been committed
    at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer (EvermindHttpServletResponse.java:1901)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
    at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
    at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
    at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
    at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
    at oracle.sysman.eml.app.Console.doGet(Console.java:135)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter (ResourceFilterChain.java:65)
    at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
    at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:131)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    at oracle.sysman.eml.app.ContextInitFilter.doFilter (ContextInitFilter.java:239)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java :317)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind.server.http.HttpRequestHandler.run (HttpRequestHandler.java:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    Any clues??

    LATIN AMERICAN SPANISH.WE8MSWIN1252It seems that EM doesn't like your setting, and actually it looks incomplete. Correct syntax for NLS_LANG should be
    LANGUAGE_TERRITORY.CHARACTERSET
    so try
    "LATIN AMERICAN SPANISH_<YOUR TERRITORY>.WE8MSWIN1252"

  • Can't create 11gR1 Database with 11gR2 CRS/ASM non RAC, dbca ASM password

    Hi,
    try to create a 11gR1 SE Database on a single server with 11gR2 ASM up and running.
    when dbca ask where to store the datafiles and i choose ASM, i have to give the asm sys password which i know (can connect with sql+).
    dbca replies wrong password and i can NOT go further.
    is it possible to use 11gR2 ASM with 11gR1 database and create a database with dbca?
    any hint for this situation?
    thanks
    Michael
    Edited by: user12132314 on 18.07.2010 22:24

    Hello,
    i tried again - still don't work
    it is dbca step 6 from 16, storage option (or something simiular - dbca lang here is german)
    the dialog looks like this
    ASM-ID-Data (Titel)
    enter ASM specific SYS password (prompt)
    entering the correct pwd and push OK
    dbca shows a error dialog with something like: password for user SYS not valid. Enter a valid password.
    Any help?
    Michael

  • ORA-27103, can not create a database with dbca 10gR2 in SL3

    Hello,
    I'm just trying to install Oracle Database 10g Release 2 (10.2.0.1.0) , Enterprise/Standard Edition for Linux x86 in Scientific Linux CERN Release 3.0.8 (SL) following the instructions
    http://www.oracle.com/technology/obe/obe10gdb/install/linuxpreinst/linuxpreinst.htm
    The installations goes right, but when I try to create a new database with dbca assistant I got the following errors while copying database files
    ORA-27103: internal error
    using the scripts:
    startup nomount pfile="/u01/app/oracle/admin/samdb/scripts/init.ora";
    ORA-27103: internal error
    Linux Error: 13: Permission denied
    Additional information: 101
    Additional information: 134920812
    I've checked the permissions but they seem ok, so I wonder if anyone could figure out what I'm doing wrong.
    Thanks in advance

    the error is dropped when there is an issue with the (db) block size, needs to be a multiple of the system page size, or when there is an issue with the heap allocation,
    so please check init.ora/spfile parameters
    maybe an strace -frt -s 512 gives a hint
    guido

  • Write/Read Database with "Jeffrey"-VIs

    Hello,
    i want to write/read a sql-database without-the NI-Toolkit.
    I found while searching here the Tools from Jeffrey which are available here: http://jeffreytravis.com/lost/index.html
    Now i unocked the files and wanted to try t he example "Example - Fetch a Table.vi".
    There is also a demo-database included called: "SampleDatabase.mdb"
    My current problem is that i dont know what to set to the parameter "connection-string" (somehow the filename, but how?)
    Does someone know how to use these files?
    Thx for your help
    Attached the downloaded zip-file with all the data
    Attachments:
    LabSQL-1.1a.zip ‏1132 KB

    I tried to do what the readme says, but i think there is a problem with my windows-installation or something is missing.
    a. Go to
    your Windows Control Panels, and open "ODBC Data Sources"
    b. Click on the "System DSN" tab
    c. Click on the "Add..." button.
    d. From the list of drivers, choose
    "Microsoft Access Driver"
    No problem up to this point, but after i selected the "Microsoft Access Driver" and press "Fertig stellen" the window closes and it look like before, there is nothing like a dialog box (see attached screenshot), so i can´t continue with th points e..g.
    e. At the dialog box, type in
    "myDB" for the Data Source Name. Then click on "Select..."
    button, and find the file "Sample Database.mdb" included with the
    LabSQL examples. Leave everything else as it is, and hit OK.
    f. Close the ODBC control panel
    g. Test the connection by running one of
    the examples provided.
    Is there a way to re-install this part of windows?
    Thanks for your help
    Attachments:
    empty.jpg ‏76 KB

  • How can I write dual DVDs with my UJ 820S DVD burner?

    hello i own a satellite notebook, and my problem is that it cannot write at dual dvds, i believe that i have to upgrade the firmware but i cant find anything, recently i had the same problem with my desktop pc and solve it when i upgrade the firmware from its own nec dvd burner, anybody knows where i can find a firmware update, or something else to solve my problem?

    Hi Chris
    The CD and DVD burning and reading with different drives is a never ending story.
    I use an external burner and believe me; I have tested more than 10 different medias from different manufactures.
    I could burn some medias but not read and read but not burn :(
    I think you should also test different DVDs.
    In my user manual I have found a list with compatible CD and DVD. Possibly you will also find the same supported media list in you preinstalled user manual.

  • How can I shutdown a database with JDBC?

    I've noticed in jdbc 10g doc "ORACLE DATABASE 10G JDBC: BEST-OF-BREED DRIVERS FOR JAVA, J2EE, WEB SERVICES AND GRID",we could "fully utilize the features offered by the Oracle Database 10g ", and "start/stop database".
    I tried for several times with various methods,but still,I can't reach it. Could anyone here tell me how to do,or look into the new features?

    Can't do it.
    There were some plugin components that were distributed with OEM (Oracle Management Objects) sometime during the 8i cycle that provided a Java interface to various DB management actions (and using the OCI driver behind the scenes). This doesn't seem to be available any longer.
    There isn't even a published way to do it (yet) via the underlying OCI.

  • Can we use MYSQL database with the UI5 application?

    Hey,
    I want to make an SAPUI5 application and there i have to use database to save the data.
    Then, i will retrieve the data from there. Can we use MYSQL as a database to save the data.
    If yes, then how we will retrieve the data from there?
    Regards
    VAIBHAV JAIN

    Hi Yury,
    There's a lot of new technologies in order to acchieve that. You could create this app components:
    1. Persistence layer. Hibernate/JPA connected to Relational ER Model in MySQL.
    2. Service layer. Restful Services. With Spring (Getting Started &amp;middot; Building a RESTful Web Service), Jersey (Jersey), etc.
    3. View Layer. SAPUI5. Consume your services.
    Hope this helps,
    Kind regards!

  • Can you write to files with an applet or what?

    Hi I can't get the bufferwriter to output any text to a file. Not sure if this is because I'm using an applet? I wouldn't assume so, but any help would be appreciated
    The problem area is :
    private boolean registerNewUser()
            FileOutputStream writer;
            try
                BufferedWriter out = new BufferedWriter(new FileWriter("logins.txt"));
                out.write(regUserField.getText());
                char [] tempPass = regPasswordField.getPassword();
                String tempString = tempPass.toString();
                out.write("\n" + tempString);
                out.close();
            catch(IOException e)
                System.out.println("Writing file error.");
                System.exit(0);
            int intSS = Integer.parseInt(regSSNField.getText());
            currentUserAccount = new Account(regNameField.getText(), intSS);
            return true;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.Icon;
    import javax.swing.JApplet;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import java.lang.*;
    import java.io.*;
    import java.util.*;
    public class JBank extends JApplet implements ActionListener
        private static double totalMoney = 0;
        private static final String BANK_MENUITEM = "Bank";
        private static final String NEW_ACCT_MENUITEM = "New Account";
        private static final String OPEN_ACCT_MENUITEM = "Open Account";
        private static final String DELETE_ACCT_MENUITEM = "Delete Account";
        private static final String TRANSFER_ACCT_MENUITEM = "Account transfer";
        private static final String WITHDRAW_ACCT_MENUITEM = "Withdraw Funds";
        private static final String DEPOSIT_ACCT_MENUITEM = "Deposit Funds";
        private static final String OVERVIEW_ACCT_MENUITEM = "Overview of Accounts";
        private static final String CHECKING_RADIO_BUTTON = "new account checking";
        private static final String SAVINGS_RADIO_BUTTON = "new account savings";
        private static final String RETIREMENT_RADIO_BUTTON = "new account retirement";
        private static final String LOGIN_BUTTON = "login";
        private static final String REGISTER_BUTTON = "register";
        private static final String CANCEL_BUTTON = "cancel";
        private static final String NEW_ACCT_OK_BUTTON = "new account ok";
        private static final String NEW_ACCT_CANCEL_BUTTON = "new account cancel";
        private static final String NEW_USER_REGISTER_BUTTON = "new user registration";
        private static final String MAIN_TITLE_TEXT = "JBank - A Comp 285 Project";
        private Container contentPane = getContentPane();
        private JFrame loginFrame = new JFrame();
        private JFrame registrationFrame = new JFrame();
        private JFrame newAccountFrame = new JFrame();
        private JLabel title;
        private JTextField loginField;
        private JPasswordField passwordField;
        private JTextField regNameField;
        private JTextField regSSNField;
        private JTextField regUserField;
        private JTextField initialMoneyField;
        private JPasswordField regPasswordField;
        boolean trueUser = false;
        boolean savingsSelected = false;
        boolean checkingSelected = false;
        boolean retirementSelected = false;
        Account currentUserAccount;
        public void init()
            //Login First
            loginFrame();
            contentPane.setLayout(new BorderLayout());
            // background color: lightblue
            float red = 0f;
            float blue = .3f;
            float green = .2f;                                     // Java sees double, must specify a suffix of f to
            float alpha = .05f;                                    //create float since
            Color lightBlue = new Color(red, green, blue, alpha); //<-- constructor requires floats
            contentPane.setBackground(lightBlue);
            // Menu
            JMenuBar jBar = new JMenuBar();
            JMenu bankMenu = new JMenu(BANK_MENUITEM);
            JMenuItem b;
            b = new JMenuItem(NEW_ACCT_MENUITEM);
            b.addActionListener(this);
            bankMenu.add(b);
            b = new JMenuItem(OPEN_ACCT_MENUITEM);
            b.addActionListener(this);
            bankMenu.add(b);
            b = new JMenuItem(DELETE_ACCT_MENUITEM);
            b.addActionListener(this);
            bankMenu.add(b);
            b = new JMenuItem(TRANSFER_ACCT_MENUITEM);
            b.addActionListener(this);
            bankMenu.add(b);
            b = new JMenuItem(OVERVIEW_ACCT_MENUITEM);
            b.addActionListener(this);
            bankMenu.add(b);
            jBar.add(bankMenu);
            setJMenuBar(jBar);
            // Title JBankset
            title = new JLabel(MAIN_TITLE_TEXT);
            contentPane.add(title);
        public void actionPerformed(ActionEvent arg0)
            String command = arg0.getActionCommand();
            if (command.equals(BANK_MENUITEM))
                title.setText(MAIN_TITLE_TEXT + " " +
                        BANK_MENUITEM);
            else if (command.equals(NEW_ACCT_MENUITEM))
                title.setText(MAIN_TITLE_TEXT + " " +
                        NEW_ACCT_MENUITEM);
                newAccountFrame();
            else if (command.equals(OPEN_ACCT_MENUITEM))
                title.setText(MAIN_TITLE_TEXT + " " +
                        OPEN_ACCT_MENUITEM);
            else if (command.equals(DELETE_ACCT_MENUITEM))
                title.setText(MAIN_TITLE_TEXT + " " +
                        DELETE_ACCT_MENUITEM);
            else if (command.equals(TRANSFER_ACCT_MENUITEM))
                title.setText(MAIN_TITLE_TEXT + " " +
                        TRANSFER_ACCT_MENUITEM);
            else if (command.equals(OVERVIEW_ACCT_MENUITEM))
                title.setText(MAIN_TITLE_TEXT + " " +
                        OVERVIEW_ACCT_MENUITEM);
            else if (command.equals(LOGIN_BUTTON))
                Scanner loginFile = null;
                String currentFileLoginName;
                String triedLogin = loginField.getText();
                try
                   loginFile = new Scanner(new FileInputStream("logins.txt"));
                catch(FileNotFoundException e)
                    System.out.println("Internal Error");
                    System.exit(0);
                do
                   currentFileLoginName = loginFile.nextLine();
                   if  (processLogin(currentFileLoginName, triedLogin, loginFile)) //Send Logins&File | Return boolean
                       loginFile.close(); //Close File
                       break; //Login true. Break out of while loop
                while (loginFile.hasNextLine() == true);
            else if (command.equals(REGISTER_BUTTON))
                registrationFrame();
            else if (command.equals(NEW_USER_REGISTER_BUTTON))
                registrationFrame.setVisible(false);
                if (checkFields() == false)
                    registrationFrame.dispose();
                    registrationFrame();
                else
                registerNewUser();
            else if (command.equals(CHECKING_RADIO_BUTTON))
                savingsSelected = false;
                checkingSelected = true;
                retirementSelected = false;
            else if (command.equals(SAVINGS_RADIO_BUTTON))
                savingsSelected = true;
                checkingSelected = false;
                retirementSelected = false;
            else if(command.equals(RETIREMENT_RADIO_BUTTON))
                savingsSelected = false;
                checkingSelected = false;
                retirementSelected = true;
            else if (command.equals(NEW_ACCT_OK_BUTTON))
                double doubleInitialMoney = Double.parseDouble(initialMoneyField.getText());
                if (savingsSelected)
                    currentUserAccount.registerAccount("savings");
                    currentUserAccount.deposit("savings", doubleInitialMoney);
                if (checkingSelected)
                    currentUserAccount.registerAccount("checking");
                    currentUserAccount.deposit("checking", doubleInitialMoney);
                if (retirementSelected)
                    currentUserAccount.registerAccount("register");
                    currentUserAccount.deposit("retirement", doubleInitialMoney);
                newAccountFrame.dispose();
        private void loginFrame()
            loginFrame.setTitle("JBank -- Login Required");
            loginFrame.setDefaultLookAndFeelDecorated(true);
            loginFrame.setBounds(400,350,225,130);
            JTextField login = new JTextField("User ID");
            JTextField password = new JTextField("Password");
            loginFrame.setLayout(new GridLayout(0,2));
            //Button Panel
            JPanel buttonPanel = new JPanel();
            buttonPanel.setLayout(new GridLayout(4,0));
            JLabel space = new JLabel("                   ");
            JButton okButton = new JButton("Login");
            okButton.isDefaultButton();
            okButton.setVerticalTextPosition(AbstractButton.CENTER);
            JButton register = new JButton("Register");
            register.setVerticalTextPosition(AbstractButton.CENTER);
            okButton.setActionCommand(LOGIN_BUTTON);
            register.setActionCommand(REGISTER_BUTTON);
            okButton.addActionListener(this);
            register.addActionListener(this);
            buttonPanel.add(okButton);
            buttonPanel.add(space);
            buttonPanel.add(register);
            buttonPanel.add(space);
            //Text Panel
            JPanel textPanel = new JPanel();
            textPanel.setLayout(new GridLayout(4,0));
            JLabel userIDLabel = new JLabel("User ID:");
            JLabel passwordLabel = new JLabel("Password:");
            loginField = new JTextField(14);
            passwordField = new JPasswordField(14);
            textPanel.add(userIDLabel);
            textPanel.add(loginField);
            textPanel.add(passwordLabel);
            textPanel.add(passwordField);
            loginFrame.add(textPanel);
            loginFrame.add(buttonPanel);
            loginFrame.setVisible(true);
        private void registrationFrame()
            loginFrame.setVisible(false);
            //Registration's Frame
            registrationFrame.setTitle("JBank -- Registration");
            registrationFrame.setDefaultLookAndFeelDecorated(true);
            registrationFrame.setBounds(400,350,300,300);
            registrationFrame.setLayout(new BorderLayout());
            //Buttons
            JButton registerButton = new JButton("Register");
            JButton cancelButton = new JButton("Cancel");
            //Text Fields
            regNameField = new JTextField(20);
            regSSNField = new JTextField(8);
            regUserField = new JTextField(14);
            regPasswordField = new JPasswordField(14);
            //Labels
            JLabel nameLabel = new JLabel("Name:  ");
            JLabel ssnLabel = new JLabel("Social Security: ");
            JLabel newUserLabel = new JLabel("Desired User ID: ");
            JLabel newPasswordLabel = new JLabel("Desired Password: ");
            //Top Panel
            JPanel newUserFieldsPanel = new JPanel();
            newUserFieldsPanel.setLayout(new GridLayout(8,0));
            //Bottom Panel
            JPanel newUserButtonsPanel = new JPanel();
            newUserButtonsPanel.setLayout(new GridLayout(0,2));
            //Add
            newUserFieldsPanel.add(nameLabel);
            newUserFieldsPanel.add(regNameField);
            newUserFieldsPanel.add(ssnLabel);
            newUserFieldsPanel.add(regSSNField);
            newUserFieldsPanel.add(newUserLabel);
            newUserFieldsPanel.add(regUserField);
            newUserFieldsPanel.add(newPasswordLabel);
            newUserFieldsPanel.add(regPasswordField);
            newUserButtonsPanel.add(registerButton);
            newUserButtonsPanel.add(cancelButton);
            registrationFrame.add(newUserFieldsPanel, BorderLayout.CENTER);
            registrationFrame.add(newUserButtonsPanel, BorderLayout.SOUTH);
            //Action Listeners
            registerButton.setActionCommand(NEW_USER_REGISTER_BUTTON);
            cancelButton.setActionCommand(CANCEL_BUTTON);
            registerButton.addActionListener(this);
            cancelButton.addActionListener(this);
            registrationFrame.setVisible(true);
        private void newAccountFrame()
            //New Account Frame
            newAccountFrame.setTitle("Create New Account");
            newAccountFrame.setDefaultLookAndFeelDecorated(true);
            newAccountFrame.setBounds(400,350,300,300);
            newAccountFrame.setLayout(new BorderLayout());
            //Buttons
            JButton newAcctOkButton = new JButton("OK");
            JButton newAcctCancelButton = new JButton("Cancel");
            //Radio Buttons
            JRadioButton checkingOption = new JRadioButton("Checking Account");
            JRadioButton savingsOption = new JRadioButton("Savings Account");
            JRadioButton retirementOption = new JRadioButton("Retirement Account");
            //Group 'em
            ButtonGroup accountSettings = new ButtonGroup();
            accountSettings.add(checkingOption);
            accountSettings.add(savingsOption);
            accountSettings.add(retirementOption);
            //Text Fields
            initialMoneyField = new JTextField("0", 8);
            //Labels
            JLabel depositLabel = new JLabel("Initial Deposit:  ");
            JLabel optionLabel = new JLabel("What kind of account would \n"
            + "you like to create?");
            //Top Panel
            JPanel newAcctOptionsPanel = new JPanel();
            newAcctOptionsPanel.setLayout(new GridLayout(4,0));
            //Bottom Panel
            JPanel newAcctTextPanel = new JPanel();
            newAcctTextPanel.setLayout(new GridLayout(2,2));
            //Add
            newAcctOptionsPanel.add(optionLabel);
            newAcctOptionsPanel.add(checkingOption);
            newAcctOptionsPanel.add(savingsOption);
            newAcctOptionsPanel.add(retirementOption);
            newAcctTextPanel.add(depositLabel);
            newAcctTextPanel.add(initialMoneyField);
            newAcctTextPanel.add(newAcctOkButton);
            newAcctTextPanel.add(newAcctCancelButton);
            newAccountFrame.add(newAcctOptionsPanel, BorderLayout.CENTER);
            newAccountFrame.add(newAcctTextPanel, BorderLayout.SOUTH);
            //Action Listeners
            checkingOption.setActionCommand(CHECKING_RADIO_BUTTON);
            savingsOption.setActionCommand(SAVINGS_RADIO_BUTTON);
            retirementOption.setActionCommand(RETIREMENT_RADIO_BUTTON);
            checkingOption.addActionListener(this);
            savingsOption.addActionListener(this);
            retirementOption.addActionListener(this);
            newAcctOkButton.setActionCommand(NEW_ACCT_OK_BUTTON);
            newAcctCancelButton.setActionCommand(NEW_ACCT_CANCEL_BUTTON);
            newAcctOkButton.addActionListener(this);
            newAcctCancelButton.addActionListener(this);
            newAccountFrame.setVisible(true);
        private boolean checkFields()
            //Check Name Field
            String triedName = regNameField.getText();
            if (triedName.length() == 0)
                JOptionPane.showMessageDialog(null,
                "Empty Name Field. Try Again.",
                "Error Message",
                JOptionPane.ERROR_MESSAGE);
                return false;
            //Check SSN
            String triedSS = regSSNField.getText();
            int parsedSS = 0;
            try
                parsedSS = Integer.parseInt(triedSS);
            catch(Exception e)
                JOptionPane.showMessageDialog(null,
                "Numbers only in Social Security Field!\n Try Again.",
                "Error Message",
                JOptionPane.ERROR_MESSAGE);
                return false;
            if (triedSS.length() < 8)
                JOptionPane.showMessageDialog(null,
                "Social Security Number is not 8 Digits.\n Try Again.",
                "Error Message",
                JOptionPane.ERROR_MESSAGE);
                return false;
            //Check User ID
            String triedUser = regUserField.getText();
            if (triedUser.length() < 6)
                JOptionPane.showMessageDialog(null,
                "Desired User ID too short.\n Try Again",
                "Error Message",
                JOptionPane.ERROR_MESSAGE);
                return false;
            //Check Password
            char[] triedPassword = regPasswordField.getPassword();
            String stringPassword = triedPassword.toString();
            if (stringPassword.length() < 6)
                JOptionPane.showMessageDialog(null,
                "Desired Password Too Short. \n Try Again.",
                "Error Message",
                JOptionPane.ERROR_MESSAGE);
                return false;
            return true;
        private boolean registerNewUser()
            FileOutputStream writer;
            try
                BufferedWriter out = new BufferedWriter(new FileWriter("logins"));
                out.write(regUserField.getText());
                char [] tempPass = regPasswordField.getPassword();
                String tempString = tempPass.toString();
                out.write("\n" + tempString);
                out.close();
            catch(IOException e)
                System.out.println("Writing file error.");
                System.exit(0);
            int intSS = Integer.parseInt(regSSNField.getText());
            currentUserAccount = new Account(regNameField.getText(), intSS);
            return true;
        private boolean processLogin(String currentFileLoginName, String triedLogin, Scanner loginFile)
            char[] userPassword = passwordField.getPassword();
            if (currentFileLoginName.equals(triedLogin))
                String currentFilePassword = loginFile.nextLine(); //Login recognized, go to next line for password
                char[] charPassword = currentFilePassword.toCharArray();
                if (charPassword.length == userPassword.length) //Password Lengths match?
                    if(Arrays.equals(userPassword, charPassword)) //Do characters match?
                        trueUser = true;
                        loginFrame.dispose();
                        return true;
                else
                    JOptionPane.showMessageDialog(null, //Notify User of Incorrect password
                     "Invalid password. Try again.",
                     "Error Message",
                     JOptionPane.ERROR_MESSAGE);
                     return false;
            else
                JOptionPane.showMessageDialog(null, //Notify user of unrecognized login
                "Unknown User ID. Try again\n or Register.",
                "Error Message",
                JOptionPane.ERROR_MESSAGE);
                return false;
            return false;
        private class Account
        private String name;
        private int ssn;
        private double totalUserMoney;
        private boolean checking = false;
        private boolean savings = false;
        private boolean retirement = false;
        private double checking_holdings;
        private double savings_holdings;
        private double retirement_holdings;
       public Account(String userName, int ss)
           name = userName;
           ssn = ss;
        public int getSSN()
            return ssn;
        public double getTotalUserMoney()
            return totalUserMoney;
        public boolean getUserAccounts(String type)
           if (type.equals("checking"))
               if (checking == false)
               return false;
               else
               return true;
            if (type.equals("savings"))
                if (savings == false)
                return false;
                else
                return true;
            if (type.equals("retirement"))
                if (retirement == false)
                return false;
                else
                return true;
            return false;
        public void registerAccount(String type)
            if (type.equals("checking"))
            checking = true;
            else if (type.equals("savings"))
            savings = true;
            else if (type.equals("retirement"))
            retirement = true;
            else
            System.out.println("Internal error"); //Should not reach here
        public boolean withdraw(String type, Double moneyAmount)
            if(getUserAccounts(type))
                if(type.equals("checking"))
                    if (moneyAmount > checking_holdings)
                        JOptionPane.showMessageDialog(null,"Insufficient holdings in checking account");
                    else
                        checking_holdings -= moneyAmount;
                        totalUserMoney -= moneyAmount;
                        return true;
                if(type.equals("savings"))
                    if (moneyAmount > checking_holdings)
                        JOptionPane.showMessageDialog(null,"Insufficient holdings in savings account");
                    else
                        savings_holdings -= moneyAmount;
                        totalUserMoney -= moneyAmount;
                        return true;
                if(type.equals("retirement"))
                    if (moneyAmount > checking_holdings)
                        JOptionPane.showMessageDialog(null,"Insufficient holdings in retirement account");
                    else
                        retirement_holdings -= moneyAmount;
                        totalUserMoney -= moneyAmount;
                        return true;
            else
                JOptionPane.showMessageDialog(null,"No such account exists");
                return false;
        public boolean deposit(String type, Double moneyAmount)
            if(getUserAccounts(type))
                if(type.equals("checking"))
                    checking_holdings += moneyAmount;
                    totalUserMoney += moneyAmount;
                    return true;
                if(type.equals("savings"))
                    savings_holdings += moneyAmount;
                    totalUserMoney += moneyAmount;
                    return true;
                if(type.equals("retirement"))
                    retirement_holdings += moneyAmount;
                    totalUserMoney += moneyAmount;
                    return true;
            else
                JOptionPane.showMessageDialog(null,"No such account exists");
                return false;
        public void deleteAccount(String type)
            if (type.equals("checking"))
                totalUserMoney -= checking_holdings;
                checking = false;
            if (type.equals("savings"))
                totalUserMoney -= savings_holdings;
                savings = false;
            if (type.equals("retirement"))
                totalUserMoney -= retirement_holdings;
                retirement = false;
        public void showAccountInfo()
            if (checking == true && savings == true && retirement == true)
            System.out.println(name + "'s Accounts: " + "\nChecking Account: $" + checking_holdings
            + "\nSavings Account: $" + savings_holdings + "\nRetirement Account: $" +
            retirement_holdings + "\n\nTotal: $" + totalUserMoney);
        public void showAccountInfo(String type)
            System.out.println(name + " ");
    }

    In the future, do not post eleventeenkathousand lines of code. No one is going to read it all and - quite frankly - no one really cares.
    As for the issue at hand, whenever you are going to access the file system, a remote server, access the clipboard and a handful of other "security" related issues, you must sign your applet.
    Google for sun's tutorial on signing applets.

Maybe you are looking for

  • How do i install an external hard drive to my powerbook G4?

    how do i install an external hard drive to my powerbook G4?

  • A flickering problem

    I've got a game GUI and need to use the paint() and repaint methods. But I get a very annoying flicker on my screen. I saw a method called update but don't know how it works or what to do with it. Any one tell me what it does or any other way to get

  • PHP_MySQL version of a high security user authentication web app.

    Since you folks deal with PHP Application Development, I am posting this here. For a demo of the PHP_MySQL version of the UltraSuite High Security User Authentication Web Application, you can sign up at http://bit.ly/hgNjek. It  offers a multi-layere

  • Late 2007 macbook slowing down

    My late 2007 2.2 macbook has slowed considerably for the first time in its 3+ years with me. Suggestions on what to check for that might be causing it are welcome. Thanks, Jose PS. Running Snow Leopard (up to date), 4GB Ram, 320GB 5,400rpm

  • When apple is bringing back full screen caller picture

    Any news when apple is bringing back fullscreen caller picture...after ios 7.1 interface looks like cheap phones.