Results 1 to 6 of 6
  1. #1
    Brickstin is offline Member
    Join Date
    Nov 2015
    Posts
    3
    Rep Power
    0

    Default Security Exception Malformedurlexception: unknown protocol: socket

    Well i must apologies in advance I am new to the forum and I am not sure exactly where I should post this

    question.. but I have been getting strange errors that started up about a week ago.


    I have had to temporarly disable browser settings in the java control panel and set it to direct connection..



    I hope that this popup won't happen again but all it says is
    Security Exception Malformedurlexception: unknown protocol: socket


    then there is a bunch of code.. unfortunately i lost the document that i coppied the detailed error message.

    The laptop died before I could save it.

    sometimes this popup comes though even when I start up my laptop... I don't know why that keeps happening.


    has anyone else had this problem before?



    if the error happens again I will post it here.

    Thanks in advance.

    Kind Respects,
    EJ

  2. #2
    Brickstin is offline Member
    Join Date
    Nov 2015
    Posts
    3
    Rep Power
    0

    Default Re: Security Exception Malformedurlexception: unknown protocol: socket

    Quote Originally Posted by Brickstin View Post
    Well i must apologies in advance I am new to the forum and I am not sure exactly where I should post this

    question.. but I have been getting strange errors that started up about a week ago.


    I have had to temporarly disable browser settings in the java control panel and set it to direct connection..



    I hope that this popup won't happen again but all it says is
    Security Exception Malformedurlexception: unknown protocol: socket


    then there is a bunch of code.. unfortunately i lost the document that i coppied the detailed error message.

    The laptop died before I could save it.

    sometimes this popup comes though even when I start up my laptop... I don't know why that keeps happening.


    has anyone else had this problem before?



    if the error happens again I will post it here.

    Thanks in advance.

    Kind Respects,
    EJ


    I finally was able to get my ERROR Here it is:

    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.conne ctFailed(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
    at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unkn own Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.http://www.protocol.https.AbstractDe...Client(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...nnect0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$6.run( Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$6.run( Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivilegedWithCom biner(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...onnect(Unknown Source)
    at sun.net.http://www.protocol.https.AbstractDe...onnect(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...tream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.access $200(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run( Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run( Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivilegedWithCom biner(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...rField(Unknown Source)
    at java.net.HttpURLConnection.getHeaderFieldDate(Unkn own Source)
    at java.net.URLConnection.getLastModified(Unknown Source)
    at sun.net.http://www.protocol.https.HttpsURLCo...dified(Unknown Source)
    at com.sun.deploy.util.SecurityBaseline.checkForUpdat e(Unknown Source)
    at com.sun.deploy.util.SecurityBaseline.access$100(Un known Source)
    at com.sun.deploy.util.SecurityBaseline$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Security Exception Malformedurlexception: unknown protocol: socket

    Can you post the String you used for the URL? Where is "socket" defined as a protocol?
    If you don't understand my response, don't ignore it, ask a question.

  4. #4
    Brickstin is offline Member
    Join Date
    Nov 2015
    Posts
    3
    Rep Power
    0

    Question Re: Security Exception Malformedurlexception: unknown protocol: socket

    Quote Originally Posted by Norm View Post
    Can you post the String you used for the URL? Where is "socket" defined as a protocol?
    I'm sorry i don't understand, what do you mean the String I used for the URL? I wouldn't know what the URL would even be, this is an error that happens upon booting the laptop or sometimes spontaneously happens when I start Mozilla or skype, I believe skype might be using some Java but then again I am not entirely sure I don't know what code has been put in for whether it be Java interactive, or Flash interactive.

    Also I don't know how Socket is being defined as a protocol either: The Java settings for the network are set to use the browser settings. in this case... IE and Mozilla.

    So perhaps it might be in there? I am not sure, when I click on the details of the Error that the Java applet window pops up before me to see it, it doesn't say a URL or anything at least not that I noticed; I did notice in this error though that there is some kind of stream being done here ----> http://www.protocol.http.HttpURLConn...Stream(Unknown Source)

    But it points to nothing I don't know what exactly is going on, its rather odd if you ask me.

    Kind Thanks,
    EJ
    Last edited by Brickstin; 11-25-2015 at 12:51 PM. Reason: Spell Correct

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Security Exception Malformedurlexception: unknown protocol: socket

    Here is a way to get that error:
    Java Code:
     URL url =  new URL("socket://where.is.this");  //  java.net.MalformedURLException: unknown protocol: socket
    The String I was asking about is inside the () passed to the URL class's constructor. "socket://" is the protocol for that URL.
    If you don't understand my response, don't ignore it, ask a question.

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    27

    Default Re: Security Exception Malformedurlexception: unknown protocol: socket

    So it's not some code of yours you are trying to run?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Java Socket Exception Socket Closed
    By premkumar.rj in forum New To Java
    Replies: 0
    Last Post: 02-07-2014, 05:07 AM
  2. Security Exception
    By kedinik in forum Java Applets
    Replies: 6
    Last Post: 02-10-2011, 02:20 AM
  3. java.net.MalformedURLException: no protocol:
    By john_thomas03 in forum New To Java
    Replies: 3
    Last Post: 07-27-2010, 07:28 AM
  4. Security Exception when Packages
    By kubas in forum Advanced Java
    Replies: 1
    Last Post: 02-11-2010, 07:21 PM
  5. java.net.MalformedURLException: unknown protocol: ntp
    By Nicholas Jordan in forum Networking
    Replies: 6
    Last Post: 12-24-2008, 03:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •