Understanding error messages from console...help please

Hi,
I am getting there...almost...my classes compiled...so far so good...
However, when I hit the "Submit" button (class Booking) the program seems to get stuck on something ...and I don't how to understand the error message:
Here is the error message, underneath are the two classes involved (code):
D:\JBuilder8\jdk1.4\bin\appletviewer.exe Booking.html
java.lang.NumberFormatException: null
     at java.lang.Integer.parseInt(Integer.java:394)
     at java.lang.Integer.parseInt(Integer.java:476)
     at Order.getPeople(Order.java:57)
     at ConfirmationPopup.<init>(ConfirmationPopup.java:72)
     at DetailsPopup.actionPerformed(DetailsPopup.java:152)
     at java.awt.Button.processActionEvent(Button.java:381)
     at java.awt.Button.processEvent(Button.java:350)
     at java.awt.Component.dispatchEventImpl(Component.java:3598)
     at java.awt.Component.dispatchEvent(Component.java:3439)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
import java.awt.*;
import java.awt.event.*;
import java.util.StringTokenizer;
public class DetailsPopup extends Frame implements ActionListener,ItemListener
  TextField SName;
  TextField FName;
  TextField Email;
  TextField CCard;
  Choice ChoiceExpMonth;
  Choice ChoiceExpYear;
  Color LightBlue = new Color(180,180,255);
  String a6;
  String a7;
  String a8;
  String a4 = "1";
  String a5 = "2003";
  public DetailsPopup(String f,String co,String pr,String pe)
    super(f);
    a6 = co;
    a7 = pr;
    a8 = pe;
    Button b3 = new Button ("Submit");
    b3.addActionListener(this);
    Panel panel = new Panel();
    panel.setBackground(Color.yellow);
    panel.add(b3);
    add("South", panel);
    Panel fieldPanel = new Panel();
    fieldPanel.setBackground(LightBlue);
    fieldPanel.setLayout(new GridLayout(0,1));
    panel = new Panel();
    panel.add(new Label("Surname"));
    SName = new TextField(15);
    panel.add(SName);
    fieldPanel.add(panel);
    panel = new Panel();
    panel.add( new Label("First Name"));
    FName = new TextField(15);
    panel.add(FName);
    fieldPanel.add(panel);
    panel = new Panel();
    panel.add( new Label("E-mail"));
    Email = new TextField(15);
    panel.add(Email);
    fieldPanel.add(panel);
    panel = new Panel();
    panel.add( new Label("Credit/Debit Card"));
    CCard = new TextField(16);
    panel.add(CCard);
    fieldPanel.add(panel);
    panel = new Panel();
    panel.add( new Label("Expiry Date"));
    panel.add( new Label("Month"));
    ChoiceExpMonth = new Choice();
    ChoiceExpMonth.addItemListener(this);
    panel.add(ChoiceExpMonth);
    fieldPanel.add(panel);
    int i = 1;
    while (i < 13)
      ChoiceExpMonth.addItem(new Integer(i).toString());
      i++;
    panel = new Panel();
    panel.add(new Label("Year"));
    ChoiceExpYear = new Choice();
    ChoiceExpYear.addItemListener(this);
    panel.add(ChoiceExpYear);
    fieldPanel.add(panel);
    int j = 2003;
    while (j < 2008)
      ChoiceExpYear.addItem(new Integer(j).toString());
      j++;
    add(fieldPanel, "Center");
    setSize(400, 300);
    setLocation(320,240);
    setVisible(true);
    //addWindowListener(new WindowAdapter() {
      //public void windowClosing(WindowEvent e) {
        //System.exit(0);
  public void itemStateChanged(ItemEvent e) //read choice from ChoiceExpMonth and/or ChoiceExpYear DropDowns
   if (e.getSource().equals (ChoiceExpMonth))
     a4 = (String) e.getItem();  // When ChoiceExpMonth is modified
   if (e.getSource().equals (ChoiceExpYear))
     a5 = (String) e.getItem();  // When ChoiceExpYear is modified
  public void actionPerformed( ActionEvent e)
    String Name = "";
    String First = "";
    String Card = "";
    String Mail = "";
    String TestEmail = Email.getText();
    StringTokenizer st = new StringTokenizer(TestEmail,"@");
    if (SName.getText().length() == 0)
      Name = "bad";
    if (FName.getText().length() == 0)
      First = "bad";
    if (CCard.getText().length() != 16)
      Card = "bad";
    if(TestEmail.indexOf("@") == -1)
      System.out.println("TestEmail has no '@' symbol");
    if (st.countTokens() != 2)
      Mail = "bad";
    if (Name.equals("bad") || First.equals("bad") || Card.equals("bad") || Mail.equals("bad"))
     Dialog Err = new Erratum (new Frame (),Name,First,Card,Mail);
    else
     dispose();
     String a0 = SName.getText();
     String a1 = FName.getText();
     String a2 = Email.getText();
     String a3 = CCard.getText();
     ConfirmationPopup Conf = new ConfirmationPopup(new Frame(),a0,a1,a2,a3,a4,a5,a6,a7,a8);
    //System.out.println("Name = " + Name + "\n" +
                       //"First = " + First + "\n" +
                       //"Card = " + Card + "\n" +
                       //"Mail = " + Mail);
  //public static void main(String[] args) {
    //new DetailsPopup("Chaos!");
