null pointer exception in servlet


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: null pointer exception in servlet

  1. #1
    Join Date
    Jun 2006
    Posts
    5

    null pointer exception in servlet

    Hi,

    I have a a minor but fustrating problem with trying to run a servlet. I'm using Netbeans 5.0 to run this servlet. The thing is, that when I run the servlet on my PC at home it works fine - but when I try to run the same servlet in college it points out that there is a null pointer exception!. This servlet uses a http protcol in the doGet method to try and access a website.
    I'm fairly sure that the problem lies with the fact that I'm behind a proxy server in College, whereas this is not the case at home. However, I have tried using code that bypasses the firewall but the servlet still wont work. (Even though this firewall code defnitley works). Could someone please explain why I'm getting a null pointer exception..

  2. #2
    Join Date
    Aug 2006
    Posts
    2
    I was trying to do the same thing, running the servlet from my server and trying to access it using a browser. If you try to run 2 requests and you get a null pointer exception, change ur IE settings and make sure that its set to fetch the page everytime u pass the request.

    I hope this helps

  3. #3
    Join Date
    Sep 2006
    Posts
    7
    Quote Originally Posted by bdjos1
    Hi,

    I have a a minor but fustrating problem with trying to run a servlet. I'm using Netbeans 5.0 to run this servlet. The thing is, that when I run the servlet on my PC at home it works fine - but when I try to run the same servlet in college it points out that there is a null pointer exception!. This servlet uses a http protcol in the doGet method to try and access a website.
    I'm fairly sure that the problem lies with the fact that I'm behind a proxy server in College, whereas this is not the case at home. However, I have tried using code that bypasses the firewall but the servlet still wont work. (Even though this firewall code defnitley works). Could someone please explain why I'm getting a null pointer exception..
    please can u attach the code , thank you ...

Similar Threads

  1. stored procedure problem
    By jabbarsb in forum Database
    Replies: 3
    Last Post: 08-02-2006, 08:50 AM
  2. Getting a GUI to run
    By Eric in forum Java
    Replies: 4
    Last Post: 04-14-2006, 09:09 AM
  3. Getting a large number of identities
    By Colin McGuigan in forum Database
    Replies: 12
    Last Post: 04-15-2002, 07:43 AM
  4. Getting a GUI to function
    By Eric in forum Java
    Replies: 1
    Last Post: 11-27-2001, 06:53 AM
  5. null pointer exception in JWSDK
    By Giorgio in forum Java
    Replies: 0
    Last Post: 11-04-2000, 02:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center