Visualize_Backtrace woes - not able to launch the zgrviewer

sankum - August 17, 2009 - 18:59

I tried to follow this thread, but it did not help me much. I am not able to run the zgrviewer to see the graphical representation of my dot files.

Below is the description of my problem -

After a lot of effort, I was able to successfully setup visualize backtrace module so that it is printing trace files in the /tmp/ folder. Below is the ls output of those files-


ls -l /tmp/trace.2043925204.*
-rwxrwxrwx 1 www-data www-data 1063800 2009-08-17 22:03 /tmp/trace.2043925204.00ebf3.xt
-rwxrwxrwx 1 www-data www-data 841590 2009-08-17 20:43 /tmp/trace.2043925204.02e051.xt
-rwxrwxrwx 1 www-data www-data 69232647 2009-08-17 23:50 /tmp/trace.2043925204.xt
-rwxrwxrwx 1 www-data www-data 0 2009-08-17 23:50 /tmp/trace.2043925204.xtparsed
(Note that I have given them all permissions initially thinking permissions could have been the problem)

I also changed the /usr/local/bin/zgrviewer/run.sh by including all the jar files inside /usr/local/bin/zgrviewer/target/ in the classpath.

But when I run the command -

/usr/local/bin/zgrviewer/run.sh --Pdot /home/roger/projects/drupal-6.13-testing/sites/test1/files/2043925204_section1.dot, the zgrviewr UI opens and I get the following error on the command prompt-


--help for command line options
Loading Preferences from : /home/roger/.zgrviewer
[Fatal Error] :-1:-1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
at net.claribole.zgrviewer.Utils.parse(Utils.java:116)
at net.claribole.zgrviewer.DOTManager.displaySVG(DOTManager.java:266)
at net.claribole.zgrviewer.DOTManager.callGraphViz(DOTManager.java:95)
at net.claribole.zgrviewer.DOTManager.load(DOTManager.java:64)
at net.claribole.zgrviewer.GVLoader.loadFile(GVLoader.java:104)
at net.claribole.zgrviewer.ZGRViewer.loadCmdLineFile(ZGRViewer.java:96)
at net.claribole.zgrviewer.ZGRViewer.(ZGRViewer.java:66)
at net.claribole.zgrviewer.ZGRViewer.main(ZGRViewer.java:503)
Exception generating graph: null


java.lang.NullPointerException
at com.xerox.VTM.svg.SVGReader.load(SVGReader.java:1672)
at net.claribole.zgrviewer.DOTManager.displaySVG(DOTManager.java:270)
at net.claribole.zgrviewer.DOTManager.callGraphViz(DOTManager.java:95)
at net.claribole.zgrviewer.DOTManager.load(DOTManager.java:64)
at net.claribole.zgrviewer.GVLoader.loadFile(GVLoader.java:104)
at net.claribole.zgrviewer.ZGRViewer.loadCmdLineFile(ZGRViewer.java:96)
at net.claribole.zgrviewer.ZGRViewer.(ZGRViewer.java:66)
at net.claribole.zgrviewer.ZGRViewer.main(ZGRViewer.java:503)

Also note that all my dot files are only 56 bytes (I wonder if that may be the issue). Below is the content of 2043925204_section1.dot file -

digraph G {graph [ordering="out"]; node [style=filled];}

 
 

Drupal is a registered trademark of Dries Buytaert.