Getting
'An error occurred: org.apache.jorphan.collections.HashTree.replaceKey(Ljava/lang/Object;Ljava/lang/Object;)' when tried to run the jmeter test in non gui mode with master and slave concept (jmeter version: 3.1, java: 7).
You have master and slave versions mismatch, one of them is JMeter 2.13 and the other one is JMeter 3.1.
Make sure you upgrade all JMeter instances to JMeter 3.1 and the issue should be resolved.
Also make sure that Java version is the same, as you seem to have Java 7 on one machine and Java 8 on the other.
Reference: Remote Testing User Manual Chapter:
Step 0: Configure the nodes
Make sure that all the nodes (client and servers) :
are running exactly the same version of JMeter.
are using the same version of Java on all systems. Using different versions of Java may work but is discouraged.
jmeter -Djava.rmi.server.hostname=xxx.xxx.xxx.xxx -Dserver_port=1099 -s -j jmeter.log- Dmitri T