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 2010/04/07 11:40:57 UTC
DO NOT REPLY [Bug 49061] New: ClassCastException using
org.apache.batik.swing.JSVGCanvas.setDocument
https://issues.apache.org/bugzilla/show_bug.cgi?id=49061
Summary: ClassCastException using
org.apache.batik.swing.JSVGCanvas.setDocument
Product: Batik
Version: 1.7
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: SVG DOM
AssignedTo: batik-dev@xmlgraphics.apache.org
ReportedBy: peterhull90@gmail.com
Created an attachment (id=25239)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25239)
Netbeans 6.8 project
If the document is set to one with a different implementation, an exception is
thrown, for example:
Document d =
DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(FILENAME);
JSVGCanvas canvas = new JSVGCanvas();
canvas.setDocument(d);
Gives an exception:
Exception in thread "main" java.lang.ClassCastException:
org.apache.batik.dom.GenericElement cannot be cast to
org.w3c.dom.svg.SVGSVGElement
Example project attached.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
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 49061] ClassCastException using
org.apache.batik.swing.JSVGCanvas.setDocument
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49061
Thomas Deweese <de...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Thomas Deweese <de...@apache.org> 2010-04-07 10:02:16 UTC ---
The DOM you are building is broken.
If you have a question on using Batik, ask them on the Batik-Users list, do not
post bugs (strike 2).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org