Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
1.6
-
None
-
None
-
Operating System: Mac OS X 10.4
Platform: Macintosh
Description
This problem was first noticed when working with SVG icons in Oracle JDeveloper
10.1.3; but after further testing can be reproduced using the batik-squiggle.jar
application.
Simply open the attached umlInterface.svg image using the batik-squiggle.jar and
then try to print the resultant image. You will see just a large grey box where
the image should be.
The follwing exception was seen on the console:
java.lang.NullPointerException
at org.apache.batik.ext.awt.MultipleGradientPaintContext.<init>(Unknown
Source)
at org.apache.batik.ext.awt.LinearGradientPaintContext.<init>(Unknown
Source)
at org.apache.batik.ext.awt.LinearGradientPaint.createContext(Unknown
Source)
at apple.awt.OSXSurfaceData.setupPaint(OSXSurfaceData.java:707)
at apple.awt.OSXSurfaceData.setupGraphicsState(OSXSurfaceData.java:1037)
at apple.awt.OSXSurfaceData.setupGraphicsState(OSXSurfaceData.java:965)
at apple.awt.OSXSurfaceData.drawfillShape(OSXSurfaceData.java:1298)
at apple.awt.CRenderer.drawfillShape(CRenderer.java:536)
at apple.awt.CRenderer.fill(CRenderer.java:574)
at apple.awt.CRenderer.fill(CRenderer.java:561)
at sun.java2d.pipe.ValidatePipe.fill(ValidatePipe.java:142)
at sun.java2d.SunGraphics2D.fill(SunGraphics2D.java:2582)
at sun.print.ProxyGraphics2D.fill(ProxyGraphics2D.java:1379)
at org.apache.batik.gvt.FillShapePainter.paint(Unknown Source)
at org.apache.batik.gvt.CompositeShapePainter.paint(Unknown Source)
at org.apache.batik.gvt.ShapeNode.primitivePaint(Unknown Source)
at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
at org.apache.batik.gvt.ShapeNode.paint(Unknown Source)
at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown Source)
at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown Source)
at org.apache.batik.gvt.CanvasGraphicsNode.primitivePaint(Unknown Source)
at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown Source)
at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
at org.apache.batik.transcoder.print.PrintTranscoder.print(Unknown Source)
at apple.awt.CPrinterJob$4.run(CPrinterJob.java:533)
at apple.awt.CPrinterJob.printToPathGraphics(CPrinterJob.java:548)
at apple.awt.CPrinterJob.printLoop(Native Method)
at apple.awt.CPrinterJob.print(CPrinterJob.java:223)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1200)
at org.apache.batik.transcoder.print.PrintTranscoder.print(Unknown Source)
at org.apache.batik.apps.svgbrowser.JSVGViewerFrame$9.run(Unknown Source)
Interestingly Print to PDF does work while printing from JDeveloper; but not
from the PDF printing tool. In wonder if this is something to do with the
scaling factor applied when printing from squiggle.