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 Jonathan Chetwynd <j....@btinternet.com> on 2008/06/07 21:09:22 UTC
Stall with files
Stall
Cameron,
http://www.openicon.org/irc/ircwithIcon.svg
It's not clear to me why the script appears to stall in batik
wfm Opera and ff.
please could you take a look?
completely confused.
Managed to create a number of errors but not convinced any relate to
this particular issue.
awaiting your response before creating more spam.
thanks again.
Jonathan Chetwynd
j.chetwynd@btinternet.com
http://www.openicon.org/
+44 (0) 20 7978 1764
files that may be relevant added to counteract spam eradicator:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" >
<title>follows irc://irc.freenode.net/#svg</title>
<rect x='0' y='0' width='100%' height='100%' fill='#cca'/>
<script type="text/ecmascript" ><![CDATA[
var svgns = "http://www.w3.org/2000/svg";
var xlinkns = 'http://www.w3.org/1999/xlink';
function ajax_do () {
remText=document.getElementById("group3");
remText.parentNode.removeChild(remText);
var group2 = document.createElementNS(svgns, "g");
group2.setAttributeNS(null, "id","group3");
var use1b = document.createElementNS(svgns, "use");
use1b.setAttributeNS(null, "x", "0");
use1b.setAttributeNS(null, "y", "0");
use1b.setAttributeNS(null, "width", "18%");
use1b.setAttributeNS(null, "height", "18%");
use1b.setAttributeNS(xlinkns, "xlink:href", "http://www.peepo.org.uk/feeds/zanadu.svg#tony
");
group2.appendChild(use1b);
document.documentElement.appendChild(group2);
return true;
}
setInterval("ajax_do()", 3000);
]]></script>
<g id="group3"><text x="0" y="23" id="text3">starting</text></g>
</svg>
org.mozilla.javascript.EcmaError: TypeError: Cannot read property
"parentNode" from null (Inline <script> file:/Users/jonathanchetwynd/
Desktop/batik-errors.svg:5#7)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.typeError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.typeError2(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.undefReadError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.getObjectProp(Unknown Source)
at org.mozilla.javascript.gen.c132._c1(Inline <script> file:/Users/
jonathanchetwynd/Desktop/batik-errors.svg:5:7)
at org.mozilla.javascript.gen.c132.call(Inline <script> file:/Users/
jonathanchetwynd/Desktop/batik-errors.svg:5)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(Unknown
Source)
at org.mozilla.javascript.gen.c133._c0(<SVG>:1)
at org.mozilla.javascript.gen.c133.call(<SVG>)
at org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
at org.mozilla.javascript.gen.c133.call(<SVG>)
at org.mozilla.javascript.gen.c133.exec(<SVG>)
at org.apache.batik.script.rhino.RhinoInterpreter
$3.run(RhinoInterpreter.java:354)
at org.mozilla.javascript.Context.call(Unknown Source)
at org.mozilla.javascript.ContextFactory.call(Unknown Source)
at
org
.apache
.batik.script.rhino.RhinoInterpreter.evaluate(RhinoInterpreter.java:358)
at org.apache.batik.bridge.ScriptingEnvironment
$EvaluateIntervalRunnable.run(ScriptingEnvironment.java:733)
at org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:237)
at java.lang.Thread.run(Thread.java:613)
java.lang.NullPointerException
at
org
.apache
.batik
.bridge
.AbstractGraphicsNodeBridge
.handleDOMNodeRemovedEvent(AbstractGraphicsNodeBridge.java:302)
at org.apache.batik.bridge.BridgeContext
$DOMNodeRemovedEventListener.handleEvent(BridgeContext.java:1630)
at
org
.apache
.batik.dom.events.EventSupport.fireEventListeners(EventSupport.java:324)
at
org
.apache
.batik.dom.events.EventSupport.fireEventListeners(EventSupport.java:366)
at
org
.apache.batik.dom.events.EventSupport.dispatchEvent(EventSupport.java:
258)
at org.apache.batik.dom.AbstractNode.dispatchEvent(AbstractNode.java:
1014)
at
org
.apache
.batik
.dom
.AbstractParentNode.fireDOMNodeRemovedEvent(AbstractParentNode.java:445)
at
org
.apache
.batik.dom.AbstractParentNode.removeChild(AbstractParentNode.java:185)
at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mozilla.javascript.MemberBox.invoke(Unknown Source)
at org.mozilla.javascript.NativeJavaMethod.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.call1(Unknown Source)
at org.mozilla.javascript.gen.c208._c1(Inline <script> file://localhost/Users/jonathanchetwynd/Desktop/batik.svg:6:7)
at org.mozilla.javascript.gen.c208.call(Inline <script> file://localhost/Users/jonathanchetwynd/Desktop/batik.svg:6)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(Unknown
Source)
at org.mozilla.javascript.gen.c209._c0(<SVG>:1)
at org.mozilla.javascript.gen.c209.call(<SVG>)
at org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
at org.mozilla.javascript.gen.c209.call(<SVG>)
at org.mozilla.javascript.gen.c209.exec(<SVG>)
at org.apache.batik.script.rhino.RhinoInterpreter
$3.run(RhinoInterpreter.java:354)
at org.mozilla.javascript.Context.call(Unknown Source)
at org.mozilla.javascript.ContextFactory.call(Unknown Source)
at
org
.apache
.batik.script.rhino.RhinoInterpreter.evaluate(RhinoInterpreter.java:358)
at org.apache.batik.bridge.ScriptingEnvironment
$EvaluateIntervalRunnable.run(ScriptingEnvironment.java:733)
at org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:237)
at java.lang.Thread.run(Thread.java:613)
Re: batik, ecmascript DOM?
Posted by Cameron McCormack <ca...@mcc.id.au>.
Jonathan Chetwynd:
> what's the difference between application and text in the ecmascript
> header? chose text.
Not much. application/ecmascript has some well-defined encoding
detection that the others don’t.
http://www.ietf.org/rfc/rfc4329.txt
> It's not clear to me why the script appears to stall in batik
> wfm Opera and ff.
The file at http://www.openicon.org/irc/ircwithIcon.svg still seems to
create a <script> element dynamically, which I mentioned earlier
(http://markmail.org/message/vqlrhr6skysd6sg5) will not work.
The file you included include does work though.
--
Cameron McCormack ≝ http://mcc.id.au/
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org