Forums Register Login

Very Very Weird IOException

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ]
It's hard to fight evil. The little things, like a nice sandwich, really helps. Right tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 996 times.
Similar Threads
Applet not loading due to IOException
Applet in JSP
RAD V7 problem with portlets
Access HTTPS url in Applet
Exiting a thread
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:57:56.