You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2010/07/01 11:58:00 UTC

DO NOT REPLY [Bug 49537] New: Got exceptions while recording upload file use JMeter

https://issues.apache.org/bugzilla/show_bug.cgi?id=49537

           Summary: Got exceptions while recording upload file use JMeter
           Product: JMeter
           Version: Nightly (Please specify date)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: HTTP
        AssignedTo: notifications@jakarta.apache.org
        ReportedBy: limaak03@gmail.com


Created an attachment (id=25677)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25677)
this is the jmx file

Hi,

When I using HTTP Proxy Server to record the operation of uploading a file, I
got below exceptions from my application server:
"java.io.IOException: Malformed line after content
type:Content-Transfer-Encoding: 8bit"

But, I can upload the same file manually.

Below lines are from the JMeter result file:
  <method class="java.lang.String">POST</method>
  <queryString
class="java.lang.String">-----------------------------7d159c1302d0y0&#xd;
Content-Disposition: form-data; name=&quot;XMLFile&quot;&#xd;
Content-Type: text/plain; charset=ISO-8859-1&#xd;
Content-Transfer-Encoding: 8bit&#xd;
&#xd;
contract.ContractImportPanel&#xd;
-----------------------------7d159c1302d0y0&#xd;
Content-Disposition: form-data; name=&quot;refcmd&quot;&#xd;
Content-Type: text/plain; charset=ISO-8859-1&#xd;
Content-Transfer-Encoding: 8bit&#xd;
&#xd;
ContractUpload&#xd;
-----------------------------7d159c1302d0y0&#xd;
Content-Disposition: form-data; name=&quot;targetStoreId&quot;&#xd;
Content-Type: text/plain; charset=ISO-8859-1&#xd;
Content-Transfer-Encoding: 8bit&#xd;
&#xd;
556&#xd;
-----------------------------7d159c1302d0y0&#xd;
Content-Disposition: form-data; name=&quot;filename&quot;;
filename=&quot;test4.xml&quot;&#xd;
Content-Type: text/xml&#xd;
Content-Transfer-Encoding: binary&#xd;
&#xd;
&lt;actual file content, not shown here&gt;&#xd;
-----------------------------7d159c1302d0y0--&#xd;
</queryString>

and these lines were captured by another proxy tool:
-----------------------------7dab2a100736
Content-Disposition: form-data; name="XMLFile"

contract.ContractImportPanel
-----------------------------7dab2a100736
Content-Disposition: form-data; name="refcmd"

ContractUpload
-----------------------------7dab2a100736
Content-Disposition: form-data; name="targetStoreId"

556
-----------------------------7dab2a100736
Content-Disposition: form-data; name="filename"; filename="C:\test3.xml"
Content-Type: text/xml

The attachment is my jmx file.
Nightly build version: jakarta-jmeter-r882651


Thanks!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49537] Got exceptions while recording upload file use JMeter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49537

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Sebb <se...@apache.org> 2010-07-08 19:23:03 EDT ---
Bugzilla is not a support forum.

Please search the JMeter user list archives - it appears to be a bug in the
server. If the search does not resolve the problem, please ask on the JMeter
user list.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49537] Got exceptions while recording upload file use JMeter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49537

--- Comment #1 from Grant Liu <li...@gmail.com> 2010-07-01 06:19:33 EDT ---
The only change I made to jmeter.properties is :

# The encoding to be used if none is provided (default ISO-8859-1)
#sampleresult.default.encoding=ISO-8859-1
sampleresult.default.encoding=UTF-8

but it seems that JMeter is still using encoding : ISO-8859-1

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org