class ConfirmationPopup
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.awt.Dialog.*;
class ConfirmationPopup extends Dialog implements ActionListener
Dialog Confirmation;
Color LightBlue = new Color(180,180,255);
ConfirmationPopup(Frame f,String a0,String a1,String a2,String a3,String a4,String a5,String a6,String a7,String a8)
   super(f);
   String SName = a0;
   String FName = a1;
   String Email = a2;
   String CCard = a3;
   String ExpMonth = a4;
   String ExpYear = a5;
   String Course = a6;
   String Price = a7;
   String People = a8;
   String[] c = {SName,FName,Email,CCard,ExpMonth,ExpYear,Course,Price,People};
   Order order1 = new Order(c);  
   Button b6 = new Button ("OK"); //OK
   b6.addActionListener(this);
   Panel panel = new Panel();
   panel.setBackground(LightBlue);
   panel.add(b6);
   add("South", panel);
   Panel Datapanel = new Panel();
   Datapanel.setBackground(LightBlue);
   Datapanel.setLayout(new GridLayout(0,1));
   panel = new Panel();
   panel.add( new Label("Surname:"));
   panel.add( new Label(order1.getSName()));
   Datapanel.add(panel);
   panel = new Panel();
   panel.add( new Label("First Name:"));
   panel.add( new Label(order1.getFName()));
   Datapanel.add(panel);  
   panel = new Panel();
   panel.add( new Label("E-mail:"));
   panel.add( new Label(order1.getEmail()));
   Datapanel.add(panel);
   panel = new Panel();
   panel.add( new Label("Credit/Debit Card:"));
   panel.add( new Label(order1.getCCard()));
   Datapanel.add(panel);
   panel = new Panel();
   panel.add( new Label("Expiry Date:"));
   panel.add( new Label(order1.getExpMonth() +"/" +order1.getExpYear()));
   Datapanel.add(panel);
   panel = new Panel();
   panel.add( new Label("Course booked:"));
   panel.add( new Label(order1.getCourse()));
   Datapanel.add(panel);
   panel = new Panel();
   panel.add( new Label("Number of persons:"));
   panel.add( new Label(new Integer(order1.getPeople()).toString()));
   Datapanel.add(panel);
   panel = new Panel();
   panel.add( new Label("Total Cost of your order"));
   panel.add( new Label(new Integer(order1.getTotal()).toString()));
   Datapanel.add(panel);
   add(Datapanel, "Center");
   setSize(400,300);
   setLocation(320,240);
   setTitle("Order Confirmation");
   pack();
public void actionPerformed( ActionEvent e)
   dispose();

here is also the class Order
import java.util.*;
public class Order
private String[] OrderDetails = new String[9]; //create array 9 elements
Order(String[] c)
   this.OrderDetails = c;
String getSName()  //return Surname
   String s = OrderDetails[0];
   return s;
String getFName()  //return First Name
   String f = OrderDetails[1];
   return f;
String getEmail() //return E-mail
   String email = OrderDetails[2];
   return email;
String getCCard() //return CCard number
   String cc = OrderDetails[3];
   return cc;
String getExpMonth() //return CCard Expiry Month
   String expm = OrderDetails[4];
   return expm;
