Submitted On 06-JUN-2001
bwalding
Also note that WebStart doesn't appear to be able to get
through MS Proxy if the authentication is done using NTLM.
Submitted On 07-JUN-2001
hkrause
Hi,
I get the same Error (407) in this simple Program
If I try to connect a HTTP-URL it works fine.
public static void main(java.lang.String[] args) {
System.out.println("TestConnections::main() - started");
URL targetURL = null;
//System.properties setzen.
Properties sysProperties = System.getProperties();
sysProperties.put("proxyHost", "proxy.ourProxy.de");
sysProperties.put("https.proxyHost", "proxy.ourProxy.de");
sysProperties.put("proxyPort", "8080");
sysProperties.put("https.proxyPort", "8080");
//sysProperties.put("proxySet", "true");
final String proxyUser = "myUser";
final String proxyPW = "myPW";
try
{
//Alternative Authentifizierung
Authenticator.setDefault(new MyAuthenticator());
//Fall2:
//Vorbereitungen für SSL-Verbindungen
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
//Fall2:
targetURL = new URL("https", "www.strato.de", "/cgi-bin/serv_cont.cgi/news");
URLConnection con = targetURL.openConnection();
con.setDoInput(true);
con.setUseCaches(false);
con.setDefaultUseCaches(false);
//Authorization für Proxy Codieren (Base64)
String encodedStr = Base64.encode ((proxyUser + ":" +
proxyPW).getBytes ());
String authhdr = "Basic " + encodedStr;
con.setRequestProperty("Proxy-Authorization",authhdr);
BufferedReader in = new BufferedReader(new
InputStreamReader(con.getInputStream()));
String input = null;
while (null != input = in.readLine())
{
System.out.println(input);
}
}
catch (MalformedURLException e)
{
System.err.println("in main(): " + e);
System.exit(-1);
}
catch (java.io.IOException e)
{
System.err.println("in main(): " + e);
e.printStackTrace(System.err);
System.exit(-1);
}
Submitted On 16-JUN-2001
yyg
Our firewall also insists on certain user agents
Submitted On 27-JUN-2001
twoodruff
Why not at least provide an option to make HTTP requests
through the browser? Our solution to proxy problems has
always been to have the applet make requests via SSL,
which, in 1.2 & 1.3 plugins caused requests to be made
through the browser, bypassing the java proxy code. (I
believe even this is going away in 1.4. Don't know what
we'll do).
Submitted On 21-SEP-2001
bca
I have i similar problem I think. I tried to launch the
example on the web site. JWS ask me a login and password
for the firewall and after that JWS return me an error
saying it can't download.
Here are the error messages :
An error occurred while launching/running the application.
Title: SwingSet2
Vendor: Sun Microsystems, Inc.
Category: Download Error
Unable to load resource:
http://java.sun.com/products/javawebstart/apps/SwingSet2.jnl
p
JNLPException[category: Download Error : Exception:
java.net.ProtocolException: Server redirected too many
times (5) : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload
(Unknown Source)
at
com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvai
lable(Unknown Source)
at
com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown
Source)
at com.sun.javaws.Launcher.downloadResources
(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc
(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown
Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.net.ProtocolException: Server redirected too many
times (5)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream
(Unknown Source)
at java.net.HttpURLConnection.getResponseCode
(Unknown Source)
at com.sun.javaws.util.URLUtil.doesURLExist(Unknown
Source)
at com.sun.javaws.cache.DownloadProtocol.doDownload
(Unknown Source)
at
com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvai
lable(Unknown Source)
at
com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown
Source)
at com.sun.javaws.Launcher.downloadResources
(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc
(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown
Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Please note that I don't know the proxy configuration. and
so I am not sure if it is a network configuration problem
or a JWS related problem
Submitted On 04-OCT-2001
kposadowsky
Our proxy does nearly everything.
But when I send some POST-data by
URLConnection.getOutputStream() and after that
I try to get the URLConnection.getInputStream()
it fails to connect the URL.
THIS IS WITH proxy-authentification!!
Without it all works fine...
Submitted On 01-FEB-2002
jesper1
The problem is this: JSSE sends an HTTP/1.0 request to the
proxy and the proxy responds with an HTTP/1.1 reply, while
JSSE expects an HTTP/1.0 reply.
There is a workaround for this descibed in this JavaWorld
article: http://www.javaworld.com/javaworld/javatips/jw-
javatip111.html
Jesper de Jong
Submitted On 23-MAR-2004
AlexanderSack
sorry .. in my previous comment I meant of course
squid proxy authentication using ntlm
Submitted On 23-MAR-2004
AlexanderSack
for us webstart appears to have some problems with
getting through a squid using proxy authentication. It
takes about a few minutes before one is prompted for
password. After that, again a few minutes until one is
reasked for the same password. I tested all recent
j2sdk versions, incl. 1.4.2_04 on both linux & windows.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|