You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Javid Alimohideen <ja...@evl.uic.edu> on 2005/06/21 23:17:55 UTC

Javascript getURL exception

Hi,
I just started using Batik to view an existing SVG document through an
applet. The SVG uses a javascript file to change it contents dynamically. My
problem here is, the javascript uses the getURL method to read data from the
a remote server. This causes an exception.
Can someone help me out with this?

java.security.PrivilegedActionException:
org.mozilla.javascript.JavaScriptException:
java.security.PrivilegedActionException:
org.mozilla.javascript.JavaScriptException: java.lang.NullPointerException
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.apache.batik.script.rhino.BatikSecurityController.execWithDomain(Unknown
Source)
	at
org.mozilla.javascript.Interpreter.execWithNewDomain(Interpreter.java:2875)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1557)
	at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:62)
	at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:55)
	at org.mozilla.javascript.Context.evaluateReader(Context.java:820)
	at org.apache.batik.script.rhino.RhinoInterpreter.evaluate(Unknown Source)
	at org.apache.batik.bridge.BaseScriptingEnvironment$1.handleEvent(Unknown
Source)
	at org.apache.batik.dom.events.EventSupport.fireEventListeners(Unknown
Source)
	at org.apache.batik.dom.events.EventSupport.dispatchEvent(Unknown Source)
	at org.apache.batik.dom.AbstractNode.dispatchEvent(Unknown Source)
	at org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoad(Unknown
Source)
	at
org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoadEvent(Unknow
n Source)
	at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(Unknown
Source)
	at org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(Unknown Source)
Caused by: org.mozilla.javascript.JavaScriptException:
java.security.PrivilegedActionException:
org.mozilla.javascript.JavaScriptException: java.lang.NullPointerException
	at
org.apache.batik.script.rhino.BatikSecurityController.execWithDomain(Unknown
Source)
	at
org.mozilla.javascript.Interpreter.execWithNewDomain(Interpreter.java:2875)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1557)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2163)
	at org.mozilla.javascript.Interpreter$1.exec(Interpreter.java:2866)
	at org.apache.batik.script.rhino.BatikSecurityController$1.run(Unknown
Source)

A clever person solves a problem.
A wise person avoids it.

-- Einstein



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