I had this problem with the JWS2.0. I guess you will get this problem if you
don't pass a value in the request parameter and it is received as null. I
tried a workaround by catching the NullPointerException and changing the
value to "".

Deepak

-----Original Message-----
hi guys
i'm facing a typical problem. i've written a servlet which tackes two
parameters from user as inupt and depending upon these parameters it makes a
database query and generates graph as gif image, using ACME gif encoder. the
problem is when i run this program with jswdk 1.0.1, it runs perfectly but i
got the following error when i tried it to run under java webserver 2.0
will anyone suggest any solution.


The servlet named HWGraphics at the requested URL

http://90.0.21.27/servlet/HWGraphics
reported this exception: java.lang.NullPointerException. Please report this
to the administrator of the web server.

java.lang.NullPointerException at HWGraphics.getData(Compiled Code) at
HWGraphics.doGet(HWGraphics.java:114) at

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to