Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Could Anyone correct my Error with JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Could Anyone correct my Error with JDBC" Watch "Could Anyone correct my Error with JDBC" New topic
Author

Could Anyone correct my Error with JDBC

archanarao00
Greenhorn

Joined: Sep 07, 2001
Posts: 3
This servlet that retrives image file from thr database. but i get exception error. plz for the error which i get.
my database my table name "figure" and i have the column "id" and "fig".

500 Internal Server Error
The servlet named GetImage at the requested URL
http://202.141.81.233:8000/servlet/GetImage
reported this exception: java.lang.NullPointerException. Please report this to the administrator of the web server.
java.lang.NullPointerException at GetImage.doGet(Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at javax.servlet.http.HttpServlet.service(Compiled Code) at com.sun.server.ServletState.callService(Compiled Code) at com.sun.server.ServletManager.callServletService(Compiled Code) at com.sun.server.http.servlet.InvokerServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at com.sun.server.ServletState.callService(Compiled Code) at com.sun.server.ServletManager.callServletService(Compiled Code) at com.sun.server.ProcessingState.invokeTargetServlet(Compiled Code) at com.sun.server.http.HttpProcessingState.execute(Compiled Code) at com.sun.server.http.stages.Runner.process(Compiled Code) at com.sun.server.ProcessingSupport.process(Compiled Code) at com.sun.server.Service.process(Compiled Code) at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code) at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code) at com.sun.server.HandlerThread.run(Compiled Code)
------------------

[This message has been edited by Carl Trusiak (edited September 08, 2001).]
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
Your name doesn't agree with the javaranch guidelines. Please take a moment and re-register after reviewing the guidelines at http://www.javaranch.com/name.jsp
Thanks for your cooperation.
What is getting printed to System.out? Is the connection failing?

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could Anyone correct my Error with JDBC