String getExpYear() //return CCard Expiry Year
   String expy = OrderDetails[5];
   return expy;
String getCourse() //return Course's name
   String course = OrderDetails[6];
   return course;
int getPrice() //return Price (Full-Time, Part-Time, Concessions)
   String price1 = OrderDetails[7];
   int price = Integer.parseInt(price1);  
   return price;
int getPeople() //return number of participants
   String people1 = OrderDetails[8];
   int people = Integer.parseInt(people1);
   return people;
int getTotal() //return total cost of booking
   int Total = getPrice()*getPeople();
   return Total;
}

Similar Messages

  • Don't understand error message from HTML parser?

    I've written a simple test program to parse a simple html file.
    Everything works fine accept for the <img src="test.gif"> tag.
    It understands the img tag and the handleSimpleTag gets called.
    I can even pick out the src attribute. But I get a very strange error message.
    When I run the test program below on the test.html file (also below) I get the following output:
    handleError(134) = req.att srcimg?
    What does "req.att srcimg?" mean?!?!?
    /John
    This is my test program:
    import javax.swing.text.html.*;
    import javax.swing.text.*;
    import javax.swing.text.html.parser.*;
    import java.io.*;
    public class htmltest extends HTMLEditorKit.ParserCallback
    public htmltest()
       super();
    public void handleError(String errorMsg, int pos)
       System.err.println("handleError("+pos+") = " + errorMsg);
    static public void main (String[] argv) throws Exception
        Reader reader = new FileReader("test.html");
        new ParserDelegator().parse(reader, new htmltest(), false);
    This is the "test.html" file
    <html>
    <head>
    </head>
    <body>
    This is a plain text.<br>
    This is <b>bold</b> and this is <i>itallic</i>!<br>
    <img src="test.gif">
    "This >is also a plain test text."<br>
    </body>
    </html>
    ----------------------------------------------------------------------

    The handleError() method is not well documented any more than whole javax.swing.text.html package and its design structure. You can ignore the behavior of the method if other result of the parser and your HTML file are proper.

  • TS3694 I was doing the latest update (7) and when it got to exporting files it gave me error message 3194, need help please

    I was doing the latest update to my iphone4. when it got to exporting files it gave me error 3194, can anyone help?

    Error -1 is not mentioned in this article about error messages during a restore process: http://support.apple.com/kb/TS3694
    This one comes close:
    The device could not be restored. An internal error occurred, or Error 3200: This indicates a network-connectivity or traffic issue. If you see this error, wait an hour or more and try again.
    You may also check your security software settings, to make sure that iTunes can contact Apple servers during this process: iTunes for Windows: Troubleshooting security software issues

  • Archiving on FCSvr and now major error messages...help please

    So I was archiving a bunch of stuff off to our archive device when this happened...
    *ERROR: E_FD*
    *file write error*
    *No space left on device*
    then
    *ERROR: E_FILE*
    *Unable to open file /Volumes/DroboFCSvrArchive/7/Content2/Content1/RAW Footage Library/BELUGA BIRTH ALL/Beluga Day After/swim day2.mov for writing*
    *No space left on device*
    then
    *ERROR: E_DATABASE*
    *ERROR: could not extend relation 1663/16385/16747: No space left on device*
    *HINT: Check free disk space.*
    So, drobo is our archive device. It has plenty of room. The drive that is full is our system drive. Our system drive is completely out of room. It is not a FCSvr device. I can't find anything unusual about the system drive and searches turn up nothing (not indexed I guess).
    So it looks like FCSvr was telling me that drobo was full. It's not. I can currently archive to it. But it doesn't help me understand why the system drive is full or why it was reporting that drobo had no room.
    Until a week or two ago (last time I checked) the system drive had about 50 gig remaining. It only holds apps and operating system.

    Hi,
    have you looked at /Volumes/ ? Is it possible that you have a 'dead' folder named the same way like you drobo drive in that path?
    It's possible that FCSvr tries to write to the drobo drive, yet, the folder it really writes its data into is a local folder.
    This can happen if your system crashes and for that reason doesn't unmount /Volumes/DroboFCSvrArchive properly during system shut down. Then even with the drobo drive unmounted, the folder remains.
    If then the system restarts, your drobo drive gets mounted into the path /Volumes/DroboFCSvrArchive (1) or something like that, though in Finder it looks quite normal.
    So if you find two similar folders at /Volumes/DroboFCSvrArchive, the solution would be to unmount and disconnect the drobo drive and then to move the remaining folder /Volumes/DroboFCSvrArchive to your desktop (by typing sudo mv /Volumes/DroboFCSvrArchive ~/Desktop/ in your Terminal, e.g.).
    Now reconnect your drobo drive and copy data from your desktop into FCSvr.
    Hope that helps.
    André

  • I deleted my microsoft office:mac 2011 word from my toolbar. I have Mac OS X version 10.6.8.  I tried to reinstall but it won't work. I get an error message each time. Please help!!!!!!!!!!!!!!

    I deleted my microsoft office:mac 2011 word from my toolbar. I have Mac OS X version 10.6.8.  I tried to reinstall but it won't work. This has never happened before.  I get an error message each time. Please help!!!!!!!!!!!!!!  I don't have time machine. 

    By Toolbar, do you mean the Dock?  The Translucent bar normally at the bottom of the screen, but sometimes at the right or left side?
    If that's what you mean, the Dock is merely a shortcut to what is already inside the Applications folder's Microsoft Office 2011 folder.  If you have Word inside your Microsoft Office 2011 folder, you can drag it back to the Dock.
    If you deleted the Microsoft Office folder, or it is empty, you'll have to reinstall it. 
    If you don't have your registration code, you'll have to call Microsoft for a new one.

  • I'm getting an error message from Firefox that says, "Something is trying to trick Firefox into accepting an insecure update. Please contact your network provider and seek help."

    I'm getting an error message from Firefox that says, "Something is trying to trick Firefox into accepting an insecure update. Please contact your network provider and seek help." Do you know what is going on here--what this problem could be? (I do have the latest Firefox version already installed. I have previously received Firefox error messages that say "Firefox Update Failed." However, I already had the latest Firefox version installed when I received those error messages.)

    Apparently this occurs when Firefox has problems with security certificates. There have been a few questions about this. I will try to get advice about this.
    Apparently you are using Internet Explorer 9 (From your system details). Do you have Google Updater plugin installed on Firefox ?
    (That been implicated in this sort of problem by one poster, and some users with the problem do have Google Updater, but some do not)

  • IPad stops responding, showing the Apple logo only,i tried to place into recovery mode and attempted to restore again but brings error in downloading s/w message.can anyone help please.Thanks

    iPad stops responding, showing the Apple logo only,i tried to place into recovery mode and attempted to restore again but after downloading the software, it brings error in downloading s/w message.can anyone help please.Thanks

    http://support.apple.com/kb/TS3694#error14
    These errors are typically resolved by performing one or more of the steps listed below:
    Perform USB isolation troubleshooting, including trying a different USB port directly on the computer. See the advanced steps below for USB troubleshooting.
    Put a USB 2.0 hub between the device and the computer.
    Try a different USB 30-pin dock-connector cable.
    Eliminate third-party security software conflicts.
    There may be third-party software installed that modifies your default packet size in Windows by inserting one or more TcpWindowSize entries into your registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet-size modification for assistance. Or, follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) to reset the packet size back to the default for Windows.
    Connect your computer directly to your Internet source, bypassing any routers, hubs, or switches. You may need to restart your computer and modem to get online.
    Try to restore from another known-good computer and network.

  • Can anyone help me? The iTunes update corrupted my program. I uninstalled, and then reinstalled iTunes; only to find an error message about iTunes Helper. After several fruitless, repeat attempts, I am at a loss. Please help-

    Can anyone help me? The iTunes update corrupted my program. I uninstalled, and then reinstalled iTunes; only to find an error message about iTunes Helper. After several fruitless, repeat attempts, I am at a loss. Please help…

    Many thanks.
    With the Error 2, let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR suitable for your PC (there's a 32-bit Windows version and a 64-bit Windows version):
    http://www.rarlab.com/download.htm
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes.  Not a fix.  Help?

    When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes.  Not a fix.  Help?

    after perusing other subjects with playback issues: 
    this is the fix: 
    -Launch Control Panel - Double click Quicktime, If you do not see quicktime, look on the top left side of control panel and switch to classic view. This will then allow you to see Quicktime.
    -Now click the advanced tab and click on Safe Mode GDI Only, Apply, then ok.

  • ITunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5). I have uninstalled in correct order and reinstalled but still getting same error message. Any help??

    iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5). I have uninstalled in correct order and reinstalled but still getting same error message. Any help??

    Take a look at iTunes for Windows: "Error 7" message when opening iTunes. Perhaps your .NET Framework needs a repair.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Please i am unable to restore my ipad due to error 3194.The restore process stalls when it gets to the point where the firmwarwe is being updated.error message 3194 comes up.please help me

    please i am unable to restore my ipad due to error 3194.The restore process stalls when it gets to the point where the firmwarwe is being updated.error message 3194 comes up.please help me

    http://support.apple.com/kb/TS3694#error3194 
    Unable to contact the iOS software update server gs.apple.com

  • Can anyone help me understand this output from Console?

    My Macbook Pro freezes and I have to manually shut it down and restart it.  This is the error output from Console after I restart the Mac and find the time that the Mac froze.
    Here is the error code again, if it was too hard to read from the image above:

    Hi, did you find any answer to this? I have the same problem with globeinvestor.com gold tracker program. It stops to run from very beginning and give me a 23 code error.
    Their supprot can not fix this. Actually i have tried this in three different computers and all of them are same.

  • I am unable to print PDF's using either Adobe Reader or Safari. In Adobe Reader, I get an error message from my Cannon printer that says, "/usr.libexec/cups/filter/pstocupsraster failed". In Safari, I can only print the first page of a PDF.

    To try to resolve this problem, I have done the following actions.
    1 - I have run Disk Warrior.
    2 - I have repaired permissions.
    3 - I have deleted all plist that are either Cannon or Adobe.
    4 - I have downloaded and installed the lastest versions of Adobe Reader and the Cannon printer drivers.
    I am still unable to print PDF's.
    In Safari, I can print only the first page. In a multipage PDF, Safari only seems to recognize the first page.
    In Adobe Reader, I get an error message from my printer: "/usr/libexec/cups/filter/pstocupsraster failed".
    Any help would be greatly appreicated!

    Quit Safari.
    Open the Library folder in your home folder as follows:
    ☞ If running OS X 10.7 or later, hold down the option key and select Go ▹ Library from the Finder menu bar.
    ☞ If running an older version of OS X, select Go ▹ Go to Folder… from the Finder menu bar and copy the line below into the text box that opens:
    ~/Library
    Delete the following items from the Library folder:
    Caches/com.apple.Safari/Cache.db
    Preferences/com.apple.quicktime.plugin.preferences.plist
    Preferences/QuickTime Preferences
    Relaunch Safari and test.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Select "/var/log/cups/error_log" from the file list. Post the messages from the time of the last printing attempt.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.

  • Error message from the source system, Caller 09 contains an error message.

    Hi,
        Guru's, i got an error massage when my process chain is running(Daily) in BIW 7.0, the error got in Data Loading from source to PSA or data targets. The errors having the below details
    Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System Response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Extractor .
    Refer to the error message.
    Procedure
    How you remove the error depends on the error message.
    Note
    If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the request.   "
    Can any body help me out of this situation what to do and how to resolv ethe problem.
    Thanks and Regards,.
    Taps....

    Caller 09 is a very common issue - please search the forums before posting....
    Arun

  • A way to display error messages from the program

    Dear all,
    I am looking forward to display a set of error messages(in a internal table) during the execution of the program to the user.
    I wanted to know the better way of displaying error messages from my program with more options.
    Well I tried out using displaying errors as ALV list/Grid or as simple list processing.
    But I found some  stanadard transactions (Like in MM and FI  where errors are shown in a better way, but failed to find out how they are done.
    Please guide me.
    Thanks in advance
    Aryan

    Try to use application logging it has a very good way to display a set of messages.
    [http://abap4.tripod.com/Using_Application_Logging.html|http://abap4.tripod.com/Using_Application_Logging.html]
    Run this report in se38 an example sap report to understand logging way to show a set of messages
    Report Name  :  SBAL_DEMO_01
    Edited by: Vighneswaran CE on Dec 19, 2010 3:01 PM
    Edited by: Vighneswaran CE on Dec 19, 2010 3:11 PM

Maybe you are looking for