1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

Exception: java.lang.NullPointerException

Discussion in 'BBS Hangout' started by RocketsPimp, Jun 28, 2002.

  1. RocketsPimp

    RocketsPimp Member

    Joined:
    Feb 15, 1999
    Messages:
    13,812
    Likes Received:
    194
    What does this mean and how can I fix it?
     
  2. Dr of Dunk

    Dr of Dunk Clutch Crew

    Joined:
    Aug 27, 1999
    Messages:
    46,638
    Likes Received:
    33,641
    Get a new computer.
     
  3. Surfguy

    Surfguy Member

    Joined:
    Sep 23, 1999
    Messages:
    24,576
    Likes Received:
    12,860
    Haha...I get those all the time programming in MS J++ . It usually has to do with a method call and passing a value which does not exist or is null. If a Java method expects a value and, instead, gets none or a null value, it will throw this exception.

    I guess the more important question is what are you doing and under what circumstances did this error crop up.

    Surf
     
  4. Cold Hard

    Cold Hard Member

    Joined:
    Aug 28, 2000
    Messages:
    1,943
    Likes Received:
    1,021
    Yep, Surfguy is correct here.

    From Sun's official Java documentation (GREAT resource BTW):

     
  5. RocketsPimp

    RocketsPimp Member

    Joined:
    Feb 15, 1999
    Messages:
    13,812
    Likes Received:
    194
    I'm trying to open a stock streamer on Datek.com. It works fine on my computer at work(win nt), but not my piece of crap computer at home(win 2k).
     
  6. RocketsPimp

    RocketsPimp Member

    Joined:
    Feb 15, 1999
    Messages:
    13,812
    Likes Received:
    194
    Thanks for your technical advice.

    :p
     
  7. Surfguy

    Surfguy Member

    Joined:
    Sep 23, 1999
    Messages:
    24,576
    Likes Received:
    12,860
    Hmm....works fine on my win2k professional here at work in IE 6.

    I'm running it with MS Java(or msjava.dll) version 5.0 .

    Surf
     
  8. Jeff

    Jeff Clutch Crew

    Joined:
    Feb 14, 1999
    Messages:
    22,412
    Likes Received:
    362
    what.are.you.Talking.About

    :)
     
  9. Gutter Snipe

    Gutter Snipe Member

    Joined:
    Jul 30, 2001
    Messages:
    2,987
    Likes Received:
    65
    Unfortunately, I get them all the time as well. Another likely cause is this: (in pseudocode)

    declare x1
    create object and assign it to x1 (at this point the creation of object fails)
    run method A of x1

    explanation:

    Since x1 does not exist, the pointer to method A of x1 is pointing nowhere, ergo Null pointer exception.

    In this case, the install might have failed, leaving you without the necessary object. Your browser version could also be different, meaning that you have the wrong version of the java run-time compiler.

    Possible solutions:
    1. Re-install the program or component.
    2. Get the newest version or patch of your browser.
    3. Download the latest jdk from Sun - this will include a new java run-time engine.

    Good luck.
     
  10. Dr of Dunk

    Dr of Dunk Clutch Crew

    Joined:
    Aug 27, 1999
    Messages:
    46,638
    Likes Received:
    33,641
    I'm sick of your computer and I don't even use the damn thing. I'm sick, sick, SICK of your stupid computer! It's got a new problem every freakin' week!


    (just messin' with ya! :D)
     
  11. RocketsPimp

    RocketsPimp Member

    Joined:
    Feb 15, 1999
    Messages:
    13,812
    Likes Received:
    194
    Trust me DoD, I feel the same way.

    Have a spare you'd like to donate? ;-)
     

Share This Page