Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5082236

REGRESSION:IOException throws with Batik SVG libary version 1.1.1

XMLWordPrintable

    • b62
    • x86
    • windows_xp


        ###@###.### 2004-08-03

        J2SE Version (please include all output from java -version flag):
          java version "1.5.0-beta2"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51a)
          Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51a, mixed mode)

        Does this problem occur on J2SE 1.4 or 1.4.1 or 1.4.2? Yes / No (pick one)
          No

        Operating System Configuration Information (be specific):
          Windows XP

        Bug Description:
           There is a problem happen with JDK1.5 but not JDK1.4.2. It involves BATIK
           SVG library version 1.1.1, which used in our software. You can download
           the library along with the source code for it at
           http://archive.apache.org/dist/xml/batik/. Download the file
           batik-src-1.1.1.zip to get the source code.

        Steps to Reproduce (be specific):

        - download the batik source code as mentioned above.
        - take out xml-batik\sources\org\xml
        - take out org.apache.batik.app package and the subpackages of
          org.apache.batik.script.
        - add lib/build/crimson-parser.jar and xml/batik/sources to the classpath.
        - merge xml/batik/resources directory into xml/batik/sources directory.
        - compile xml-batik\sources
        - save the attached cube.svg somewhere on your hard drive.
        - compile run the attached SVGBug.java. Note that you might need to change
          the location of cube.svg file in the code.
        - when you run it, the result is a crash:

        java.io.IOException: can't declare any more prefixes in this context
                at
        org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFacto
        ry.java:211)
                at
        org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocument
        Factory.java:128)
                at
        org.apache.batik.bridge.DocumentLoader.loadDocument(DocumentLoader.java:84)
                at SVGBug.main(SVGBug.java:41)
                

        This crash does NOT happen if run the same app with JDK1.4.2, so don't
        think the library writers are to blame.

        It is very important for us to have this bug resolved.

              rmandavasunw Ramesh Mandava (Inactive)
              tyao Ting-Yun Ingrid Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: