Results 1 to 7 of 7
  1. #1
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    Question java.net.MalformedURLException: unknown protocol: ntp

    I need to write an ntp Stream Handler, the URL class spits it - is there some way to sublcass
    • URLStreamHandlerFactory
    • URI
    • URL
    • URLConnection
    • URLDecoder
    • URLEncoder
    • URLStreamHandler
    ? Client needs this grade of reliability.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  3. #3
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    Post reading that chapter now

    I am working on it, that was my first attempt at getting into the actual code, upon reading the first few paragaphs I chose to put up help request as the author ( well informed ) stated that such things are likely not implemented. A decent perusal of the code and docs suggested that doing anything other that http will be convoluted at best.

    Sounds pretty advanced looking at it so this is to share as much as it is to ask.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  5. #5
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    Default

    I went through the book again yesterday after I posted. I think what I will have to do is use Socket constructor and Simple Time Protocol.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  7. #7
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    Default

    Well the question here is one of responsiblity. NTP is clearly a Tier-1 protocol, with nagler's algorithm sufficient reliability could be attiained with enough stratum-2 timeservers....

    My thinking tonight as I shut the machine off would be to look for a short list of open servers at stratum-2

    Most providers would have traceable and redundant time services, I am thinking to look into Time Protocol RFC 868 ..... one of those catch-22's where any good effort is swamped by Alley Gators.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Similar Threads

  1. why do I get java.net.MalformedURLException ?
    By aneuryzma in forum New To Java
    Replies: 3
    Last Post: 08-14-2008, 11:57 AM
  2. New Protocol?
    By lada.r in forum Networking
    Replies: 0
    Last Post: 11-06-2007, 09:13 PM
  3. how to use SIP protocol
    By katie in forum Advanced Java
    Replies: 1
    Last Post: 08-06-2007, 10:22 PM
  4. java.net.MalformedURLException
    By mary in forum Advanced Java
    Replies: 1
    Last Post: 07-13-2007, 04:37 PM
  5. Unknown publisher / Signing standalone tomcat.exe
    By millross in forum New To Java
    Replies: 1
    Last Post: 06-14-2007, 02:25 PM

Posting Permissions

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