https://bz.apache.org/bugzilla/show_bug.cgi?id=64425
--- Comment #3 from [email protected] --- Facing the same issue with Jmeter-5.3, while using along with jmeter-maven-plugin. Steps: 1. Generated RMI keystore and put it on JMeter client and server side. 2. Because of firewall, I need to fixate RMI port in jmeter.properties for both JMeter client and JMeter server server_port=1099 client.rmi.localport=8080 Sub caseA: 3.1. If I ignore security with server.rmi.ssl.disable=true in jmeter.properties and then start JMeter server & JMeter client. 4.1. I can run distribution test without RMI SSL. Sub caseB: 3.2. If I setted security with server.rmi.ssl.disable=false in jmeter.properties and then start JMeter server & JMeter client. 4.2. I got following log message when starting distribution test. NOTE : I also checked for the port status(For all 3 ports i.e 8080,8081,8082), those were not occupied. 2020-09-02 15:20:24,620 DEBUG o.a.j.e.ConvertListeners: num threads = 1 2020-09-02 15:20:24,620 DEBUG k.a.j.t.UltimateThreadGroup: Profile prop: null 2020-09-02 15:20:24,620 DEBUG o.a.j.e.ConvertListeners: num threads = 10 2020-09-02 15:20:24,622 INFO o.a.j.r.RmiUtils: Resolving by name the value of System property 'java.rmi.server.hostname': 10.xx.xx.xxx 2020-09-02 15:20:24,622 INFO o.a.j.r.RmiUtils: Local IP address=10.xx.xx.xxx 2020-09-02 15:20:24,624 INFO o.a.j.s.SampleEvent: List of sample_variables: [] 2020-09-02 15:20:24,802 INFO o.a.j.r.SSLRMIServerSocketFactory: Created SSLSocket: [SSL: ServerSocket[addr=/10.xx.xx.xxx,localport=8082]] 2020-09-02 15:20:24,807 INFO o.a.j.s.BatchSampleSender: Using batching (client settings) for this run. Thresholds: num=100, time=60000 2020-09-02 15:20:24,807 INFO o.a.j.s.DataStrippingSampleSender: Using DataStrippingSampleSender for this run 2020-09-02 15:20:24,808 INFO o.a.j.r.RmiUtils: Resolving by name the value of System property 'java.rmi.server.hostname': 10.xx.xx.xxx 2020-09-02 15:20:24,808 INFO o.a.j.r.RmiUtils: Local IP address=10.xx.xx.xxx 2020-09-02 15:20:24,989 INFO o.a.j.r.SSLRMIServerSocketFactory: Created SSLSocket: [SSL: ServerSocket[addr=/10.xx.xx.xxx,localport=8081]] 2020-09-02 15:20:25,299 INFO o.a.j.r.RmiUtils: Resolving by name the value of System property 'java.rmi.server.hostname': 10.xx.xx.xxx 2020-09-02 15:20:25,299 INFO o.a.j.r.RmiUtils: Local IP address=10.xx.xx.xxx 2020-09-02 15:20:25,480 ERROR o.a.j.e.ConvertListeners: RemoteException occurred while replacing Remotable item. java.rmi.server.ExportException: Listen failed on port: 8082; nested exception is: java.io.IOException: Could not bind to /10.xx.xx.xxx using port 8082 at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:337) ~[?:?] at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:243) ~[?:?] at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:412) ~[?:?] at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147) ~[?:?] at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:234) ~[?:?] at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:470) ~[?:?] at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:381) ~[?:?] at java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:260) ~[?:?] at org.apache.jmeter.samplers.RemoteSampleListenerImpl.<init>(RemoteSampleListenerImpl.java:43) ~[ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.engine.ConvertListeners.addNode(ConvertListeners.java:77) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:975) [jorphan-5.3.jar:5.3] at org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:136) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.engine.DistributedRunner.start(DistributedRunner.java:134) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.engine.DistributedRunner.start(DistributedRunner.java:156) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.JMeter.runNonGui(JMeter.java:1096) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.JMeter.startNonGui(JMeter.java:994) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.JMeter.start(JMeter.java:566) [ApacheJMeter_core-5.3.jar:5.3] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.apache.jmeter.NewDriver.main(NewDriver.java:252) [ApacheJMeter-5.3.jar:5.3] Caused by: java.io.IOException: Could not bind to /10.xx.xx.xxx using port 8082 at org.apache.jmeter.rmi.SSLRMIServerSocketFactory.createServerSocket(SSLRMIServerSocketFactory.java:138) ~[ApacheJMeter_core-5.3.jar:5.3] at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:670) ~[?:?] at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324) ~[?:?] ... 21 more Caused by: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) ~[?:?] at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:436) ~[?:?] at java.net.ServerSocket.bind(ServerSocket.java:381) ~[?:?] at java.net.ServerSocket.<init>(ServerSocket.java:243) ~[?:?] at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:181) ~[?:?] at sun.security.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:80) ~[?:?] at sun.security.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:87) ~[?:?] at org.apache.jmeter.rmi.SSLRMIServerSocketFactory.createServerSocket(SSLRMIServerSocketFactory.java:136) ~[ApacheJMeter_core-5.3.jar:5.3] at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:670) ~[?:?] at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324) ~[?:?] ... 21 more 2020-09-02 15:20:25,486 INFO o.a.j.r.RmiUtils: Resolving by name the value of System property 'java.rmi.server.hostname': 10.xx.xx.xxx 2020-09-02 15:20:25,486 INFO o.a.j.r.RmiUtils: Local IP address=10.xx.xx.xxx 2020-09-02 15:20:25,666 ERROR o.a.j.e.ConvertListeners: RemoteException occurred while replacing Remotable item. java.rmi.server.ExportException: Listen failed on port: 8082; nested exception is: java.io.IOException: Could not bind to /10.xx.xx.xxx using port 8082 at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:337) ~[?:?] at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:243) ~[?:?] at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:412) ~[?:?] at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147) ~[?:?] at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:234) ~[?:?] at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:470) ~[?:?] at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:381) ~[?:?] at java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:260) ~[?:?] at org.apache.jmeter.samplers.RemoteSampleListenerImpl.<init>(RemoteSampleListenerImpl.java:43) ~[ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.engine.ConvertListeners.addNode(ConvertListeners.java:77) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:993) [jorphan-5.3.jar:5.3] at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:976) [jorphan-5.3.jar:5.3] at org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:136) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.engine.DistributedRunner.start(DistributedRunner.java:134) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.engine.DistributedRunner.start(DistributedRunner.java:156) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.JMeter.runNonGui(JMeter.java:1096) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.JMeter.startNonGui(JMeter.java:994) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.JMeter.start(JMeter.java:566) [ApacheJMeter_core-5.3.jar:5.3] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.apache.jmeter.NewDriver.main(NewDriver.java:252) [ApacheJMeter-5.3.jar:5.3] Caused by: java.io.IOException: Could not bind to /10.xx.xx.xxx using port 8082 at org.apache.jmeter.rmi.SSLRMIServerSocketFactory.createServerSocket(SSLRMIServerSocketFactory.java:138) ~[ApacheJMeter_core-5.3.jar:5.3] at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:670) ~[?:?] at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324) ~[?:?] ... 22 more Caused by: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) ~[?:?] at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:436) ~[?:?] at java.net.ServerSocket.bind(ServerSocket.java:381) ~[?:?] at java.net.ServerSocket.<init>(ServerSocket.java:243) ~[?:?] at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:181) ~[?:?] at sun.security.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:80) ~[?:?] at sun.security.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:87) ~[?:?] at org.apache.jmeter.rmi.SSLRMIServerSocketFactory.createServerSocket(SSLRMIServerSocketFactory.java:136) ~[ApacheJMeter_core-5.3.jar:5.3] at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:670) ~[?:?] at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324) ~[?:?] ... 22 more 2020-09-02 15:20:27,791 ERROR o.a.j.e.ClientJMeterEngine: Error in rconfigure() method java.rmi.MarshalException: error marshalling arguments; nested exception is: java.io.NotSerializableException: org.apache.jmeter.JMeter$ListenToTest at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160) ~[?:?] at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:217) ~[?:?] at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:162) ~[?:?] at com.sun.proxy.$Proxy20.rconfigure(Unknown Source) ~[?:?] at org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:152) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.engine.DistributedRunner.start(DistributedRunner.java:134) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.engine.DistributedRunner.start(DistributedRunner.java:156) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.JMeter.runNonGui(JMeter.java:1096) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.JMeter.startNonGui(JMeter.java:994) [ApacheJMeter_core-5.3.jar:5.3] at org.apache.jmeter.JMeter.start(JMeter.java:566) [ApacheJMeter_core-5.3.jar:5.3] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.apache.jmeter.NewDriver.main(NewDriver.java:252) [ApacheJMeter-5.3.jar:5.3] Caused by: java.io.NotSerializableException: org.apache.jmeter.JMeter$ListenToTest at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1185) ~[?:?] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349) ~[?:?] at java.util.HashMap.internalWriteEntries(HashMap.java:1839) ~[?:?] at java.util.HashMap.writeObject(HashMap.java:1411) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1145) ~[?:?] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1497) ~[?:?] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433) ~[?:?] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179) ~[?:?] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553) ~[?:?] at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:442) ~[?:?] at org.apache.jorphan.collections.HashTree.writeObject(HashTree.java:951) ~[jorphan-5.3.jar:5.3] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1145) ~[?:?] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1497) ~[?:?] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433) ~[?:?] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179) ~[?:?] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349) ~[?:?] at java.util.HashMap.internalWriteEntries(HashMap.java:1840) ~[?:?] at java.util.HashMap.writeObject(HashMap.java:1411) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1145) ~[?:?] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1497) ~[?:?] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433) ~[?:?] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179) ~[?:?] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553) ~[?:?] at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:442) ~[?:?] at org.apache.jorphan.collections.HashTree.writeObject(HashTree.java:951) ~[jorphan-5.3.jar:5.3] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1145) ~[?:?] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1497) ~[?:?] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433) ~[?:?] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179) ~[?:?] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349) ~[?:?] at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:293) ~[?:?] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155) ~[?:?] ... 14 more 2020-09-02 15:20:27,792 INFO o.a.j.e.ClientJMeterEngine: Interrupting RMI Reaper 2020-09-02 15:20:27,793 ERROR o.a.j.u.JMeterUtils: Error in rconfigure() method java.rmi.MarshalException: error marshalling arguments; nested exception is: java.io.NotSerializableException: org.apache.jmeter.JMeter$ListenToTest 2020-09-02 15:20:27,793 INFO o.a.j.e.DistributedRunner: Remote engines have been started:[] 2020-09-02 15:20:27,793 ERROR o.a.j.e.DistributedRunner: The following remote engines have not started:[no1010042068081.corp.adobe.com] -- You are receiving this mail because: You are the assignee for the bug.
