DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34168>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34168

           Summary: applet gets AccessControlException if has ecmascript and
                    js.jar has optimizer directory
           Product: Batik
           Version: 1.5
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Scripting
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Using batik-src-05-03-06.zip and loading an svg in a JSVGCanvas in an applet on
the Linux console and the svg includes ecmascript in a separate file (a
sub-directory of the svg directory), I get:

java.security.AccessControlException: access denied (java.lang.RuntimePermission
createClassLoader)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at 
java.security.AccessController.checkPermission(AccessController.java:427)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at 
java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:594)
        at java.lang.ClassLoader.<init>(ClassLoader.java:225)
        at 
org.mozilla.javascript.DefiningClassLoader.<init>(DefiningClassLoader.java:55)
        at org.mozilla.javascript.Context.createClassLoader(Context.java:1837)
        at 
org.mozilla.javascript.optimizer.InvokerImpl.createInvoker(InvokerImpl.java:62)
        at 
org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:495)
        at 
org.mozilla.javascript.FunctionObject.callVarargs(FunctionObject.java:513)
        at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:378)
        at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191)
        at 
org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1573)
        at org.apache.batik.script.rhino.RhinoInterpreter.<init>(Unknown Source)
        at
org.apache.batik.script.rhino.RhinoInterpreterFactory.createInterpreter(Unknown
Source)
        at org.apache.batik.script.InterpreterPool.createInterpreter(Unknown 
Source)
        at org.apache.batik.bridge.BridgeContext.getInterpreter(Unknown Source)
        at 
org.apache.batik.bridge.BaseScriptingEnvironment.getInterpreter(Unknown Source)
        at org.apache.batik.bridge.BaseScriptingEnvironment.loadScripts(Unknown 
Source)
        at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(Unknown 
Source)
        at org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(Unknown Source)


If I strip the "optimizer" directory from "js.jar", the applet loads and the
ecmascript works but I have the following problem:

>> Batik 1.5.1
>> JSVGCanvas in Java applet
>> setURI(url.toString()) called from init() is OK in all cases
>> 
>> setURI(url.toString()) called from UserAgent openLink() is:
>>         OK from Windows I.E. or Firefox with "http:" URL
>>         OK on Linux console if a "file:" URL is used to load the
applet
>>         HANGS on Linux console if an "http:" URL is used to load the
>>                 applet (Mozilla or Firefox, Java 1.4.2 or Java 1.5.0)
>> 

>...I noticed that when this problem occurs, the last entry in
>/var/log/httpd/access_log is "...GET
>/java/org/mozilla/javascript/optimizer/InvokerImpl.class..." so I tried
>js.jar WITH the optimizer directory (not stripped as discussed in a
>thread last fall).  I got a security exception as expected but setURI()
>succeeded.

These threads discuss the problem:

http://mail-archives.eu.apache.org/mod_mbox/xmlgraphics-batik-users/200410.mbox/[EMAIL
 PROTECTED]

http://mail-archives.eu.apache.org/mod_mbox/xmlgraphics-batik-users/200501.mbox/[EMAIL
 PROTECTED]

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to