xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Bohm" <de...@fireflydesign.com>
Subject access control exception from rhino, but not java?
Date Tue, 02 Sep 2003 17:34:26 GMT
I'm using the Batik JSVGCanvas in a JApplet.  I also have a Java class that
creates a multicast socket, joins a group, and sends some data.  When I run
it directly from JApplet it works fine.  When I try to run it from an SVG
script I get the access control exception shown below.  Any idea why this
would be happening?

java.security.AccessControlException: access denied
(java.net.SocketPermission 224.0.0.1 connect,accept,resolve)
 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.checkMulticast(Unknown Source)
 at java.net.MulticastSocket.joinGroup(Unknown Source)
 at com.hp.hpl.epc.data.MulticastSender.<init>(MulticastSender.java:54)
 at com.hp.hpl.epc.data.MulticastSender.<init>(MulticastSender.java:62)
 at com.hp.hpl.epc.data.MulticastSender.main(MulticastSender.java:29)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:230)
 at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191)
 at org.mozilla.javascript.gen.c2.call(Inline <script>
http://www.fireflydesign.com/hpdemo/demo.svg:-1:6)
 at
org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275)
 at org.mozilla.javascript.gen.c5.call(<SVG>:1)
 at org.mozilla.javascript.gen.c5.exec(<SVG>)
 at
org.apache.batik.script.rhino.RhinoInterpreter.evaluate(RhinoInterpreter.jav
a:356)
 at
org.apache.batik.bridge.ScriptingEnvironment$EvaluateRunnable.run(ScriptingE
nvironment.java:637)
 at org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:204)
 at java.lang.Thread.run(Unknown Source)


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message