You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by basebeans <ve...@translogicsys.com> on 2003/05/28 09:43:14 UTC
Cookie problem with Tomcat 4.1.24
Hello tomcat-ians,
I am getting 'InvalidArgumentException' when I add a cookie to response
object using
response.addCookie() in a JSP file. This error is coming when the cookie has
the characters
comma(,), semi-colon(;) in the value. As for Cookies 0 version, these
characters are not valid.
As for the latest version of cookies these are valid characters for a cookie
value.
The above exception is coming with Tomcat 4.1.24. but not with earlier
version Tomcat 4.0.3.
And the same exception was coming with tomcat 3.3 earlier.
Why this is being changed with different versions of Tomcat. Is this
abnormality mentioned
anywhere in the Tomcat documents for 4.1.24 & 3.3 versions.
Can anyone please tell me why this is happening.
----tnx
Venkat Dosapati
ATS TransLogic Systems
5th floor Amogh Plaza, Green Lands
Hyderabad, AP-500 016, India
ph : +91-40-23401795 x29
fax : +91-40-23407943
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
CharConversionException: isHexDigit
Posted by Joel Carklin <jo...@innoforge.com>.
hi everyone,
i was wondering if anyone else has come across the following exception
being thrown. i don't know what causes it and it doesn't seem to affect
the web applications I'm running but I'm a bit concerned about it. It
appears now and then, not very frequently, but often enough, in my
catalina.out log file. Usually when I'm not around (like in the middle
of the night!)
Thanks for any help
I'm using Tomcat 4.1.24 and the exception is:
java.io.CharConversionException: isHexDigit
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:124)
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:87)
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:407) org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:495) org.apache.tomcat.util.http.Parameters.handleQueryParameters(Parameters.java:278) org.apache.coyote.tomcat4.CoyoteRequest.parseRequestParameters(CoyoteRequest.java:1933) org.apache.coyote.tomcat4.CoyoteRequest.getParameterNames(CoyoteRequest.java:953) org.apache.coyote.tomcat4.CoyoteRequest.getParameterMap(CoyoteRequest.java:933) org.apache.coyote.tomcat4.CoyoteRequestFacade.getParameterMap(CoyoteRequestFacade.java:193) org.apache.catalina.core.ApplicationHttpRequest.setRequest(ApplicationHttpRequest.java:525) org.apache.catalina.core.ApplicationHttpRequest.<init>(ApplicationHttpRequest.java:125) org.apache.catalina.core.ApplicationDispatcher.wrapRequest(ApplicationDispatcher.java:921) org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:414) org.apache.catalina.core.ApplicationDispatcher.fo!
rward(ApplicationDispatcher.java:356) org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:420) org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:327) org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:181) org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Cookie problem with Tomcat 4.1.24
Posted by Tim Funk <fu...@joedog.org>.
http://nagoya.apache.org/bugzilla/buglist.cgi?resolution=INVALID&resolution=WONTFIX&bugidtype=include&chfieldto=Now&product=Tomcat+4&short_desc=cookie&short_desc_type=allwordssubstr&bug_file_loc_type=allwordssubstr&keywords=&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit
The bug database has closed this issue many times.
-Tim
basebeans wrote:
> Hello tomcat-ians,
>
> I am getting 'InvalidArgumentException' when I add a cookie to response
> object using
> response.addCookie() in a JSP file. This error is coming when the cookie has
> the characters
> comma(,), semi-colon(;) in the value. As for Cookies 0 version, these
> characters are not valid.
> As for the latest version of cookies these are valid characters for a cookie
> value.
>
> The above exception is coming with Tomcat 4.1.24. but not with earlier
> version Tomcat 4.0.3.
> And the same exception was coming with tomcat 3.3 earlier.
>
> Why this is being changed with different versions of Tomcat. Is this
> abnormality mentioned
> anywhere in the Tomcat documents for 4.1.24 & 3.3 versions.
>
> Can anyone please tell me why this is happening.
>
> ----tnx
> Venkat Dosapati
> ATS TransLogic Systems
> 5th floor Amogh Plaza, Green Lands
> Hyderabad, AP-500 016, India
> ph : +91-40-23401795 x29
> fax : +91-40-23407943
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org