Solved

Xerces XML parser in applet.

Posted on 2001-07-03
4
441 Views
Last Modified: 2013-11-23
Hello!

I have found a problem with using Apache Xerces XML pasrer in applet.

I'm creating a control that uses xerces parser and can work as application or applet. When it works as application all is Ok. But when I try to start it as an applet then java.security.AccessControlException is thrown with the following description

java.security.AccessControlException: access denied ( java.util.PropertyPermission jaxp.debug read)

This error is throw during execution if instruction

javax.xml.parsers.DocumentBuilderFactory.newInstance().

What to do?
0
Comment
Question by:Kit_
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:ozymandias
ID: 6248870
This is tricky.
The DocumentBuilderFactory returns an object whose type is obviously dependent upon some system property. It may be OS dependent or language/locale dependent (I'm not sure).

Applets (as a rule) do not have priviledges to look at these system properties as they are "sandboxed" for security reasons.

I am not sure how to get round it but I am sure I have in the past.

Can you post your code please ?
0
 

Author Comment

by:Kit_
ID: 6249131
"jaxp.debug" - may be it is a debug option? As far as I understand I use xerces build with debug info.
0
 
LVL 15

Accepted Solution

by:
ozymandias earned 100 total points
ID: 6249243
This is a bug that has been reported in the forums at Sun's java website.

A discussion of the problem and a solution to it are posted here :

http://forums.java.sun.com/thread.jsp?forum=34&thread=68599

0
 

Author Comment

by:Kit_
ID: 6258565
Ok, thanks. It's working!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 236
runtime exception 2 50
Unhandled exception type Exception 18 52
How to log java errors in tomcat 8 23
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question