Hi there,

I observed "ElasticSearchMetricSender: 
Exceptionjavax.net.ssl.SSLHandshakeException: General SSLEngine problem" when I 
tried to run jMeter 5.4.1 tests with elastic search backend listener.

The backend listener is set to es.scheme=https.

I assume that the error has something to do with the es.ssl.* parameters and 
the configuration of the jMeter keystore element.

Keystore explorer says that keystore.jks in es.ssl.keystore.path and 
es.ssl.keystore.pw are valid.

Is there any documentation in which the usage of parameters es.ssl.* is 
described?

Here are some log entries:
2021-12-10 12:06:12,464 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2021-12-10 12:06:12,466 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2021-12-10 12:06:12,466 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2021-12-10 12:06:12,468 INFO o.a.j.e.u.CompoundVariable: Note: Function class 
names must contain the string: '.functions.'
2021-12-10 12:06:12,468 INFO o.a.j.e.u.CompoundVariable: Note: Function class 
names must not contain the string: '.gui.'
2021-12-10 12:06:12,824 INFO o.a.j.v.b.BackendListener: Backend Listener: 
Starting worker with class: class 
io.github.delirius325.jmeter.backendlistener.elasticsearch.ElasticsearchBackendClient
 and queue capacity: 5000
2021-12-10 12:06:12,827 INFO o.a.j.v.b.BackendListener: Backend Listener: 
Started  worker with class: class 
io.github.delirius325.jmeter.backendlistener.elasticsearch.ElasticsearchBackendClient
2021-12-10 12:06:12,828 WARN i.g.d.j.b.e.ElasticsearchBackendClient: KeyStore 
system properties overwritten by ES SSL configuration.
2021-12-10 12:06:13,134 ERROR i.g.d.j.b.e.ElasticsearchBackendClient: Error 
with node: [host=https://my-es.abc:9200]
2021-12-10 12:06:13,134 INFO i.g.d.j.b.e.ElasticSearchMetricSender: Index 
already exists!
2021-12-10 12:06:13,223 ERROR i.g.d.j.b.e.ElasticsearchBackendClient: Error 
with node: [host=https:// my-es.abc:9200]
2021-12-10 12:06:13,223 ERROR i.g.d.j.b.e.ElasticSearchMetricSender: 
Exceptionjavax.net.ssl.SSLHandshakeException: General SSLEngine problem
2021-12-10 12:06:13,224 ERROR i.g.d.j.b.e.ElasticSearchMetricSender: 
ElasticSearch Backend Listener was unable to perform request to the 
ElasticSearch engine. Check your JMeter console for more info.
2021-12-10 12:06:13,225 WARN o.a.j.c.KeystoreConfig: 
https.use.cached.ssl.context property must be set to false to ensure Multiple 
Certificates are used
2021-12-10 12:06:13,226 INFO o.a.j.c.KeystoreConfig: Configuring Keystore with 
(preload: 'True', startIndex: 0, endIndex: -1, clientCertAliasVarName: 
'certAlias')
2021-12-10 12:06:13,226 INFO o.a.j.u.JsseSSLManager: Using default SSL 
protocol: TLS
2021-12-10 12:06:13,226 INFO o.a.j.u.JsseSSLManager: SSL session context: 
per-thread
2021-12-10 12:06:13,228 INFO o.a.j.u.SSLManager: JmeterKeyStore Location: 
utils\Keystore.jks type jks
2021-12-10 12:06:13,228 INFO o.a.j.u.SSLManager: KeyStore created OK
2021-12-10 12:06:13,229 WARN o.a.j.u.SSLManager: No password provided, and no 
GUI present so cannot prompt
2021-12-10 12:06:13,229 ERROR o.a.j.u.SSLManager: Problem loading keystore: No 
key(s) found
java.lang.NullPointerException: No key(s) found
            at java.util.Objects.requireNonNull(Unknown Source) ~[?:1.8.0_131]
            at 
org.apache.jmeter.util.keystore.JmeterKeyStore.load(JmeterKeyStore.java:138) 
~[ApacheJMeter_core.jar:5.4.1]
            at 
org.apache.jmeter.util.SSLManager.retryLoadKeys(SSLManager.java:181) 
~[ApacheJMeter_core.jar:5.4.1]
            at 
org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:146) 
[ApacheJMeter_core.jar:5.4.1]
            at 
org.apache.jmeter.util.SSLManager.configureKeystore(SSLManager.java:334) 
[ApacheJMeter_core.jar:5.4.1]
            at 
org.apache.jmeter.config.KeystoreConfig.testStarted(KeystoreConfig.java:100) 
[ApacheJMeter_components.jar:5.4.1]
            at 
org.apache.jmeter.config.KeystoreConfig.testStarted(KeystoreConfig.java:64) 
[ApacheJMeter_components.jar:5.4.1]
            at 
org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:205)
 [ApacheJMeter_core.jar:5.4.1]
            at 
org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:382)
 [ApacheJMeter_core.jar:5.4.1]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
2021-12-10 12:06:13,235 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
Best regards
George


Reply via email to