jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes URLDecoder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "URLDecoder" Watch "URLDecoder" New topic
Author

URLDecoder

shaileshnn
Greenhorn

Joined: Sep 07, 2001
Posts: 2
I am running servlets using JSWDK 1.0.1 and JDK 1.2.2 and using URLDecoder and doget()method and SQL server 7.0. This code works fine on our Intranet. But the same code fails to work on the internet.
The error is as follows :
Error: 500
Internal Servlet Error:
java.lang.NullPointerException:
at java.net.URLDecoder.decode(URLDecoder.java:47)
at Notepad.doGet(Notepad.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
at com.sun.web.core.InvokerServlet.service(InvokerServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
at com.sun.web.core.Context.handleRequest(Context.java, Compiled Code)
at com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java, Compiled Code)
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

"shaileshnn"
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.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLDecoder