DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30958>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30958

Parameters (of HTTP request) with "special" characters aren´t saved properly.

           Summary: Parameters (of HTTP request) with "special" characters
                    aren´t saved properly.
           Product: JMeter
           Version: 2.0.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: HTTP
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am using jdk1.4.2_05 with apache jmeter 2.0.1

I have created a script with the HTTP proxy server.

The generated HTTP requests have parameters that contain "special" characters  
(they are used as separators for a propietary protocol &#2;&#3;&#4;)

Following you can find a fragment of the generated .jmx file

<property xml:space="preserve" 
propType="org.apache.jmeter.testelement.property.StringProperty" 
name="Argument.value">DATA&#2;ARQ_DATASOURCE&#4;arq:dataSource://TABLABD//MDNDOC
DSE//MDN16V19//ARQ_WHERE=SEG04_ENTIDADI=1 AND 
MDN01_COD_IDI=0&#2;ARQ_COMBO_KEY_DE&#4;MDN16V19.MDN16_NUMINTERNO&#2;ARQ_COMBO_DE
SC_DE&#4;MDN16V19.MDN16_CODIGO&#2;ARQ_VBL_NAME&#4;CMB_FORM_DOC&#2;ARQ_WHERE&#4;
(MDN01_COD_IDI=0) AND SEG04_ENTIDADI=1 AND 
SEG01_APLIC='ALM'&#2;ARQ_SORT_BY&#4;1&#2;ARQ_DATA_TYPE&#4;string</property>

The generated script works well (without saving) but when I save the .jmx file, 
and try to open it,the following error arises and the script doesn´t load:
2004/08/31 11:03:32 INFO  - jmeter.JMeter: Version 2.0.1 
2004/08/31 11:03:32 INFO  - jmeter.JMeter: java.version=1.4.2_05 
2004/08/31 11:03:41 INFO  - jmeter.gui.action.Load: Loading file: C:\jakarta-
jmeter-2.0.1\Test Plan 3B.jmx 
2004/08/31 11:03:41 ERROR - jmeter.save.SaveService: Problem with SAX 
implementation org.xml.sax.SAXParseException: Character reference "&#2" is an 
invalid XML character.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at 
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build
(DefaultConfigurationBuilder.java:269)
        at 
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build
(DefaultConfigurationBuilder.java:238)
        at org.apache.jmeter.save.SaveService.loadSubTree(SaveService.java:938)
        at org.apache.jmeter.gui.action.Load.doAction(Load.java:97)
        at org.apache.jmeter.gui.action.ActionRouter.performAction
(ActionRouter.java:81)
        at org.apache.jmeter.gui.action.ActionRouter.access$000
(ActionRouter.java:44)
        at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to