• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could Anyone correct my Error with JDBC

 
archanarao00
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic