java.lang.ClassCastException: org.apache.batik.anim.dom.SVGOMDocument cannot be cast to org.apache.batik.dom.svg.SVGOMDocument

Stack Overflow | pulpet112 | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 1

    NoSuchMethodError while generating JasperReport's report

    Stack Overflow | 8 months ago | pulpet112
    java.lang.ClassCastException: org.apache.batik.anim.dom.SVGOMDocument cannot be cast to org.apache.batik.dom.svg.SVGOMDocument
  2. 0

    Multistate Symbol widget throwing exception for certain SVGs.

    GitHub | 2 years ago | willrogers
    java.lang.ClassCastException: org.apache.batik.dom.GenericElementNS cannot be cast to org.apache.batik.dom.svg12.BindableElement
  3. 0

    Displaying svg Element

    xmlgraphics-batik-users | 2 decades ago | Peter Rice
    java.lang.ClassCastException: org.apache.xerces.dom.DeferredDocumentImpl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Displaying svg Element

    xmlgraphics-batik-users | 2 decades ago | Stephane Hillion
    java.lang.ClassCastException: org.apache.xerces.dom.DeferredDocumentImpl
  6. 0

    ClassCastException thrown from ..$SVGHandler.renderSVGDocument

    Apache Bugzilla | 1 decade ago | john
    java.lang.ClassCastException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.batik.anim.dom.SVGOMDocument cannot be cast to org.apache.batik.dom.svg.SVGOMDocument

      at org.apache.batik.bridge.BridgeContext.setDocument()
    2. Batik bridge classes
      GVTBuilder.build
      1. org.apache.batik.bridge.BridgeContext.setDocument(Unknown Source)
      2. org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
      2 frames
    3. JasperReports
      JRPdfExporter.exportReport
      1. net.sf.jasperreports.renderers.AbstractSvgDataToGraphics2DRenderer.ensureSvg(AbstractSvgDataToGraphics2DRenderer.java:166)
      2. net.sf.jasperreports.renderers.AbstractSvgDataToGraphics2DRenderer.getDimension(AbstractSvgDataToGraphics2DRenderer.java:111)
      3. net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.processGraphics2D(JRPdfExporter.java:1793)
      4. net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.process(JRPdfExporter.java:1582)
      5. net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.access$300(JRPdfExporter.java:1535)
      6. net.sf.jasperreports.engine.export.JRPdfExporter.exportImage(JRPdfExporter.java:1475)
      7. net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:1093)
      8. net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:1056)
      9. net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:920)
      10. net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:537)
      10 frames
    4. reports
      JasperReport.generatePdf
      1. reports.JasperReport.generatePdf(JasperReport.java:178)
      1 frame