• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

URLDecoder

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"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
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic