Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zombie http.proxyHost settings for JVM on OSX

I recently changed network and removed all my HTTP proxy settings from the System Preferences / Networking panel on OSX (Leopard). However, now whenever I use Eclipse the Java HTTP proxy system properties seem to be 'automagically' set to use my now defunct HTTP proxy.

I can find no direct reference to this proxy anywhere on my system, have deleted and reinstalled Eclipse, have monitored the network traffic to rule out any proxy auto configuration, and yet this proxy configuration persists on the Mac OSX JVM.

This is what I see in the Eclipse configuration details:

http.proxyHost=zombie
http.proxyPort=8080
https.proxyHost=zombie
https.proxyPort=8080

I can work around this by manually configuring a proxy with no host name or port in the Eclipse preferences, but this doesn't seem to stick and the zombie system proxy eventually rises from the dead.

Personally I think that this is some kind of Apple JVM bug - but can anyone tell me how I can kill these zombie HTTP proxy settings for good without reinstalling my operating system?

like image 520
teabot Avatar asked Mar 06 '09 16:03

teabot


1 Answers

Check the values in

/System/Library/Frameworks/JavaVM.framework/Home/lib/net.properties

There are comments in that file saying proxy settings (from net.properties) are used only if there are no proxy settings in System Preferences. I'm wondering if something updated your net.properties file, setting proxy info. Now that you have no proxy settings (in System Preferences), the values in net.properties are actually being used.

like image 103
JLR Avatar answered Sep 24 '22 09:09

JLR