W3C home > Mailing lists > Public > www-isaviz@w3.org > April 2002

Re: GraphViz SVG driver updated - but breaks IsaViz 1.0

From: Emmanuel Pietriga <emmanuel.pietriga@xrce.xerox.com>
Date: Thu, 25 Apr 2002 12:25:16 +0200
Message-ID: <3CC7D98C.2090409@xrce.xerox.com>
To: Nick Efthymiou <NEFTH@pacbell.net>
CC: www-isaviz@w3.org
Nick,

I fixed the problem. The nullpointerexception was caused by a change in 
the structure of SVG files generated by dot (previous dot versions were 
adding a "g" element around "path" elements that is no longer there in 
1.8.4 and later).

There was also another minor problem due to your new DOCTYPE 
declaration.  I was telling Xerces (XML parser) not to validate SVG 
files when parsing them. But I did not explicitely tell it not to load 
the external DTD subset, so it was trying each time to access the DTD at 
the URI you provide. I've changed this so that Xerces does not try to 
retrieve the external/remote DTD anymore.

I've just built a new release of IsaViz, called 1.0a that just addresses 
  this specific problem, so that people can use graphviz/dot 1.8.x 
(x>=4) with IsaViz.

Thanks the report,
Emmanuel





Nick Efthymiou wrote:

> Emmanuel,
> 
> the current version of GraphViz (1.8.4 for Microsoft Windows, 1.8.5 for
> Unix)
> has a reworked SVG driver that will always produce well-formed and (extra
> bonus) valid SVG (validated against the DTD,
> http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd
> ).
> 
> This seems to have broken the SVG loader, however. After waiting for a
> couple of minutes, during which IsaViz is reporting that it is loading the
> SVG output from dot, I interrupted the load and received this trace:
> D:\My Documents\Wireless\Architecture\IsaViz>\"Program
> Files"\Java\j2re1.4.0\bin
> \java -classpath lib\isaviz.jar;lib\vtm.jar;lib\xerces.jar;lib\jena.jar
> org.w3c.
> IsaViz.Editor
> java.lang.NullPointerException
>         at org.w3c.IsaViz.RDFLoader.processSVG1711Node(RDFLoader.java:551)
>         at org.w3c.IsaViz.RDFLoader.displaySVG(RDFLoader.java:358)
>         at org.w3c.IsaViz.RDFLoader.load(RDFLoader.java:162)
>         at org.w3c.IsaViz.Editor$4.construct(Editor.java:431)
>         at com.xerox.VTM.engine.SwingWorker$2.run(SwingWorker.java:110)
>         at java.lang.Thread.run(Unknown Source)
> 
> Versions 1.8.1 and 1.8.2 still worked.
> 
> Attached are the .dot file and .svg file left in the IsaViz\tmp directory.
> As
> you can see, the biggest changes are in the choice of values for id=""
> attributes.
> 
> - Nick -
> 
> 


-- 
emmanuel.pietriga@xrce.xerox.com |  Xerox Research Centre Europe
Contextual Computing             |  6, Chemin de Maupertuis
tel: +33 4 76 61 50 32           |  38240 Meylan
fax: +33 4 76 61 50 99           |  France
http://www.xrce.xerox.com/people/pietriga/
Received on Thursday, 25 April 2002 06:22:15 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Friday, 25 March 2005 11:19:57 GMT