What's up with this error???

Here's the NullPointerException I'm getting:
java.lang.NullPointerException
at javax.swing.plaf.metal.BumpBuffer.fillBumpBuffer(MetalBumps.java:174)
at javax.swing.plaf.metal.BumpBuffer.<init>(MetalBumps.java:152)
at javax.swing.plaf.metal.MetalBumps.createBuffer(MetalBumps.java:61)
at javax.swing.plaf.metal.MetalBumps.setBumpColors(MetalBumps.java:96)
at javax.swing.plaf.metal.MetalBumps.<init>(MetalBumps.java:53)
at javax.swing.plaf.metal.MetalScrollBarUI.installDefaults(MetalScrollBa
rUI.java:80)
at javax.swing.plaf.basic.BasicScrollBarUI.installUI(BasicScrollBarUI.ja
va:98)
at javax.swing.JComponent.setUI(JComponent.java:325)
at javax.swing.JScrollBar.updateUI(JScrollBar.java:189)
at javax.swing.JScrollBar.<init>(JScrollBar.java:140)
at javax.swing.JScrollBar.<init>(JScrollBar.java:155)
at javax.swing.JScrollPane$ScrollBar.<init>(JScrollPane.java:635)
at javax.swing.JScrollPane.createVerticalScrollBar(JScrollPane.java:780)
at javax.swing.JScrollPane.<init>(JScrollPane.java:242)
at javax.swing.JScrollPane.<init>(JScrollPane.java:262)
This only happens maybe 1 in every 20 runs of the application. So what's up the the "fillBumpBuffer"? Is there a way fix this exception?

I've gotten that working with JSP. There's a thing about setUI() in there that makes me want to tell you to run this line of code:
javax.swing.UIManager.setLookAndFeel(
    javax.swing.UIManager.getSystemLookAndFeelClassName()
);Yeah. That should work. It should make everything look like the other stuff in your OS, too.
Spaceman40
P.S: Put that code in before initializing any Components, or any gui stuff at all.

