Please fix print errors in Admin Guide

In the admin guide PartNo: 820–3885–11, pages 49-51 have a print error and need to be fixed.

fgb wrote:
Exception in thread "main" java.lang.NullPointException
at SecondsCalc.<init>(SecondsCalc.java:43)
at SecondsCalc.main(SecondsCalc.java.166)Something is null on line 43. What does that line do and why is it needed?That's right!!
I did not need to put line 43, which was
// Add the panel to the frame's content pane.
add(panel);
Thank you very much!!!

Similar Messages

  • Please fix these errors for me...

    Here is my code...
    When I compiled it, it said
    Exception in thread "main" java.lang.NullPointException
    at java.awt.Container.addImpl(Unknown Source)
    at java.awt.Container.add(Unknown Source)
    at javax.swing.JFrame.addImpl(Unknown Source)
    at java.awt.Container.add(Unknown Source)
    at SecondsCalc.<init>(SecondsCalc.java:43)
    at SecondsCalc.main(SecondsCalc.java.166)
    Please fix these errore for me..Thank you!!
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class SecondsCalc extends JFrame
    private JPanel panel;   // To reference a panel
    private JLabel messageLabel1; // To reference a label for days
    private JLabel messageLabel2; // To reference a label for hours
    private JLabel messageLabel3; // To reference a label for minutes
    private JLabel messageLabel4; // To reference a label for minutes
    private JTextField daysTextField; // To reference a text field for days
    private JTextField hoursTextField; // To reference a text field for hours
    private JTextField minutesTextField; // To reference a text field for minutes
    private JTextField secondsTextField; // To reference a text field for seconds
    private JButton calcButton;  // To reference a calculate button
    private JButton exitButton;  // To reference a exit button
    private final int WINDOW_WIDTH = 310; // Window width
    private final int WINDOW_HEIGHT = 100; // Window height
      Constructor
    public SecondsCalc()
      // Set the window title.
      setTitle("Seconds Calculator");
      // Set the size of the window.
      setSize(WINDOW_WIDTH, WINDOW_HEIGHT);
      // Specify what happens when the close button is clicked.
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      // Add a GridLayout manager to the content pane.
      setLayout(new GridLayout(6, 1));
      // Build the panel and add it to the frame.
      buildPanel();
      // Add the panel to the frame's content pane.
      add(panel);
      // Display the window.
      setVisible(true);
      The buildPanel method adds a label, text field, and
      add buttons to a panel.
    private void buildPanel()
      // Create a label for days to display instructions.
      messageLabel1 = new JLabel("days");
      // Create a text field for days 10 characters wide.
      daysTextField = new JTextField(10);
      // Create a label for hours to display instructions.
      messageLabel2 = new JLabel("hours");
      // Create a text field for hours 10 characters wide.
      hoursTextField = new JTextField(10);
      // Create a label for minutes to display instructions.
      messageLabel3 = new JLabel("minutes");
      // Create a text field for minutes 10 characters wide.
      minutesTextField = new JTextField(10);
      // Create a label for seconds to display instructions.
      messageLabel4 = new JLabel("seconds");
      // Create a text field for seconds 10 characters wide.
      secondsTextField = new JTextField(10);
      // Create a calculate button with the caption "Calculate".
      calcButton = new JButton("Calculate");
      // Create a exit button with the caption "Exit".
      exitButton = new JButton("Exit");
      // Register the action listeners.
      calcButton.addActionListener(new CalcButtonListener());
      exitButton.addActionListener(new ExitButtonListener());
      // Create a JPanel object and let the panel
      // field reference it.
      JPanel panel1 = new JPanel();
      JPanel panel2 = new JPanel();
      JPanel panel3 = new JPanel();
      JPanel panel4 = new JPanel();
      JPanel panel5 = new JPanel();
      JPanel panel6 = new JPanel();
      // Add the label, text field, and button
      // components to the panel.
      panel1.add(messageLabel1);
      panel2.add(messageLabel2);
      panel3.add(messageLabel3);
      panel4.add(messageLabel4);
      panel1.add(daysTextField);
      panel2.add(hoursTextField);
      panel3.add(minutesTextField);
      panel4.add(secondsTextField);
      panel5.add(calcButton);
      panel6.add(exitButton);
      add(panel1);
      add(panel2);
      add(panel3);
      add(panel4);
      add(panel5);
      add(panel6);
      CalcButtonListener is an action listener class for
      the Calculate button.
    private class CalcButtonListener implements ActionListener
            public void actionPerformed(ActionEvent e)
                int seconds; // The number of seconds
                int min;
                int day;
                int hour;
                long result;
                // Get the text entered by the user into the
                // text fields.
                day = Integer.parseInt(daysTextField.getText());
       hour = Integer.parseInt(hoursTextField.getText());
                min = Integer.parseInt(minutesTextField.getText());
                seconds = Integer.parseInt(secondsTextField.getText());
       //Actullly gettext method returns string and you need to convert it into int or double value using Integer.parseInt method.
                // Calculate to seconds.
       result = (day *((hour * 60 * 60) + (min * 60) +seconds));
       // Display the result.
                 JOptionPane.showMessageDialog(null, result + " seconds");
      Private inner class that handles the event when
      the user clicks the Exit button.
    private class ExitButtonListener implements ActionListener
      public void actionPerformed(ActionEvent e)
       System.exit(0);
    public static void main(String[] args)
      SecondsCalc ac = new SecondsCalc();
    }

    fgb wrote:
    Exception in thread "main" java.lang.NullPointException
    at SecondsCalc.<init>(SecondsCalc.java:43)
    at SecondsCalc.main(SecondsCalc.java.166)Something is null on line 43. What does that line do and why is it needed?That's right!!
    I did not need to put line 43, which was
    // Add the panel to the frame's content pane.
    add(panel);
    Thank you very much!!!

  • How do i fix; printing error; the adobe print engine has failed to output your data due to an unknow

    how do i fix; printing error; the adobe print engine has failed to output your data due to an unknow problem.

    Things to try:
    Reboot.
    Remove minor corruption by exporting.
    Adobe Community: File Crashing on Output - printing/PDF/other

  • Please Fix Tutorial Errors - Customize and Personalize an Application

    Oracle JDev Powers-That-Be,
    There are some misspellings on the Customizing and Personalizing an Application on the Oracle JDeveloper tutorials (http://www.oracle.com/technetwork/developer-tools/jdev/ccset18-all-084117.html) that got me for about 4 hours today.
    In "Create and Deploy Customization Class", #7
    <JDEVELOPER_HOME>jdeveloperjdevlibpatches< jar_file_name> . Should be
    <JDEVELOPER_HOME>jdeveloper/jdev/lib/patches<jar_file_name>.That really got me. I didn't know the significance of that error until I compiled, looked over the example multiple times, and then got to page 37 of 57 on http://www.scribd.com/doc/40222312/21/The-CustomizationLayerValues-xml-configuration-file
    Also, step 12
    adf-config.xml should be adfc.config.xml
    Please fix.
    Will

    I fixed the directory specification at:
    http://www-content.oracle.com/technetwork/developer-tools/jdev/ccset18-all-084117.html

  • HT1341 how do i fix printer error message,"rastertoescpII"

    I am getting an error message when I try to print.  It starts out "rastertoescpII" and says it quit unexpectedly and threads have crashed.  I reset my printer (an Epson), and other functions including scanning, are still working.  Any tips?

    Epson Printer Filter Failure
    It might be the missing computer name mentioned there...

  • Can you please fix problem error msg ..well this is embarrassing ..Firefox is having trouble recovering window and tabs. Etc. comes up all the time

    I checked FAQ and solution to quit first and not close windows didn't help me. Will a new version be coming out to fix this problem? And if so PLEASE make it soon

    hello, this is currently a problem in firefox when you first close all open firefox windows and then close the application afterwards - the bug should be addressed in a later version of firefox.
    as a workaround in the meanwhile you could close firefox (through firefox > quit) while the browser window is still running or try this: enter about:config into the firefox location bar (confirm the info message in case it shows up) & search for the preference named '''browser.sessionstore.resume_from_crash'''. double-click it and change its value to '''false'''.

  • How to fix printhead error Oxc19a0042 on a new printer

    Printer seems to have stalled on printer error problem with the printhead Oxc19a0042
    my printer is less than a month old still with the original ink in and has been working perfectly.  Suddently it came up with this error message saying there was a problem with the printhead Oxc 19a0042.  The trouble shooting says to remove the print head if you have a model to do so - however this model does not.  How can I fix this quickly???? 

    Hi @mynewhpprinter,
    Based on your description, it sounds to me like you have been following the instructions found in the Document below.
    HP Printers - 'Problem with Printhead,' 'Printer Failure,' 'Ink System Failure,' or a '0x...' or a '....
    At this point, I suggest calling us. If you are in Canada or US call 800 474 6836, or you can Contact HP Worldwide.
    HP printers generally have a 1 year warranty from their purchase date, you can verify the warranty using the following link if you would like; warranty check. 
    I hope this helps.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • How can I fix this printer error with Samsung SCX-4300 and SCX-4521f on Windows Server 2008 R2?

    I have two printers installed on Windows Server 2008 R2 (64-bit):
    1. Samsung SCX-4521f
    2. Samsung SCX-4300
    There are two computers (Windows 7 Professional, 32-Bit) connected to this server that utilise these shared printers.
    The drivers installed are as follows:
    SCX-4x21_Win7_Print.exe (Win 2000/XP/2003/Vista/2008/Win 7    3.04.96:03    Print Driver    11 Dec, 2009    12.37    MULTI LANGUAGE)
    SCX-4300_Print.exe (Win 2000/XP/2003/Vista/2008/Win 7(32,64bit) 3.04.95:07 Print Driver Jan 19, 2011 53.07 MULTI LANGUAGE)
    After printing documents for some time (within a 24 period) the printers no longer respond to print requests.
    On the server opening "Control Panel\Hardware\Devices and Printers" shows the two printers with yellow exclamation marks.
    The "SCX-4x21" printer shows the "Status" as "Needs troubleshooting" and "Printer: Error".
    The "SCX-4300" printer shows the "Status" as "Needs troubleshooting".
    Neither will print a test page.
    Searching for new drivers automatically returns saying: "The best driver software for your device is already installed".
    The error persists and nothing will print.
    When double-clicking on the "SCX-4x21" printer (or going to "Control Panel\Hardware\Devices and Printers\Samsung SCX-4x21 Series") you see the following:
    "Printer: Error" and "N document(s) in queue".
    Clicking on either of these brings up the print queue and shows a document with the status of "Error - Printing".
    As each job with an error is cancelled the next one attempts to print and also displays an error like the last.
    Once all the jobs are cleared the printer information says "Printer: Ready".
    Sending a "Print Test Page" sends the printer into an error state saying "Printer: Error".
    With the "SCX-4300", sending a "Print Test Page" displays a bubble saying: "Toner Empty: Replace Toner".
    However, I can't see any specific error messages.
    How do I find out what exactly "Needs troubleshooting"?
    Please can anyone advise further?

    The printer (SCX-4300) has stopped again.
    Since it has been stopped I have done your recommendations:
    Unticked the "Enable bidirectional support" option under the "Ports" tab in the printer properties.
    Set the "Interactive Services Detection" to Automatic and started it.
    Unfortunately the printer did not start printing, the print jobs did not restart or delete.
    I decided to check the Operational logs that we enabled.
    The first job I see goes like this:
    Information: Rendering job 41.
    Error: The print spooler failed to delete the file C:\Windows\system32\spool\PRINTERS\00041.SHD, error code 0x2. See the event user data for context information.
    Information: The print job 41 was sent through the print processor SSE1MPC on printer Samsung SCX-4300 Series, driver Samsung SCX-4300 Series, in the isolation mode 1 (0 - loaded in the spooler, 1 - loaded in shared sandbox, 2 - loaded in isolated
    sandbox). Win32 error code returned by the print processor: 0x0.
    Information:Printing job 41.
    Information:Spooling job 41.
    This job actually printed.
    Other jobs printed fine with no error.
    There are no other errors in the "Operational" log other than the "print spooler failed to delete" error.
    Any ideas what to try now?
    Update: Unticking the "Enable bidirectional support", clearing the print queue and then trying again seems to have fixed the problem for now.

  • Has anybody found a fix to The document could not be printed and There were no pages selected to print error

    Has anybody found a fix to "The document could not be printed" and "There were no pages selected to print" error?
    I am using a Mac and I'm running the latest versions of OS X 10.6.8 and Adobe 11.0.10 but I'm unable to print.  I need REAL HELP not a suggestion or a get around!  and NO print as an image doesn't work, nor do I see that as a fix!
    Please help!

    Hello PW, I am having this problem and all suggestions haven't worked yet. Where is the Preferences|Documents you are referring to? I am on a PC and using Windows.
    EDIT: I found it and did, but still not working.

  • HP B110a in constant loop - cannot print, "printer error, please restart printer"

    i was trying to set up the wireless feature of this printer but it never managed to get a connection to the wireless router.
    after i type the WPA2 key in, all the touch buttons start flashing together and the screen says "Printer error, pleae press power button and restart printer"
    now i've tried everything, even factory reset via the touch menus (have to be very fast to do the reset before the same error comes up). and basically the printer is unfunctional at the moment.
    is there a method to reset it? or is there a solution?
    i am using both a mac and pc, primarily mac. the wireless setup option during the mac driver installation also failed. it hung on the bit where it tries to connect to the router so i restarted everything after an hour of waiting.

    Hey guys,
    I had this same problem and have finally fixed it. For more details please see my thread over here:
    http://h30434.www3.hp.com/t5/ePrint-Print-Apps-Mob​ile/If-you-have-a-Blue-Screen-Error-due-to-Wireles​...

  • Lightroom crashes at start up with the error message "Lightroom encountered an error when reading from its preview cache and needs to quit".  Please advise on how to fix this error.  Thanks

    Lightroom crashes at start up with the error message "Lightroom encountered an error when reading from its preview cache and needs to quit".  Please advise on how to fix this error.  Thanks

    You probably need to delete your preview cache.  See here  
    Why And How To Clear Your Lightroom Cache - Lightroom Fanatic
    Preference and other file locations in Lightroom 5

  • When i tried to update my apps in the app store, i coudn't update because of particular error is irritating me whenever i try to update..[There was an error in the app store please try again later.(20)] Any one suggest me to fix this error soon.

    When i tried to update my apps in the app store, i coudn't update because of particular error is irritating me whenever i try to update..[There was an error in the app store please try again later.(20)] Any one suggest me how to fix this error soon.

    Yea i deleted all the apps which was purchased earlier with old Apple id ..and nw i installed all apps with my new apple id...Tanq for helping guys (Linc Davis and Dah•veed ).

  • How to fix imessage error on ios8.1.2 .. Already reset network still same issue please help

    How to fix imessage error on ios8.1.2 .. Already reset network still same issue please help

    Hi ashmanryan36,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you are having trouble with iMessage. It looks like you have already done some troubleshooting. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support
    You did not mention what the error was but since you are running 8.1.2 and update is available and my help. 
    Update the iOS software on your iPhone, iPad, and iPod touch - Apple Support
    Cheers,
    Mario

  • How to fix this error "this iPad is not able to complete the activation process. Please press Home and start over. If the issue persists, please visit your nearest Apple Store or Authorized service provider for more information or replacement"?

    How to fix this error "this iPad is not able to complete the activation process. Please press Home and start over. If the issue persists, please visit your nearest Apple Store or Authorized service provider for more information or replacement"? When I plugged in my iPad this popped up!

    Hi csreddy, 
    If you are receiving a message to contact an Apple Retail Store or Authorized Service Provider for help updating from iOS 3, click on the link below to initiate that support:
    Update the iOS software on your iPhone, iPad, and iPod touch - Apple Support
    http://support.apple.com/en-us/HT204204
    Update your device using iTunes
    If you can’t update wirelessly, or if you want to update with iTunes, follow these steps:
    Install the latest version of iTunes on your computer.
    Plug in your device to your computer.
    In iTunes, select your device.
    In the Summary pane, click Check for Update. 
    Click Download and Update.
    If you don't have enough free space to update using iTunes, you'll need to delete content manually from your device.
    Find out what to do if you get other error messages while updating your device.
    Last Modified: Jan 12, 2015
    Apple - Find Locations
    https://locate.apple.com
    Contact Apple for support and service - Apple Support
    http://support.apple.com/en-us/HT201232
    Regards,
    - Judy

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

Maybe you are looking for

  • Spry menu displays as bullets [was; NEED HELP PLEASE]

    Thank you for taking the time to help me with this: when ever I create the spry menu bar in Dreamweaver it sets it as bullets, it isnt noticeable in dreamweaver or when I test it in safari,firefox, etc.. but as soon as I upload it to the ftp host it

  • After new Yosemite update, the search results/suggestions bar is faded in Safari. Help.

    It remains faded even after I select something. What is causing this and how do I fix it? I tried quitting Safari and restarting my computer.

  • Lost my Version 8 serial Number

    I purchased a Canon scanner from Amazon and along with it came Version 8 of Photoshop elements.  I installed it and all has been fine.  My laptop is acting up and I need to rebuild it, but "guess what", I can't find the serial number and never regist

  • Re: Bridge doesn't open

    Hi, I have the same problem. I have a brand new iMac, 3.4 Ghz Intel Core 5, 16GB Mem, 3Tb disc and when I try to open Bridge I get the following popup: (The opeation could not be completed) When you click on Aceptar (Accept) the application closes it

  • Etsy shop is not displaying twitter or facebook connection

    I have an Etsy shop Tinkaroundknits that is connected to twitter and facebook. Under my shop banner should be a twitter follow button and on the left lower side of my shop there should be a facebook like button. Both of these buttons show up and are