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

jmeter.util.SSLManager: Couldn't load keystore #1755

Closed
asfimport opened this issue Jun 23, 2006 · 6 comments
Closed

jmeter.util.SSLManager: Couldn't load keystore #1755

asfimport opened this issue Jun 23, 2006 · 6 comments

Comments

@asfimport
Copy link
Collaborator

sorchanian (Bug 39887):
Hi,

We are receiving this problem in the log files during our load tests when
using Jmeter 2.1.1. We followed the workaround for using the certs keytool
but are still getting this error. Please advise as this is important for our
performance/load metrics:
" jmeter.util.SSLManager: Couldn't load keystore java.lang.Exception: No key found"

Thank you,
Simon

Severity: major
OS: Linux

@asfimport
Copy link
Collaborator Author

Sebb (migrated from Bugzilla):
Please try using 2.2; there was a fix in this area.

@asfimport
Copy link
Collaborator Author

sorchanian (migrated from Bugzilla):
(In reply to comment 1)

Please try using 2.2; there was a fix in this area.

Hi Sebb,

We are actually using Jmeter 2.2 as well as the latest Java JDK
and still experiencing this issue fairly consistently. Please provide
more information if you can. We would greatly appreciate it !!

Thanks again,
Simon

@asfimport
Copy link
Collaborator Author

sorchanian (migrated from Bugzilla):
Created attachment jmeter.log: jmeter.log file

jmeter.log
2006/07/10 14:31:26 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US 
2006/07/10 14:31:26 INFO  - jmeter.JMeter: Loading user properties from: user.properties 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: Loading system properties from: system.properties 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: Copyright (c) 1998-2006 The Apache Software Foundation 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: Version 2.2 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: java.version=1.5.0_07 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: os.name=Windows XP 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: os.arch=x86 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: os.version=5.1 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: Default Locale=English (United States) 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: JMeter  Locale=English (United States) 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: JMeterHome=C:\jakarta-jmeter-2.2 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: user.dir=C:\jakarta-jmeter-2.2\bin 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: PWD     =C:\jakarta-jmeter-2.2\bin 
2006/07/10 14:31:27 INFO  - jmeter.JMeter: Loading file: Remember-Me.jmx 
2006/07/10 14:31:27 INFO  - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 
2006/07/10 14:31:27 INFO  - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times 
2006/07/10 14:31:27 INFO  - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 
2006/07/10 14:31:27 INFO  - jmeter.save.SaveService: Using SaveService properties file version 408187 
2006/07/10 14:31:28 WARN  - jmeter.save.SaveService: Could not set up alias MailerModel java.lang.NoClassDefFoundError: javax/mail/Message 
2006/07/10 14:31:28 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default 
2006/07/10 14:31:28 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is  
2006/07/10 14:31:28 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is  
2006/07/10 14:31:28 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is  
2006/07/10 14:31:28 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is  
2006/07/10 14:31:28 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 
2006/07/10 14:31:28 INFO  - jmeter.protocol.http.sampler.HTTPSampler2: Local host = TOSHIBA-MILI 
2006/07/10 14:31:28 INFO  - jmeter.protocol.tcp.sampler.TCPSampler: Protocol Handler name=TCPClientImpl 
2006/07/10 14:31:28 INFO  - jmeter.protocol.tcp.sampler.TCPSampler: Status prefix= 
2006/07/10 14:31:28 INFO  - jmeter.protocol.tcp.sampler.TCPSampler: Status suffix= 
2006/07/10 14:31:28 INFO  - jmeter.protocol.tcp.sampler.TCPSampler: Status properties= 
2006/07/10 14:31:28 WARN  - jmeter.save.SaveService: Could not set up alias JMSSampler java.lang.NoClassDefFoundError: javax/jms/Message 
2006/07/10 14:31:29 WARN  - jmeter.save.SaveService: Could not set up alias SubscriberSampler java.lang.NoClassDefFoundError: javax/jms/MessageListener 
2006/07/10 14:31:29 WARN  - jmeter.save.SaveService: Could not set up alias MailerVisualizer java.lang.NoClassDefFoundError: javax/mail/MessagingException 
2006/07/10 14:31:29 WARN  - jmeter.save.SaveService: Could not set up alias WebServiceSampler java.lang.NoClassDefFoundError: javax/mail/MessagingException 
2006/07/10 14:31:29 INFO  - jmeter.save.SaveService: Using SaveService properties version 1.8 
2006/07/10 14:31:29 INFO  - jmeter.save.SaveService: All converter versions present and correct 
2006/07/10 14:31:29 INFO  - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version 
2006/07/10 14:31:29 INFO  - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false 
2006/07/10 14:31:29 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
2006/07/10 14:31:30 INFO  - jmeter.JMeter: Running test 
2006/07/10 14:31:30 INFO  - jmeter.engine.StandardJMeterEngine: Starting 2 threads for group Thread Group. Ramp up = 2. 
2006/07/10 14:31:30 INFO  - jmeter.engine.StandardJMeterEngine: Continue on error 
2006/07/10 14:31:30 WARN  - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties) 
2006/07/10 14:31:30 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-1 started 
2006/07/10 14:31:31 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-2 started 
2006/07/10 14:31:31 INFO  - jmeter.services.FileServer: Stored: user.dat 
2006/07/10 14:31:44 INFO  - jmeter.util.SSLManager: KeyStore Type: JKS 
2006/07/10 14:31:44 INFO  - jmeter.util.SSLManager: KeyStore Type: JKS 
2006/07/10 14:31:45 ERROR - jmeter.util.SSLManager: Couldn't load keystore java.lang.Exception: No key found
	at org.apache.jmeter.util.keystore.DefaultKeyStore.load(DefaultKeyStore.java:68)
	at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:152)
	at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
	at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:647)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
	at java.lang.Thread.run(Unknown Source)

