You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2007/07/05 15:51:51 UTC
DO NOT REPLY [Bug 42819] New: - NullPointerException in JsseSSLManager
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
Summary: NullPointerException in JsseSSLManager
Product: JMeter
Version: 2.3
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: HTTP
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: jens@voss-ahrensburg.de
Our company is behind a proxy server (named "proxy", running on port 8080).
If I run the attached test plan using the command line invocation
bin\jmeter -t RCTestPlan.jmx -n -H proxy -P 8080
the log file (also attached) will contain a null pointer exception
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
------- Additional Comments From jens@voss-ahrensburg.de 2007-07-05 06:53 -------
Created an attachment (id=20454)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20454&action=view)
sample test plan log file
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - 2.3RC1 - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
------- Additional Comments From sebb@apache.org 2007-07-06 04:50 -------
(In reply to comment #5)
> Hi Sebastian
> Thanks for your various suggestions and comments. I
> tried them out and came up with the following results:
> > You can try defining the jmeter property:
> > https.sessioncontext.shared=true
> > to revert to the previous behaviour.
> > What happens if you try that?
> I can see no difference, the NPE is still there.
Yes, that was intended as a fix for reverting to the original SSL behaviour,
not the NPE.
> > Try setting the system property:
> > javax.net.ssl.keyStorePassword
> > to an empty string - the NPE should disappear.
> > Does this fix the NPE for you?
> No, unfortunately it doesn't either.
You need to set the property in system.properties or otherwise ensure that it
is defined very early on.
> > Alternatively, delete the keystore file (unless you need it).
> Now this does seem to work; the NPE is no longer showing in the
> log file, and the problematic test plan is running faster by
> about the factor 6. On the other hand, I do need the file for
> other purposes, but for the time being, I can use this workaround.
Rather than use the keystore from the default location, use the
system.properties entry:
javax.net.ssl.keyStore
to define the appropriate location, and make sure the password is also defined.
> > The problem also occurs on JMeter 2.2, so the bug has been
> > lurking for a little while ...
> If this is the case, then there must be some other difference
> in the code preventing the NPE to be thrown in version 2.2
> because I am not getting any stack trace in the 2.2 log file
> (Or the NPE is sensibly handled or simply not logged).
That's odd. For it to occur, the following needs to be true:
* using SSL
* keystore file is found
* no password provided
* non-GUI mode
Perhaps your 2.2 setup provides a password?
What happens if you run the SSL test in GUI mode in 2.2?
Do you get a password prompt?
I do (if there is a keystore but no password defined), and pressing cancel or
X rather than OK also produces the NPE.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - 2.3RC1 - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
------- Additional Comments From sebb@apache.org 2007-07-09 04:01 -------
Good point.
It has now been added to the changes file, but I need to make it more obvious.
It was already mentioned in jmeter.properties, but I agree that is not enough.
Thanks for confirming that the problem has gone.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - 2.3RC1 - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
jens@voss-ahrensburg.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|NullPointerException in |2.3RC1 -
|JsseSSLManager |NullPointerException in
| |JsseSSLManager
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - 2.3RC1 - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
------- Additional Comments From jens@voss-ahrensburg.de 2007-07-06 01:06 -------
Hi Sebastian
Thanks for your various suggestions and comments. I
tried them out and came up with the following results:
> You can try defining the jmeter property:
> https.sessioncontext.shared=true
> to revert to the previous behaviour.
> What happens if you try that?
I can see no difference, the NPE is still there.
> Try setting the system property:
> javax.net.ssl.keyStorePassword
> to an empty string - the NPE should disappear.
> Does this fix the NPE for you?
No, unfortunately it doesn't either.
> Alternatively, delete the keystore file (unless you need it).
Now this does seem to work; the NPE is no longer showing in the
log file, and the problematic test plan is running faster by
about the factor 6. On the other hand, I do need the file for
other purposes, but for the time being, I can use this workaround.
> The problem also occurs on JMeter 2.2, so the bug has been
> lurking for a little while ...
If this is the case, then there must be some other difference
in the code preventing the NPE to be thrown in version 2.2
because I am not getting any stack trace in the 2.2 log file
(Or the NPE is sensibly handled or simply not logged).
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - 2.3RC1 - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
sebb@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |FIXED
------- Additional Comments From sebb@apache.org 2007-07-07 12:19 -------
The code has been fixed to avoid the NPE - revision 554102
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - 2.3RC1 - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
------- Additional Comments From sebb@apache.org 2007-07-05 17:41 -------
The problem also occurs on JMeter 2.2, so the bug has been lurking for a
little while ...
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - 2.3RC1 - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
sebb@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From sebb@apache.org 2007-07-05 17:37 -------
This is a problem with the password handling in non-GUI mode, and happens
regardless of the proxy settings.
Try setting the system property:
javax.net.ssl.keyStorePassword
to an empty string - the NPE should disappear.
Does this fix the NPE for you?
Alternatively, delete the keystore file (unless you need it).
[Obviously the bug needs to be fixed, but it would be useful to know if I have
found the problem]
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - 2.3RC1 - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
------- Additional Comments From sebb@apache.org 2007-07-06 07:26 -------
(In reply to comment #7)
> (In reply to comment #6)
> > [...]
> > > > The problem also occurs on JMeter 2.2, so the bug has been
> > > > lurking for a little while ...
> > > If this is the case, then there must be some other difference
> > > in the code preventing the NPE to be thrown in version 2.2
> > > because I am not getting any stack trace in the 2.2 log file
> > > (Or the NPE is sensibly handled or simply not logged).
> > That's odd. For it to occur, the following needs to be true:
> > * using SSL
> > * keystore file is found
> > * no password provided
> > * non-GUI mode
> > Perhaps your 2.2 setup provides a password?
> Yes, that is the case. However, I was providing the password in 2.3
> as well - WITH the exception.
How did you provide the password?
It no longer works in jmeter.properties - it has to be defined in
system.properties or on the command-line.
> > What happens if you run the SSL test in GUI mode in 2.2?
> > Do you get a password prompt?
> > I do (if there is a keystore but no password defined), and pressing cancel
or
> > X rather than OK also produces the NPE.
> Confirmed.
OK
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
------- Additional Comments From jens@voss-ahrensburg.de 2007-07-05 06:52 -------
Created an attachment (id=20453)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20453&action=view)
Sample test plan
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - 2.3RC1 - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
------- Additional Comments From jens@voss-ahrensburg.de 2007-07-09 00:04 -------
(In reply to comment #8)
> [...]
> How did you provide the password?
> It no longer works in jmeter.properties - it has to be defined in
> system.properties or on the command-line.
Ahhh! Now who would have thought of that!
Of course I did provide it via the jmeter.properties file - if I
change that to specification on the command line, it works without
NPE and without lag.
I think this change in behaviour should be worth a remark in the
changes.html file.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42819] - 2.3RC1 - NullPointerException in JsseSSLManager
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42819
------- Additional Comments From jens@voss-ahrensburg.de 2007-07-06 06:28 -------
(In reply to comment #6)
> [...]
> > > The problem also occurs on JMeter 2.2, so the bug has been
> > > lurking for a little while ...
> > If this is the case, then there must be some other difference
> > in the code preventing the NPE to be thrown in version 2.2
> > because I am not getting any stack trace in the 2.2 log file
> > (Or the NPE is sensibly handled or simply not logged).
> That's odd. For it to occur, the following needs to be true:
> * using SSL
> * keystore file is found
> * no password provided
> * non-GUI mode
> Perhaps your 2.2 setup provides a password?
Yes, that is the case. However, I was providing the password in 2.3
as well - WITH the exception.
> What happens if you run the SSL test in GUI mode in 2.2?
> Do you get a password prompt?
> I do (if there is a keystore but no password defined), and pressing cancel or
> X rather than OK also produces the NPE.
Confirmed.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org