Security Exception: MalformedURLException: unknown protocol: socket during opening JNLP file
Asked Answered
P

4

10

OS: Windows 7 32-bit JDK: jdk1.7.0_25

I have Studio.jnlp file. I tried to open it by double-click. But I found the error as below:

"MalformedURLException: unknown protocol: socket" Details: java.net.MalformedURLException: unknown protocol: socket

Summary of Exception

Details of Exception

Phyllome answered 19/7, 2013 at 3:18 Comment(3)
What is the (presumably malformed) URL? Post code, error messages and stack trace; not pictures.Wholehearted
In my case I just had to disable the proxy on... Firefox (as it is my primary browser)!Gaillard
For linux users it is a jcontrol program: symantec.com/connect/articles/…Sociable
P
26

Go to Control Panel of Windows and do the followings:

Click Java -> Click "Network Settings..." button under General tab -> Select Direct connection radio -> Click OK

That's it. Exception could be removed.

Phyllome answered 30/7, 2013 at 9:59 Comment(5)
The question is which "browser setting" is used on Linux as default?Depoliti
Good point keiki. Running linux here. I had proxy set up in Firefox but was launching the JNLP app from chrome and this error was a mystery to me.Clue
Works well with linux too.Pulpit
how do we do this on mac?Mainsheet
If you are in Linux Run command ControlPanel and Go to General > Network Settings.. > Direct ConnectionLitha
P
2

This message comes from the use of a proxy server which is not fully set in Internet options (in Internet Explorer).

When a proxy server is set manually, but with the option "use this server for all protocols", Internet Explorer does not fill the "Socks" protocol field with it.

Direct connection works, because you bypass this proxy configuration set in IE. But another way to fix this is to uncheck "use this server for all protocols", and instead paste it in the socks field as well.

It should solve the issue without having to bypass the proxy for all Java programs.


However, this is assuming that your proxy server knows what to do with this protocol, and how to direct it to the correct place. If it doesn't, then you are probably better off trying direct connection.

Pelion answered 9/8, 2013 at 7:37 Comment(0)
S
1

In Linux, this error can be shown when proxy settings are configured in the desktop's system settings. E.g. "systemsettings" in KDE/Plasma.

jdk comes with a configuration GUI called ControlPanel. Run this from a terminal inside your desktop, select "Network Settings", and fill out the form according to your situation.

Santalaceous answered 8/5, 2018 at 8:46 Comment(0)
A
1

Run the command javaws --viewer to open the Java Control Panel, click on the button Network Settings and select Direct Connection.

Now run again your jnlp with:
javaws Studio.jnlp

Alkalinize answered 29/5, 2019 at 20:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.