Similar Messages

  • "No headers or footer ware added because Acrobat encountered an unidentified error." in adobe professional 6.0, what to do with this error?

    "No headers or footer ware added because Acrobat encountered an unidentified error." in adobe professional 6.0, what to do with this error?

    My suggestion is that you reconsider whether your in Non-Drop frame. NTSC standard is Dropframe 29.97. I'm afraid you may have this backwards. DVX100's default to dropframe (29.97fps) in the USA. FCP could be encountering a pulldown cadence every few minutes because it expects a frame drop that is not there.
    Remember the frame drop only occurs every few minutes so this makes sense. With standard NTSC capture (not 24fps pulldown removal) such dropped frames don't mess anything up. They just subtly shift the timing and sync of the audio track. You could have captured this way for years and rarely seen a problem with short clips. When doing a pulldown removal, a missing or in your case extra frame can confuse the pulldown removal system as it expects to find the video encoded in 29.97 rather than 30fps.

  • What to do with this error

    for example:
    public class BitwiseDemo {
    static final int VISIBLE = 1;
    static final int DRAGGABLE = 2;
    static final int SELECTABLE = 4;
    static final int EDITABLE = 8;
    public static void main(String[] args) {
    int flags = 0;
    flags = flags | VISIBLE;
    flags = flags | DRAGGABLE;
    if ((flags & VISIBLE) == VISIBLE) {
    if ((flags & DRAGGABLE) == DRAGGABLE) {
    System.out.println("Flags are Visible "
    + "and Draggable.");
    flags = flags | EDITABLE;
    if ((flags & EDITABLE) == EDITABLE) {
    System.out.println("Flags are now also Editable.");
    above example should output below:
    Here's the output from this program.
    Flags are Visible and Draggable.
    Flags are now also Editable.
    why does it run with this error?
    BitwiseDemo.java:43: requires "class" or "interface"
    ^
    BitwiseDemo.java:43: requires "class" or "interface"
    who can help me ?
    thanks!

    Hi, I have no problem with executing your source after copy paste to netbeans.
    Is "for example" code the same as code with error result?

  • ISync fails - what to do with this error message?

    I set my iMac to autosync everyday at a certain time. I realized that the last sync was 7/27/06, and when I go to Sync tab in the .Mac system preferences, I get the following ".Mac Sync Error" message exactly as follows:
    "* -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)"
    Any idea of what sync fails? and what I need to do ?
    Thanks!

    With the release of Mac OS X 10.4 more than a year ago, iSync no longer has anything to do with the synchronization of contacts, calendars and tasks with .Mac - that is the responsibility of .Mac Sync. You should probably post you query in the .Mac Sync forum, here:
    http://discussions.apple.com/forum.jspa?forumID=957
    You may be able to deal with the error message by resetting the Sync Services framework—its truth database, actually—by launching iSync, opening the Preferences… dialog, and pressing the Reset Sync History button. That will leave your data intact and your sync clients registered, but reset the truth database and framework to behave in such a way that your next synchronization event will appear to be the first event you have ever performed.
    The 'incomprehensible archive' the error message refers to is likely on your Macintosh.
    Before proceeding further, back up your contact and calendar files using the built in provision to do so in both the Address Book and iCal. If resetting the database does not correct your issue, you can launch System Preferences, open the .Mac pane and press the Advanced tab. In the lower left corner is a Reset Sync History button. Press that, and in the dialog which appears, configure .Mac to overwrite the data files for one OS X application on your machine at a time, starting with contacts. Make sure that you overwrite your computer data [which you have just backed up, and can therefore restore if that is necessary] with the data from .Mac.

  • What to do with this error message?

    Database Log In Failed
    TNS could not resolve service name
    Verify that the TNS name in the connectstring entry of the DAD for this URL is valid.
    Thank you,
    David
    [email protected]

    With the release of Mac OS X 10.4 more than a year ago, iSync no longer has anything to do with the synchronization of contacts, calendars and tasks with .Mac - that is the responsibility of .Mac Sync. You should probably post you query in the .Mac Sync forum, here:
    http://discussions.apple.com/forum.jspa?forumID=957
    You may be able to deal with the error message by resetting the Sync Services framework—its truth database, actually—by launching iSync, opening the Preferences… dialog, and pressing the Reset Sync History button. That will leave your data intact and your sync clients registered, but reset the truth database and framework to behave in such a way that your next synchronization event will appear to be the first event you have ever performed.
    The 'incomprehensible archive' the error message refers to is likely on your Macintosh.
    Before proceeding further, back up your contact and calendar files using the built in provision to do so in both the Address Book and iCal. If resetting the database does not correct your issue, you can launch System Preferences, open the .Mac pane and press the Advanced tab. In the lower left corner is a Reset Sync History button. Press that, and in the dialog which appears, configure .Mac to overwrite the data files for one OS X application on your machine at a time, starting with contacts. Make sure that you overwrite your computer data [which you have just backed up, and can therefore restore if that is necessary] with the data from .Mac.

  • Since reinstalling itunes i can no longer sync. Error message says already synced with another itunes library. I get a blank sync - no songs, photos ect as it comes up with this error whenever try to select what is to be synced. Help - lost everything

    Since reinstalling itunes i can no longer sync. Error message says already synced with another itunes library. I get a blank sync - no songs, photos ect as it comes up with this error whenever try to select what is to be synced. Help - lost everything. Complete nightmare - Apple sort a fix NOW, but will take any help

    Plawexki wrote:
    ...  do you know if the contacts, photos, messages etc will be wiped?
    Yes... Everything will be Wiped and Replaced with what is currently on Your Mac.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/
    You may find this information of interest...
    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • While trying to setup a time capsule backup to my MyBookLive external drive, I got the following error message: The network backup disk does not support the required AFP features. What's up with this?

    While trying to setup a time capsule backup to my MyBookLive external drive, I got the following error message: The network backup disk does not support the required AFP features. What's up with this?

    This means that your NAS does not support the required encryption. Update your NAS to the latest firmware or ditch it and buy a Time Capsule (they are the most reliable when using TM).

  • After downloading the latest iTunes update, when I open Outlook on my pc, I am getting an error meaasage that MoblieMe has encountered a problem and needs to close.  What's up with this?

    After downloading the latest iTunes update, when I open Outlook on my pc, I am getting an error message that MobileMe has encountered a problem and needs to close.  What's up with this?

    You're welcome.
    tt2

  • What do I do with this error? "could not complete your request because the file appears to be from a camera model which is not supported by the installed version of camera raw?"

    what do I do with this error? "could not complete your request because the file appears to be from a camera model which is not supported by the installed version of camera raw?"

    It can be that you have an old version of Photoshop Elements and a new camera.
    Please tell us
    Which operating system you are running on
    Which version of Photoshop Elements you are using
    Which camera the raw images come from (Make & model)
    Brian

  • Fox opens an error (Problem opening page) page when ever I open a new fox window and parks it in upper left corner of my desktop, what is up with this ??

    Fox opens an error (Problem opening page) page when ever I open a new fox window and parks it in upper left corner of my desktop, what is up with this ??
    It slows down my surfing, a lot and I do not notice the error page, until I notice the slow speed, because it is as small as a page can be, showing only the " -, +, & full size boxes with a border"

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Hi. I have got problem with my ITunes. Every time I´m opening the program I´ve got the message: One unkwown problem is appering (-42032) Can anybode please tell me what to do wit this error? Thanks

    Hi. I have got problem with my ITunes. Every time I´m opening the program I´ve got the message: One unkwown problem is appering (-42032) Can anybode please tell me what to do wit this error? Thanks

    Gary,
    discussions may sometimes be slow for an hour or so (at which point the opening page of discussions will eventually apologize for the inconvenience, back on line soon...) but your description looks like a cache problem.
    Try OnyX freeware to do some cleanup and see if that helps.
    http://www.titanium.free.fr/index.html

  • I just bought v10.7lion but when I try to install it comes with this error message:"Install Failed"...try to install again. Now I've been restarting over and over again.  What should I do?

    I just bought v10.7lion but when I try to install it comes with this error message:"Install Failed"...try to install again. Now I've been restarting over and over again.  What should I do?

    JPPI-
    Did you try it with the iTunes your Mac already has?
    Try running Software Update in your System Preferences.  That should bring your computer up to the latest software available for 10.4.  You would end up with an older version of iTunes, but that may be good enough to activate your iPad.
    Fred

  • New IMac is crashing randomly because of "Panic Kernel Error." Now IMac startup disk is not visible and will not mount. What the story with this machine. Running 10.6.7

    New IMac is crashing randomly because of "Panic Kernel Error." Now IMac startup disk is not visible and will not mount. What the story with this machine. Running 10.6.7

    Almost certainly, some sort of hardware problem on your logic board. 
    Make an appointment and take it to your local Apple Store: http://www.apple.com/retail/geniusbar/

  • What is wrong with this code? on(release) gotoAndPlay("2")'{'

    Please could someone tell me what is wrong with this code - on(release)
    gotoAndPlay("2")'{'
    this is the error that comes up and i have tried changing it but it is not working
    **Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 2: '{' expected
         gotoAndPlay("2")'{'
    Total ActionScript Errors: 1 Reported Errors: 1
    Thanks

    If you have a frame labelled "2" then it should be:
    on (release) {
        this._parent.gotoAndPlay("2");
    or other wise just the following to go to frame 2:
    on (release) {
         this._parent.gotoAndPlay(2);
    You just had a missing curly bracket...

  • I can't figure out what's wrong with this code

    First i want this program to allow me to enter a number with the EasyReader class and depending on the number entered it will show that specific line of this peom:
    One two buckle your shoe
    Three four shut the door
    Five six pick up sticks
    Seven eight lay them straight
    Nine ten this is the end.
    The error message i got was an illegal start of expression. I can't figure out why it is giving me this error because i have if (n = 1) || (n = 2) statements. My code is:
    public class PoemSeventeen
    public static void main(String[] args)
    EasyReader console = new EasyReader();
    System.out.println("Enter a number for the poem (0 to quit): ");
    int n = console.readInt();
    if (n = 1) || (n = 2)
    System.out.println("One, two, buckle your shoe");
    else if (n = 3) || (n = 4)
    System.out.println("Three, four, shut the door");
    else if (n = 5) || (n = 6)
    System.out.println("Five, six, pick up sticks");
    else if (n = 7) || (n = 8)
    System.out.println("Seven, eight, lay them straight");
    else if (n = 9) || (n = 10)
    System.out.println("Nine, ten, this is the end");
    else if (n = 0)
    System.out.println("You may exit now");
    else
    System.out.println("Put in a number between 0 and 10");
    I messed around with a few other thing because i had some weird errors before but now i have narrowed it down to just this 1 error.
    The EasyReader class code:
    // package com.skylit.io;
    import java.io.*;
    * @author Gary Litvin
    * @version 1.2, 5/30/02
    * Written as part of
    * <i>Java Methods: An Introduction to Object-Oriented Programming</i>
    * (Skylight Publishing 2001, ISBN 0-9654853-7-4)
    * and
    * <i>Java Methods AB: Data Structures</i>
    * (Skylight Publishing 2003, ISBN 0-9654853-1-5)
    * EasyReader provides simple methods for reading the console and
    * for opening and reading text files. All exceptions are handled
    * inside the class and are hidden from the user.
    * <xmp>
    * Example:
    * =======
    * EasyReader console = new EasyReader();
    * System.out.print("Enter input file name: ");
    * String fileName = console.readLine();
    * EasyReader inFile = new EasyReader(fileName);
    * if (inFile.bad())
    * System.err.println("Can't open " + fileName);
    * System.exit(1);
    * String firstLine = inFile.readLine();
    * if (!inFile.eof()) // or: if (firstLine != null)
    * System.out.println("The first line is : " + firstLine);
    * System.out.print("Enter the maximum number of integers to read: ");
    * int maxCount = console.readInt();
    * int k, count = 0;
    * while (count < maxCount && !inFile.eof())
    * k = inFile.readInt();
    * if (!inFile.eof())
    * // process or store this number
    * count++;
    * inFile.close(); // optional
    * System.out.println(count + " numbers read");
    * </xmp>
    public class EasyReader
    protected String myFileName;
    protected BufferedReader myInFile;
    protected int myErrorFlags = 0;
    protected static final int OPENERROR = 0x0001;
    protected static final int CLOSEERROR = 0x0002;
    protected static final int READERROR = 0x0004;
    protected static final int EOF = 0x0100;
    * Constructor. Prepares console (System.in) for reading
    public EasyReader()
    myFileName = null;
    myErrorFlags = 0;
    myInFile = new BufferedReader(
    new InputStreamReader(System.in), 128);
    * Constructor. opens a file for reading
    * @param fileName the name or pathname of the file
    public EasyReader(String fileName)
    myFileName = fileName;
    myErrorFlags = 0;
    try
    myInFile = new BufferedReader(new FileReader(fileName), 1024);
    catch (FileNotFoundException e)
    myErrorFlags |= OPENERROR;
    myFileName = null;
    * Closes the file
    public void close()
    if (myFileName == null)
    return;
    try
    myInFile.close();
    catch (IOException e)
    System.err.println("Error closing " + myFileName + "\n");
    myErrorFlags |= CLOSEERROR;
    * Checks the status of the file
    * @return true if en error occurred opening or reading the file,
    * false otherwise
    public boolean bad()
    return myErrorFlags != 0;
    * Checks the EOF status of the file
    * @return true if EOF was encountered in the previous read
    * operation, false otherwise
    public boolean eof()
    return (myErrorFlags & EOF) != 0;
    private boolean ready() throws IOException
    return myFileName == null || myInFile.ready();
    * Reads the next character from a file (any character including
    * a space or a newline character).
    * @return character read or <code>null</code> character
    * (Unicode 0) if trying to read beyond the EOF
    public char readChar()
    char ch = '\u0000';
    try
    if (ready())
    ch = (char)myInFile.read();
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    if (ch == '\u0000')
    myErrorFlags |= EOF;
    return ch;
    * Reads from the current position in the file up to and including
    * the next newline character. The newline character is thrown away
    * @return the read string (excluding the newline character) or
    * null if trying to read beyond the EOF
    public String readLine()
    String s = null;
    try
    s = myInFile.readLine();
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    if (s == null)
    myErrorFlags |= EOF;
    return s;
    * Skips whitespace and reads the next word (a string of consecutive
    * non-whitespace characters (up to but excluding the next space,
    * newline, etc.)
    * @return the read string or null if trying to read beyond the EOF
    public String readWord()
    StringBuffer buffer = new StringBuffer(128);
    char ch = ' ';
    int count = 0;
    String s = null;
    try
    while (ready() && Character.isWhitespace(ch))
    ch = (char)myInFile.read();
    while (ready() && !Character.isWhitespace(ch))
    count++;
    buffer.append(ch);
    myInFile.mark(1);
    ch = (char)myInFile.read();
    if (count > 0)
    myInFile.reset();
    s = buffer.toString();
    else
    myErrorFlags |= EOF;
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    return s;
    * Reads the next integer (without validating its format)
    * @return the integer read or 0 if trying to read beyond the EOF
    public int readInt()
    String s = readWord();
    if (s != null)
    return Integer.parseInt(s);
    else
    return 0;
    * Reads the next double (without validating its format)
    * @return the number read or 0 if trying to read beyond the EOF
    public double readDouble()
    String s = readWord();
    if (s != null)
    return Double.parseDouble(s);
    // in Java 1, use: return Double.valueOf(s).doubleValue();
    else
    return 0.0;
    Can anybody please tell me what's wrong with this code? Thanks

    String[] message = {
        "One, two, buckle your shoe",
        "One, two, buckle your shoe",
        "Three, four, shut the door",
        "Three, four, shut the door",
        "Five, six, pick up sticks",
        "Five, six, pick up sticks",
        "Seven, eight, lay them straight",
        "Seven, eight, lay them straight",
        "Nine, ten, this is the end",
        "Nine, ten, this is the end"
    if(n>0)
        System.out.println(message[n]);
    else
        System.exit(0);

Maybe you are looking for

  • Trying to serialize C# object and store as XML Datatype in Sql Server 2005

    using if (Obj != null)                MemoryStream stream = new MemoryStream();                StreamWriter writer = new StreamWriter(stream);                XmlSerializer x = new XmlSerializer(Obj.GetType());                x.Serialize(writer, Obj);

  • Problem transferring from iPhoto to iPhone4

    I have imported pictures taken by my iPhone4 to iPhoto, however, when I put them into albums and sync, the photos will not transfer back to the iPhone4.

  • Sending Status Messages by Email

    I am using Status Filter Rules to send warning and error messages via email from several CM07 sites. The process hasn't been consistent. Messages created by the SMS_Distribution_Manager do not send the entire description field where other components

  • Failed to do purchase,ask to contact iTunes support to complete the transaction

    Failed to do purchase,ask to contact iTunes support to complete the transaction

  • Itunes locking up with new ipod

    I have a ipod video and an older 20G, I just brought a 2G nano, and yes I have the updated 7.0 itunes. My itunes locks up every time that I place the newer nano onto the computer. I have restored the nano, and still nothing. Only thing that I can tel