Any idea why I would get this error:

java.lang.SecurityException: sealing violation

when executing the following:

import java.io.*;
import org.apache.fop.apps.*;
import org.w3c.dom.*;
import org.xml.sax.*;

public class testing2 {
        public static void main(String[] args) {
                Document doc =
XmlUtils.CreateDocument("FILE","E:/test/border.fo");
                Driver driver = null;

                try {
===>                    driver = new Driver(new InputSource(new
StringReader("E:/test/border.fo")),
                                        new
FileOutputStream("e:/test/testthis.pdf"));
                } catch (FileNotFoundException fnfe) {
                        fnfe.printStackTrace();
                }

The error is occuring where the ===> is above. 
The error trace is:

java.lang.SecurityException: sealing violation  
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)

        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)   
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)       
        at java.security.AccessController.doPrivileged(Native Method)   
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)   
        at java.lang.ClassLoader.loadClass(ClassLoader.java:297)        
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)        
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)

        at TestFOP.testing2.main(testing2.java:20)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to