how do i fix? Error while enabling Quick Shop - minecraft

i installed Quick Shop with all the plugins below and whenever i try to start the server the plugin doesn't work i tried using SPM(SimplePluginManager) too but no luck
my plugins (21): antiRedstoneClock, AuthMe, DiscordSRV, Essentials, EssentialsChat, GoldenCrates, GriefPrevention, LuckPerms, NexEngine, PlaceholderAPI, ProtocolLib, QuickShop*, SilkSpawners, SkinsRestorer, skRayFall, Skript, StackMob, Vault, ViaVersion, WorldEdit, WorldGuard
Here's the error i get when i start the server:
[14:23:10 ERROR]: Error occurred while enabling QuickShop v4.4 (Is it up to date?)
java.lang.NoSuchMethodError: 'org.bukkit.configuration.file.YamlConfiguration org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(java.io.InputStream)'
at org.maxgamer.QuickShop.Util.MsgUtil.loadCfgMessages(MsgUtil.java:48) ~[?:?]
at org.maxgamer.QuickShop.QuickShop.reloadConfig(QuickShop.java:344) ~[?:?]
at org.maxgamer.QuickShop.QuickShop.onEnable(QuickShop.java:107) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-774]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.16.5.jar:git-Paper-774]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Paper-774]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Paper-774]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Paper-774]
at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:594) ~[patched_1.16.5.jar:git-Paper-774]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.16.5.jar:git-Paper-774]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1069) ~[patched_1.16.5.jar:git-Paper-774]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-774]
at java.lang.Thread.run(Thread.java:831) [?:?]
[14:23:10 INFO]: [QuickShop] Disabling QuickShop v4.4
[14:23:10 ERROR]: Error occurred while disabling QuickShop v4.4 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "org.maxgamer.QuickShop.Shop.ShopManager.clear()" because "this.shopManager" is null
at org.maxgamer.QuickShop.QuickShop.onDisable(QuickShop.java:413) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:265) ~[patched_1.16.5.jar:git-Paper-774]
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:405) ~[patched_1.16.5.jar:git-Paper-774]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:533) ~[patched_1.16.5.jar:git-Paper-774]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374) ~[patched_1.16.5.jar:git-Paper-774]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Paper-774]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Paper-774]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Paper-774]
at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:594) ~[patched_1.16.5.jar:git-Paper-774]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.16.5.jar:git-Paper-774]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1069) ~[patched_1.16.5.jar:git-Paper-774]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-774]
at java.lang.Thread.run(Thread.java:831) [?:?]```

The org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(java.io.InputStream) method has been deprecated for over 3 years and was removed on may 14th 2017 in this commit. You'll have to contact the plugin developer to replace the deprecated method, or you'll have to fix this issue in the sourcecode of this plugin, or you'll have to re-add the method to your Bukkit server. The last two options require Java knowledge. In the current state, the plugin is simply not compatible with your server software.

Related

Ignite throws SocketTimeoutException randomly while running in PROD

It throws below error and restarts thereafter without printing much logs.
TcpDiscoverySpi [tcp-disco-sock-reader-[]-#13-#76] Failed to initialize connection (this can happen due to short time network problems and can be ignored if does not affect node discovery) [sock=Socket[addr=/10.178.19.121,port=45450,localport=18036]]
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]
at java.net.SocketInputStream.socketRead(SocketInputStream.java:115) ~[?:?]
at java.net.SocketInputStream.read(SocketInputStream.java:168) ~[?:?]
at java.net.SocketInputStream.read(SocketInputStream.java:140) ~[?:?]
at java.io.BufferedInputStream.fill(BufferedInputStream.java:252) ~[?:?]
at java.io.BufferedInputStream.read1(BufferedInputStream.java:292) ~[?:?]
at java.io.BufferedInputStream.read(BufferedInputStream.java:351) ~[?:?]
at org.apache.ignite.spi.discovery.tcp.ServerImpl$SocketReader.body(ServerImpl.java:6784) ~[ignite-core-2.10.0.jar!/:2.10.0]
at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:58) ~[ignite-core-2.10.0.jar!/:2.10.0]
What could be the potential reason for this error and how to prevent Ignite from throwing this error?

Unable to run distributed tests with JMeter 5.4.1 using SSL RMI and defined ports on linux

I am running Jmeter 5.4.1 using openjdk 11 across all Linux machines. I tried using ubuntu 18.04.5, ubuntu 20.04.2, and Debian 10 which all had the same issues. I am able to run tests with specified ports or RMI SSL enabled but not both together. Everything works until I set client.rmi.localport then it has errors. Currently I don't have the firewall enabled as I was trying to eliminate obstacles. Nothing is on the specified ports until Jmeter runs (1099, 4888, 5888, 5889, 5900 are free and open). These are the changes I made to the user.properties file.
Client (Master)
remote_hosts=172.xx.xxx.xx1,172.xx.xx.xx2
server.rmi.ssl.keystore.file=/home/user/rmi_keystore.jks
client.rmi.localport=5888
Server (Slave)
server.rmi.ssl.keystore.file=/home/user/rmi_keystore.jks
server.rmi.localport=4888
/etc/hosts file looks like this on each machine just with the last number of ip changed and hostname to reflect that.
127.0.0.1 localhost
127.0.1.1 xxx-l1.xxx.xxxx.xxx xxx-l1
172.xx.xxx.xx1 xxx-l1.xxx.xxxx.xxx xxx-l1
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Currently trying to get it to work in GUI or command line but mostly been using the GUI to test with. I tried using either below to start the Client and run the tests.
./jmeter -Djava.rmi.server.hostname=172.xx.xxx.xx8
JVM_ARGS="-Xms1024m -Xmx4096m" ./jmeter -Djava.rmi.server.hostname=172.xx.xxx.xx8
If its a simple test only hitting google.com in the gui I'm able to run the distributed test once to success and then after that when rerunning the test it has these errors in the Client log and nothing generated in the Server log. If its a more complicated test or just including something as a view results tree on the first run it will show the errors. Command line also fails first run. The other log I have seen says Caused by: java.net.SocketException: Broken pipe (Write failed) inplace of the java.io.NotSerializableException but still shows same port messages.
2021-07-09 09:57:17,008 INFO o.a.j.s.FileServer: Default base='/home/user/Desktop/apache-jmeter-5.4.1/bin'
2021-07-09 09:57:17,011 INFO o.a.j.g.a.Load: Loading file: /home/user/Desktop/Summer2021/basictest.jmx
2021-07-09 09:57:17,012 INFO o.a.j.s.FileServer: Set new base='/home/user/Desktop/Summer2021'
2021-07-09 09:57:17,208 INFO o.a.j.s.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2021-07-09 09:57:17,226 INFO o.a.j.s.SaveService: Using SaveService properties version 5.0
2021-07-09 09:57:17,228 INFO o.a.j.s.SaveService: Using SaveService properties file encoding UTF-8
2021-07-09 09:57:17,230 INFO o.a.j.s.SaveService: Loading file: /home/user/Desktop/Summer2021/basictest.jmx
2021-07-09 09:57:17,255 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-07-09 09:57:17,255 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-07-09 09:57:17,255 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-07-09 09:57:17,255 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-07-09 09:57:17,255 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2021-07-09 09:57:17,255 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2021-07-09 09:57:17,383 INFO o.a.j.s.FileServer: Set new base='/home/user/Desktop/Summer2021'
2021-07-09 09:57:23,234 INFO o.a.j.e.DistributedRunner: Configuring remote engine: 172.xx.xxx.xx1
2021-07-09 09:57:24,033 INFO o.a.j.e.DistributedRunner: Starting distributed test with remote engines: [172.xx.xxx.xx1] # Fri Jul 09 09:57:24 MDT 2021 (1625846244032)
2021-07-09 09:57:24,033 INFO o.a.j.e.ClientJMeterEngine: running clientengine run method
2021-07-09 09:57:24,034 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2021-07-09 09:57:24,034 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2021-07-09 09:57:24,254 INFO o.a.j.r.RmiUtils: Resolving by name the value of System property 'java.rmi.server.hostname': 172.xx.xxx.xx8
2021-07-09 09:57:24,254 INFO o.a.j.r.RmiUtils: Local IP address=172.xx.xxx.xx8
2021-07-09 09:57:24,256 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2021-07-09 09:57:24,452 INFO o.a.j.r.SSLRMIServerSocketFactory: Created SSLSocket: [SSL: ServerSocket[addr=/172.xx.xxx.xx8,localport=5890]]
2021-07-09 09:57:24,455 INFO o.a.j.r.RmiUtils: Resolving by name the value of System property 'java.rmi.server.hostname': 172.xx.xxx.xx8
2021-07-09 09:57:24,455 INFO o.a.j.r.RmiUtils: Local IP address=172.xx.xxx.xx8
2021-07-09 09:57:24,655 INFO o.a.j.r.SSLRMIServerSocketFactory: Created SSLSocket: [SSL: ServerSocket[addr=/172.xx.xxx.xx8,localport=5889]]
2021-07-09 09:57:25,209 INFO o.a.j.e.ClientJMeterEngine: sent test to 172.xx.xxx.xx1 basedir='.'
2021-07-09 09:57:25,209 INFO o.a.j.e.ClientJMeterEngine: Sending properties {}
2021-07-09 09:57:25,212 INFO o.a.j.e.ClientJMeterEngine: sent run command to 172.xx.xxx.xx1
2021-07-09 09:57:25,213 INFO o.a.j.e.DistributedRunner: Remote engines have been started:[172.xx.xxx.xx1]
2021-07-09 09:57:25,214 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, 172.xx.xxx.xx1)
2021-07-09 09:57:25,445 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, 172.xx.xxx.xx1)
2021-07-09 09:57:29,906 INFO o.a.j.e.DistributedRunner: Configuring remote engine: 172.xx.xxx.xx1
2021-07-09 09:57:30,347 INFO o.a.j.e.DistributedRunner: Starting distributed test with remote engines: [172.xx.xxx.xx1] # Fri Jul 09 09:57:30 MDT 2021 (1625846250347)
2021-07-09 09:57:30,347 INFO o.a.j.e.ClientJMeterEngine: running clientengine run method
2021-07-09 09:57:30,348 INFO o.a.j.r.RmiUtils: Resolving by name the value of System property 'java.rmi.server.hostname': 172.xx.xxx.xx8
2021-07-09 09:57:30,348 INFO o.a.j.r.RmiUtils: Local IP address=172.xx.xxx.xx8
2021-07-09 09:57:30,550 ERROR o.a.j.e.ConvertListeners: RemoteException occurred while replacing Remotable item.
java.rmi.server.ExportException: Listen failed on port: 5890; nested exception is:
java.io.IOException: Could not bind to /172.xx.xxx.xx8 using port 5890
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.jar:5.4.1]
at org.apache.jmeter.engine.ConvertListeners.addNode(ConvertListeners.java:77) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:975) ~[jorphan.jar:5.4.1]
at org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:136) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.engine.DistributedRunner.start(DistributedRunner.java:134) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.4.1]
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) [?:?]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) [?:?]
at java.awt.EventQueue$4.run(EventQueue.java:721) [?:?]
at java.awt.EventQueue$4.run(EventQueue.java:715) [?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) [?:?]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:740) [?:?]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) [?:?]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) [?:?]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) [?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) [?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:?]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]
Caused by: java.io.IOException: Could not bind to /172.xx.xxx.xx8 using port 5890
at org.apache.jmeter.rmi.SSLRMIServerSocketFactory.createServerSocket(SSLRMIServerSocketFactory.java:138) ~[ApacheJMeter_core.jar:5.4.1]
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:670) ~[?:?]
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324) ~[?:?]
... 28 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:395) ~[?:?]
at java.net.ServerSocket.<init>(ServerSocket.java:257) ~[?:?]
at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:181) ~[?:?]
at sun.security.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:78) ~[?:?]
at sun.security.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:87) ~[?:?]
at org.apache.jmeter.rmi.SSLRMIServerSocketFactory.createServerSocket(SSLRMIServerSocketFactory.java:136) ~[ApacheJMeter_core.jar:5.4.1]
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:670) ~[?:?]
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324) ~[?:?]
... 28 more
2021-07-09 09:57:30,556 INFO o.a.j.r.RmiUtils: Resolving by name the value of System property 'java.rmi.server.hostname': 172.xx.xxx.xx8
2021-07-09 09:57:30,556 INFO o.a.j.r.RmiUtils: Local IP address=172.xx.xxx.xx8
2021-07-09 09:57:30,751 ERROR o.a.j.e.ConvertListeners: Error replacing class org.apache.jmeter.threads.RemoteThreadsListenerTestElement by wrapper: class org.apache.jmeter.threads.RemoteThreadsListenerWrapper
java.rmi.server.ExportException: Listen failed on port: 5889; nested exception is:
java.io.IOException: Could not bind to /172.xx.xxx.xx8 using port 5889
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.threads.RemoteThreadsListenerImpl.<init>(RemoteThreadsListenerImpl.java:58) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.engine.ConvertListeners.addNode(ConvertListeners.java:63) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:975) ~[jorphan.jar:5.4.1]
at org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:136) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.engine.DistributedRunner.start(DistributedRunner.java:134) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.4.1]
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) [?:?]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) [?:?]
at java.awt.EventQueue$4.run(EventQueue.java:721) [?:?]
at java.awt.EventQueue$4.run(EventQueue.java:715) [?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) [?:?]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:740) [?:?]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) [?:?]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) [?:?]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) [?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) [?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:?]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]
Caused by: java.io.IOException: Could not bind to /172.xx.xxx.xx8 using port 5889
at org.apache.jmeter.rmi.SSLRMIServerSocketFactory.createServerSocket(SSLRMIServerSocketFactory.java:138) ~[ApacheJMeter_core.jar:5.4.1]
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:670) ~[?:?]
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324) ~[?:?]
... 28 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:395) ~[?:?]
at java.net.ServerSocket.<init>(ServerSocket.java:257) ~[?:?]
at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:181) ~[?:?]
at sun.security.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:78) ~[?:?]
at sun.security.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:87) ~[?:?]
at org.apache.jmeter.rmi.SSLRMIServerSocketFactory.createServerSocket(SSLRMIServerSocketFactory.java:136) ~[ApacheJMeter_core.jar:5.4.1]
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:670) ~[?:?]
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324) ~[?:?]
... 28 more
2021-07-09 09:57:30,770 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.threads.RemoteThreadsListenerTestElement
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.$Proxy24.rconfigure(Unknown Source) ~[?:?]
at org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:152) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.engine.DistributedRunner.start(DistributedRunner.java:134) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.4.1]
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) [?:?]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) [?:?]
at java.awt.EventQueue$4.run(EventQueue.java:721) [?:?]
at java.awt.EventQueue$4.run(EventQueue.java:715) [?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) [?:?]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:740) [?:?]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) [?:?]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) [?:?]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) [?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) [?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:?]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]
Caused by: java.io.NotSerializableException: org.apache.jmeter.threads.RemoteThreadsListenerTestElement
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.GeneratedMethodAccessor18.invoke(Unknown Source) ~[?:?]
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.jar:5.4.1]
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.jar:5.4.1]
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) ~[?:?]
... 21 more
2021-07-09 09:57:30,773 INFO o.a.j.e.ClientJMeterEngine: Interrupting RMI Reaper
2021-07-09 09:57:30,773 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.threads.RemoteThreadsListenerTestElement
2021-07-09 09:57:33,605 INFO o.a.j.e.DistributedRunner: Remote engines have been started:[]
2021-07-09 09:57:33,606 ERROR o.a.j.e.DistributedRunner: The following remote engines have not started:[172.xx.xxx.xx1]
If anyone knows what I am doing wrong or need to change, it would be much appreciated.
If you want to override the client.rmi.localport setting make sure that it is the same on master and all the slaves
So my expectation is that if you add the next line:
client.rmi.localport=5888
to all the slaves user.properties file you setup should start working normally.
More information:
Remote hosts and RMI configuration
JMeter Distributed Testing with Docker
Apache JMeter Distributed Testing Step-by-step

Error when setting 'maxThreadsActive' on anypoint MQ

I am trying to set "maxThreadsActive" to 1 , to make sure there is only one thread pulling messages form queue , but for some reason i am getting sax parse exception in compile time .
Following is the Configuration :
<anypoint-mq:config name="Anypoint_MQ_Configuration"
provider-ref="anypointMQ_Provider_Settings" doc:name="Anypoint MQ Configuration" >
<http:worker-threading-profile maxThreadsActive="1"/>
</anypoint-mq:config>
error :
ERROR 2017-10-04 12:35:00,849 [main] org.mule.module.launcher.application.DefaultMuleApplication: null
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'http:worker-threading-profile'. One of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/tls":context, "http://www.mulesoft.org/schema/mule/http":proxy, "http://www.mulesoft.org/schema/mule/anypoint-mq":provider, "http://www.mulesoft.org/schema/mule/anypoint-mq":prefetch, "http://www.mulesoft.org/schema/mule/anypoint-mq":worker-threading-profile}' is expected.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[?:?]
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) ~[?:?]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[?:?]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[?:?]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[?:?]
The issue is with the Anypoint Studio.
The anypoint-mq connector configuration from Studio creates a internal tag with http:worker-threading-profile, which is not a valid child element for the anypoint-mq:config element.
To fix the error, you need to manually update the XML file by removing the http:worker-threading-profile, and add the following child element 'anypoint-mq:worker-threading-profile'. If you add this element, then it would not be shown in the Studio, but it will set the Thread profiling to Anypoint MQ connector.
This is an error with Studio.
Please refer the following link and go to section 'Threading Profile Settings'
https://docs.mulesoft.com/mule-user-guide/v/3.9/anypoint-mq-connector-reference
It seems you may be missing some configurations, do check the following SO answer : https://stackoverflow.com/a/37904111/7141847
And if you are setting maxThreadsActive to 1 i believe you need to set poolExhaustedAction="WAIT" in anypoint-mq-configurations
I have faced the similar issue.To ressolve this we need to use updated anypoint mq connector for the AnypointStudio-version(6.6.0).
Studio & Mq version

Jmeter 3.1- javax.net.ssl.SSLException: Received fatal alert: protocol_version

We are trying to run https request in Jmeter 3.1.
But while executing getting following error.
javax.net.ssl.SSLException: Received fatal alert: protocol_version
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at sun.security.ssl.AppOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.apache.jmeter.protocol.http.sampler.HTTPHC3Impl.sample(HTTPHC3Impl.java:269)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1166)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1155)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
at java.lang.Thread.run(Unknown Source)
We tried following solutions but did't solved the issue:
added "https.default.protocol=TLSv1" in "jmeter.properties" file
Tried solution provided in
http://rajanmanoj.blogspot.in/2011/02/how-to-test-ssl-using-jmeter.html
this link
We are Using Jmeter 3.1, Java Jdk 1.7, Windows 7
Https default protocol may vary depending on the version of JVM.
You can change it. Go to jmeter home directory. Open jmeter.properties file. Uncomment line:
https.default.protocol=SSLv3
May be you need to restart jmeter after change. Not sure about that.
This is highly due to protocol version mismatch. There is mismatch between SSL protocol version used by the client and the server.
Make sure that you have latest version of Java and JMeter installed in your system. Also check for the security certificate in JMETER_HOME\bin folder.
You can check this question for more details.

Distributed Testing with Jmeter

I am using Jmeter 2.8 and trying to do distributed (master-slave) testing for the first time.
I setup everything fine
set Ip addresses in JMeter.properties
run Jmater-server.bat on all machines
but when I run test(a very simple request) it gets failed:
Request:
http://localhost:8080/web/login?credentials=<credential><userId>WillieWonka
</userId><passwd><![CDATA[WillieWonka]]></passwd></credential>
Error I am getting is
org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8080 refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:640)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:284)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1075)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1064)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:426)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
While server is up and running (I tested this request running from localMachine only, It is working fine).
What is wrong?
What I am missing?
I have resolved this issue, replaced
localhost:8080
with
computerName:8080
and start application server via start.bat instead run.bat
now it is working fine.