2006/07/10 14:31:45 INFO  - jmeter.util.SSLManager: JmeterKeyStore Location: C:/Program Files/Java/jdk1.5.0_07/jre/lib/security/resto 
2006/07/10 14:31:45 INFO  - jmeter.util.SSLManager: JmeterKeyStore type: class org.apache.jmeter.util.keystore.DefaultKeyStore 
2006/07/10 14:31:45 INFO  - jmeter.util.JsseSSLManager: class org.apache.jmeter.util.keystore.DefaultKeyStore 
2006/07/10 14:31:45 ERROR - jmeter.util.SSLManager: Couldn't load keystore java.lang.Exception: No key found
	at org.apache.jmeter.util.keystore.DefaultKeyStore.load(DefaultKeyStore.java:68)
	at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:152)
	at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:141)
	at org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:88)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:231)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSampler.java:148)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:404)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:647)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
	at java.lang.Thread.run(Unknown Source)

2006/07/10 14:31:45 INFO  - jmeter.util.SSLManager: JmeterKeyStore Location: C:/Program Files/Java/jdk1.5.0_07/jre/lib/security/resto 
2006/07/10 14:31:45 INFO  - jmeter.util.SSLManager: JmeterKeyStore type: class org.apache.jmeter.util.keystore.DefaultKeyStore 
2006/07/10 14:31:45 INFO  - jmeter.util.JsseSSLManager: class org.apache.jmeter.util.keystore.DefaultKeyStore 
2006/07/10 14:31:45 INFO  - jmeter.util.SSLManager: TrustStore Type: JKS 
2006/07/10 14:31:45 INFO  - jmeter.util.SSLManager: TrustStore Location: C:/Program Files/Java/jdk1.5.0_07/jre/lib/security/resto 
2006/07/10 14:31:45 INFO  - jmeter.util.SSLManager: TrustStore type: class org.apache.jmeter.util.keystore.DefaultKeyStore 
2006/07/10 14:31:45 INFO  - jmeter.util.JsseSSLManager: AlwaysTrustManager alias: foo 
2006/07/10 14:31:45 INFO  - jmeter.util.JsseSSLManager:  INSTALLED 
2006/07/10 14:31:45 INFO  - jmeter.util.SSLManager: TrustStore Type: JKS 
2006/07/10 14:31:45 INFO  - jmeter.util.SSLManager: TrustStore Location: C:/Program Files/Java/jdk1.5.0_07/jre/lib/security/resto 
2006/07/10 14:31:45 INFO  - jmeter.util.SSLManager: TrustStore type: class org.apache.jmeter.util.keystore.DefaultKeyStore 
2006/07/10 14:31:45 INFO  - jmeter.util.JsseSSLManager: AlwaysTrustManager alias: foo 
2006/07/10 14:31:45 INFO  - jmeter.util.JsseSSLManager:  INSTALLED 
2006/07/10 14:31:45 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed 
2006/07/10 14:31:45 INFO  - jmeter.util.JsseSSLManager: JsseSSLManager installed 
2006/07/10 14:31:47 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-2 is done 
2006/07/10 14:31:47 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread 1 
2006/07/10 14:31:47 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-1 is done 
2006/07/10 14:31:47 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread 0 
2006/07/10 14:31:47 INFO  - jmeter.engine.StandardJMeterEngine: Stopping test 
2006/07/10 14:31:47 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
2006/07/10 14:31:47 INFO  - jmeter.services.FileServer: Close: user.dat 
2006/07/10 14:31:47 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended 

@asfimport
Copy link
Collaborator Author

max.jarvie (migrated from Bugzilla):
We are experiencing this problem as well. Running a packet capture with
ethereal shows that this issue generates an artifact at the SSL Layer, in
particular:

---------<from ethereal>----------

Secure Socket Layer
TLS Record Layer: Encrypted Alert
Content Type: Alert (21)
Version: TLS 1.0 (0x0301)
Length: 18
Alert Message: Encrypted Alert


Running Ethereal while refreshing the desired page in an ordinary browser does
not generate the TLS alerts.

I have not been able to determine whether this error is adding significant
duration to the response times recorded by JMeter for the SSL request tests we
are running.

It is worth noting that running a packet capture against another Java-based
loadtester called NeoLoad produces the same encryption alert messages.

@asfimport
Copy link
Collaborator Author

Georg Lehner (migrated from Bugzilla):
(In reply to comment 0)

Hi,

We are receiving this problem in the log files during our load tests when
using Jmeter 2.1.1. We followed the workaround for using the certs keytool
but are still getting this error. Please advise as this is important for our
performance/load metrics:
" jmeter.util.SSLManager: Couldn't load keystore java.lang.Exception: No key
found"

If you just want to access a Webpage via https this error message is
meaningless. It comes from loading the keystore, where your own private keys
for SSL-Authentication towards the server can be stored.

We found that by setting the: 'javax.net.ssl.trustStore' property to the right
file (which can be the same as the keystore) and after importing the relevant
CA-Certificates problems accessing https pages are gone.

Regards: Georg Lehner (aka Jorge-León)

@asfimport
Copy link
Collaborator Author

Sebb (migrated from Bugzilla):
I think this is now fixed in SVN. It will be in the next nightly build:

http://people.apache.org/builds/jakarta-jmeter/nightly/

Part of the problem was that JMeter would create an empty keystore if no file
was found, but then complained if there were no keys in the store...

Hopefully now the error messages are only created if there really is a problem.

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