Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on copy/paste will not let copy anything [res_key=clipboard_node_read_error] #3125

Closed
asfimport opened this issue May 17, 2013 · 2 comments

Comments

@asfimport
Copy link
Collaborator

Samuel (Bug 54988):
Jmeter v2.9 will not copy any node (ex simple controller) and will show a pop up with the error [res_key=clipboard_node_read_error].

Log viewer shows:
2013/05/17 12:01:53 WARN - jmeter.util.JMeterUtils: ERROR! Resource string not found: [clipboard_node_read_error]

It complains about a custom made plugin that is also present in the test suite. The portion I try to copy is not even related to that node.

Attached a simple example that would fail I think the copy/paste java code has a problem when parsing the XML file. This makes the copy of any node impossible.

The only way to make it work is to delete the offending node.

txs

Created attachment Test-copy-bug.jmx: jmx file that can reproduce the issue

Test-copy-bug.jmx
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.4" jmeter="2.9 r1437961">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
      <stringProp name="TestPlan.comments">ASE TWS SMS Send Proxy Service</stringProp>
      <boolProp name="TestPlan.functional_mode">false</boolProp>
      <boolProp name="TestPlan.serialize_threadgroups">true</boolProp>
      <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
        <collectionProp name="Arguments.arguments"/>
      </elementProp>
      <stringProp name="TestPlan.user_define_classpath"></stringProp>
    </TestPlan>
    <hashTree>
      <com.aepona.jmeter.mockhttp.HttpMockControl guiclass="com.aepona.jmeter.mockhttp.HttpMockControlGui" testclass="com.aepona.jmeter.mockhttp.HttpMockControl" testname="HTTP Mock Server" enabled="true">
        <stringProp name="HttpMockControlGui.port">8080</stringProp>
        <objProp>
          <name>HttpMockControlGui.requestResponse</name>
          <value class="java.util.ArrayList">
            <com.aepona.jmeter.mockhttp.bean.MockServerScenario>
              <description>test</description>
              <expectedHttpMethod>GET</expectedHttpMethod>
              <pathMatchType>CONTAINS</pathMatchType>
              <expectedPath>/test</expectedPath>
              <bodyMatchType>NONE</bodyMatchType>
              <expectedRequestBody></expectedRequestBody>
              <requestExpressions/>
              <responseCode>200</responseCode>
              <responseHeader>Transfer-encoding:chunked
Content-type:text/plain</responseHeader>
              <responseBody>test</responseBody>
            </com.aepona.jmeter.mockhttp.bean.MockServerScenario>
          </value>
        </objProp>
      </com.aepona.jmeter.mockhttp.HttpMockControl>
      <hashTree/>
      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
          <boolProp name="LoopController.continue_forever">false</boolProp>
          <stringProp name="LoopController.loops">1</stringProp>
        </elementProp>
        <stringProp name="ThreadGroup.num_threads">1</stringProp>
        <stringProp name="ThreadGroup.ramp_time">1</stringProp>
        <longProp name="ThreadGroup.start_time">1368788270000</longProp>
        <longProp name="ThreadGroup.end_time">1368788270000</longProp>
        <boolProp name="ThreadGroup.scheduler">false</boolProp>
        <stringProp name="ThreadGroup.duration"></stringProp>
        <stringProp name="ThreadGroup.delay"></stringProp>
      </ThreadGroup>
      <hashTree>
        <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Simple Controller" enabled="true"/>
        <hashTree/>
      </hashTree>
    </hashTree>
  </hashTree>
</jmeterTestPlan>

Severity: normal
OS: Linux

Duplicated by:

@asfimport
Copy link
Collaborator Author

@pmouawad (migrated from Bugzilla):
Bug is in third party library and part related to core jmeter is fixed in trunk

This bug has been marked as a duplicate of #3050

@asfimport
Copy link
Collaborator Author

Samuel (migrated from Bugzilla):
I am not trying to copy paste the third party node, why would jmeter still fail in that instance to copy a jmeter core node? Shouldn't it still succeed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant