AccessControlException  
Author Message
Ken Kast





PostPosted: 2004-5-24 1:24:00 Top

java-programmer, AccessControlException
The following is a snippet from a method in an applet RSSTree:
private Document getOPMLFile(String OPMLFileName) {

Document OPMLFile = null;

try {

URL u = new URL(getCodeBase(), OPMLFileName);

try {

BufferedReader br = new BufferedReader(new
InputStreamReader(u.openStream()));

if (br != null) {

try {

Builder parser = new Builder();

OPMLFile = parser.build(br);

}

.
.
.

This method is called out of RSSTree.start(). Document & Builder are
classes in the open source XML processor com.nu.xom. I get the following
error when parser.build(br) is executed:

java.lang.ExceptionInInitializerError
at RSSTree.getOPMLFile(RSSTree.java:63)
at RSSTree.start(RSSTree.java:31)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission
org.apache.xerces.xni.parser.XMLParserConfiguration write)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.System.setProperty(Unknown Source)
at nu.xom.Builder.<clinit>(Unknown Source)

If I replace the bad line with a loop to read the the stream myself and
write out the lines, I get the XML I expect.

Without seeing the source for XOM can someone give me an idea as to why I
have an access problem when going through XOM but don't when the applet
reads directly?

Thanks.

Ken




 
Chris Smith





PostPosted: 2004-5-24 7:45:00 Top

java-programmer >> AccessControlException Ken Kast wrote:
> This method is called out of RSSTree.start(). Document & Builder are
> classes in the open source XML processor com.nu.xom. I get the following
> error when parser.build(br) is executed:
>
> java.lang.ExceptionInInitializerError

[...]

> Caused by: java.security.AccessControlException: access denied

> Without seeing the source for XOM can someone give me an idea as to why I
> have an access problem when going through XOM but don't when the applet
> reads directly?

Sure. When XOM initializes itself, it tries to set a system property.
That's not allowed in an applet context. You might check documentation
for XOM or ask their support or mailing lists how to prevent XOM from
trying to set that system property. Otherwise, that library isn't
usable from a non-privileged applet, or any other code running under a
restricted SecurityManager.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
guyvo





PostPosted: 2005-5-30 0:50:00 Top

java-programmer >> AccessControlException Hi,

I writing a simple applet which try to connect on a local sever via a simple
AWT button but I get in the actionPerformed following message in my debug
window when i run it in debug (using netbeans 4.1) :

Exception in thread "AWT-EventQueue-1" java.security.AccessControlException:
access denied (java.net.SocketPermission 127.0.0.1:6969 connect,resolve)

What is the problem here ?

Thnx
Guy


 
 
Malte





PostPosted: 2005-5-30 1:11:00 Top

java-programmer >> AccessControlException guyvo wrote:
> Hi,
>
> I writing a simple applet which try to connect on a local sever via a simple
> AWT button but I get in the actionPerformed following message in my debug
> window when i run it in debug (using netbeans 4.1) :
>
> Exception in thread "AWT-EventQueue-1" java.security.AccessControlException:
> access denied (java.net.SocketPermission 127.0.0.1:6969 connect,resolve)
>
> What is the problem here ?
>
> Thnx
> Guy
>
>
fw?
 
 
Tor Iver Wilhelmsen





PostPosted: 2005-5-30 2:01:00 Top

java-programmer >> AccessControlException "guyvo" <email***@***.com> writes:

> Exception in thread "AWT-EventQueue-1" java.security.AccessControlException:
> access denied (java.net.SocketPermission 127.0.0.1:6969 connect,resolve)

Are you running an applet? You cannot access any other machines than
the one in "codebase" without signing the applet.
 
 
guyvo





PostPosted: 2005-5-30 2:30:00 Top

java-programmer >> AccessControlException Yes it is an applet. Can you pass me some example to sign an applet please
or a link ?


"Tor Iver Wilhelmsen" <email***@***.com> wrote in message
news:email***@***.com...
> "guyvo" <email***@***.com> writes:
>
>> Exception in thread "AWT-EventQueue-1"
>> java.security.AccessControlException:
>> access denied (java.net.SocketPermission 127.0.0.1:6969 connect,resolve)
>
> Are you running an applet? You cannot access any other machines than
> the one in "codebase" without signing the applet.


 
 
Roland





PostPosted: 2005-5-30 3:00:00 Top

java-programmer >> AccessControlException On 29-5-2005 20:00, Tor Iver Wilhelmsen wrote:
> "guyvo" <email***@***.com> writes:
>
>
>>Exception in thread "AWT-EventQueue-1" java.security.AccessControlException:
>>access denied (java.net.SocketPermission 127.0.0.1:6969 connect,resolve)
>
>
> Are you running an applet? You cannot access any other machines than
> the one in "codebase" without signing the applet.

Apart from signing the applet it's also possible to grant the
appropriate permissions (SocketPermission in this case) to it (on the
computer where the applet is going to run in the browser).
--
Regards,

Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \
 
 
Andrew Thompson





PostPosted: 2005-5-30 7:22:00 Top

java-programmer >> AccessControlException On Sun, 29 May 2005 20:30:19 +0200, guyvo wrote:

> Yes it is an applet. Can you pass me some example to sign an applet please
> or a link ?

Start here, <http://java.sun.com/docs/books/tutorial/jar/>.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
 
 
Roedy Green





PostPosted: 2005-6-13 12:09:00 Top

java-programmer >> AccessControlException I have been blithely reading files via URL from an Applet. They
worked fine locally, but with Java 1.5 I'm getting
AccessControlExceptions. I should have been getting these all along.

Any comments on this?
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
 
 
Roedy Green





PostPosted: 2005-6-13 12:32:00 Top

java-programmer >> AccessControlException On Mon, 13 Jun 2005 04:08:43 GMT, Roedy Green
<email***@***.com> wrote or quoted :

>I have been blithely reading files via URL from an Applet. They
>worked fine locally, but with Java 1.5 I'm getting
>AccessControlExceptions. I should have been getting these all along.
>
>Any comments on this?
>--

Is an unsigned Applet supposed to be able to read arbitrary files from
the server it came from with

url = new URL( getDocumentBase(), "../xxxx.ser" );
URLConnection urlc = (URLConnection)url.openConnection();
urlc.setAllowUserInteraction( false );
urlc.setDoInput( true );
urlc.setDoOutput( false );
urlc.setUseCaches( false );
urlc.connect();
InputStream is = urlc.getInputStream();

--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
 
 
Roland





PostPosted: 2005-6-13 21:16:00 Top

java-programmer >> AccessControlException On 13-6-2005 6:31, Roedy Green wrote:
> On Mon, 13 Jun 2005 04:08:43 GMT, Roedy Green
> <email***@***.com> wrote or quoted :
>
>
>>I have been blithely reading files via URL from an Applet. They
>>worked fine locally, but with Java 1.5 I'm getting
>>AccessControlExceptions. I should have been getting these all along.
>>
>>Any comments on this?
>>--
>
>
> Is an unsigned Applet supposed to be able to read arbitrary files from
> the server it came from with
>
> url = new URL( getDocumentBase(), "../xxxx.ser" );
> URLConnection urlc = (URLConnection)url.openConnection();
> urlc.setAllowUserInteraction( false );
> urlc.setDoInput( true );
> urlc.setDoOutput( false );
> urlc.setUseCaches( false );
> urlc.connect();
> InputStream is = urlc.getInputStream();
>
AFAIK, this should be possible. But judging from your question, you seem
to have trouble with it.
I've created a test applet using your code snippet, and hosted on my
local Apache webserver. It works perfectly with JRE 1.5.0_03 (no
AccessControlExceptions).
--
Regards,

Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \
 
 
Lucy





PostPosted: 2005-6-14 3:47:00 Top

java-programmer >> AccessControlException
"Roedy Green" <email***@***.com> wrote in message
news:email***@***.com...
> On Mon, 13 Jun 2005 04:08:43 GMT, Roedy Green
> <email***@***.com> wrote or quoted :
>
> >I have been blithely reading files via URL from an Applet. They
> >worked fine locally, but with Java 1.5 I'm getting
> >AccessControlExceptions. I should have been getting these all along.
> >
> >Any comments on this?
> >--
>
> Is an unsigned Applet supposed to be able to read arbitrary files from
> the server it came from with

I was under the impression that the unsigned Applet could be able
to access (read and write) from the server it came from, but only
within the same directory (sub)tree if that is the right word. I.e.
if ~jones has an applet, it cannot access ~smith files.

>
> url = new URL( getDocumentBase(), "../xxxx.ser" );
> URLConnection urlc = (URLConnection)url.openConnection();
> urlc.setAllowUserInteraction( false );
> urlc.setDoInput( true );
> urlc.setDoOutput( false );
> urlc.setUseCaches( false );
> urlc.connect();
> InputStream is = urlc.getInputStream();
>
> --
> Bush crime family lost/embezzled $3 trillion from Pentagon.
> Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
> http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
>
> Canadian Mind Products, Roedy Green.
> See http://mindprod.com/iraq.html photos of Bush's war crimes


 
 
Roland





PostPosted: 2005-6-14 4:44:00 Top

java-programmer >> AccessControlException On 13-6-2005 21:46, Lucy wrote:

> "Roedy Green" <email***@***.com> wrote in message
> news:email***@***.com...
>
>>On Mon, 13 Jun 2005 04:08:43 GMT, Roedy Green
>><email***@***.com> wrote or quoted :
>>
>>
>>>I have been blithely reading files via URL from an Applet. They
>>>worked fine locally, but with Java 1.5 I'm getting
>>>AccessControlExceptions. I should have been getting these all along.
>>>
>>>Any comments on this?
>>>--
>>
>>Is an unsigned Applet supposed to be able to read arbitrary files from
>>the server it came from with
>
>
> I was under the impression that the unsigned Applet could be able
> to access (read and write) from the server it came from, but only
> within the same directory (sub)tree if that is the right word. I.e.
> if ~jones has an applet, it cannot access ~smith files.
>

This is not the case: an applet is allowed to read a resource at levels
higher than the document base (i.e. where the document containing the
applet resides).

A Java applet has no knowledge of what "~jones" means. That's entirely
defined by the webserver. Though, it is possible that the webserver does
not allow to access resources of "~smith" (for instance because user
"smith" has restricted access rights of his/her files or folders). In
that case the webserver probably would return a 403 (Forbidden) or a 404
(Not Found) response, and the urlc.connect() below would throw an
IOException, rather than the applet throwing an AccessControlException.

>
>>url = new URL( getDocumentBase(), "../xxxx.ser" );
>> URLConnection urlc = (URLConnection)url.openConnection();
>> urlc.setAllowUserInteraction( false );
>> urlc.setDoInput( true );
>> urlc.setDoOutput( false );
>> urlc.setUseCaches( false );
>> urlc.connect();
>> InputStream is = urlc.getInputStream();

--
Regards,

Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \
 
 
Lucy





PostPosted: 2005-6-14 5:11:00 Top

java-programmer >> AccessControlException
"Roland" <email***@***.com> wrote in message
news:42adf01b$0$83698$email***@***.com...
> On 13-6-2005 21:46, Lucy wrote:
>
> > "Roedy Green" <email***@***.com> wrote in message
> > news:email***@***.com...
> >
> >>On Mon, 13 Jun 2005 04:08:43 GMT, Roedy Green
> >><email***@***.com> wrote or quoted :
> >>
> >>
> >>>I have been blithely reading files via URL from an Applet. They
> >>>worked fine locally, but with Java 1.5 I'm getting
> >>>AccessControlExceptions. I should have been getting these all along.
> >>>
> >>>Any comments on this?
> >>>--
> >>
> >>Is an unsigned Applet supposed to be able to read arbitrary files from
> >>the server it came from with
> >
> >
> > I was under the impression that the unsigned Applet could be able
> > to access (read and write) from the server it came from, but only
> > within the same directory (sub)tree if that is the right word. I.e.
> > if ~jones has an applet, it cannot access ~smith files.
> >
>
> This is not the case: an applet is allowed to read a resource at levels
> higher than the document base (i.e. where the document containing the
> applet resides).
>
> A Java applet has no knowledge of what "~jones" means. That's entirely
> defined by the webserver. Though, it is possible that the webserver does
> not allow to access resources of "~smith" (for instance because user
> "smith" has restricted access rights of his/her files or folders). In
> that case the webserver probably would return a 403 (Forbidden) or a 404
> (Not Found) response, and the urlc.connect() below would throw an
> IOException, rather than the applet throwing an AccessControlException.

Guess I better go protect my files right away WOWOWOWOWOWOWOW.
And, also, YIPES !!!


 
 
Roland





PostPosted: 2005-6-14 6:06:00 Top

java-programmer >> AccessControlException On 13-6-2005 23:11, Lucy wrote:

> "Roland" <email***@***.com> wrote in message
> news:42adf01b$0$83698$email***@***.com...
>
>>On 13-6-2005 21:46, Lucy wrote:
>>
>>
>>>"Roedy Green" <email***@***.com> wrote in message
>>>news:email***@***.com...
>>>
>>>
>>>>On Mon, 13 Jun 2005 04:08:43 GMT, Roedy Green
>>>><email***@***.com> wrote or quoted :
>>>>
>>>>
>>>>
>>>>>I have been blithely reading files via URL from an Applet. They
>>>>>worked fine locally, but with Java 1.5 I'm getting
>>>>>AccessControlExceptions. I should have been getting these all along.
>>>>>
>>>>>Any comments on this?
>>>>>--
>>>>
>>>>Is an unsigned Applet supposed to be able to read arbitrary files from
>>>>the server it came from with
>>>
>>>
>>>I was under the impression that the unsigned Applet could be able
>>>to access (read and write) from the server it came from, but only
>>>within the same directory (sub)tree if that is the right word. I.e.
>>>if ~jones has an applet, it cannot access ~smith files.
>>>
>>
>>This is not the case: an applet is allowed to read a resource at levels
>>higher than the document base (i.e. where the document containing the
>>applet resides).
>>
>>A Java applet has no knowledge of what "~jones" means. That's entirely
>>defined by the webserver. Though, it is possible that the webserver does
>>not allow to access resources of "~smith" (for instance because user
>>"smith" has restricted access rights of his/her files or folders). In
>>that case the webserver probably would return a 403 (Forbidden) or a 404
>>(Not Found) response, and the urlc.connect() below would throw an
>>IOException, rather than the applet throwing an AccessControlException.
>
>
> Guess I better go protect my files right away WOWOWOWOWOWOWOW.
> And, also, YIPES !!!

On Unix/Linux systems running a webserver, the URL

http://your.server.com/~yourname/

typically --but not allways-- corresponds to the subdirectory
'public_html' in your home directory, e.g.

/usr/home/yourname/public_html/

and not your entire homedir tree:

/usr/home/yourname/

All files in 'public_html' and subdirs are typically readable by the
webserver (otherwise it cannot serve them to some browser, at the other
side of the world, for example). For the remaining files in your homedir
tree you should apply normal access rules, i.e. protecting files from
access by others if you want don't want to share them, and less strict
if you do.

I don't have experience with webservers running on a Windows host, but I
guess a similar setup is conceivable, i.e. some subfolder containing
files accessible and served by the webserver, remaining files protected
by normal access rules.
--
Regards,

Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \
 
 
John Currier





PostPosted: 2005-6-14 9:32:00 Top

java-programmer >> AccessControlException Even if an applet had those restrictions the "protected" resources
would still be available from any browser not running the applet.

You're probably thinking of the visibility scope of an HTTP session.

John
http://schemaspy.sourceforge.net

 
 
Lucy





PostPosted: 2005-6-14 11:27:00 Top

java-programmer >> AccessControlException
"Roland" <email***@***.com> wrote in message
news:42ae035c$0$84219$email***@***.com...
> On 13-6-2005 23:11, Lucy wrote:
>
> > "Roland" <email***@***.com> wrote in message
> > news:42adf01b$0$83698$email***@***.com...
> >
> >>On 13-6-2005 21:46, Lucy wrote:
> >>
> >>
> >>>"Roedy Green" <email***@***.com> wrote in message
> >>>news:email***@***.com...
> >>>
> >>>
> >>>>On Mon, 13 Jun 2005 04:08:43 GMT, Roedy Green
> >>>><email***@***.com> wrote or quoted :
> >>>>
> >>>>
> >>>>
> >>>>>I have been blithely reading files via URL from an Applet. They
> >>>>>worked fine locally, but with Java 1.5 I'm getting
> >>>>>AccessControlExceptions. I should have been getting these all along.
> >>>>>
> >>>>>Any comments on this?
> >>>>>--
> >>>>
> >>>>Is an unsigned Applet supposed to be able to read arbitrary files from
> >>>>the server it came from with
> >>>
> >>>
> >>>I was under the impression that the unsigned Applet could be able
> >>>to access (read and write) from the server it came from, but only
> >>>within the same directory (sub)tree if that is the right word. I.e.
> >>>if ~jones has an applet, it cannot access ~smith files.
> >>>
> >>
> >>This is not the case: an applet is allowed to read a resource at levels
> >>higher than the document base (i.e. where the document containing the
> >>applet resides).
> >>
> >>A Java applet has no knowledge of what "~jones" means. That's entirely
> >>defined by the webserver. Though, it is possible that the webserver does
> >>not allow to access resources of "~smith" (for instance because user
> >>"smith" has restricted access rights of his/her files or folders). In
> >>that case the webserver probably would return a 403 (Forbidden) or a 404
> >>(Not Found) response, and the urlc.connect() below would throw an
> >>IOException, rather than the applet throwing an AccessControlException.
> >
> >
> > Guess I better go protect my files right away WOWOWOWOWOWOWOW.
> > And, also, YIPES !!!
>
> On Unix/Linux systems running a webserver, the URL
>
> http://your.server.com/~yourname/
>
> typically --but not allways-- corresponds to the subdirectory
> 'public_html' in your home directory, e.g.
>
> /usr/home/yourname/public_html/
>
> and not your entire homedir tree:
>
> /usr/home/yourname/
>
> All files in 'public_html' and subdirs are typically readable by the
> webserver (otherwise it cannot serve them to some browser, at the other
> side of the world, for example). For the remaining files in your homedir
> tree you should apply normal access rules, i.e. protecting files from
> access by others if you want don't want to share them, and less strict
> if you do.

So it looks like you are saying that anyone can access any of my files
unless I protect each and every one of them. This is the YIKES scenario.
I better run over and protect them all. But wait, since I have access to
everyone elses files, I can just destroy them first.

> I don't have experience with webservers running on a Windows host, but I
> guess a similar setup is conceivable, i.e. some subfolder containing
> files accessible and served by the webserver, remaining files protected
> by normal access rules.
> --
> Regards,
>
> Roland de Ruiter
> ` ___ ___
> `/__/ w_/ /__/
> / \ /_/ / \


 
 
Roland





PostPosted: 2005-6-14 17:32:00 Top

java-programmer >> AccessControlException On 14-6-2005 5:26, Lucy wrote:
> "Roland" <email***@***.com> wrote in message
> news:42ae035c$0$84219$email***@***.com...
>
>>On 13-6-2005 23:11, Lucy wrote:
>>
>>
>>>"Roland" <email***@***.com> wrote in message
>>>news:42adf01b$0$83698$email***@***.com...
>>>
>>>
>>>>On 13-6-2005 21:46, Lucy wrote:
>>>>
>>>>
>>>>
>>>>>"Roedy Green" <email***@***.com> wrote in message
>>>>>news:email***@***.com...
>>>>>
>>>>>
>>>>>
>>>>>>On Mon, 13 Jun 2005 04:08:43 GMT, Roedy Green
>>>>>><email***@***.com> wrote or quoted :
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>I have been blithely reading files via URL from an Applet. They
>>>>>>>worked fine locally, but with Java 1.5 I'm getting
>>>>>>>AccessControlExceptions. I should have been getting these all along.
>>>>>>>
>>>>>>>Any comments on this?
>>>>>>>--
>>>>>>
>>>>>>Is an unsigned Applet supposed to be able to read arbitrary files from
>>>>>>the server it came from with
>>>>>
>>>>>
>>>>>I was under the impression that the unsigned Applet could be able
>>>>>to access (read and write) from the server it came from, but only
>>>>>within the same directory (sub)tree if that is the right word. I.e.
>>>>>if ~jones has an applet, it cannot access ~smith files.
>>>>>
>>>>
>>>>This is not the case: an applet is allowed to read a resource at levels
>>>>higher than the document base (i.e. where the document containing the
>>>>applet resides).
>>>>
>>>>A Java applet has no knowledge of what "~jones" means. That's entirely
>>>>defined by the webserver. Though, it is possible that the webserver does
>>>>not allow to access resources of "~smith" (for instance because user
>>>>"smith" has restricted access rights of his/her files or folders). In
>>>>that case the webserver probably would return a 403 (Forbidden) or a 404
>>>>(Not Found) response, and the urlc.connect() below would throw an
>>>>IOException, rather than the applet throwing an AccessControlException.
>>>
>>>
>>>Guess I better go protect my files right away WOWOWOWOWOWOWOW.
>>>And, also, YIPES !!!
>>
>>On Unix/Linux systems running a webserver, the URL
>>
>> http://your.server.com/~yourname/
>>
>>typically --but not allways-- corresponds to the subdirectory
>>'public_html' in your home directory, e.g.
>>
>> /usr/home/yourname/public_html/
>>
>>and not your entire homedir tree:
>>
>> /usr/home/yourname/
>>
>>All files in 'public_html' and subdirs are typically readable by the
>>webserver (otherwise it cannot serve them to some browser, at the other
>>side of the world, for example). For the remaining files in your homedir
>>tree you should apply normal access rules, i.e. protecting files from
>>access by others if you want don't want to share them, and less strict
>>if you do.
>
>
> So it looks like you are saying that anyone can access any of my files
> unless I protect each and every one of them. This is the YIKES scenario.
> I better run over and protect them all. But wait, since I have access to
> everyone elses files, I can just destroy them first.
Yeah, right on... Eliminate your opponents before they harm you. 8-)

Files that reside on your website (/usr/home/yourname/public_html/)
should be *readable* by others (the webserver in particular), but this
doesn't mean others can --or rather should be allowed to-- replace,
alter or delete them. This is the way you should protect your website
files: readable for others, writable (changeable) only by yourself. For
other files, changeable only by yourself is always recommended, and
readable by others according to the confidentially of each file.
--
Regards,

Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \
 
 
Roedy Green





PostPosted: 2005-6-15 11:59:00 Top

java-programmer >> AccessControlException On Mon, 13 Jun 2005 04:08:43 GMT, Roedy Green
<email***@***.com> wrote or quoted :

>I have been blithely reading files via URL from an Applet. They
>worked fine locally, but with Java 1.5 I'm getting
>AccessControlExceptions. I should have been getting these all along.

I think I have figured out what is going on. Running the applet
locally the applet is only allowed to access its directories and
descendants. Moving the files into a descendant seems to have cleared
up the problem. It a nuisance trying to share files.



Is this:

1. what is supposed to happen

2. a Java bug

3. an Opera bug

4. one of those vaguely defined things.

--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
 
 
Roedy Green





PostPosted: 2005-6-15 12:06:00 Top

java-programmer >> AccessControlException On Mon, 13 Jun 2005 04:08:43 GMT, Roedy Green
<email***@***.com> wrote or quoted :

>I have been blithely reading files via URL from an Applet. They
>worked fine locally, but with Java 1.5 I'm getting
>AccessControlExceptions. I should have been getting these all along.

I have discovered by experiment that when an Applet runs locally, it
is only allowed to read files in the same directory or in a
subdirectory of that directory. It can't read files in the parents or
sibling directories, just child directories. I have not performed the
corresponding experiments on websites. I did my tests with the Opera
browser on Win2K.

--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes