Results 1 to 2 of 2
  1. #1
    moosick is offline Member
    Join Date
    Apr 2011
    Posts
    1
    Rep Power
    0

    Default NullPointer help

    Deleting this thread
    Last edited by moosick; 04-02-2011 at 08:09 AM.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default

    Use some println's to print out the values of some variables - see which one is null then backtrack to see where it should be instantiated. The exception tells you where the problem lies (in the authenticate method - although the line numbers don't match up to your code at all) - is service ever properly instantiated (it is passed as a reference and not available to assess in the code you posted)?

Similar Threads

  1. NullPointer Exeption, but why?
    By warchieflll in forum New To Java
    Replies: 10
    Last Post: 12-09-2010, 05:34 PM
  2. Nullpointer Exception???
    By kipcorn91 in forum AWT / Swing
    Replies: 5
    Last Post: 10-29-2010, 12:19 AM
  3. Nullpointer error
    By teppel in forum New To Java
    Replies: 0
    Last Post: 07-10-2010, 09:38 PM
  4. NullPointer exception
    By bdario1 in forum New To Java
    Replies: 15
    Last Post: 03-17-2010, 05:44 AM
  5. NullPointer Exception
    By Preethi in forum New To Java
    Replies: 8
    Last Post: 02-06-2008, 04:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •