Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weblogic servlet error

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi everyone,
I am struggling with this weird form of error that I have not been able to resolve. I am getting this null pointer exception on a line(64) that has no nulls. I verified this by checking the values. Even though I am getting this error, the application performs normally, successfully downloads a file in this case. I have deployed my application on Weblogic 6.1 SP3.Can anyone throw some light on this?
Thanks in advance.

<Aug 13, 2002 2:42:16 PM EDT> <Error> <HTTP> <[WebAppServletContext(1031797,Defa
ultWebApp,/DefaultWebApp)] Servlet failed with Exception
java.lang.NullPointerException
at DownloadServlet.service(DownloadServlet.
java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2546)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2260)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>

 
Null pointer exception...that says it all. You are trying to dereference an object pointer that hasn't been initialized. Refer to the line mentioned in the stack trace and find out why this object is not initialized.
 
I do initialize the variable. I do a system.out.println on that variable too and it displays a non null value. That is why I fail to understand why I am getting this problem. Is it weblogic specific? is there a problem with the servlet container?

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top