struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rupesh Mankar <>
Subject Problem in uploading file from stand-alone application
Date Tue, 17 Nov 2009 08:45:25 GMT

I want to upload file on server from stand-alone application (using HTTPURLConnection). But
when I run stand-alone application which uploads file, I get following exception on server:

WARNING: Parameters: Character decoding failed. Parameter skipped. isHexDigit
      at org.apache.tomcat.util.buf.UDecoder.convert(
      at org.apache.tomcat.util.buf.UDecoder.convert(
      at org.apache.tomcat.util.http.Parameters.urlDecode(
      at org.apache.tomcat.util.http.Parameters.processParameters(
      at org.apache.tomcat.util.http.Parameters.processParameters(
      at org.apache.catalina.connector.Request.parseParameters(
      at org.apache.catalina.connector.Request.getParameterNames(
      at org.apache.catalina.connector.Request.getParameterMap(
      at org.apache.catalina.connector.RequestFacade.getParameterMap(
      at javax.servlet.ServletRequestWrapper.getParameterMap(
      at org.apache.struts2.dispatcher.mapper.DefaultActionMapper.handleSpecialParameters(
      at org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getMapping(

It seems struts2 filter tries to retrieve parameters from request. I am directly writing file
content which are byte array on output stream of url connection.

One workaround I found is to bypass the upload request from struts2 filtering. But this approach
is not good because my entire web application is struts based.

Is there any way to upload file through strut itself?


This e-mail may contain privileged and confidential information which is the property of Persistent
Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed.
If you are not the intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems Ltd. does not accept
any liability for virus infected mails.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message