• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

File Protocol does not work with double slash in j2sdk 1.4.2 ...???

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All
Recently while running a remote object in java 1.4.2 version(even 1.5) with argument for java.rmi.server.codebase property as file:// followed by complete
path of a jar file , I got a Filepermission related exception
(Also Security Exception )

BUT when i used 3 slashes instead of 2 it works

BUT my point is that it works very well with 2 slashes in java 1.4.1 version

Please can any one shed some light on this ; as to why it works with 1.4.1 and not 1.4.2 version of java. The policy files seem to be same (java.policy)

Any idea ?

Thanks
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you *sure* that it used to work with two slashes? As I mentioned in this thread, I've always had to use three slashes, and Tim Holloway was good enough to tell why three slashes were needed... and it's always been a part of the protocol.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suspect this is a matter of 1.4.2 correctly implementing the RFC for URIs - take a look at the JavaDocs for java.net.URI for example.
Bill
 
reply
    Bookmark Topic Watch Topic
  • New Topic