xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerard.Davison" <Gerard.Davi...@oracle.com>
Subject Re: Exceptions when using the SVGGenerator.
Date Tue, 03 Jul 2001 17:29:53 GMT

Hi,

I have a bit of a problem that I am not able to access CVS because I am stuck behind the Oracle
firewall.
Can some king soul either point me in the direction of a CVS client that will work via HTTP
or even better
mail me a zip of the current code base.

Thanks in advance, sorry to be a real pain.

G.


Christophe Jolif wrote:

> Gerard,
>
> I looks like a known problem that is workaround in the current CVS base.
> Could try the latest CVS version and tell us if the problem disapeared
> and if everything else is still ok?
>
> Thanks a lot.
>
> "Gerard.Davison" wrote:
> >
> >
> > Hi,
> >
> > I just want to get a feel as to whether anybody else has run across
> > this problem as I am having real trouble tracking it down. I am using
> > both 1.0 and 1.0Beta2Rc9 to generate SVG images from diagrams.
> >
> > The problems occurs only during some very specific types of diagrams,
> > the type of which I am unable to track down. Interestingly JPG images
> > rendered using exporter provided with the JDK also doesn't work, but
> > in a rather more sinister way as all of the text is missing.
> >
> > The diagram renders fine when written to the screen. The only other
> > item of significance
> >
> > Anyhow there are some of the exception types I seem to be generating:
> >
> > setClip(-1073741824,-1073741824,-2147483647,-2147483647)
> > java.lang.NullPointerException
> >  void
> > org.apache.batik.dom.AbstractElement.checkChildType(org.w3c.dom.Node)
> >   AbstractElement.java:411
> >  void
> > org.apache.batik.dom.AbstractParentNode.checkAndRemove(org.w3c.dom.Node)
> >
> >   AbstractParentNode.java:412
> >  org.w3c.dom.Node
> > org.apache.batik.dom.AbstractParentNode.appendChild(org.w3c.dom.Node)
> >   AbstractParentNode.java:181
> >  org.w3c.dom.Element
> > org.apache.batik.svggen.SVGClip.clipToSVG(java.awt.Shape)
> >   SVGClip.java:115
> >  org.apache.batik.svggen.SVGClipDescriptor
> > org.apache.batik.svggen.SVGClip.toSVG(java.awt.Shape)
> >   SVGClip.java:79
> >  org.apache.batik.svggen.SVGDescriptor
> > org.apache.batik.svggen.SVGClip.toSVG(org.apache.batik.ext.awt.g2d.GraphicContext)
> >
> >   SVGClip.java:56
> >  org.apache.batik.svggen.SVGGraphicContext
> > org.apache.batik.svggen.SVGGraphicContextConverter.toSVG(org.apache.batik.ext.awt.g2d.GraphicContext)
> >
> >   SVGGraphicContextConverter.java:90
> >  void
> > org.apache.batik.svggen.DOMGroupManager.addElement(org.w3c.dom.Element,
> > short)
> >   DOMGroupManager.java:159
> >  void org.apache.batik.svggen.SVGGraphics2D.fill(java.awt.Shape)
> >   SVGGraphics2D.java:1019
> >  void org.apache.batik.ext.awt.g2d.AbstractGraphics2D.fillRect(int,
> > int, int, int)
> >   AbstractGraphics2D.java:284
> >  void oracle.bm.render.java2.DrawingContextJava2.fillRect3D(int, int,
> > int, int)
> >   DrawingContextJava2.java:906
> >  void oracle.bm.render.java2.DrawingContextJava2.fillRect3D(float,
> > float, float, float)
> >   DrawingContextJava2.java:884
> >  void
> > oracle.bm.diagrammer.shape.layout.ColumnShapeLayout.draw(oracle.bm.render.geom.MRRectangle,
> > oracle.bm.render.MRDrawingContext)
> >   ColumnShapeLayout.java:630
> >  void
> > oracle.bm.diagrammer.shape.layout.ColumnShapeLayout.draw(oracle.bm.render.MRDrawingContext)
> >
> >   ColumnShapeLayout.java:610
> >  void
> > oracle.bm.diagrammer.shape.BaseDiagramShape.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagramShape.java:1194
> >  void
> > oracle.bm.diagrammer.shape.BaseDiagramNode.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagramNode.java:947
> >  void
> > oracle.bm.diagrammer.util.BaseShapeSet.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseShapeSet.java:688
> >  void
> > oracle.bm.diagrammer.BaseDiagram.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagram.java:509
> >  void
> > oracle.bm.diagrammer.BaseDiagramView.doSVG(oracle.bm.diagrammer.Diagram,
> > java.util.ResourceBundle, java.io.OutputStream,
> > oracle.bm.render.geom.MRRectangle, float, float)
> >   BaseDiagramView.java:4915
> > [deletia]
> >
> > java.lang.NullPointerException
> >  void
> > org.apache.batik.dom.AbstractElement.checkChildType(org.w3c.dom.Node)
> >   AbstractElement.java:411
> >  void
> > org.apache.batik.dom.AbstractParentNode.checkAndRemove(org.w3c.dom.Node)
> >
> >   AbstractParentNode.java:412
> >  org.w3c.dom.Node
> > org.apache.batik.dom.AbstractParentNode.appendChild(org.w3c.dom.Node)
> >   AbstractParentNode.java:181
> >  org.w3c.dom.Element
> > org.apache.batik.svggen.SVGClip.clipToSVG(java.awt.Shape)
> >   SVGClip.java:115
> >  org.apache.batik.svggen.SVGClipDescriptor
> > org.apache.batik.svggen.SVGClip.toSVG(java.awt.Shape)
> >   SVGClip.java:79
> >  org.apache.batik.svggen.SVGDescriptor
> > org.apache.batik.svggen.SVGClip.toSVG(org.apache.batik.ext.awt.g2d.GraphicContext)
> >
> >   SVGClip.java:56
> >  org.apache.batik.svggen.SVGGraphicContext
> > org.apache.batik.svggen.SVGGraphicContextConverter.toSVG(org.apache.batik.ext.awt.g2d.GraphicContext)
> >
> >   SVGGraphicContextConverter.java:90
> >  void
> > org.apache.batik.svggen.DOMGroupManager.addElement(org.w3c.dom.Element,
> > short)
> >   DOMGroupManager.java:159
> >  void org.apache.batik.svggen.SVGGraphics2D.fill(java.awt.Shape)
> >   SVGGraphics2D.java:1019
> >  void org.apache.batik.ext.awt.g2d.AbstractGraphics2D.fillRect(int,
> > int, int, int)
> >   AbstractGraphics2D.java:284
> >  void oracle.bm.render.java2.DrawingContextJava2.fillRect3D(int, int,
> > int, int)
> >   DrawingContextJava2.java:906
> >  void oracle.bm.render.java2.DrawingContextJava2.fillRect3D(float,
> > float, float, float)
> >   DrawingContextJava2.java:884
> >  void
> > oracle.bm.diagrammer.shape.layout.ColumnShapeLayout.draw(oracle.bm.render.geom.MRRectangle,
> > oracle.bm.render.MRDrawingContext)
> >   ColumnShapeLayout.java:630
> >  void
> > oracle.bm.diagrammer.shape.layout.ColumnShapeLayout.draw(oracle.bm.render.MRDrawingContext)
> >
> >   ColumnShapeLayout.java:610
> >  void
> > oracle.bm.diagrammer.shape.BaseDiagramShape.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagramShape.java:1194
> >  void
> > oracle.bm.diagrammer.shape.BaseDiagramNode.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagramNode.java:947
> >  void
> > oracle.bm.diagrammer.util.BaseShapeSet.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseShapeSet.java:688
> >  void
> > oracle.bm.diagrammer.BaseDiagram.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagram.java:509
> >  void
> > oracle.bm.diagrammer.BaseDiagramView.doSVG(oracle.bm.diagrammer.Diagram,
> > java.util.ResourceBundle, java.io.OutputStream,
> > oracle.bm.render.geom.MRRectangle, float, float)
> >   BaseDiagramView.java:4915
> > [deletia]
> >
> > java.lang.NullPointerException
> >  void
> > org.apache.batik.dom.AbstractElement.checkChildType(org.w3c.dom.Node)
> >   AbstractElement.java:411
> >  void
> > org.apache.batik.dom.AbstractParentNode.checkAndRemove(org.w3c.dom.Node)
> >
> >   AbstractParentNode.java:412
> >  org.w3c.dom.Node
> > org.apache.batik.dom.AbstractParentNode.appendChild(org.w3c.dom.Node)
> >   AbstractParentNode.java:181
> >  org.w3c.dom.Element
> > org.apache.batik.svggen.SVGClip.clipToSVG(java.awt.Shape)
> >   SVGClip.java:115
> >  org.apache.batik.svggen.SVGClipDescriptor
> > org.apache.batik.svggen.SVGClip.toSVG(java.awt.Shape)
> >   SVGClip.java:79
> >  org.apache.batik.svggen.SVGDescriptor
> > org.apache.batik.svggen.SVGClip.toSVG(org.apache.batik.ext.awt.g2d.GraphicContext)
> >
> >   SVGClip.java:56
> >  org.apache.batik.svggen.SVGGraphicContext
> > org.apache.batik.svggen.SVGGraphicContextConverter.toSVG(org.apache.batik.ext.awt.g2d.GraphicContext)
> >
> >   SVGGraphicContextConverter.java:90
> >  void
> > org.apache.batik.svggen.DOMGroupManager.addElement(org.w3c.dom.Element,
> > short)
> >   DOMGroupManager.java:159
> >  void org.apache.batik.svggen.SVGGraphics2D.fill(java.awt.Shape)
> >   SVGGraphics2D.java:1019
> >  void org.apache.batik.ext.awt.g2d.AbstractGraphics2D.fillRect(int,
> > int, int, int)
> >   AbstractGraphics2D.java:284
> >  void oracle.bm.render.java2.DrawingContextJava2.fillRect3D(int, int,
> > int, int)
> >   DrawingContextJava2.java:906
> >  void oracle.bm.render.java2.DrawingContextJava2.fillRect3D(float,
> > float, float, float)
> >   DrawingContextJava2.java:884
> >  void
> > oracle.bm.diagrammer.shape.layout.ColumnShapeLayout.draw(oracle.bm.render.geom.MRRectangle,
> > oracle.bm.render.MRDrawingContext)
> >   ColumnShapeLayout.java:630
> >  void
> > oracle.bm.diagrammer.shape.layout.ColumnShapeLayout.draw(oracle.bm.render.MRDrawingContext)
> >
> >   ColumnShapeLayout.java:610
> >  void
> > oracle.bm.diagrammer.shape.BaseDiagramShape.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagramShape.java:1194
> >  void
> > oracle.bm.diagrammer.shape.BaseDiagramNode.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagramNode.java:947
> >  void
> > oracle.bm.diagrammer.util.BaseShapeSet.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseShapeSet.java:688
> >  void
> > oracle.bm.diagrammer.BaseDiagram.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagram.java:509
> >  void
> > oracle.bm.diagrammer.BaseDiagramView.doSVG(oracle.bm.diagrammer.Diagram,
> > java.util.ResourceBundle, java.io.OutputStream,
> > oracle.bm.render.geom.MRRectangle, float, float)
> >   BaseDiagramView.java:4915
> > [deletia]
> >
> > java.lang.NullPointerException
> >  void
> > org.apache.batik.dom.AbstractElement.checkChildType(org.w3c.dom.Node)
> >   AbstractElement.java:411
> >  void
> > org.apache.batik.dom.AbstractParentNode.checkAndRemove(org.w3c.dom.Node)
> >
> >   AbstractParentNode.java:412
> >  org.w3c.dom.Node
> > org.apache.batik.dom.AbstractParentNode.appendChild(org.w3c.dom.Node)
> >   AbstractParentNode.java:181
> >  org.w3c.dom.Element
> > org.apache.batik.svggen.SVGClip.clipToSVG(java.awt.Shape)
> >   SVGClip.java:115
> >  org.apache.batik.svggen.SVGClipDescriptor
> > org.apache.batik.svggen.SVGClip.toSVG(java.awt.Shape)
> >   SVGClip.java:79
> >  org.apache.batik.svggen.SVGDescriptor
> > org.apache.batik.svggen.SVGClip.toSVG(org.apache.batik.ext.awt.g2d.GraphicContext)
> >
> >   SVGClip.java:56
> >  org.apache.batik.svggen.SVGGraphicContext
> > org.apache.batik.svggen.SVGGraphicContextConverter.toSVG(org.apache.batik.ext.awt.g2d.GraphicContext)
> >
> >   SVGGraphicContextConverter.java:90
> >  void
> > org.apache.batik.svggen.DOMGroupManager.addElement(org.w3c.dom.Element,
> > short)
> >   DOMGroupManager.java:159
> >  void org.apache.batik.svggen.SVGGraphics2D.fill(java.awt.Shape)
> >   SVGGraphics2D.java:1019
> >  void org.apache.batik.ext.awt.g2d.AbstractGraphics2D.fillRect(int,
> > int, int, int)
> >   AbstractGraphics2D.java:284
> >  void oracle.bm.render.java2.DrawingContextJava2.fillRect3D(int, int,
> > int, int)
> >   DrawingContextJava2.java:906
> >  void oracle.bm.render.java2.DrawingContextJava2.fillRect3D(float,
> > float, float, float)
> >   DrawingContextJava2.java:884
> >  void
> > oracle.bm.diagrammer.shape.layout.ColumnShapeLayout.draw(oracle.bm.render.geom.MRRectangle,
> > oracle.bm.render.MRDrawingContext)
> >   ColumnShapeLayout.java:630
> >  void
> > oracle.bm.diagrammer.shape.layout.ColumnShapeLayout.draw(oracle.bm.render.MRDrawingContext)
> >
> >   ColumnShapeLayout.java:610
> >  void
> > oracle.bm.diagrammer.shape.BaseDiagramShape.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagramShape.java:1194
> >  void
> > oracle.bm.diagrammer.shape.BaseDiagramNode.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagramNode.java:947
> >  void
> > oracle.bm.diagrammer.util.BaseShapeSet.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseShapeSet.java:688
> >  void
> > oracle.bm.diagrammer.BaseDiagram.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagram.java:509
> >  void
> > oracle.bm.diagrammer.BaseDiagramView.doSVG(oracle.bm.diagrammer.Diagram,
> > java.util.ResourceBundle, java.io.OutputStream,
> > oracle.bm.render.geom.MRRectangle, float, float)
> >   BaseDiagramView.java:4915
> > [deletia]
> >
> > java.lang.NullPointerException
> >  void
> > org.apache.batik.dom.AbstractElement.checkChildType(org.w3c.dom.Node)
> >   AbstractElement.java:411
> >  void
> > org.apache.batik.dom.AbstractParentNode.checkAndRemove(org.w3c.dom.Node)
> >
> >   AbstractParentNode.java:412
> >  org.w3c.dom.Node
> > org.apache.batik.dom.AbstractParentNode.appendChild(org.w3c.dom.Node)
> >   AbstractParentNode.java:181
> >  org.w3c.dom.Element
> > org.apache.batik.svggen.SVGClip.clipToSVG(java.awt.Shape)
> >   SVGClip.java:115
> >  org.apache.batik.svggen.SVGClipDescriptor
> > org.apache.batik.svggen.SVGClip.toSVG(java.awt.Shape)
> >   SVGClip.java:79
> >  org.apache.batik.svggen.SVGDescriptor
> > org.apache.batik.svggen.SVGClip.toSVG(org.apache.batik.ext.awt.g2d.GraphicContext)
> >
> >   SVGClip.java:56
> >  org.apache.batik.svggen.SVGGraphicContext
> > org.apache.batik.svggen.SVGGraphicContextConverter.toSVG(org.apache.batik.ext.awt.g2d.GraphicContext)
> >
> >   SVGGraphicContextConverter.java:90
> >  void
> > org.apache.batik.svggen.DOMGroupManager.addElement(org.w3c.dom.Element,
> > short)
> >   DOMGroupManager.java:159
> >  void org.apache.batik.svggen.SVGGraphics2D.fill(java.awt.Shape)
> >   SVGGraphics2D.java:1019
> >  void org.apache.batik.ext.awt.g2d.AbstractGraphics2D.fillRect(int,
> > int, int, int)
> >   AbstractGraphics2D.java:284
> >  void oracle.bm.render.java2.DrawingContextJava2.fillRect3D(int, int,
> > int, int)
> >   DrawingContextJava2.java:906
> >  void oracle.bm.render.java2.DrawingContextJava2.fillRect3D(float,
> > float, float, float)
> >   DrawingContextJava2.java:884
> >  void
> > oracle.bm.diagrammer.shape.layout.ColumnShapeLayout.draw(oracle.bm.render.geom.MRRectangle,
> > oracle.bm.render.MRDrawingContext)
> >   ColumnShapeLayout.java:630
> >  void
> > oracle.bm.diagrammer.shape.layout.ColumnShapeLayout.draw(oracle.bm.render.MRDrawingContext)
> >
> >   ColumnShapeLayout.java:610
> >  void
> > oracle.bm.diagrammer.shape.BaseDiagramShape.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagramShape.java:1194
> >  void
> > oracle.bm.diagrammer.shape.BaseDiagramNode.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagramNode.java:947
> >  void
> > oracle.bm.diagrammer.util.BaseShapeSet.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseShapeSet.java:688
> >  void
> > oracle.bm.diagrammer.BaseDiagram.draw(oracle.bm.render.MRDrawingContext)
> >
> >   BaseDiagram.java:509
> >  void
> > oracle.bm.diagrammer.BaseDiagramView.doSVG(oracle.bm.diagrammer.Diagram,
> > java.util.ResourceBundle, java.io.OutputStream,
> > oracle.bm.render.geom.MRRectangle, float, float)
> >   BaseDiagramView.java:4915
> >  void oracle.bm.diagrammer.BaseDiagramView.exportDiagram()
> >   BaseDiagramView.java:4787
> > [deletia]
> >
> > setClip(-1073741824,-1073741824,-2147483647,-2147483647)
> > setClip(-1073741824,-1073741824,-2147483647,-2147483647)
> > setClip(-1073741824,-1073741824,-2147483647,-2147483647)
> > setClip(-1073741824,-1073741824,-2147483647,-2147483647)
> > setClip(-1073741824,-1073741824,-2147483647,-2147483647)
> >
> > There now follows another 3000 lines of exceptions which I have
> > removed for brievity.
> >
> > Can anybody give me some pointers as to where I might try to start to
> > diagnose this problem? Could it be that the object I am trying to draw
> > is outside of the Clip region? I did have some problems a while ago
> > when calling "clipRect" rather than "setClipRect" which causes so
> > similar problems. Will get around to logging his bug when I can find
> > the original test information, but the nub of that one way that the
> > two methods were calling entirely seperate code paths even though they
> > should have been doing the same thing. "setClipRect" had the bonus of
> > working. :-) I am sorry but I didn't have time to investigate more as
> > I do not have a home computer to play with at the mo.
> >
> > Thanks for any pointers I may receive,
> >
> > G.
> >
> >
> > --
> >
> >    I don't cause bugs, the surrounding code just fails to adapt
> > quickly enough.
> >    GMDavison@iee.org
> >
> >
> >     ---------------------------------------------------------------
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: batik-users-help@xml.apache.org
>
> --
> Christophe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org

--

   I don't cause bugs, the surrounding code just fails to adapt quickly enough.
   GMDavison@iee.org


Mime
View raw message