tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TimJowers <Tim.Jow...@VerizonBusiness.com>
Subject Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.
Date Fri, 26 Oct 2007 12:32:27 GMT
Jacob Rhoden <jacob <at> rhoden.id.au> writes:

Did you figure this out? 

It is due to a spurious extra %> at the end of a link. E.g.
<td>  
<iframe width="900" height="700" src="bugger.jsp?c=<%=ch%>&s=<%=sh%> %>">
</iframe>
</td>

Notice the programmer typed %> %> when meant %>.

The error message:
WARNING: Parameters: Character decoding failed. Parameter skipped.
java.io.CharConversionException: EOF
        at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:83)
        at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:49)
        at org.apache.tomcat.util.http.Parameters.urlDecode(Parameters.java:412)

        at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.j
ava:394)
        at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.j
ava:510)
        at org.apache.tomcat.util.http.Parameters.handleQueryParameters(Paramete
rs.java:267)
        at org.apache.catalina.connector.Request.parseParameters(Request.java:24
21)
        at org.apache.catalina.connector.Request.getParameter(Request.java:1040)

        at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacad
e.java:355)
        at org.apache.jsp.buggershowURL_jsp._jspService(buggershowURL_jsp.java:5
7)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

sorta hides the real problem of a malformed URL. Maybe a good case for a nested
Exception message. Or just don't make typos and the problem will not occur.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message