You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/01/10 02:13:41 UTC
DO NOT REPLY [Bug 44194] New: - RadialGradientPaintContext: hints can be null
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44194>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44194
Summary: RadialGradientPaintContext: hints can be null
Product: Batik
Version: 1.7
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: critical
Priority: P1
Component: Utilities
AssignedTo: batik-dev@xmlgraphics.apache.org
ReportedBy: dli@cisco.com
On Mac OS 10.4.10 and 10.4.11, I see the following exception. The JVM passes the
parameter "hints" as null, RadialGradientPaintContext access it without checking
if it is null.
Java Web Start 1.5.0
Using JRE version 1.5.0_13 Java HotSpot(TM) Client VM
User home directory = /Users/devtest
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
0-5: set trace level to <n>
----------------------------------------------------
DM Application Logging Started at Wed Jan 09 17:49:14 MST 2008
---------------------------------------------
Local DM Launcher Version = 1.5.23
Local DM Launcher Version Display = 1.5(23)
OK button clicked
Trying for ASDM Version file; url = https://171.69.39.36/admin/
Server DM Version = 6.1(0)29
Server DM Launcher Version = 1.5.23, size = 319488 bytes
invoking SGZ Loader..
Cache location = /Users/devtest/.asdm/cache
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at
org.apache.batik.ext.awt.RadialGradientPaintContext.<init>(RadialGradientPaintContext.java:177)
at
org.apache.batik.ext.awt.RadialGradientPaint.createContext(RadialGradientPaint.java:464)
at apple.awt.OSXSurfaceData.setupPaint(OSXSurfaceData.java:760)
at apple.awt.OSXSurfaceData.setupGraphicsState(OSXSurfaceData.java:1085)
at apple.awt.OSXSurfaceData.setupGraphicsState(OSXSurfaceData.java:1013)
at apple.awt.OSXSurfaceData.drawfillShape(OSXSurfaceData.java:1346)
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:2574)
at
com.cisco.dmchart.gui.chart.FancyXYLineAndShapeRenderer.drawSecondaryPass(FancyXYLineAndShapeRenderer.java:244)
at
com.cisco.dmchart.gui.chart.FancyXYLineAndShapeRenderer.drawItem(FancyXYLineAndShapeRenderer.java:156)
at com.cisco.dmchart.gui.chart.FancyXYPlot.render(FancyXYPlot.java:101)
at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:2680)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1214)
at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1270)
at javax.swing.JComponent.paint(JComponent.java:1006)
at javax.swing.JComponent._paintImmediately(JComponent.java:4890)
at javax.swing.JComponent.paintImmediately(JComponent.java:4676)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:477)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
DO NOT REPLY [Bug 44194] - RadialGradientPaintContext: hints can be null
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44194>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44194
------- Additional Comments From dli@cisco.com 2008-01-10 11:56 -------
(From update of attachment 21376)
>176a177,185
>> if (hints == null) {
>> /**
>> * It is observed that on Mac OS X 10.4.11 and JRE 1.5.0_13, this
>> * constructor is called with hints == null.
>> * See:
>> * http://issues.apache.org/bugzilla/show_bug.cgi?id=44194
>> */
>> hints = new RenderingHints(null);
>> }
The patch should be applied to
org.apache.batik.ext.awt.RadialGradientPaintContext file.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
DO NOT REPLY [Bug 44194] - RadialGradientPaintContext: hints can be null
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44194>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44194
dli@cisco.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #21376|The patch is to make sure |The patch is to make sure
description|variable "hints" is not null|variable "hints" is not null
|before being accessed. |before being accessed in
| |RadialGradientPaintContext.
------- Additional Comments From dli@cisco.com 2008-01-10 11:51 -------
(From update of attachment 21376)
The patch should be applied to
RadialGradientPaintContext.java file.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
DO NOT REPLY [Bug 44194] - RadialGradientPaintContext: hints can be null
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44194>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44194
------- Additional Comments From dli@cisco.com 2008-01-10 11:50 -------
Created an attachment (id=21376)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21376&action=view)
The patch is to make sure variable "hints" is not null before being accessed.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
DO NOT REPLY [Bug 44194] - RadialGradientPaintContext: hints can be null
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44194>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44194
------- Additional Comments From dli@cisco.com 2008-01-10 11:54 -------
(From update of attachment 21376)
The patch should be applied to RadialGradientPaintContext.java .
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org