Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
SBELUR BELUR
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic