Bug 63207

Summary: java.lang.NullPointerException: null when run Jmeter 5.1 with proxy options
Product: JMeter Reporter: Mike Khil <michaelkhil78>
Component: MainAssignee: JMeter issues mailing list <issues>
Severity: regression CC: p.mouawad, pravinjha9324
Priority: P2 Keywords: FixedInTrunk
Version: 5.1   
Target Milestone: JMETER_5.1.1   
Hardware: All   
OS: All   
Attachments: log

Description Mike Khil 2019-02-25 15:38:59 UTC
Created attachment 36459 [details]

Hi there !
When I start Jmeter 5.1 with proxy options like jmeter.bat -H host -P port -u login -a password jmeter failed with error level =1 and in log file information:
java.lang.NullPointerException: null
	at org.apache.jmeter.JMeter.setProxy(JMeter.java:763) ~[ApacheJMeter_core.jar:5.1 r1853635]
	at org.apache.jmeter.JMeter.start(JMeter.java:490) [ApacheJMeter_core.jar:5.1 r1853635]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_191]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_191]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_191]
	at org.apache.jmeter.NewDriver.main(NewDriver.java:253) [ApacheJMeter.jar:5.1 r1853635]
Comment 1 Philippe Mouawad 2019-02-25 15:47:42 UTC
Author: pmouawad
Date: Mon Feb 25 15:47:07 2019
New Revision: 1854317

URL: http://svn.apache.org/viewvc?rev=1854317&view=rev
Bug 63207 - java.lang.NullPointerException: null when run Jmeter 5.1 with proxy options
Bugzilla Id: 63207

Comment 2 Philippe Mouawad 2019-02-25 15:55:06 UTC
Can you test next CI build which is in progress (if it fails check next successful one):

And tell if it works.

As a workaround, add to your command line:

 --proxyScheme http


 --proxyScheme https

Thanks for your feedback.
Comment 3 Mike Khil 2019-02-25 16:12:18 UTC
yes/ works well in both cases. Thanks
Comment 4 Philippe Mouawad 2019-03-06 14:35:07 UTC
*** Bug 63238 has been marked as a duplicate of this bug. ***