Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XML parsing error on multithreaded application...

843810Jun 21 2004 — edited Jun 25 2004
Hi,
I've got a client that, upon execution, parses and reads an XML file just before instantiating and executing a Thread (let's call it T1). This, in turn, instantiates and executes another thread (T2) that in turn does the same, instantiating and executing thread T3. This last thread should parse and read another XML file. My problem is this: while parsing and reading of the first XML file is successfully done, parsing of the second XML file results in the following error:
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
looks like T3 hasn't got permission to read the user directory. What is really strange to me is that the first XML parsing is successful...
To parse XML files I've created a DOM parser that simply takes the name of the file to parse in form of string and gives back a 'Document' object, and the error comes in parsing phase.
Both XML files and java files are stored in the same directory (that makes the thing even more strange...).

Thanks in advance to anyone helping me.

Antonio
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2004
Added on Jun 21 2004
2 comments
277 views