• Post Reply Bookmark Topic Watch Topic
  • New Topic

Very Very Weird IOException

 
Chhaya Dhanani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am getinga really werid IOexception which i have never encountered before.i am using tomcat for my servlets.
The request parameters are send thru the browser
.when my parameter values contans spaces the browser successfully converts them to %20 and appropriate messages are displayed..
but when i try to test by passing '%%abc' (example value: note it explicitly contains %)
it throws CharConversionException.
I tried to catch this in the service method of my servelt, but it says that this method is never thrown in my code body
i get the follwoing error stck

java.io.CharConversionException: isHexDigit
at org.apache.tomcat.util.buf.UDecoder.convert(Unknown Source)
at org.apache.tomcat.util.http.Parameters.processParameters(Unknown Source)
at org.apache.tomcat.util.http.Parameters.processParameters(Unknown Source)
at org.apache.tomcat.util.http.Parameters.handleQueryParameters(Unknown Source)
at org.apache.tomcat.core.Request.handleQueryParameters(Unknown Source)
at org.apache.tomcat.facade.HttpServletRequestFacade.getParameter(Unknown Source)
at com.myzus.mobilebd.servlets.AirTel.service(AirTel.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java, Compiled Code)

Can somebody pls help me at the earlist.
I have a deadline by tomorrow after noon/....
Thanx in advance
Chhaya
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, they use an numeric escape code for space (%20), can you use a numeric escape code for the percent sign? (%25) or something like that? I don't know that it's 25 , but you get the idea...
[ June 10, 2002: Message edited by: Chris Shepherd ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!