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

    Default NullPointer help

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

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Rep Power


    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, 04:34 PM
  2. Nullpointer Exception???
    By kipcorn91 in forum AWT / Swing
    Replies: 5
    Last Post: 10-28-2010, 11:19 PM
  3. Nullpointer error
    By teppel in forum New To Java
    Replies: 0
    Last Post: 07-10-2010, 08:38 PM
  4. NullPointer exception
    By bdario1 in forum New To Java
    Replies: 15
    Last Post: 03-17-2010, 04:44 AM
  5. NullPointer Exception
    By Preethi in forum New To Java
    Replies: 8
    Last Post: 02-06-2008, 03: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