Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1005

maven batik-awt-util 1.7 missing META-INF/services/ file for ImageWriterRegistry?

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: Utilities
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: Macintosh

      Description

      When we switched our project to maven, we started seeing a null pointer exception coming from the JPEGTranscoder, line 89. The exception happens because the singleton org.apache.batik.ext.awt.image.spi.ImageWriterRegistry instance does not have any ImageWriters registered so null is returned instead of a JPEGImageWriter instance.

      Looking at the code for the ImageWriterRegistry class, I think there should be a file called "org.apache.batik.ext.awt.image.spi.ImageWriter" inside of META-INF/services/ in the distributed jar which lists the image writers to register during setup. However, there is no such file in the batik-awt-util-1.7.jar.

      I do see a file in xmlgraphics-commons jar for the org.apache.xmlgraphics.image.writer.ImageWriter class, but the JPEGTranscoder doesn't use the registry from that package.

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              jc75mail@gmail.com Jessica
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: