So, this actually /does/ have something to do with Firefox, at least in
a roundabout way.

Quick fix (method 1)
1. Edit > Preferences in Firefox
2. Advanced > Network > Settings...
3. If "Use system proxy settings" is selected, either:
    a) Select "No proxy" if you don't use a proxy
        -or-
    b) Enter your appropriate proxy settings.  Any correct proxy settings 
should work, as long as they are entered in Firefox and "Use system proxy 
settings" is not selected.

Quick fix (method 2)
1. Type "about:config" into the address bar in Firefox
2. Type "network.proxy.type" into the configuration Filter box
3. Right click on the entry and select Modify
4. Enter "0" (number zero) (means "No proxy")
5. Click OK

Details:
I ran an strace on "javaws <url>" (with Firefox not running), and noticed that 
javaws reads the Firefox preferences file (/home/user/.mozilla/firefox/<profile 
string>.default/prefs.js).  Removing the line in the preferences file for 
"network.proxy.type" fixed the problem.  The value of "network.proxy.type" was 
5 which corresponds to "Use system proxy settings".  Changing 
"network.proxy.type" to 1, 2, or 4 appears to cause javaws to try to interpret 
the rest of the proxy settings in the preferences file.  Changing 
"network.proxy.type" to 0 ("Direct connection, no proxy") causes javaws to make 
a direct connection.

So it seems that Java is looking around for various proxy settings to
try to determine them, and doesn't understand Firefox's "5" type.
According to the Mozilla documentation, the value of 5 was added in
Firefox 3.0, and maybe only works for non-OS X UNIXes, so Java probably
needs to be updated to understand/ignore it.

$ ls -l /usr/bin/javaws
lrwxrwxrwx 1 root root 24 2009-01-11 12:32 /usr/bin/javaws -> 
/etc/alternatives/javaws
$ ls -l /etc/alternatives/javaws
lrwxrwxrwx 1 root root 38 2009-06-08 16:14 /etc/alternatives/javaws -> 
/usr/lib/jvm/java-6-sun/jre/bin/javaws

References:
http://kb.mozillazine.org/Network.proxy.type

-- 
Impossible to run Java Web Start application - java.lang.IllegalStateException 
occures
https://bugs.launchpad.net/bugs/375194
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to