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 2012/01/05 16:25:19 UTC

DO NOT REPLY [Bug 52431] New: maven batik-awt-util 1.7 missing META-INF/services/ file for ImageWriterRegistry?

https://issues.apache.org/bugzilla/show_bug.cgi?id=52431

             Bug #: 52431
           Summary: maven batik-awt-util 1.7 missing META-INF/services/
                    file for ImageWriterRegistry?
           Product: Batik
           Version: 1.7
          Platform: Macintosh
            Status: NEW
          Severity: major
          Priority: P2
         Component: Utilities
        AssignedTo: batik-dev@xmlgraphics.apache.org
        ReportedBy: jc75mail@gmail.com
    Classification: Unclassified


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.

-- 
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