[jdom-interest] JAXP Error in Applet

Kevin Baynes kbaynes at renex.com
Wed Apr 4 15:41:29 PDT 2001

I'm getting a JAXP error using JAXP1.1ea2 with Crimson and JDOMb6 in an

When I call SAXBuilder() from within my applet, I get the following error.
BTW, I'm not accessing the client disk - I'm building a document from an URL
connection. The servlet that the applet is communicating with is also using
JAXP1.1/Crimson/JDOMb6 and works fine.

java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.util.PropertyPermission jaxp.debug read) 	at
java.security.AccessControlContext.checkPermission(Unknown Source) 	at
java.security.AccessController.checkPermission(Unknown Source) 	at
java.lang.SecurityManager.checkPermission(Unknown Source) 	at
java.lang.SecurityManager.checkPropertyAccess(Unknown Source) 	at
java.lang.System.getProperty(Unknown Source) 	at
javax.xml.parsers.SAXParserFactory.<clinit>(SAXParserFactory.java:208) 	at
java.lang.Class.forName0(Native Method) 	at java.lang.Class.forName(Unknown
Source) 	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:273)

I was reading some chats with Duncan where he said that there was a bug in
JAXP1.0 causing a permission error when called from an applet (but that it
should be fixed by 1.0.1).

Does anyone have any experience with this? JDOMb6 should use JAXP by
default, right? I don't need to pass anything into SAXBuilder() do I?


Kevin Baynes
Software Engineer
kbaynes at renex.com

More information about the jdom-interest mailing list