java.net.MalformedURLException: unknown protocol: socket

Hi.I have an app deployed with java web start. It runs fine with java5.If i update the machines to java6 it works in some (windows and linux) but not on other (windows).The exception i get is:java.net.MalformedURLException: unknown protocol: socketAny
[300 byte] By [Andres_Gleza] at [2007-11-26 15:56:28]
# 1
> ...> Any ideas? Either link to the JNLP file, or copy/paste it here.
AndrewThompson64a at 2007-7-8 22:17:18 > top of Java-index,Desktop,Deploying...
# 2
I have just deployed a test application using JWS 6.0 and am getting the exact same error. NB I don't think this error has anything to do with the JNLP file, my app loads fine but as soon as it tries to open a connection to an external URL the above error is returned. Frustrating!
gibboa at 2007-7-8 22:17:18 > top of Java-index,Desktop,Deploying...
# 3
NB I have deployed the app via JWS on my machine and it works fine, it's my friend's machine which is returning the error (I made sure he has JRE 6.0 installed)
gibboa at 2007-7-8 22:17:18 > top of Java-index,Desktop,Deploying...
# 4

Problem solved!

I noticed that the full trace of the errors contained something about proxies, so I got my friend (who has Win XP Home) to:

1) go to Control Panel -> Java

2) click the Network Settings button

3) Select Direct Connection, and click ok a couple of times to exit

No more errors! :) Sun - get this fixed ASAP!

Here is more of the trace log if anyone is interested:

java.net.MalformedURLException: unknown protocol: socket

at java.net.URL.<init>(Unknown Source)

at java.net.URL.<init>(Unknown Source)

at java.net.URL.<init>(Unknown Source)

at java.net.URI.toURL(Unknown Source)

at

com.sun.deploy.net.proxy.DeployProxySelector.connectFailed(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at

gibboa at 2007-7-8 22:17:18 > top of Java-index,Desktop,Deploying...
# 5

Further debug info:

My friend has Firefox as his default browser, and he used to use a proxy (so Firefox still has the details stored) *but* he didn't have the proxy selected. By default, JRE 6.0 has "Use Browser Settings" enabled, so this could be a bug relating to how it grabs the browser settings from Firefox

gibboa at 2007-7-8 22:17:18 > top of Java-index,Desktop,Deploying...
# 6

There are a few bugs in the initial 6.0 version of Java Web Start related to getting the proxy settings from FireFox.

Before JDK 6, "use browser settingd" would always get the settings from IE, instead of the default browser.

The problems getting the Firefox proxies should be fixed in an early update release.

/Andy

dietz333a at 2007-7-8 22:17:18 > top of Java-index,Desktop,Deploying...