This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 75922 - http.nonProxyHosts property is not set
Summary: http.nonProxyHosts property is not set
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-04 13:46 UTC by Lukas Jungmann
Modified: 2006-08-24 15:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (7.36 KB, patch)
2006-05-05 17:17 UTC, Petr Blaha
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2006-05-04 13:46:42 UTC
related to issue 74321 - only 95% of requested functionality there was
implemented -  if IDE defines "http.nonProxyHosts" property it is not passed to
appserver - blocker for users behind the proxy with IP from DHCP server.
Comment 1 _ ludo 2006-05-05 04:12:45 UTC
Workaround: use the JVMs node in the runtime tab to set up the server parameters.
Not a P1.
Comment 2 Petr Blaha 2006-05-05 14:42:32 UTC
Ludo, I don't agree with P3 priority for this bug because it's a high usability
bug. Users that are behind FW can't use ws client in App server due this bug.
I'm pretty sure they don't find how to setup JVM optons in runtime tab. I'm
changing priority to P2.
Comment 3 _ ludo 2006-05-05 16:13:50 UTC
Where in the Nb  ui do you define the nonproxyhosts?
If it is in the command line, it is *more* complex that the JVM node of the AS
plugin. 
Let me know, and if needed, I'll file the corresponding P2 nb bug :-)
Comment 4 Petr Blaha 2006-05-05 17:16:29 UTC
Ludo, the patch for this issue is attached. You are right, user can't specify
noHostProxy through UI, only command line switch might be used.
Comment 5 Petr Blaha 2006-05-05 17:17:30 UTC
Created attachment 30280 [details]
patch
Comment 6 Lukas Jungmann 2006-05-05 18:30:43 UTC
well there's no UI for it (AFAIK it's planned for next release), but now IDE
sets this property to some default value - see
$NB_CVS/core/src/org/netbeans/core/IDESettings.java, method getDefaultNonProxyHosts.
Comment 7 Martin Grebac 2006-05-09 14:07:39 UTC
It just broken the pod demo.
Comment 8 Milan Kuchtiak 2006-05-09 14:13:03 UTC
Today, the JAX-WS presentation failed because of missing http:nonProxyHosts.
Ludo, please, set-up this property.

I asked few times to set up all proxy settings not just proxyHost and proxyPort.
Tomcat plugin works properly.

Just apply the patch Lukas sent in this issue.

It's really important for web services. I don't want to increase priority (as,
in fact, there is a workaround) but for us it's P1.
Comment 9 Nitya Doraisamy 2006-05-09 19:49:01 UTC
Plugin now propagates "http.nonProxyHosts" property to Application server's
jvm-options 
Comment 10 Milan Kuchtiak 2006-05-10 15:09:03 UTC
This doesn't work for me.

My proxy JVMOptions are set to :

-Dhttp.proxyHost=webcache.czech.sun.com
-Dhttp.proxyPort=8080
-Dhttp.nonProxyHosts="localhost|127.0.0.1|d-eprg05-75-230"

and this doesn't work.

I've created simple (X4) web service in EJB module, deployed the module and
tried to Test it (Test WS action).
(I am behind a proxy)

Instead of tester page I get this error :

error: Server returned HTTP response code: 500 for URL:
http://d-eprg05-75-230:8080/X4Service/X4/__container$publishing$subctx/META-INF/wsdl/X4Service_schema1.xsd


What's worse this also halts the server !!!

Moreover, I tried to switch off the "Use IDE Proxy Settings" and set it up
manually. 
This is not possible. Any proxy setting is lost after server restart. This is
very bad.
Comment 11 Milan Kuchtiak 2006-05-10 15:21:36 UTC
I tried to change line 171 in HttpProxyUpdater :

<             nonHosts = "\"" + nonHosts + "\""; // NOI18N
>             nonHosts = nonHosts; // NOI18N

Then I got these settings :
-Dhttp.proxyHost=webcache.czech.sun.com
-Dhttp.proxyPort=8080
-Dhttp.nonProxyHosts=localhost|127.0.0.1|d-eprg05-75-230

and it works.

Seems that quotation marks cause the problems.
Comment 12 Lukas Jungmann 2006-05-10 18:01:34 UTC
issue for stoped server: https://glassfish.dev.java.net/issues/show_bug.cgi?id=649

issue for the format of nonProxyHosts property:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=650
Comment 13 Nitya Doraisamy 2006-05-10 21:17:30 UTC
http nonProxyHosts setting of format 
-Dhttp.nonProxyHosts="localhost|127.0.0.1|porky|129.145.133.230" (with quotes)
and
-Dhttp.nonProxyHosts=localhost|127.0.0.1|porky|129.145.133.230   (without quotes)
works on Windows.

From jungi's comments, in the glassfish bug reports, his environment is Linux.
Quotes might be causing issues in glassfish on Linux and possibly Solaris. Will
investigate and update bugs files against glassfish.

Meanwhile, the plugin can set the nonProxyHosts without quotes as that seems to
work in all environments.
Comment 14 Nitya Doraisamy 2006-05-11 02:35:39 UTC
Updated the plugin to set proxy value without quotes since this seems to work on
all platforms.
jungi, mkuchtiak, Please can you confirm the OS on which you saw this issue.
Comment 15 Milan Kuchtiak 2006-05-11 09:54:14 UTC
Yes, now it works on my (Linux) machine. Thank You Nitya.
Comment 16 Lukas Jungmann 2006-08-24 15:16:04 UTC
v.