Bug 63238

Summary: While starting Jmeter by bypassing proxy it is returning "java.lang.NullPointerException: null"
Product: JMeter - Now in Github Reporter: Pravin <pravinjha9324>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED DUPLICATE    
Severity: major CC: p.mouawad, pravinjha9324
Priority: P2 Keywords: FixedInTrunk
Version: 5.1   
Target Milestone: JMETER_5.1.1   
Hardware: PC   
OS: All   

Description Pravin 2019-03-06 14:14:24 UTC
Actual:- 
When Jmeter(v5.1) is started using following command by bypassing he proxy it is returning null in console. 

Jmeter start up command used to bypass proxy & opnen Jmeter:-
C:\Performance\apache-jmeter-5.1\bin>jmeter.bat -H <proxyName> -P <Port> -u <userName>

Full stack trace from Jmeter.log:- 

2019-03-05 19:31:30,482 ERROR o.a.j.JMeter: An error occurred: 
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]

Output from console:- 

An error occurred: null
errorlevel=1
Press any key to continue . . .

Note:- When same command is used in Jmeter version 5.0 it is working & I am able to see jmeter GUI opening bypassing proxy server.
Comment 1 Philippe Mouawad 2019-03-06 14:35:07 UTC

*** This bug has been marked as a duplicate of bug 63207 ***
Comment 2 The ASF infrastructure team 2022-09-24 20:38:16 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5032